:root {
  --ink: hsl(32 14% 12%);
  --ink-soft: hsl(32 9% 30%);
  --muted: hsl(32 7% 40%);
  --line: hsl(32 15% 84%);
  --surface: hsl(32 26% 96%);
  --surface-deep: hsl(32 20% 90%);
  --brass: hsl(32 68% 46%);
  --brass-deep: hsl(32 70% 35%);
  --brass-light: hsl(32 66% 66%);
  --paper: hsl(32 30% 99%);

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 128px;

  --t-xs: 0.8rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: 1.2rem;
  --t-lg: 1.44rem;
  --t-xl: 1.728rem;
  --t-2xl: 2.074rem;
  --t-3xl: 2.488rem;

  --display: "Bodoni Moda", Georgia, serif;
  --body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 700;
  margin: 0;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--brass-deep);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--s5);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: var(--s3) var(--s5);
  z-index: 20;
}

.skip:focus {
  left: var(--s4);
  top: var(--s4);
}

.eyebrow {
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.6;
  color: var(--muted);
}

.head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.head__inner {
  display: flex;
  align-items: center;
  gap: var(--s6);
  min-height: 88px;
  padding-top: var(--s3);
  padding-bottom: var(--s3);
  flex-wrap: wrap;
}

.brand {
  text-decoration: none;
  margin-right: auto;
}

.brand__name {
  font-family: var(--display);
  font-size: var(--t-lg);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.brand__line {
  display: block;
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex-wrap: wrap;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--s3);
  font-size: var(--t-sm);
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--brass-deep);
}

.money {
  display: flex;
  border: 1px solid var(--line);
}

.money button {
  min-width: 48px;
  min-height: 48px;
  padding: 0 var(--s3);
  border: 0;
  background: transparent;
  font-family: var(--body);
  font-size: var(--t-sm);
  letter-spacing: 0.08em;
  color: var(--muted);
  cursor: pointer;
}

.money button + button {
  border-left: 1px solid var(--line);
}

.money button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--s6);
  font-family: var(--body);
  font-size: var(--t-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--brass-deep);
  color: var(--brass-deep);
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: var(--brass-deep);
  color: var(--paper);
}

.btn--primary {
  background: var(--brass-deep);
  color: var(--paper);
  border-color: var(--brass-deep);
}

.btn--primary:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.hero {
  background-color: var(--ink);
  background-image: linear-gradient(90deg, hsl(32 14% 8% / 0.88) 0%, hsl(32 14% 8% / 0.62) 55%, hsl(32 14% 8% / 0.35) 100%), url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  color: hsl(32 20% 92%);
}

.hero__inner {
  padding-top: var(--s9);
  padding-bottom: var(--s9);
  max-width: 760px;
}

.hero .eyebrow {
  color: var(--brass-light);
}

.hero h1 {
  font-size: clamp(2.074rem, 5.4vw, 3.6rem);
  line-height: 1.12;
  color: hsl(32 26% 97%);
  margin: var(--s5) 0 var(--s5);
  max-width: 15ch;
}

.hero p {
  font-size: var(--t-md);
  line-height: 1.6;
  max-width: 46ch;
  color: hsl(32 16% 88%);
}

.hero .btn {
  margin-top: var(--s7);
}

.rule {
  width: 64px;
  height: 3px;
  background: var(--brass);
  border: 0;
  margin: var(--s5) 0;
}

.feature {
  padding-top: var(--s9);
}

.feature__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s6);
  align-items: center;
}

.feature__panel {
  background: var(--surface);
  padding: var(--s8) var(--s6);
}

.feature__panel h2 {
  font-size: var(--t-3xl);
  line-height: 1.15;
}

.feature__panel p {
  max-width: 42ch;
}

.feature__panel .eyebrow {
  margin-bottom: var(--s3);
}

.media {
  position: relative;
  background: var(--surface-deep);
  overflow: hidden;
}

.media__mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: var(--t-3xl);
  letter-spacing: 0.08em;
  color: hsl(32 22% 42%);
}

.media img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media img.is-missing {
  display: none;
}

.media--feature {
  aspect-ratio: 4 / 5;
}

.media--card {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
}

.section {
  padding-top: var(--s9);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s5);
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--s5);
  margin-bottom: var(--s7);
}

.section__head h2 {
  font-size: var(--t-2xl);
  line-height: 1.2;
}

.section__head p {
  max-width: 44ch;
  color: var(--muted);
  font-size: var(--t-sm);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--s7) var(--s6);
}

.card__name {
  font-size: var(--t-md);
  line-height: 1.35;
  margin-top: var(--s5);
}

.card__text {
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--muted);
  margin-top: var(--s2);
}

.card__price {
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  font-size: var(--t-md);
  font-weight: 500;
  color: var(--ink);
  font-feature-settings: "tnum" 1;
}

.notes {
  padding-top: var(--s9);
}

.notes__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s6);
  border-top: 1px solid var(--line);
  padding-top: var(--s7);
}

.notes h3 {
  font-size: var(--t-lg);
  line-height: 1.3;
  margin-bottom: var(--s3);
}

.notes p {
  font-size: var(--t-sm);
  color: var(--muted);
  max-width: 40ch;
}

.page {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.page__inner {
  padding-top: var(--s8);
  padding-bottom: var(--s8);
}

.page h1 {
  font-size: var(--t-3xl);
  line-height: 1.15;
  margin-top: var(--s3);
}

.page p {
  margin-top: var(--s4);
  color: var(--muted);
  font-size: var(--t-sm);
}

.prose {
  max-width: 74ch;
  padding-top: var(--s8);
  padding-bottom: var(--s8);
}

.prose h2 {
  font-size: var(--t-xl);
  line-height: 1.25;
  margin-top: var(--s8);
  margin-bottom: var(--s4);
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose h3 {
  font-size: var(--t-md);
  line-height: 1.4;
  margin-top: var(--s6);
  margin-bottom: var(--s3);
}

.prose p,
.prose li {
  font-size: var(--t-base);
  line-height: 1.65;
}

.prose p + p {
  margin-top: var(--s4);
}

.prose ul,
.prose ol {
  margin: var(--s4) 0 0;
  padding-left: var(--s5);
}

.prose li + li {
  margin-top: var(--s2);
}

.prose strong {
  color: var(--ink);
  font-weight: 500;
}

.prose a {
  color: var(--brass-deep);
}

.table-scroll {
  overflow-x: auto;
  margin-top: var(--s5);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
  min-width: 480px;
}

.prose th,
.prose td {
  text-align: left;
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}

.prose th {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--surface);
}

.foot {
  margin-top: var(--s10);
  background: var(--ink);
  color: hsl(32 14% 82%);
}

.foot__inner {
  padding-top: var(--s8);
  padding-bottom: var(--s8);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s7);
}

.foot h2 {
  font-family: var(--display);
  font-size: var(--t-lg);
  color: hsl(32 26% 97%);
  margin-bottom: var(--s4);
}

.foot h3 {
  font-family: var(--body);
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: var(--s4);
  font-weight: 500;
}

.foot p,
.foot li {
  font-size: var(--t-sm);
  line-height: 1.7;
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot a {
  color: hsl(32 14% 86%);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.foot a:hover {
  color: var(--brass-light);
}

.foot__base {
  border-top: 1px solid hsl(32 10% 26%);
  padding-top: var(--s5);
  padding-bottom: var(--s7);
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
  color: hsl(32 10% 74%);
}

@media (min-width: 720px) {
  .wrap {
    padding: 0 var(--s7);
  }

  .notes__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s7);
  }

  .foot__inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--s8);
  }
}

@media (min-width: 960px) {
  .feature__grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 0;
  }

  .feature__panel {
    padding: var(--s9) var(--s8);
    margin-right: calc(var(--s8) * -1);
    position: relative;
    z-index: 1;
  }

  .feature--flip .feature__panel {
    order: 2;
    margin-right: 0;
    margin-left: calc(var(--s8) * -1);
  }

  .feature--flip .media--feature {
    order: 1;
  }

  .media--feature {
    aspect-ratio: 5 / 6;
  }

  .hero__inner {
    padding-top: var(--s10);
    padding-bottom: var(--s10);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
