:root {
  --paper: #F5EFE3;
  --ink: #1F1D1A;
  --navy: #0B1F4B;
  --pale-blue: #A9CCE3;
  --muted: #666B73;
  --tan: #E1D9C8;
  --gold: #C9A24B;
  --scrim: rgba(31, 29, 26, .25);

  --pad-x: clamp(20px, 5vw, 72px);
  --hero-size: clamp(56px, 8vw, 104px);
  --h2-size: clamp(34px, 4vw, 52px);
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px;
  line-height: 1.5;
}
body.menu-open { overflow: hidden; }
img { display: block; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--pale-blue); }
a:hover { border-bottom-color: var(--navy); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
::selection { background: var(--pale-blue); color: var(--ink); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.page { min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }

/* Anchored sections */
#story, #journal { scroll-margin-top: 24px; }

/* Shared type */
.meta { font-size: 13px; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; }
.eyebrow { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; font-weight: 700; color: var(--navy); }
h2 {
  font-style: italic; font-weight: 600; font-size: var(--h2-size);
  line-height: 1.1; color: var(--navy); text-wrap: pretty;
}

/* Three-diamond motif */
.diamonds { display: flex; gap: 8px; align-items: flex-start; }
.diamonds span {
  width: 8px; height: 8px; background: var(--pale-blue);
  border: 1px solid var(--ink); transform: rotate(45deg);
}
.diamonds span:nth-child(2) { width: 5px; height: 5px; background: var(--ink); margin-top: 8px; }
.diamonds-story { margin-top: 6px; }

/* Menu */
.menu-button {
  position: fixed; top: 22px; right: var(--pad-x); z-index: 22;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--ink); background: var(--paper); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.menu-button span {
  width: 18px; height: 1.5px; background: var(--ink);
  transition: transform .2s, opacity .2s;
}
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.scrim { position: fixed; inset: 0; z-index: 19; background: var(--scrim); }
.scrim[hidden] { display: none; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 21;
  width: min(320px, 85vw); box-sizing: border-box;
  background: var(--paper); border-left: 1px solid var(--ink);
  padding: 88px 36px 36px;
  display: flex; flex-direction: column; gap: 22px;
  font-style: italic; font-weight: 600; font-size: 34px; color: var(--navy);
  /* closed: off-canvas and not focusable; visibility flips after the slide-out */
  visibility: hidden; transform: translateX(100%);
  transition: transform .2s ease-out, visibility 0s linear .2s;
}
.drawer.is-open { visibility: visible; transform: none; transition: transform .2s ease-out; }
.drawer a { border: none; }
.drawer .diamonds { margin-top: auto; }

/* Hero */
.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(40px, 7vw, 110px) var(--pad-x);
}
.hero-text { display: flex; flex-direction: column; gap: 22px; max-width: 520px; }
.wordmark {
  display: flex; align-items: center; flex-wrap: wrap; gap: 18px;
  font-size: var(--hero-size); line-height: 1; color: var(--navy);
}
.wm-remi { font-family: 'Cormorant SC', serif; font-weight: 700; letter-spacing: .14em; }
.wm-bar { width: 2px; height: .5em; background: var(--ink); }
.wm-107 { font-style: italic; font-weight: 700; }
.hero .meta { text-wrap: balance; }
.tagline {
  font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35; font-style: italic;
  color: var(--ink); text-wrap: pretty;
}
.hero-art { display: flex; justify-content: center; }
.hero-art img {
  width: 100%; max-width: 560px; height: auto; aspect-ratio: 1;
  object-fit: cover; object-position: 50% 45%; transform: scale(1.15);
}

/* Story */
.story, .journal, .qc { border-top: 1px solid var(--ink); }
.story {
  padding: clamp(48px, 7vw, 100px) var(--pad-x);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start;
  gap: clamp(28px, 5vw, 80px);
}
.story-head { display: flex; flex-direction: column; gap: 14px; }
.story-body { display: flex; flex-direction: column; gap: 20px; max-width: 560px; text-wrap: pretty; }

/* Tape strips */
.tape { border-top: 1px solid var(--ink); padding-top: 6px; overflow: hidden; }
.tape-top .tape-row { border-bottom: 1.5px solid var(--ink); }
.tape-bottom { margin-top: auto; }
.tape-row {
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(28px, 4vw, 56px); padding: 0 clamp(14px, 2vw, 28px);
  width: max-content; margin: 0 auto;
}
.tape-row img { height: clamp(56px, 6vw, 80px); width: auto; }
.tape-row .flip { transform: scaleX(-1); }

/* Journal */
.journal {
  padding: clamp(48px, 7vw, 100px) var(--pad-x);
  display: flex; flex-direction: column; gap: clamp(36px, 5vw, 64px);
}
.journal-intro { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.journal-intro p:last-child { text-wrap: pretty; }
.entry-list {
  position: relative; display: flex; flex-direction: column;
  gap: clamp(40px, 6vw, 80px); padding-left: 36px;
  container: entries / inline-size;
}
.entry-list::before {
  content: ""; position: absolute; left: 11px; top: 0; bottom: 0; width: 1px; background: var(--ink);
}
.entry {
  position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start; gap: clamp(20px, 3vw, 40px);
}
.entry::before {
  content: ""; position: absolute; left: -30px; top: 8px; width: 10px; height: 10px;
  background: var(--pale-blue); border: 1px solid var(--ink); transform: rotate(45deg);
}
.entry-text { display: flex; flex-direction: column; gap: 14px; }
.meta-date { color: var(--muted); }
.entry h3 {
  font-family: 'Caveat', cursive; font-weight: 600;
  font-size: clamp(34px, 3.6vw, 46px); line-height: 1.1; color: var(--navy);
}
.entry-story { color: var(--muted); font-style: italic; text-wrap: pretty; max-width: 34em; }

.specs {
  display: flex; flex-direction: column; row-gap: 6px;
  border-top: 1px solid var(--ink); padding-top: 12px; max-width: 420px;
}
.specs dl { margin: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 6px; }
/* the amount (dt) wears the spec-key style */
.spec-key, .specs dt { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--ink); }
.specs dt { padding-top: 3px; }
.specs dd {
  margin: 0; font-family: 'Caveat', cursive; font-size: 20px; line-height: 1.2; color: var(--navy);
  border-bottom: 1px solid var(--tan); min-height: 24px;
}

.entry-photo {
  width: 100%; max-width: 380px; aspect-ratio: 3 / 4; box-sizing: border-box;
  border: 1px solid var(--ink); padding: 6px; background: var(--paper);
}
.entry-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; }

/* Alternation applies only when the entry is two columns wide (two 260px tracks + gap);
   on one column both entries stay text first, photo second. */
@container entries (min-width: 540px) {
  .entry:nth-of-type(odd) .entry-photo { order: 2; justify-self: end; }
  .entry:nth-of-type(even) .entry-text { order: 2; }
  .entry:nth-of-type(even) .entry-photo { order: 1; justify-self: start; }
}

/* Quality control */
.qc {
  padding: clamp(40px, 6vw, 88px) var(--pad-x);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: center;
  gap: clamp(24px, 4vw, 64px);
}
.qc > img {
  width: 100%; max-width: 640px; height: auto; aspect-ratio: 1; object-fit: contain; justify-self: center;
}
.qc-text { display: flex; flex-direction: column; gap: 16px; max-width: 420px; justify-self: center; }
.qc-text p:last-child { text-wrap: pretty; }

/* Footer */
.footer {
  border-top: 1px solid var(--ink); padding: clamp(32px, 4vw, 56px) var(--pad-x);
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.footer-mark { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.fm-remi {
  font-family: 'Cormorant SC', serif; font-weight: 700; font-size: 34px; line-height: 1;
  letter-spacing: .16em; padding-left: .16em;
}
.fm-bar { width: 1.5px; height: 20px; background: var(--ink); }
.fm-107 { font-style: italic; font-weight: 700; font-size: 34px; line-height: 1; position: relative; top: -2px; }
.footer-quote {
  font-family: 'Caveat', cursive; font-size: 20px; color: var(--navy); text-align: center; text-wrap: balance;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drawer, .drawer.is-open { transition: none; }
  .menu-button span { transition: none; }
}
