/* =============================================================
   POSTCARD CLUB — landing page
   Midnight-navy hero (the "expensive" first impression), bone ground
   below, muted gold as the only accent.
   ============================================================= */

/* RAVEL brand palette: navy, gold, ivory — taken from the identity sheet. */
:root {
  --bone:      #F6F2E7;
  --bone-deep: #EDE8DA;
  --paper:     #FCFAF3;
  --navy:      #101E3C;
  --navy-deep: #0B1730;
  --navy-soft: #1C2E52;
  --gold:      #C1A265;
  --gold-lite: #D0B47C;
  --ink:       #2A3040;
  --muted:     #6B7183;
  --line:      rgba(16, 30, 60, .14);
  --line-lite: rgba(246, 242, 231, .18);

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.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;
}
.hp {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--navy); margin: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11.5px; font-weight: 400;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-lite);
  margin: 0 0 20px;
}
.eyebrow.gold  { color: var(--gold); }
.eyebrow.light { color: var(--gold-lite); }
.muted { color: var(--muted); }

/* ---------- header ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.stuck {
  background: rgba(10, 20, 40, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--line-lite);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.monogram { width: 42px; height: 42px; color: var(--gold); flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name {
  font-family: var(--serif); font-size: 21px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--bone);
}
.brand-sub {
  font-size: 9px; letter-spacing: .34em; text-transform: uppercase;
  color: rgba(246, 242, 231, .55); padding-left: .18em;
}
.header-right { display: flex; align-items: center; gap: 22px; }

.lang { display: flex; align-items: center; gap: 8px; }
.lang a {
  font-size: 11px; letter-spacing: .16em;
  color: rgba(246, 242, 231, .5); text-decoration: none;
  transition: color .3s var(--ease);
}
.lang a:hover { color: var(--bone); }
.lang a.on { color: var(--gold-lite); }
.lang a + a::before {
  content: ""; display: inline-block;
  width: 1px; height: 10px; margin-right: 9px;
  background: var(--line-lite); vertical-align: -1px;
}

.header-cta {
  font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--bone); text-decoration: none;
  padding-bottom: 3px; border-bottom: 1px solid var(--gold);
  transition: color .3s var(--ease);
}
.header-cta:hover { color: var(--gold-lite); }

/* ---------- hero ---------- */

.hero {
  background: radial-gradient(120% 90% at 20% 0%, #17274a 0%, var(--navy) 55%, var(--navy-deep) 100%);
  color: var(--bone);
  padding: 76px 0 0;
}
.hero-grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 56px;
  padding: 0 24px;
  min-height: calc(100vh - 76px);
}

.hero-copy { padding: 56px 0; }

.hero h1 {
  color: var(--bone);
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 1.03;
  margin: 0 0 24px;
}
.hero h1 em { font-style: italic; color: var(--gold-lite); }

.lede {
  font-size: clamp(15.5px, 1.6vw, 18px);
  color: rgba(247, 243, 234, .72);
  margin: 0 0 30px;
  max-width: 34em;
}

.hero-facts {
  list-style: none; padding: 0;
  margin: 0 0 32px;
  border-top: 1px solid var(--line-lite);
  border-bottom: 1px solid var(--line-lite);
}
.hero-facts li {
  padding: 11px 0;
  font-size: 14.5px;
  color: rgba(247, 243, 234, .78);
  border-bottom: 1px solid var(--line-lite);
}
.hero-facts li:last-child { border-bottom: 0; }
.hero-facts strong { color: var(--bone); font-weight: 400; }
.hero-facts .muted { color: rgba(247, 243, 234, .45); font-size: 13px; }

.hero-figure { position: relative; margin: 0; align-self: stretch; min-height: 0; }
/* picture is inline by default, which makes height:100% a no-op and collapses
   the crop — it has to be a block for the figure to drive the image height. */
.hero-figure picture { display: block; height: 100%; }
.hero-figure img {
  height: 100%; width: 100%;
  object-fit: cover;
  object-position: center 22%;
  border-left: 1px solid var(--line-lite);
}
.hero-figure figcaption {
  position: absolute; left: 22px; bottom: 22px;
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--bone);
  background: rgba(10, 20, 40, .55);
  backdrop-filter: blur(6px);
  padding: 8px 14px;
}

/* ---------- signup form ---------- */

.signup { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.signup input[type="email"] {
  flex: 1 1 230px; min-width: 0;
  font-family: var(--sans); font-size: 15px; font-weight: 300;
  color: var(--bone);
  background: rgba(255, 253, 248, .07);
  border: 1px solid var(--line-lite);
  border-radius: 2px;
  padding: 16px 18px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.signup input[type="email"]::placeholder { color: rgba(247, 243, 234, .4); }
.signup input[type="email"]:focus {
  outline: none; border-color: var(--gold-lite);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, .16);
}
.signup input.invalid { border-color: #E08A6E; }

.signup button {
  flex: 0 0 auto;
  font-family: var(--sans); font-size: 11.5px; font-weight: 400;
  letter-spacing: .18em; text-transform: uppercase;
  color: #14203A; background: var(--gold); border: 1px solid var(--gold);
  border-radius: 2px; padding: 16px 26px; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), transform .2s var(--ease);
}
.signup button:hover:not(:disabled) { background: var(--bone); border-color: var(--bone); }
.signup button:active:not(:disabled) { transform: translateY(1px); }
.signup button:disabled { opacity: .55; cursor: default; }
.signup.busy button span { opacity: .5; }
.signup.done button:disabled { opacity: 1; background: var(--bone); border-color: var(--bone); }
.signup.done input[type="email"]:disabled { opacity: 1; color: rgba(247, 243, 234, .55); }

.form-msg { flex: 1 0 100%; min-height: 20px; margin: 4px 0 0; font-size: 13.5px; }
/* reserve nothing until there is actually something to say */
.form-msg:empty { min-height: 0; margin: 0; }
.form-msg.ok    { color: #9FD3B4; }
.form-msg.error { color: #E8A08A; }

.fineprint { font-size: 12.5px; color: rgba(247, 243, 234, .5); margin: 16px 0 0; max-width: 40em; }
.fineprint.light { color: rgba(247, 243, 234, .5); }

/* ---------- section heads ---------- */

.section-head { text-align: center; max-width: 660px; margin: 0 auto 60px; }
.section-head h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 0 0 16px; }
.section-sub { color: var(--muted); font-size: 16px; margin: 0; }

/* ---------- collection ---------- */

.collection { padding: 110px 0 120px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 26px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(185, 148, 86, .5);
  box-shadow: 0 24px 50px -28px rgba(14, 27, 51, .45);
}

.card-figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #F1EBDE; }
.card-figure img { width: 100%; height: 100%; object-fit: cover; }
.card-alt {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.card-alt img { object-position: center 30%; }
.card:hover .card-alt, .card:focus-within .card-alt { opacity: 1; }

.card-body { padding: 24px 26px 28px; }
.card-num { font-size: 10.5px; letter-spacing: .3em; color: var(--gold); margin: 0 0 8px; }
.card h3 { font-size: 26px; margin: 0 0 4px; }
.colorway {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px;
}
.card-tag {
  font-family: var(--serif); font-style: italic;
  font-size: 17px; color: var(--gold); margin: 0 0 10px;
}
.card-copy { font-size: 14.5px; color: var(--ink); margin: 0; max-width: 34ch; }

/* ---------- story ---------- */

.story { background: var(--paper); border-top: 1px solid var(--line); }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: stretch;
  max-width: 1360px;
  margin: 0 auto;
}
.story-figure { margin: 0; position: relative; min-height: 520px; }
.story-figure picture { display: block; height: 100%; }
.story-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }

.story-copy { padding: 100px clamp(28px, 5vw, 84px); align-self: center; max-width: 640px; }
.story-copy h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.14; margin: 0 0 28px; }
.story-copy p { color: var(--muted); font-size: 16.5px; margin: 0 0 18px; }
.story-copy .signature {
  font-family: var(--serif); font-style: italic; font-size: 21px;
  color: var(--navy); margin: 30px 0 0;
}

/* ---------- craft ---------- */

.craft { padding: 100px 0 110px; background: var(--paper); border-top: 1px solid var(--line); }
.craft-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px 28px;
}
/* six items — two balanced rows of three rather than five plus an orphan */
@media (min-width: 1040px) { .craft-grid { grid-template-columns: repeat(3, 1fr); } }
.craft-grid li { text-align: center; }
.craft-grid svg { width: 40px; height: 40px; color: var(--gold); margin: 0 auto 16px; display: block; }
.craft-grid h3 {
  font-family: var(--sans); font-size: 11.5px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--navy); margin: 0 0 8px;
}
.craft-grid p { font-size: 14px; color: var(--muted); margin: 0; }

/* close-up detail tiles */
.details {
  list-style: none; padding: 0;
  margin: 72px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.details li { text-align: center; }
.details picture { display: block; overflow: hidden; border: 1px solid var(--line); }
.details img {
  /* height:auto is required — the height attribute counts as a specified
     height, and aspect-ratio only fills in a dimension that is missing. */
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  transition: transform .7s var(--ease);
}
.details li:hover img { transform: scale(1.06); }
.details span {
  display: block; margin-top: 14px;
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  line-height: 1.7; color: var(--muted);
}

/* the booklet's closing value bar */
.values {
  list-style: none; margin: 76px 0 0; padding: 26px 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px 0;
}
.values li {
  padding: 0 clamp(16px, 3vw, 38px);
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--navy);
}
.values li + li { border-left: 1px solid var(--line); }

/* ---------- join ---------- */

.join {
  background: radial-gradient(90% 120% at 50% 0%, #17274a 0%, var(--navy) 60%, var(--navy-deep) 100%);
  color: var(--bone); padding: 120px 0; text-align: center;
}
.join-inner { max-width: 640px; }
.join h2 { color: var(--bone); font-size: clamp(34px, 5.4vw, 54px); margin: 0 0 18px; }
.join-copy { color: rgba(247, 243, 234, .74); font-size: 16.5px; margin: 0 auto 34px; max-width: 36em; }
.join-copy strong { color: var(--bone); font-weight: 400; }
.join .signup { margin: 0 auto; justify-content: center; }
.join .form-msg { text-align: center; }

/* ---------- footer ---------- */

.site-footer { background: var(--navy-deep); color: rgba(247, 243, 234, .55); padding: 54px 0; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.footer-monogram { width: 52px; height: 52px; margin-bottom: 14px; }
.footer-name {
  font-family: var(--serif); font-size: 24px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase; color: var(--bone); margin: 0;
}
.footer-sub {
  font-size: 9.5px; letter-spacing: .38em; text-transform: uppercase;
  color: rgba(246, 242, 231, .5); margin: 0 0 12px; padding-left: .3em;
}
.footer-tag { font-size: 12.5px; letter-spacing: .1em; margin: 0; }
.footer-legal { font-size: 11.5px; color: rgba(246, 242, 231, .35); margin: 8px 0 0; }

/* ---------- sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: none;
  align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: rgba(10, 20, 40, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-lite);
  transform: translateY(110%);
  transition: transform .4s var(--ease);
}
.sticky-cta.in { transform: none; }
.sticky-cta span { font-size: 12.5px; letter-spacing: .12em; color: rgba(247, 243, 234, .75); }
.sticky-cta a {
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  background: var(--gold); color: #14203A; text-decoration: none;
  padding: 12px 20px; border-radius: 2px; white-space: nowrap;
}

/* ---------- post-signup design pick ---------- */

/* The [hidden] attribute is only `display:none` in the UA sheet, so any author
   display rule beats it. Without these two lines the invisible full-screen
   overlay swallows every click on the page, including the signup button. */
.pick-overlay[hidden], .sticky-cta[hidden] { display: none !important; }

.pick-overlay {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(10, 20, 40, .82);
  backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.pick-overlay.in { opacity: 1; }
.pick-panel {
  position: relative;
  width: 100%; max-width: 720px;
  max-height: 90vh; overflow-y: auto;
  background: var(--bone);
  border: 1px solid var(--line);
  padding: 40px 36px 36px;
  text-align: center;
}
.pick-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: 0; cursor: pointer;
  font-size: 30px; line-height: 1; color: var(--muted);
}
.pick-panel h2 { font-size: clamp(26px, 4.4vw, 38px); margin: 0 0 10px; }
.pick-sub { color: var(--muted); font-size: 15px; margin: 0 0 28px; }

.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pick-item {
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px;
  padding: 0 0 10px; cursor: pointer; font-family: var(--sans);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.pick-item img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.pick-item span {
  display: block; padding-top: 9px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy);
}
.pick-item:hover { border-color: var(--gold); transform: translateY(-3px); }
.pick-item.chosen { border-color: var(--gold); background: #FBF6EA; }
.pick-item:disabled { cursor: default; opacity: .5; }
.pick-item.chosen:disabled { opacity: 1; }
/* second step of the overlay — size */
.size-step { margin: 34px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.size-step .eyebrow { margin-bottom: 8px; }
.size-step .pick-sub { margin-bottom: 18px; }
.size-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.size-item {
  min-width: 62px; padding: 13px 8px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px;
  font-family: var(--sans); font-size: 13px; letter-spacing: .12em;
  color: var(--navy); cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.size-item:hover { border-color: var(--gold); transform: translateY(-2px); }
.size-item.chosen { border-color: var(--gold); background: var(--gold); color: #14203A; }
.size-item:disabled { cursor: default; opacity: .45; }
.size-item.chosen:disabled { opacity: 1; }

.pick-done { margin: 24px 0 0; color: #2F6B4F; font-size: 15px; }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.grid .reveal:nth-child(2), .craft-grid .reveal:nth-child(2) { transition-delay: .07s; }
.grid .reveal:nth-child(3), .craft-grid .reveal:nth-child(3) { transition-delay: .14s; }
.grid .reveal:nth-child(4), .craft-grid .reveal:nth-child(4) { transition-delay: .21s; }
.grid .reveal:nth-child(5), .craft-grid .reveal:nth-child(5) { transition-delay: .28s; }
.grid .reveal:nth-child(6) { transition-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
  }
  /* Mobile fold budget: headline, the product worn, the offer and the email
     field all have to fit one screen. Order is re-flowed, the lede moves
     below the form, and the facts collapse to a single line. */
  .hero-copy { display: contents; }
  .hero-copy .eyebrow  { order: 1; margin-bottom: 12px; padding-top: 26px; }
  .hero h1             { order: 2; margin-bottom: 16px; font-size: clamp(36px, 9.2vw, 52px); }
  .hero-figure         { order: 3; margin: 0 -24px 20px; align-self: auto; }
  .hero-figure picture { height: auto; }
  /* square crop at 50% keeps both the face and the shorts in frame */
  .hero-figure img     { border-left: 0; aspect-ratio: 1 / 1; height: auto; object-position: center 50%; }
  .hero-facts          { order: 4; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 0 18px; }
  .hero-facts li       { border-bottom: 0; padding: 9px 0; font-size: 13.5px; white-space: nowrap; }
  .hero-facts li + li  { border-left: 1px solid var(--line-lite); padding-left: 18px; }
  .hero-facts .muted, .hero-facts .full { display: none; }
  .hero .signup        { order: 5; max-width: none; }
  .lede                { order: 6; margin: 22px 0 0; font-size: 15px; }
  .hero .fineprint     { order: 7; padding-bottom: 40px; }
  .signup button { flex: 1 1 100%; }
}

@media (max-width: 960px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-figure { min-height: 0; }
  .story-figure img { aspect-ratio: 4 / 3; height: auto; object-position: center 26%; }
  .story-copy { padding: 64px 24px 72px; max-width: none; }
}

@media (max-width: 720px) {
  .collection, .craft { padding: 74px 0 80px; }
  .details { grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 52px; }
  .details span { font-size: 9.5px; letter-spacing: .14em; }
  .values { margin-top: 52px; gap: 12px 0; }
  .values li { flex: 1 0 50%; padding: 6px 10px; text-align: center; font-size: 10px; }
  .values li + li { border-left: 0; }
  .join { padding: 90px 0; }
  .section-head { margin-bottom: 42px; }
  .grid { grid-template-columns: 1fr; gap: 20px; }
  .sticky-cta { display: flex; }
  .pick-panel { padding: 34px 20px 28px; }
  .pick-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  /* the sticky bar must never cover the closing form */
  .join { padding-bottom: 130px; }
}

@media (max-width: 400px) { .header-right { display: flex; align-items: center; gap: 22px; }

.lang { display: flex; align-items: center; gap: 8px; }
.lang a {
  font-size: 11px; letter-spacing: .16em;
  color: rgba(246, 242, 231, .5); text-decoration: none;
  transition: color .3s var(--ease);
}
.lang a:hover { color: var(--bone); }
.lang a.on { color: var(--gold-lite); }
.lang a + a::before {
  content: ""; display: inline-block;
  width: 1px; height: 10px; margin-right: 9px;
  background: var(--line-lite); vertical-align: -1px;
}

.header-cta { display: none; } }
@media (max-width: 340px) { .brand-sub { display: none; } }
