:root {
  --paper: #efe1c6;
  --paper-soft: rgba(248, 238, 218, 0.74);
  --ink: #15372f;
  --ink-muted: #465447;
  --gold: #a78248;
  --gold-soft: rgba(167, 130, 72, 0.34);
  --green: #102d26;
  --green-dark: #071f1a;
  --green-soft: #1d4136;
  --line: rgba(102, 75, 42, 0.22);
  --line-soft: rgba(102, 75, 42, 0.13);
  --shadow: 0 24px 52px rgba(58, 39, 18, 0.16);
  --shadow-soft: 0 14px 30px rgba(58, 39, 18, 0.1);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page-x: clamp(78px, 5.2vw, 154px);
  --content-max: 2240px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--sans);
  background:
    linear-gradient(180deg, rgba(255, 250, 239, 0.16), rgba(219, 190, 142, 0.16)),
    url("assets/landing/bg-aged-paper.png") center center / cover no-repeat fixed,
    var(--paper);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 252, 244, 0.5), transparent 34%),
    radial-gradient(circle at 72% 20%, rgba(255, 249, 236, 0.36), transparent 33%),
    linear-gradient(90deg, rgba(78, 52, 24, 0.08), transparent 18%, transparent 82%, rgba(78, 52, 24, 0.09));
  mix-blend-mode: soft-light;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

svg,
img {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  position: relative;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  padding: clamp(24px, 1.7vw, 32px) var(--page-x) clamp(30px, 2.5vw, 64px);
}

.site-header,
.hero,
.feature-strip {
  position: relative;
  z-index: 5;
  width: min(calc(100vw - (var(--page-x) * 2)), var(--content-max));
  margin-inline: auto;
}

.site-header {
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(350px, 0.95fr) minmax(540px, auto) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(24px, 2.4vw, 62px);
  margin-bottom: clamp(14px, 2vh, 24px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 0.9vw, 20px);
  width: fit-content;
}

.brand img {
  width: clamp(60px, 3.45vw, 88px);
  height: clamp(60px, 3.45vw, 88px);
  object-fit: contain;
}

.brand strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(34px, 1.9vw, 52px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: rgba(63, 76, 65, 0.9);
  font-family: var(--serif);
  font-size: clamp(15px, 0.88vw, 22px);
  font-weight: 600;
  line-height: 1.08;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 2.6vw, 62px);
  color: rgba(31, 56, 49, 0.94);
  font-family: var(--serif);
  font-size: clamp(17px, 0.95vw, 24px);
  font-weight: 600;
  white-space: nowrap;
}

.site-nav a,
.button,
.language-button {
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #856638;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(12px, 1vw, 22px);
}

.language-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: rgba(26, 53, 46, 0.95);
  font-family: var(--serif);
  font-size: clamp(17px, 0.94vw, 22px);
  font-weight: 700;
  cursor: pointer;
}

.language-button svg {
  width: clamp(18px, 1vw, 23px);
  height: clamp(18px, 1vw, 23px);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-button .chevron {
  width: 14px;
  height: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: clamp(48px, 2.5vw, 62px);
  padding: 0 clamp(22px, 1.45vw, 36px);
  border: 1px solid rgba(95, 69, 39, 0.26);
  border-radius: 6px;
  font-family: var(--serif);
  font-size: clamp(17px, 0.95vw, 24px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.button svg {
  width: clamp(20px, 1.12vw, 28px);
  height: clamp(20px, 1.12vw, 28px);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button:hover,
.button:focus-visible,
.language-button:hover,
.language-button:focus-visible {
  transform: translateY(-1px);
}

.button-ghost,
.button-secondary {
  background:
    linear-gradient(180deg, rgba(252, 246, 235, 0.5), rgba(236, 218, 189, 0.26));
  color: rgba(32, 58, 51, 0.95);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 6px 14px rgba(58, 39, 18, 0.045);
}

.button-solid {
  border-color: rgba(153, 116, 62, 0.26);
  background:
    linear-gradient(180deg, rgba(25, 55, 47, 0.9), rgba(11, 38, 32, 0.96)),
    var(--green);
  color: #d4bb7b;
  box-shadow:
    inset 0 1px 0 rgba(240, 219, 166, 0.1),
    0 7px 15px rgba(40, 28, 13, 0.1);
}

.header-actions .button {
  min-height: clamp(42px, 2.15vw, 54px);
  padding-inline: clamp(20px, 1.28vw, 30px);
  font-size: clamp(16px, 0.88vw, 21px);
}

.button-primary {
  min-width: clamp(330px, 17.2vw, 450px);
  min-height: clamp(64px, 3.15vw, 82px);
  padding-inline: clamp(36px, 2.1vw, 58px);
  border-color: rgba(207, 164, 86, 0.52);
  background:
    radial-gradient(circle at 26% 5%, rgba(236, 213, 153, 0.17), transparent 28%),
    linear-gradient(180deg, rgba(32, 66, 55, 0.98), rgba(14, 43, 36, 1) 52%, rgba(7, 28, 23, 1)),
    var(--green-dark);
  color: #ead092;
  font-size: clamp(20px, 1.14vw, 29px);
  box-shadow:
    inset 0 1px 0 rgba(247, 225, 170, 0.2),
    inset 0 -18px 28px rgba(0, 0, 0, 0.18),
    0 18px 34px rgba(42, 29, 13, 0.24),
    0 0 0 1px rgba(255, 244, 216, 0.05);
}

.button-secondary {
  min-width: clamp(174px, 9.4vw, 246px);
  border-color: rgba(116, 82, 44, 0.24);
  background:
    linear-gradient(180deg, rgba(253, 247, 236, 0.38), rgba(236, 216, 186, 0.2));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.17),
    0 4px 11px rgba(61, 42, 20, 0.04);
}

.button-solid:hover,
.button-solid:focus-visible {
  background:
    linear-gradient(180deg, rgba(29, 60, 51, 0.92), rgba(12, 40, 34, 0.98)),
    var(--green);
}

.button-primary:hover,
.button-primary:focus-visible {
  background:
    radial-gradient(circle at 26% 5%, rgba(236, 213, 153, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(38, 72, 61, 0.98), rgba(16, 48, 40, 1) 52%, rgba(8, 31, 26, 1)),
    var(--green-dark);
  box-shadow:
    inset 0 1px 0 rgba(247, 225, 170, 0.23),
    inset 0 -18px 28px rgba(0, 0, 0, 0.18),
    0 22px 42px rgba(42, 29, 13, 0.27),
    0 0 0 1px rgba(255, 244, 216, 0.08);
}

.button-ghost:hover,
.button-secondary:hover,
.button-ghost:focus-visible,
.button-secondary:focus-visible {
  border-color: rgba(134, 98, 55, 0.36);
  background:
    linear-gradient(180deg, rgba(252, 247, 237, 0.62), rgba(238, 220, 190, 0.38));
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 10px;
  border: 1px solid rgba(70, 52, 31, 0.26);
  border-radius: 6px;
  background: rgba(250, 242, 226, 0.62);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(580px, 0.77fr) minmax(0, 1.23fr);
  gap: clamp(18px, 2.1vw, 54px);
  height: clamp(725px, 68.6vh, 980px);
  align-items: start;
}

.hero-copy {
  position: relative;
  z-index: 7;
  isolation: isolate;
  min-width: 0;
  padding-top: clamp(34px, 4.2vh, 72px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.1vw, 24px);
  margin: 0 0 clamp(14px, 1.25vh, 22px);
  color: rgba(82, 78, 68, 0.95);
  font-size: clamp(14px, 0.76vw, 18px);
  font-weight: 700;
  letter-spacing: 0.42em;
}

.eyebrow span {
  color: var(--gold);
  font-size: clamp(26px, 1.45vw, 36px);
  line-height: 1;
  letter-spacing: 0;
}

.hero h1 {
  max-width: clamp(610px, 36vw, 900px);
  margin: 0 0 clamp(48px, 6.2vh, 76px);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(84px, 5.05vw, 138px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: 0;
}

.headline-divider {
  position: absolute;
  top: clamp(172px, 10.2vw, 262px);
  left: clamp(-34px, -1.4vw, -12px);
  z-index: -1;
  width: clamp(540px, 33vw, 840px);
  max-width: 100%;
  height: auto;
  margin: 0;
  opacity: 0.44;
  pointer-events: none;
}

.hero-lede {
  max-width: clamp(560px, 34vw, 790px);
  margin: 0;
  color: rgba(40, 61, 54, 0.96);
  font-family: var(--serif);
  font-size: clamp(24px, 1.38vw, 35px);
  font-weight: 600;
  line-height: 1.38;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(18px, 1.25vw, 30px);
  margin-top: clamp(24px, 2.4vh, 40px);
}

.hero-art {
  position: relative;
  z-index: 6;
  min-width: 0;
  height: 100%;
}

.hero-card-wrap {
  position: absolute;
  top: clamp(-124px, -14vh, -82px);
  right: clamp(-74px, -3.5vw, -30px);
  z-index: 3;
  width: clamp(1140px, 62vw, 1560px);
  pointer-events: none;
}

.hero-card-stack {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 32px rgba(57, 38, 17, 0.16));
}

.feature-strip {
  z-index: 7;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(calc(100vw - (var(--page-x) * 2) - 150px), clamp(1360px, 75vw, 1860px));
  margin-top: clamp(-116px, -8vh, -76px);
  overflow: hidden;
  border: 1px solid rgba(127, 91, 50, 0.17);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 250, 238, 0.42), transparent 36%),
    linear-gradient(180deg, rgba(247, 236, 215, 0.62), rgba(225, 203, 169, 0.48)),
    var(--paper-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -26px 40px rgba(118, 81, 39, 0.08),
    0 16px 34px rgba(55, 37, 18, 0.1);
  backdrop-filter: blur(6px);
}

.feature-strip::before,
.feature-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.feature-strip::before {
  background: url("assets/landing/bg-aged-paper.png") center center / cover no-repeat;
  opacity: 0.4;
  mix-blend-mode: multiply;
}

.feature-strip::after {
  border-radius: inherit;
  box-shadow:
    inset 0 0 42px rgba(106, 73, 36, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.feature-strip article {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: clamp(34px, 2vw, 48px) 1fr;
  gap: clamp(14px, 0.9vw, 22px);
  padding: clamp(22px, 1.55vw, 38px) clamp(27px, 1.8vw, 44px);
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 251, 239, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(255, 249, 237, 0.12), rgba(205, 171, 116, 0.035));
}

.feature-strip article + article {
  border-left: 1px solid rgba(117, 85, 49, 0.12);
}

.feature-strip svg {
  width: clamp(30px, 1.65vw, 40px);
  height: clamp(30px, 1.65vw, 40px);
  margin-top: 2px;
  fill: none;
  stroke: rgba(20, 54, 47, 0.86);
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

.feature-strip h2 {
  margin: 0 0 9px;
  color: rgba(35, 58, 51, 0.98);
  font-family: var(--serif);
  font-size: clamp(20px, 1.1vw, 28px);
  line-height: 1.06;
}

.feature-strip p {
  margin: 0;
  color: rgba(83, 76, 65, 0.9);
  font-size: clamp(13px, 0.7vw, 17px);
  line-height: 1.54;
}

.decor {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.decor-torn {
  left: 0;
  top: 0;
  z-index: 1;
  width: clamp(120px, 8vw, 260px);
  height: 100%;
  object-fit: cover;
  object-position: left center;
  opacity: 0.42;
}

.decor-branch {
  right: clamp(-168px, -6.2vw, -70px);
  top: clamp(132px, 12vh, 220px);
  z-index: 2;
  width: clamp(360px, 20vw, 620px);
  opacity: 0.72;
}

.decor-blur-leaves {
  left: clamp(-280px, -9vw, -150px);
  bottom: clamp(-130px, -5vw, -70px);
  z-index: 1;
  width: clamp(560px, 30vw, 860px);
  opacity: 0.42;
}

.decor-sealed-envelope {
  left: clamp(-90px, -4vw, -55px);
  bottom: clamp(-55px, -14vw, 20px);
  z-index: 2;
  width: clamp(560px, 31vw, 850px);
  opacity: 0.98;
}

.decor-future-letter {
  right: clamp(-210px, -3.5vw, -40px);
  bottom: clamp(-185px, -6vw, -108px);
  z-index: 2;
  width: clamp(470px, 25vw, 740px);
  opacity: 0.90;
}

@media (min-width: 2200px) {
  :root {
    --page-x: clamp(132px, 6vw, 186px);
    --content-max: 2280px;
  }

  .site-header {
    margin-bottom: clamp(28px, 2.6vh, 42px);
  }

  .hero {
    height: clamp(930px, 67vh, 1010px);
    grid-template-columns: minmax(710px, 0.78fr) minmax(0, 1.22fr);
  }

  .hero-copy {
    padding-top: clamp(58px, 5.4vh, 92px);
  }

  .hero-card-wrap {
    width: clamp(1480px, 60vw, 1600px);
    right: clamp(-74px, -2.6vw, -40px);
  }

  .feature-strip {
    margin-top: clamp(-130px, -7vh, -92px);
  }
}

@media (max-width: 1280px) {
  .page-shell {
    padding: 26px 30px 42px;
  }

  .site-header,
  .hero,
  .feature-strip {
    width: min(100%, 1120px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 32px;
    padding-left: 78px;
  }

  .hero {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    height: auto;
    min-height: 600px;
  }

  .hero-copy {
    padding-top: 70px;
  }

  .hero h1 {
    font-size: clamp(60px, 5.6vw, 78px);
  }

  .hero-lede {
    font-size: clamp(22px, 2vw, 25px);
  }

  .hero-card-wrap {
    top: 18px;
    right: -40px;
    width: min(760px, 58vw);
  }

  .feature-strip {
    width: min(100%, 1040px);
    margin-top: 10px;
  }
}

@media (max-width: 980px) {
  body {
    background-attachment: scroll;
  }

  .page-shell {
    overflow-x: hidden;
    padding: 22px 20px 32px;
  }

  .site-header,
  .hero,
  .feature-strip {
    width: 100%;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 16px;
  }

  .brand img {
    width: 54px;
    height: 54px;
  }

  .brand strong {
    font-size: 30px;
  }

  .brand small {
    font-size: 14px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(70, 52, 31, 0.2);
    border-radius: 8px;
    background: rgba(250, 242, 226, 0.92);
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: grid;
    gap: 14px;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 8px;
  }

  .header-actions .button {
    flex: 1;
    min-height: 44px;
    padding-inline: 14px;
    font-size: 17px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
  }

  .hero-copy {
    padding-top: 18px;
  }

  .eyebrow {
    letter-spacing: 0.25em;
  }

  .hero h1 {
    max-width: 820px;
    font-size: clamp(48px, 9vw, 78px);
  }

  .headline-divider {
    top: clamp(150px, 22vw, 230px);
    left: 0;
    width: min(100%, 620px);
  }

  .hero-lede {
    max-width: 700px;
    font-size: clamp(21px, 3.2vw, 27px);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  }

  .hero-art {
    min-height: 420px;
    overflow: hidden;
  }

  .hero-card-wrap {
    top: 0;
    right: auto;
    left: 50%;
    width: min(920px, 125vw);
    transform: translateX(-50%);
  }

  .feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
  }

  .feature-strip article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(117, 85, 49, 0.12);
  }

  .feature-strip article:nth-child(4) {
    border-top: 1px solid rgba(117, 85, 49, 0.12);
  }

  .decor-branch,
  .decor-sealed-envelope,
  .decor-future-letter {
    opacity: 0.28;
  }
}

@media (max-width: 620px) {
  .brand small {
    display: none;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .language-button {
    width: 100%;
    justify-content: center;
    min-height: 40px;
    border: 1px solid rgba(70, 52, 31, 0.18);
    border-radius: 6px;
    background: rgba(250, 242, 226, 0.58);
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 52px);
  }

  .hero-lede {
    font-size: 20px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
    min-width: 0;
  }

  .hero-art {
    min-height: 300px;
  }

  .hero-card-wrap {
    width: 138vw;
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .feature-strip article + article {
    border-left: 0;
    border-top: 1px solid rgba(117, 85, 49, 0.12);
  }

  .decor-branch,
  .decor-sealed-envelope,
  .decor-future-letter {
    display: none;
  }

  .decor-torn {
    width: 78px;
    opacity: 0.32;
  }
}
