/* Avika Kandoi — a clothbound journal.
   Bone paper, postcards and notebook pages laid on a merlot linen cover,
   stitched with thread, held down with tobacco tape and olive pressed leaves. */

/* Optional: drop the licensed font files into /fonts with these names and
   they replace the stand-ins automatically. */
@font-face { font-family: "Biro Script"; src: url("fonts/BiroScript.woff2") format("woff2"), url("fonts/BiroScript.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Wingman"; src: url("fonts/Wingman.woff2") format("woff2"), url("fonts/Wingman.otf") format("opentype"); font-display: swap; }

:root {
  /* her palette */
  --bone: #E6E0D6;
  --merlot: #4B1E23;
  --olive: #6B6F4E;
  --midnight: #1C2430;
  --tobacco: #8A5A2B;
  --graphite: #121212;
  /* derived from it */
  --sheet: #F2EEE7;          /* lighter bone for reading surfaces */
  --sheet-edge: #D6CEC1;
  --ink: #1D1A18;            /* graphite warmed for long reading */
  --ink-soft: #4E4640;
  --bone-dim: #B9B2A6;       /* bone text on dark, secondary */
  --merlot-bright: #E7BFB5;  /* rose-bone link colour on merlot */
  --merlot-deep: #2C1014;    /* the journal cover */
  --merlot-mid: #5E262D;
  --thread: #8E3A42;
  --tape: rgba(138, 90, 43, .42);
  --tape-olive: rgba(107, 111, 78, .5);
  --shadow: 0 1px 2px rgba(18,18,18,.18), 0 10px 26px rgba(18,18,18,.16);
  --shadow-dark: 0 2px 4px rgba(0,0,0,.4), 0 18px 40px rgba(0,0,0,.45);

  --f-script: "Biro Script", "Nothing You Could Do", "Segoe Script", cursive;
  --f-label: "Wingman", "Josefin Sans", "Futura", "Century Gothic", sans-serif;
  --f-text: "EB Garamond", "Garamond", Georgia, serif;

  --s1: .5rem; --s2: .875rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 4rem; --s6: 6rem;
  --maxw: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font: 400 1.1875rem/1.7 var(--f-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { /* paper grain over everything */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--merlot); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--tobacco); outline-offset: 3px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -999px; top: 0; background: var(--graphite); color: var(--bone); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

.wrap {
  max-width: var(--maxw); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; }

/* ---------- type roles ---------- */
.script { font-family: var(--f-script); font-weight: 400; line-height: 1.05; letter-spacing: 0; }
.label {
  font-family: var(--f-label); font-size: .78rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft);
}
.lede { font-style: italic; font-size: 1.35rem; line-height: 1.5; color: var(--ink-soft); }
.todo { /* an empty slot waiting for Avika's own words */
  font-style: italic; color: var(--ink-soft); opacity: .75;
  border-bottom: 1px dashed rgba(138,90,43,.55);
}
.on-dark .todo { color: var(--bone-dim); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--bone); border-bottom: 1px solid rgba(18,18,18,.12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding-block: .9rem; }
.logo { font-family: var(--f-script); font-size: 2rem; color: var(--merlot); text-decoration: none; line-height: 1; white-space: nowrap; }
.site-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.site-nav a {
  position: relative; font-family: var(--f-label); font-size: .78rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding-block: .4rem;
}
.site-nav a[aria-current="page"] { color: var(--merlot); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: -4px; height: 9px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C30 3 60 10 88 5 C100 3 110 4 118 6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C30 3 60 10 88 5 C100 3 110 4 118 6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.menu-btn {
  display: none; font: 600 .78rem var(--f-label); letter-spacing: .2em; text-transform: uppercase;
  background: none; border: 1px solid var(--ink); color: var(--ink); padding: .55rem .9rem; cursor: pointer;
}

/* ---------- bands ---------- */
.band { position: relative; padding-block: var(--s6); overflow-x: clip; }
.band-tight { padding-block: var(--s5); }
.on-dark { /* Avika's sunset over the sea, softened so it stays in the background */
  position: relative; isolation: isolate; overflow: clip;
  background: #141012; color: var(--bone);
}
.on-dark::before {
  content: ""; position: absolute; inset: -30px; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 8, 8, .5), rgba(10, 8, 8, .28) 60%, rgba(10, 8, 8, .38)), url("assets/sunset-sea.jpg") 45% 60% / cover no-repeat;
  filter: blur(6px) saturate(.78) brightness(.8);
}
/* home: the sun sits in the gap between the name card and the postcards */
.hero.on-dark::before {
  background: linear-gradient(90deg, rgba(10, 8, 8, .25), rgba(10, 8, 8, .08) 50%, rgba(10, 8, 8, .15)), url("assets/sunset-sea.jpg") 0% 51% / 119% auto no-repeat;
  filter: blur(4px) saturate(.82) brightness(.84);
}
@media (max-width: 980px) { .hero.on-dark::before { background-size: cover; background-position: 41% 45%; } }
.on-dark .bleed { display: none; }
.on-dark .label { color: var(--bone-dim); }
.on-dark a { color: var(--merlot-bright); }
.on-graphite { background: var(--graphite); color: var(--bone); }
.desk::after { /* fine film grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .85 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.band > .wrap { position: relative; z-index: 2; }

/* watercolour ink bleeds */
.bleed { position: absolute; z-index: 0; pointer-events: none; filter: url(#wc-bleed); border-radius: 50%; }
.bleed-merlot { background: radial-gradient(closest-side, rgba(75,30,35,.55), rgba(75,30,35,.28) 55%, rgba(75,30,35,0)); }
.bleed-olive  { background: radial-gradient(closest-side, rgba(107,111,78,.5), rgba(107,111,78,.22) 55%, rgba(107,111,78,0)); }
.on-dark .bleed-merlot { background: radial-gradient(closest-side, rgba(214,136,124,.26), rgba(214,136,124,.1) 55%, rgba(214,136,124,0)); }
.bleed-tobacco{ background: radial-gradient(closest-side, rgba(138,90,43,.45), rgba(138,90,43,.18) 55%, rgba(138,90,43,0)); }

/* ---------- paper pieces ---------- */
.sheet {
  position: relative; background: var(--sheet); color: var(--ink);
  box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 3rem);
}
.on-dark .sheet { box-shadow: var(--shadow-dark); }
.sheet .label { color: var(--ink-soft); }
.sheet a { color: var(--merlot); }
.torn { clip-path: polygon(0 0, 100% 0, 100.0% 99.4%, 96.2% 99.7%, 92.3% 99.0%, 88.5% 99.6%, 84.6% 99.8%, 80.8% 99.0%, 76.9% 97.6%, 73.1% 97.9%, 69.2% 98.0%, 65.4% 99.4%, 61.5% 98.6%, 57.7% 99.3%, 53.8% 99.6%, 50.0% 99.7%, 46.2% 99.4%, 42.3% 97.6%, 38.5% 97.8%, 34.6% 97.9%, 30.8% 97.9%, 26.9% 99.5%, 23.1% 99.2%, 19.2% 98.4%, 15.4% 98.1%, 11.5% 97.8%, 7.7% 97.7%, 3.8% 99.8%, 0.0% 98.4%); padding-bottom: calc(clamp(1.5rem, 4vw, 3rem) + 14px); }
.ruled {
  background-image: linear-gradient(transparent calc(2.05rem - 1px), rgba(28,36,48,.09) calc(2.05rem - 1px));
  background-size: 100% 2.05rem;
}
.margin-rule::before { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(.9rem, 2.4vw, 1.6rem); width: 1px; background: rgba(75,30,35,.45); }

.tape {
  position: absolute; width: 112px; height: 30px; background: var(--tape); z-index: 3;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  clip-path: polygon(2% 8%, 8% 0, 16% 6%, 26% 1%, 38% 5%, 50% 0, 62% 6%, 74% 1%, 86% 5%, 94% 0, 100% 9%, 97% 50%, 100% 92%, 92% 100%, 82% 95%, 70% 100%, 58% 94%, 46% 100%, 34% 95%, 22% 100%, 10% 94%, 0 100%, 3% 50%);
}
.tape.olive { background: var(--tape-olive); }
.tape.top { top: -14px; left: 50%; transform: translateX(-50%) rotate(-3deg); }
.tape.corner-l { top: -10px; left: -26px; transform: rotate(-38deg); }
.tape.corner-r { top: -10px; right: -26px; transform: rotate(38deg); }

.leaf { position: absolute; color: var(--olive); width: 46px; height: 116px; z-index: 3; }
.clip { position: absolute; color: #6E737B; width: 22px; height: 60px; top: -18px; z-index: 4; }

.label-strip { /* embossed label-maker tape */
  display: inline-block; background: var(--graphite); color: var(--bone);
  font: 600 .72rem/1 var(--f-label); letter-spacing: .24em; text-transform: uppercase;
  padding: .5rem .7rem .42rem; box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.label-strip.merlot { background: var(--merlot); }

/* ---------- postcards ---------- */
.postcard {
  --rot: 0deg;
  position: relative; margin: 0; background: #F6F3ED; padding: 10px 10px 0;
  box-shadow: var(--shadow); transform: rotate(var(--rot));
  transition: transform .35s ease, box-shadow .35s ease;
}
.on-dark .postcard { box-shadow: var(--shadow-dark); }
.postcard.deckle { clip-path: polygon(0.0% 0.42%, 2.5% 0.34%, 5.0% 0.12%, 7.5% 0.78%, 10.0% 0.01%, 12.5% 0.45%, 15.0% 0.81%, 17.5% 0.07%, 20.0% 0.50%, 22.5% 0.55%, 25.0% 0.04%, 27.5% 0.34%, 30.0% 0.63%, 32.5% 0.41%, 35.0% 0.65%, 37.5% 0.14%, 40.0% 0.21%, 42.5% 0.10%, 45.0% 0.46%, 47.5% 0.83%, 50.0% 0.53%, 52.5% 0.70%, 55.0% 0.35%, 57.5% 0.67%, 60.0% 0.09%, 62.5% 0.26%, 65.0% 0.61%, 67.5% 0.65%, 70.0% 0.38%, 72.5% 0.08%, 75.0% 0.24%, 77.5% 0.19%, 80.0% 0.25%, 82.5% 0.73%, 85.0% 0.18%, 87.5% 0.80%, 90.0% 0.79%, 92.5% 0.05%, 95.0% 0.34%, 97.5% 0.44%, 100.0% 0.02%, 99.70% 0.0%, 99.37% 2.5%, 99.92% 5.0%, 99.58% 7.5%, 99.92% 10.0%, 99.59% 12.5%, 99.37% 15.0%, 99.86% 17.5%, 99.99% 20.0%, 99.94% 22.5%, 99.62% 25.0%, 99.99% 27.5%, 99.94% 30.0%, 99.65% 32.5%, 99.36% 35.0%, 99.71% 37.5%, 99.72% 40.0%, 99.55% 42.5%, 99.93% 45.0%, 99.59% 47.5%, 99.88% 50.0%, 99.57% 52.5%, 99.33% 55.0%, 99.96% 57.5%, 99.61% 60.0%, 99.58% 62.5%, 99.90% 65.0%, 99.81% 67.5%, 99.30% 70.0%, 99.30% 72.5%, 99.92% 75.0%, 99.51% 77.5%, 99.33% 80.0%, 99.83% 82.5%, 99.57% 85.0%, 99.97% 87.5%, 99.74% 90.0%, 99.53% 92.5%, 99.59% 95.0%, 99.46% 97.5%, 99.94% 100.0%, 100.0% 99.69%, 97.5% 99.22%, 95.0% 99.47%, 92.5% 99.59%, 90.0% 99.64%, 87.5% 99.11%, 85.0% 99.48%, 82.5% 99.98%, 80.0% 99.28%, 77.5% 99.70%, 75.0% 99.61%, 72.5% 99.81%, 70.0% 99.60%, 67.5% 99.71%, 65.0% 99.92%, 62.5% 99.43%, 60.0% 99.91%, 57.5% 99.29%, 55.0% 99.98%, 52.5% 99.30%, 50.0% 99.27%, 47.5% 99.55%, 45.0% 99.36%, 42.5% 99.78%, 40.0% 99.34%, 37.5% 99.62%, 35.0% 99.79%, 32.5% 99.13%, 30.0% 99.64%, 27.5% 99.66%, 25.0% 99.23%, 22.5% 99.67%, 20.0% 99.40%, 17.5% 99.85%, 15.0% 99.24%, 12.5% 99.77%, 10.0% 99.95%, 7.5% 99.12%, 5.0% 99.84%, 2.5% 99.15%, 0.0% 99.11%, 0.42% 100.0%, 0.01% 97.5%, 0.04% 95.0%, 0.15% 92.5%, 0.27% 90.0%, 0.43% 87.5%, 0.68% 85.0%, 0.25% 82.5%, 0.10% 80.0%, 0.39% 77.5%, 0.10% 75.0%, 0.06% 72.5%, 0.39% 70.0%, 0.49% 67.5%, 0.05% 65.0%, 0.32% 62.5%, 0.49% 60.0%, 0.53% 57.5%, 0.27% 55.0%, 0.62% 52.5%, 0.12% 50.0%, 0.50% 47.5%, 0.54% 45.0%, 0.62% 42.5%, 0.35% 40.0%, 0.07% 37.5%, 0.03% 35.0%, 0.37% 32.5%, 0.12% 30.0%, 0.44% 27.5%, 0.06% 25.0%, 0.55% 22.5%, 0.16% 20.0%, 0.01% 17.5%, 0.12% 15.0%, 0.32% 12.5%, 0.39% 10.0%, 0.27% 7.5%, 0.12% 5.0%, 0.34% 2.5%, 0.66% 0.0%); }
.postcard::after { /* thin printed inner border */
  content: ""; position: absolute; inset: 5px 5px 5px; border: 1px solid rgba(138,90,43,.28); pointer-events: none;
}
.pc-photo { display: block; position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--merlot-deep); }
.postcard.portrait .pc-photo { aspect-ratio: 2 / 3; }
.postcard.square .pc-photo { aspect-ratio: 1; }
.pc-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.02); }
.pc-empty {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1rem;
  background:
    radial-gradient(120% 90% at 20% 15%, rgba(138,90,43,.35), transparent 60%),
    radial-gradient(90% 80% at 85% 90%, rgba(107,111,78,.3), transparent 60%),
    var(--merlot-deep);
  color: var(--bone-dim); font: 600 .68rem/1.6 var(--f-label); letter-spacing: .24em; text-transform: uppercase;
}
.pc-cap { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; padding: .55rem .3rem .6rem; min-height: 2.6rem; }
.pc-cap .script { font-size: 1.35rem; color: var(--ink); line-height: 1.1; }
.pc-cap .label { font-size: .62rem; letter-spacing: .2em; white-space: nowrap; color: var(--tobacco); }
.stamp {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 54px; z-index: 2;
  background: #F6F3ED; padding: 4px;
  -webkit-mask: radial-gradient(circle at 3px 3px, transparent 2px, #000 2.4px) -3px -3px / 6px 6px;
          mask: radial-gradient(circle at 3px 3px, transparent 2px, #000 2.4px) -3px -3px / 6px 6px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.25));
}
.stamp i { display: grid; place-items: center; width: 100%; height: 100%; background: var(--olive); color: var(--bone); font: 600 .55rem var(--f-label); letter-spacing: .12em; font-style: normal; }
.stamp.merlot i { background: var(--merlot); }
.stamp.tobacco i { background: var(--tobacco); }
.postmark {
  position: absolute; top: 14px; right: 44px; width: 64px; height: 64px; z-index: 3; pointer-events: none;
  border: 1.5px solid rgba(18,18,18,.38); border-radius: 50%; opacity: .7;
  display: grid; place-items: center; font: 600 .45rem/1.2 var(--f-label); letter-spacing: .18em; color: rgba(18,18,18,.55); text-align: center;
}
.postmark::after {
  content: ""; position: absolute; left: -56px; top: 22px; width: 60px; height: 18px;
  background: repeating-linear-gradient(transparent 0 4px, rgba(18,18,18,.38) 4px 5.5px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 40%); mask: linear-gradient(90deg, transparent, #000 40%);
}
button.postcard { font: inherit; border: 0; text-align: left; cursor: zoom-in; width: 100%; }
button.postcard:hover, a.postcard:hover { transform: rotate(0deg) translateY(-4px); }

/* ---------- home ---------- */
.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-sheet { transform: rotate(-1.2deg); max-width: 600px; }
.hero-sheet h1 { font-family: var(--f-script); font-size: clamp(3.4rem, 8.4vw, 6.4rem); color: var(--merlot); line-height: .95; margin: .6rem 0 1.2rem; }
.hero-sheet .lede { max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem; align-items: center; margin-top: 2rem; }
.btn {
  display: inline-block; background: var(--merlot); color: var(--bone) !important; text-decoration: none;
  font: 600 .78rem/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase; padding: 1rem 1.4rem .9rem;
  transition: background .2s ease;
}
.btn:hover { background: #331418; }
.link-label { font: 600 .78rem/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .3rem; }
.hero-cards { position: relative; height: clamp(360px, 40vw, 470px); }
.hero-cards .postcard { position: absolute; width: min(64%, 340px); }
.hero-cards .postcard:nth-child(1) { left: 0; top: 4%; --rot: -5deg; }
.hero-cards .postcard:nth-child(2) { right: 0; top: 14%; --rot: 4deg; z-index: 2; }
.hero-cards .postcard:nth-child(3) { left: 16%; bottom: 0; --rot: -1.5deg; z-index: 3; }
.hero-cards .leaf { right: 8%; top: -6%; transform: rotate(24deg); z-index: 4; color: #8C916B; }
.hero .bleed-merlot { width: 520px; height: 420px; left: -140px; top: -120px; }
.hero .bleed-olive { width: 460px; height: 380px; right: -120px; bottom: -160px; }

.desk-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: var(--s4); }
.desk-head h2 { font-family: var(--f-script); font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--merlot); }
.desk-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem); align-items: start; }
.t-notebook { grid-column: 1 / span 7; transform: rotate(-.6deg); padding-left: clamp(2.2rem, 5vw, 3.6rem); }
.t-notebook h3 { font-family: var(--f-script); font-size: clamp(2rem, 3.6vw, 2.7rem); color: var(--merlot); margin: .7rem 0 1rem; }
.t-notebook blockquote { margin: 0; font-style: italic; font-size: 1.25rem; line-height: 2.05rem; }
.t-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; }
.signature { font-family: var(--f-script); font-size: 1.6rem; color: var(--merlot); }
.t-photos { grid-column: 8 / span 5; position: relative; padding-top: 1rem; display: grid; justify-items: start; }
.t-photos .postcard { width: 82%; }
.t-photos .label-strip { margin-top: 1.4rem; text-decoration: none; color: var(--bone); }
.t-photos .label-strip:hover { background: var(--merlot); }
.t-photos .postcard + .postcard { margin-top: -30%; justify-self: end; }
.t-photos .t-caption { margin-top: 1.4rem; display: grid; gap: .5rem; }
.t-photos h3, .t-recipe h3, .t-thoughts h3 { font-family: var(--f-script); font-size: clamp(1.9rem, 3vw, 2.4rem); color: var(--merlot); }
.t-recipe {
  grid-column: 1 / span 5; transform: rotate(1deg); border-top: 5px solid var(--merlot);
  background-image:
    radial-gradient(circle at 88% 82%, transparent 34px, rgba(138,90,43,.22) 35px, rgba(138,90,43,.1) 39px, transparent 41px),
    linear-gradient(transparent calc(2.05rem - 1px), rgba(28,36,48,.08) calc(2.05rem - 1px));
  background-size: 100% 100%, 100% 2.05rem; background-color: var(--sheet);
}
.t-recipe p, .t-thoughts p { margin: .6rem 0 1.2rem; }
.t-thoughts { grid-column: 6 / span 7; padding: clamp(1.6rem, 4vw, 2.6rem); position: relative; }
.t-thoughts h3 { color: var(--bone); }
.t-thoughts .scraps { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.scrap { background: var(--sheet); color: var(--ink); padding: .9rem 1rem; font-family: var(--f-script); font-size: 1.15rem; line-height: 1.3; box-shadow: var(--shadow-dark); min-width: 140px; max-width: 220px; position: relative; }

/* ---------- inner page head ---------- */
.page-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; margin-bottom: var(--s5); max-width: 60ch; }
.page-head h1 { font-family: var(--f-script); font-size: clamp(3rem, 7vw, 5rem); color: var(--merlot); line-height: 1; }
.on-dark .page-head h1 { color: var(--bone); }

/* ---------- writing ---------- */
.contents-wrap { position: relative; max-width: 820px; margin-inline: auto; }
.contents { padding-left: clamp(2.6rem, 6vw, 4.4rem); }
.contents h1 { font-family: var(--f-script); font-size: clamp(3rem, 7vw, 4.6rem); color: var(--merlot); line-height: 1; margin: .5rem 0 2rem; }
.toc { list-style: none; margin: 0; padding: 0; }
.toc a { display: grid; grid-template-columns: 2.4rem minmax(0, auto) 1fr auto; align-items: baseline; gap: .6rem; padding-block: .32rem; text-decoration: none; color: var(--ink); line-height: 1.6rem; }
.toc .n { font: 600 .72rem var(--f-label); letter-spacing: .14em; color: var(--tobacco); font-variant-numeric: tabular-nums; }
.toc .t { font-size: 1.28rem; }
.toc .dots { border-bottom: 1.5px dotted rgba(18,18,18,.3); transform: translateY(-.3rem); }
.toc .p { font-family: var(--f-script); font-size: 1.25rem; color: var(--merlot); }
.toc a:hover .t { color: var(--merlot); text-decoration: underline; text-underline-offset: .2em; }
.toc-foot { margin-top: 2.2rem; font-size: 1rem; color: var(--ink-soft); }
.toc-foot a { font-size: 1rem; }
.contents-wrap .leaf { right: -22px; top: 40px; transform: rotate(14deg); }
.contents-wrap .bleed-merlot { width: 300px; height: 260px; left: -170px; bottom: 40px; }

.piece-wrap { position: relative; max-width: 780px; margin-inline: auto; }
.piece { padding: clamp(2rem, 6vw, 4.2rem) clamp(1.5rem, 6vw, 4.6rem); }
.piece h1 { font-family: var(--f-script); font-size: clamp(2.6rem, 6vw, 4rem); color: var(--merlot); line-height: 1.05; margin: .7rem 0 2.2rem; }
.piece-body { font-size: 1.25rem; line-height: 1.78; max-width: 62ch; }
.piece-body .stanza { margin: 0 0 1.6em; }
.piece-body .ln { display: block; padding-left: 1.4em; text-indent: -1.4em; }
.piece-body.prose .stanza { white-space: normal; text-indent: 1.6em; margin-bottom: .9em; }
.piece-body.prose .stanza:first-child { text-indent: 0; }
.piece-note { font-family: var(--f-script); color: var(--olive); font-size: 1.45rem; line-height: 1.2; transform: rotate(-2deg); display: inline-block; margin-top: .4rem; }
.voice { display: block; font-family: var(--f-script); color: var(--olive); font-size: 1.5rem; margin-bottom: .2rem; }
.piece-sign { margin-top: 1.6rem; }
.piece-nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(18,18,18,.14); }
.piece-nav a { font: 600 .74rem/1.4 var(--f-label); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.piece-nav .t { display: block; font: italic 400 1.05rem var(--f-text); letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
.piece-wrap .tape.top { width: 130px; }
.piece-wrap .bleed-olive { width: 360px; height: 320px; right: -220px; top: 30%; }
.piece-wrap .bleed-merlot { width: 300px; height: 280px; left: -200px; top: -60px; }
.back { display: inline-block; margin-bottom: 2rem; font: 600 .74rem var(--f-label); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }

/* ---------- photography ---------- */
/* ---------- photography: flip grid ---------- */
.photo-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: var(--s4); }
.photo-head .page-head { margin-bottom: 0; min-width: 0; flex: 1 1 300px; }
.hint { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--f-script); font-size: 1.4rem; color: var(--merlot); transform: rotate(-3deg); }
.hint svg { width: 52px; height: 30px; flex: none; }
.hint .touch { display: none; }
@media (hover: none) { .hint .mouse { display: none; } .hint .touch { display: inline; } }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; grid-auto-flow: dense; }
.flip.tall { grid-row: span 2; aspect-ratio: auto; height: 100%; min-height: 100%; }
.flip { position: relative; display: block; width: 100%; aspect-ratio: 1; perspective: 1600px; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.flip-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .85s cubic-bezier(.2, .75, .2, 1); }
@media (hover: hover) { .flip:hover .flip-inner { transform: rotateY(180deg); } }
.flip.flipped .flip-inner, .flip:focus-visible .flip-inner { transform: rotateY(180deg); }
.flip:focus-visible { outline-offset: 4px; }
.face { position: absolute; inset: 0; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.front { background: var(--merlot-deep); }
.front img { width: 100%; height: 100%; object-fit: cover; }
.frame-no { position: absolute; left: .7rem; bottom: .55rem; font: 600 .62rem var(--f-label); letter-spacing: .2em; color: rgba(242, 238, 231, .9); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.face-back {
  transform: rotateY(180deg); background: #F6F3ED; color: var(--ink);
  display: grid; grid-template-rows: auto minmax(0, 1fr); gap: .6rem; padding: clamp(.8rem, 2.2vw, 1.3rem);
  box-shadow: inset 0 0 0 6px #F6F3ED, inset 0 0 0 7px rgba(138, 90, 43, .3);
}
.back-head { display: flex; justify-content: space-between; gap: .5rem; font: 600 .6rem var(--f-label); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); padding-top: .2rem; }
.back-body { display: grid; grid-template-columns: 1.3fr 1fr; min-height: 0; }
.back-msg { min-height: 0; overflow: auto; padding-right: .9rem; border-right: 1px solid rgba(18, 18, 18, .22); font-family: var(--f-script); font-size: clamp(1rem, 1.6vw, 1.32rem); line-height: 1.32; color: var(--merlot); }
.back-msg .todo { font-family: var(--f-text); font-size: .95rem; border: 0; }
.back-addr { position: relative; padding-left: .9rem; display: flex; flex-direction: column; justify-content: flex-end; gap: .6rem; padding-bottom: .3rem; }
.back-addr .stamp { top: 0; right: 0; width: 38px; height: 46px; }
.back-addr .postmark { top: 6px; right: 22px; width: 52px; height: 52px; font-size: .42rem; }
.back-addr .postmark::after { display: none; }
.back-addr .a-line { border-bottom: 1px solid rgba(18, 18, 18, .3); min-height: 1.3rem; padding-bottom: .1rem; font: 600 .56rem var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flip .pc-empty { font-size: .6rem; }
.grid-foot { margin-top: var(--s4); display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.grid-foot .label-strip { text-decoration: none; }

/* ---------- details that make it hers ---------- */
::selection { background: var(--merlot); color: var(--bone); }
.ribbon { /* journal bookmark ribbon */
  position: absolute; top: -4px; right: clamp(1.6rem, 7%, 4rem); width: 22px; height: 130px; z-index: 5; pointer-events: none;
  background: linear-gradient(90deg, #3B151A 0%, #7A2F37 40%, #93424A 52%, #5A2228 70%, #3B151A 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 87%, 0 100%);
}
.ribbon::before { content: ""; position: absolute; inset: 0 0 auto; height: 10px; background: rgba(0, 0, 0, .25); }
.stitch { display: flex; align-items: center; gap: 0; color: var(--thread); width: 100%; }
.stitch .run { flex: 1; min-width: 0; width: 0; height: 24px; }
.stitch .needle { flex: none; width: 58px; height: 24px; }
.on-dark .stitch { color: #B5636B; }
.site-footer::before { /* stitched binding */
  content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--thread) 0 14px, transparent 14px 23px);
}
.circled, .underlined { position: relative; white-space: nowrap; }
.circled .scribble { position: absolute; left: -12%; top: -32%; width: 124%; height: 164%; color: var(--merlot); pointer-events: none; overflow: visible; }
.underlined .scribble { position: absolute; left: -4%; bottom: -.32em; width: 108%; height: .5em; color: var(--tobacco); pointer-events: none; }
.hero-photo { position: absolute; inset: 0; z-index: 0; background: var(--merlot-deep); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: .75; }
.hero-photo.true-colour img { mix-blend-mode: normal; opacity: 1; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(44, 16, 20, .7), rgba(44, 16, 20, .1) 62%, rgba(44, 16, 20, .45)); }
.hero-photo .credit { position: absolute; right: max(20px, env(safe-area-inset-right, 0px)); bottom: 14px; z-index: 2; font: 600 .6rem var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: rgba(230, 224, 214, .7); }
.desk-head .stitch, .page-stitch { margin-top: .8rem; }
.page-stitch { max-width: 520px; }
@media (max-width: 520px) {
  .grid { gap: 3px; }
  .face-back { padding: .55rem; grid-template-rows: minmax(0, 1fr); box-shadow: inset 0 0 0 3px #F6F3ED, inset 0 0 0 4px rgba(138, 90, 43, .3); }
  .back-head, .back-addr, .frame-no { display: none; }
  .back-body { grid-template-columns: 1fr; }
  .back-msg { border-right: 0; padding: .2rem; font-size: .84rem; line-height: 1.25; }
  .back-msg .todo { font-size: .72rem; }
  .ribbon { height: 96px; width: 18px; }
}


/* ---------- baking ---------- */
.recipes { display: grid; gap: clamp(2.6rem, 5vw, 4rem); }
.recipe-card {
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(1.4rem, 3.5vw, 2.8rem);
  border-top: 5px solid var(--merlot);
  background-image:
    radial-gradient(circle at 92% 86%, transparent 40px, rgba(138,90,43,.2) 41px, rgba(138,90,43,.08) 46px, transparent 48px),
    linear-gradient(transparent calc(2.05rem - 1px), rgba(28,36,48,.07) calc(2.05rem - 1px));
  background-size: 100% 100%, 100% 2.05rem; background-color: var(--sheet);
}
.recipe-card:nth-child(odd) { transform: rotate(-.5deg); }
.recipe-card:nth-child(even) { transform: rotate(.6deg); }
.recipe-card h2 { font-family: var(--f-script); font-size: clamp(2rem, 4vw, 2.7rem); color: var(--merlot); margin: .4rem 0 .6rem; }
.recipe-card .story { font-style: italic; color: var(--ink-soft); margin-bottom: 1.4rem; }
.recipe-cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.6rem; }
.recipe-cols h3 { font: 600 .72rem var(--f-label); letter-spacing: .22em; text-transform: uppercase; color: var(--tobacco); margin-bottom: .4rem; }
.recipe-cols ul, .recipe-cols ol { margin: 0; padding-left: 1.2rem; line-height: 2.05rem; }
.blank-lines { display: grid; }
.blank-lines span { height: 2.05rem; border-bottom: 1px dashed rgba(138,90,43,.35); }

/* ---------- thoughts ---------- */
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2.6rem 2rem; align-items: start; }
.note { position: relative; background: var(--sheet); color: var(--ink); padding: 1.8rem 1.4rem 1.4rem; box-shadow: var(--shadow-dark); }
.note:nth-child(3n+1) { transform: rotate(-1.6deg); }
.note:nth-child(3n+2) { transform: rotate(1.2deg); margin-top: 1.4rem; }
.note:nth-child(3n) { transform: rotate(-.4deg); }
.note .label-strip { position: absolute; top: -12px; left: 1rem; }
.note p { font-family: var(--f-script); font-size: 1.35rem; line-height: 1.35; }
.note .todo { font-family: var(--f-text); font-size: 1.05rem; border: 0; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-side { position: relative; padding-top: 1.4rem; }
.about-side .leaf { left: -10px; bottom: -90px; transform: rotate(-18deg); }
.letter { padding: clamp(2rem, 5vw, 3.6rem); }
.letter h1 { font-family: var(--f-script); font-size: clamp(2.8rem, 6vw, 4.2rem); color: var(--merlot); margin: .6rem 0 1.6rem; line-height: 1; }
.letter .paras { display: grid; gap: 1.1rem; max-width: 62ch; }
.seal {
  position: absolute; right: clamp(1rem, 4vw, 2.4rem); bottom: -26px; width: 76px; height: 76px; border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%;
  background: radial-gradient(circle at 38% 34%, #6D2C33, var(--merlot) 55%, #2E1114);
  box-shadow: 0 3px 6px rgba(0,0,0,.35), inset 0 0 0 6px rgba(0,0,0,.12);
  display: grid; place-items: center; color: rgba(230,224,214,.75); font: 2.1rem/1 var(--f-script); transform: rotate(-8deg);
}
.loves-head { margin: var(--s6) 0 var(--s4); display: grid; gap: .6rem; }
.loves-head h2 { font-family: var(--f-script); font-size: clamp(2.2rem, 4.5vw, 3rem); color: var(--merlot); }
.loves { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.6rem; }
.ticket {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center;
  background: var(--sheet); padding: 1.1rem 1.2rem; box-shadow: var(--shadow);
  -webkit-mask: radial-gradient(circle 10px at 0 50%, transparent 98%, #000) , radial-gradient(circle 10px at 100% 50%, transparent 98%, #000);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask: radial-gradient(circle 10px at 0 50%, transparent 98%, #000), radial-gradient(circle 10px at 100% 50%, transparent 98%, #000);
}
.ticket .no { font: 600 .66rem var(--f-label); letter-spacing: .2em; color: var(--tobacco); writing-mode: vertical-rl; transform: rotate(180deg); border-left: 1px dashed rgba(138,90,43,.5); padding-left: .6rem; }
.ticket strong { display: block; font-weight: 500; font-size: 1.15rem; }
.ticket span.note-t { font-size: 1rem; color: var(--ink-soft); font-style: italic; }

/* ---------- contact ---------- */
.big-postcard {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 0;
  background: #F6F3ED; color: var(--ink); box-shadow: var(--shadow-dark); max-width: 980px; margin-inline: auto; transform: rotate(-.6deg); position: relative;
}
.big-postcard .side { padding: clamp(1.6rem, 4.5vw, 3.2rem); }
.big-postcard .side + .side { border-left: 1px solid rgba(18,18,18,.18); position: relative; }
.big-postcard h1 { font-family: var(--f-script); font-size: clamp(2.6rem, 6vw, 3.8rem); color: var(--merlot); margin: .5rem 0 1.4rem; line-height: 1; }
.pc-head { display: flex; justify-content: space-between; gap: 1rem; font: 600 .66rem var(--f-label); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }
.field { display: grid; gap: .25rem; margin-bottom: 1.1rem; }
.field label { font: 600 .68rem var(--f-label); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field textarea {
  font: 1.15rem/1.6 var(--f-text); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(18,18,18,.35);
  padding: .3rem 0; width: 100%; border-radius: 0;
}
.field textarea { min-height: 8.2rem; resize: vertical; background-image: linear-gradient(transparent calc(1.84rem - 1px), rgba(18,18,18,.18) calc(1.84rem - 1px)); background-size: 100% 1.84rem; line-height: 1.84rem; border-bottom: 0; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--merlot); }
.form-btn { border: 0; cursor: pointer; }
.form-msg { margin-top: 1rem; font-style: italic; color: var(--ink-soft); min-height: 1.5em; }
.address { margin-top: 140px; display: grid; gap: 1.4rem; }
.address .line { border-bottom: 1px solid rgba(18,18,18,.3); padding-bottom: .2rem; font-family: var(--f-script); font-size: 1.6rem; color: var(--merlot); min-height: 2.2rem; }
.big-postcard .stamp { width: 70px; height: 86px; top: 26px; right: 26px; }
.big-postcard .postmark { width: 90px; height: 90px; right: 74px; top: 30px; font-size: .55rem; }
.big-postcard .postmark::after { left: -80px; top: 34px; width: 84px; height: 22px; }

/* ---------- footer ---------- */
.site-footer { background: var(--graphite); color: var(--bone); padding-block: var(--s4); position: relative; z-index: 2; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: .8rem 2rem; align-items: center; }
.footer-name { font-family: var(--f-script); font-size: 2rem; color: var(--bone); line-height: 1; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .6rem 2rem; }
.footer-links a { color: var(--bone); font: 600 .72rem/1.6 var(--f-label); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid rgba(230,224,214,.35); }
.footer-links a:hover { border-color: var(--bone); }
.footer-small { grid-column: 1 / -1; font-size: .9rem; color: var(--bone-dim); }

/* ---------- motion ---------- */
.view { animation: settle .6s ease both; }
@keyframes settle { from { opacity: .001; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .menu-btn { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bone); flex-direction: column; gap: 0;
    padding: .4rem max(20px, env(safe-area-inset-right, 0px)) 1rem max(20px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid rgba(18,18,18,.12); box-shadow: 0 12px 24px rgba(18,18,18,.12); }
  .site-nav.open { display: flex; }
  .site-nav a { padding-block: .8rem; border-bottom: 1px solid rgba(18,18,18,.08); }
  .site-nav a[aria-current="page"]::after { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-cards { height: clamp(300px, 70vw, 440px); max-width: 560px; width: 100%; margin-inline: auto; }
  .desk-grid > * { grid-column: 1 / -1 !important; }
  .t-photos { max-width: 460px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-side { max-width: 360px; }
  .big-postcard { grid-template-columns: 1fr; }
  .big-postcard .side + .side { border-left: 0; border-top: 1px solid rgba(18,18,18,.18); }
  .address { margin-top: 110px; }
}
@media (max-width: 640px) {
  body { font-size: 1.1rem; }
  .band { padding-block: var(--s5); }
  .logo { font-size: 1.7rem; }
  .hero-sheet, .t-notebook, .t-recipe, .recipe-card, .big-postcard { transform: none !important; }
  .hero-cards .postcard { width: 70%; }
  .recipe-card { grid-template-columns: 1fr; }
  .recipe-cols { grid-template-columns: 1fr; }
  .note { transform: none !important; margin-top: 0 !important; }
  .toc a { grid-template-columns: 2rem minmax(0, 1fr) auto; }
  .toc .dots { display: none; }
  .piece-body { font-size: 1.15rem; }
  .piece-nav { flex-direction: column; }
  .piece-nav a { text-align: left !important; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .bleed { opacity: .6; }
  .contents-wrap .leaf, .piece-wrap .bleed { display: none; }
  .tape.corner-l { left: -10px; } .tape.corner-r { right: -10px; }
}
