@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Pinyon+Script&family=Schibsted+Grotesk:ital,wght@0,400;0,500;1,400;1,500&display=swap");
/* ------------------------------------------------------------
   Lauren Williamson — Paintelage™
   Palette pulled from the paint tray: steel blue, butter, rose,
   chocolate, on a cool gallery-wall off-white.
   ------------------------------------------------------------ */

:root {
  --paper: #ECEBE5;      /* gallery wall */
  --surface: #F7F6F2;    /* the white room the work hangs in */
  --ink: #241B17;        /* chocolate-black */
  --muted: #6E655F;
  --steel: #46596A;      /* 619 steel blue */
  --butter: #F0E5C2;     /* 114 butter */
  --rose: #DDB9B8;       /* 217 rose */
  --chocolate: #3B2620;  /* 405 chocolate */

  /* Mail club */
  --tan-light: #E3D4BC;
  --tan-ink: #5A4330;
  --wine: #8A1C24;
  --envelope: #A8171E;
  --gold: #CDA453;
  --cream: #F4EEDD;
  --serif: "Cormorant Garamond", Garamond, Georgia, serif;

  --sans: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;

  --gutter: clamp(16px, 4vw, 56px);
  --step--1: 0.8125rem;                       /* 13px: nav, captions */
  --step-0: 1.0625rem;                        /* 17px: body */
  --step-1: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  --step-2: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  --step-3: clamp(2.1rem, 1.4rem + 3vw, 4.1rem);
  --step-4: clamp(4rem, 2rem + 9vw, 11rem);
  --script-display: clamp(4.25rem, 19vw, 19rem);  /* Paintelage + Monthly Mail Club */

  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
figure, blockquote { margin: 0; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: .5em 1em; text-decoration: none;
}
.skip:focus { top: 8px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Lauren's signature monogram (pre-coloured PNGs per background) */
.sig { display: inline-block; height: auto; }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: flex; align-items: center; gap: clamp(20px, 5vw, 64px);
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: var(--step--1);
}
.nav-mark { display: block; color: var(--ink); }
.nav-mark .sig { width: 46px; display: block; }
.nav ul { display: flex; gap: clamp(16px, 4vw, 56px); list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; text-underline-offset: 4px; }
.nav ul a:hover { text-decoration: underline; }

/* ---------------- Hero ---------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  min-height: calc(100svh - 120px);
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(56px, 7vw, 96px);
}
.hero-statement {
  margin: 0;
  max-width: 17ch;
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.hero-statement em { font-style: italic; }

.hero-collage {
  position: relative;
  justify-self: end;
  width: min(100%, 520px);
  padding-left: 18%;
  padding-bottom: 26%;
}
.hero-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(1) contrast(1.04);
}
.hero-art {
  position: absolute;
  left: 0; bottom: 0;
  width: 44%;
  box-shadow: 0 1px 2px rgba(36, 27, 23, .18), 0 18px 40px -18px rgba(36, 27, 23, .45);
}

/* The one orchestrated moment: the collage settles on load */
@media (prefers-reduced-motion: no-preference) {
  .hero-statement { animation: rise 1s var(--ease) both; }
  .hero-portrait { animation: settle 1.2s var(--ease) .15s both; }
  .hero-art { animation: drop 1.3s var(--ease) .55s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes settle { from { opacity: 0; transform: translateY(24px); } }
@keyframes drop { from { opacity: 0; transform: translate(-18px, 30px) rotate(-3deg); } }

/* ---------------- Ticker ---------------- */
.ticker {
  overflow: hidden;
  border-block: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  font-size: var(--step--1);
  white-space: nowrap;
}
.ticker-track { display: flex; width: max-content; }
/* Each copy is at least a screen wide, so the loop never shows a gap */
.ticker-group {
  display: flex; flex: none; align-items: center; justify-content: space-around;
  gap: 22px; min-width: 100vw; padding: 12px 11px;
}
.ticker .sig { width: 30px; }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: ticker 110s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; scrollbar-width: none; }
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------------- Work ---------------- */
.work {
  background: var(--surface);
  padding: clamp(48px, 7vw, 104px) 0 clamp(32px, 4vw, 56px);
}
.work-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px var(--gutter);
  padding: 0 var(--gutter);
  margin-top: clamp(48px, 7vw, 96px);
  font-size: var(--step--1);
}
.work-meta { display: flex; flex-direction: column; color: var(--muted); }
.work-meta p:first-child { color: var(--ink); }
.work-statement p {
  max-width: 44ch;
  font-size: var(--step-1);
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-style: italic;
}

.gallery { position: relative; }
.gallery-track {
  display: flex; align-items: flex-end;
  gap: clamp(20px, 3vw, 44px);
  list-style: none; margin: 0;
  padding: 0 var(--gutter) 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar { display: none; }

.piece { flex: none; scroll-snap-align: start; }
.piece-open {
  display: block; padding: 0; border: 0; background: none; cursor: zoom-in;
}
.piece img {
  height: var(--h);
  width: auto;
  max-width: none;
  box-shadow: 0 1px 2px rgba(36, 27, 23, .12), 0 24px 50px -30px rgba(36, 27, 23, .5);
  transition: transform .6s var(--ease);
}
.piece-open:hover img { transform: translateY(-4px); }
.piece--tall   { --h: clamp(340px, 62vh, 640px); }
.piece--mid    { --h: clamp(280px, 48vh, 500px); }
.piece--detail { --h: clamp(300px, 54vh, 560px); }

.piece-caption {
  display: flex; gap: 12px;
  margin-top: 14px;
  font-size: var(--step--1);
  color: var(--muted);
}
.piece-caption span { color: var(--ink); }

.gallery-btn {
  position: absolute; top: 45%; z-index: 2;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 0; background: var(--surface);
  box-shadow: 0 2px 10px rgba(36, 27, 23, .14);
  cursor: pointer;
  transition: opacity .3s;
}
.gallery-btn svg, .lightbox svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }
.gallery-btn[disabled] { opacity: 0; pointer-events: none; }

/* Same script and size as the Paintelage title */
.work-title {
  margin: 0 0 clamp(32px, 5vw, 72px);
  padding: 0 var(--gutter);
  font-family: var(--script);
  font-weight: 400;
  font-size: var(--script-display);
  line-height: 1.1;
  color: var(--ink);
}

/* ---------------- Paintelage (the cover) ---------------- */
.paintelage {
  background: var(--steel);
  color: var(--paper);
  overflow: hidden;
  padding: clamp(40px, 6vw, 88px) 0 0;
}
.script-word {
  margin: 0;
  padding: 0 var(--gutter);
  font-family: var(--script);
  font-weight: 400;
  font-size: var(--script-display);
  line-height: 1.1;
  color: var(--butter);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.definition {
  max-width: 30ch;
  margin: clamp(8px, 1.5vw, 24px) var(--gutter) 0;
  font-size: var(--step-1);
  line-height: 1.35;
}
.paintelage-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px var(--gutter);
  padding: clamp(64px, 9vw, 140px) var(--gutter) clamp(56px, 7vw, 104px);
}
.paintelage-lead {
  font-size: var(--step-3);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.paintelage-text { display: grid; gap: 1.1em; max-width: 36em; align-content: end; }
.paintelage-text p { color: color-mix(in srgb, var(--paper) 88%, var(--steel)); }

.texture { position: relative; }
.texture img { width: 100%; height: clamp(260px, 52vw, 720px); object-fit: cover; }
.texture figcaption {
  position: absolute; left: var(--gutter); bottom: 16px;
  font-size: var(--step--1);
  color: var(--paper);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}

/* ---------------- Closer look ---------------- */
.closer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  padding: clamp(72px, 10vw, 160px) var(--gutter);
}
.closer-quote p {
  max-width: 15ch;
  font-size: var(--step-3);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.closer-quote footer { margin-top: 24px; font-size: var(--step--1); color: var(--muted); }

.closer-pair { position: relative; padding-bottom: 18%; }
.closer-a { width: 66%; }
.closer-b { position: absolute; right: 0; bottom: 0; width: 46%; }
.closer-b img { box-shadow: 0 24px 50px -24px rgba(36, 27, 23, .55); }
.closer-b figcaption { margin-top: 12px; font-size: var(--step--1); color: var(--muted); }

/* ---------------- About ---------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 104px);
  align-items: start;
  background: var(--butter);
  padding: clamp(64px, 9vw, 140px) var(--gutter);
}
.about-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(1);
}
.about-text h2 {
  margin: 0 0 clamp(24px, 3vw, 40px);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.about-text p { max-width: 36em; }
.about-text p + p { margin-top: 1.1em; }
.about-sig { width: clamp(120px, 14vw, 180px); margin-top: 36px; color: var(--chocolate); }

/* ---------------- Monthly Mail Club ----------------
   A sheer envelope with its contents. Inside .mc-canvas,
   1em = 1 inch, so every item keeps its true size. */
.mailclub {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background: var(--grain), var(--tan-light);
  color: var(--ink);
  padding: clamp(72px, 10vw, 150px) var(--gutter);
}
.mc-head { container-type: inline-size; margin-bottom: clamp(32px, 5vw, 72px); }
/* One line, sized to fill most of the content width */
.mc-head h2 {
  margin: 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: min(calc(100cqw / 7.6), 17rem);
  line-height: 1.1;
  white-space: nowrap;
  color: var(--wine);
}
/* Envelope and text form one group, centred on the page;
   the text sits to the right, centred against the envelope */
.mc-body {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 24rem);
  grid-template-areas: "scene intro";
  justify-content: center;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.mc-intro { grid-area: intro; }
.mc-scene { grid-area: scene; }
/* Same as the About body text */
.mc-intro { display: grid; gap: 1.1em; justify-items: start; max-width: 36em; }
.mc-intro p { font-size: var(--step-0); line-height: 1.5; }
.mc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 1em; }

.mc-scene { width: 100%; max-width: 620px; justify-self: start; margin: 0; container-type: inline-size; }
.mc-canvas {
  --ox: 1.45;  --oy: .95;  --span: 7.9;  --tall: 9.6;
  position: relative;
  font-size: calc(100cqw / var(--span));
  height: calc(var(--tall) * 1em);
}
.mc-obj {
  position: absolute;
  left: calc((var(--x) - var(--ox)) * 1em); top: calc((var(--y) - var(--oy)) * 1em);
  width: calc(var(--w) * 1em); height: calc(var(--h) * 1em);
  transform: rotate(calc(var(--r) * 1deg));
}
.mc-obj > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mc-defs { position: absolute; width: 0; height: 0; }
.mailclub { --ink-brown: #4E2620; }
.mc-letter, .mc-prompt, .mc-checklist, .mc-lucky, .mc-fortune {
  box-shadow: 0 .008em .016em rgba(70, 40, 20, .3), 0 .05em .14em rgba(70, 40, 20, .22);
}


/* Sheer envelope */
.mc-env-back { filter: drop-shadow(0 .05em .12em rgba(70, 40, 20, .25)); }
.mc-env-back rect, .mc-env-back .flap { fill: rgba(250, 247, 241, .55); stroke: rgba(255, 255, 255, .8); stroke-width: .015; }
.mc-pocket {
  clip-path: polygon(0 0, 50% 40%, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(178deg, rgba(252, 250, 246, .5), rgba(246, 242, 234, .62));
  backdrop-filter: blur(.014em) brightness(1.03);
  -webkit-backdrop-filter: blur(.014em) brightness(1.03);
}
.mc-pocket svg { fill: none; stroke: rgba(255, 255, 255, .9); stroke-width: .018; }
.mc-seal { fill: var(--gold); filter: drop-shadow(0 .01em .01em rgba(60, 20, 0, .5)); }

/* Thoughtful letter */
.mc-letter {
  display: flex; flex-direction: column;
  padding: .38em .55em 0;
  background: var(--grain), var(--cream);
  color: var(--wine);
}
.mc-letter-head { display: flex; flex-direction: column; gap: .02em; width: 2.75em; padding-bottom: .12em; border-bottom: .055em double var(--wine); }
.mc-letter-mast { font-family: var(--script); font-size: .29em; line-height: 1; }
.mc-letter-date { font-family: var(--serif); font-style: italic; font-size: .14em; color: var(--ink); }
.mc-letter-body {
  flex: 1;
  display: flex; flex-direction: column; gap: .65em;
  padding-top: .7em;
  font-family: var(--serif); font-style: italic;
  font-size: .135em; line-height: 1.45;
  color: #3B2A22;
}
.mc-letter-body p { max-width: 17.4em; }  /* ends left of the clipped cards */  /* ends left of the clipped cards */
.mc-letter-hi { font-size: 1.4em; font-style: normal; color: var(--ink); }
.mc-letter-bye { margin-top: auto; padding-bottom: 1.4em; font-size: 1.2em; color: var(--wine); }
.mc-letter-bye span { margin-left: .6em; font-style: normal; }
.mc-lace {
  margin: 0 -.55em; height: .3em;
  background:
    radial-gradient(circle at 50% 100%, transparent .055em, var(--wine) .06em .08em, transparent .085em) 0 .04em / .2em .17em repeat-x,
    radial-gradient(circle, var(--wine) .02em, transparent .025em) .1em .05em / .2em .17em repeat-x,
    linear-gradient(var(--wine), var(--wine)) 0 100% / 100% .07em no-repeat;
  opacity: .8;
}

/* Journal prompt card (6 x 4 in) */
.mc-prompt { display: flex; flex-direction: column; padding: .2em .35em .25em; background: var(--grain), #FBF9F4; }
.mc-prompt-month { align-self: flex-start; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: .26em; color: var(--ink); border-bottom: .14em double var(--wine); }
.mc-prompt-q { margin-top: .5em; max-width: 13em; font-family: var(--serif); font-style: italic; font-size: .15em; line-height: 1.45; color: var(--wine); }
.mc-prompt-lines { flex: 1; margin-top: .05em; background: repeating-linear-gradient(transparent 0 .28em, rgba(120, 95, 85, .32) .28em .295em); }

/* To-do list */
.mc-checklist { display: flex; flex-direction: column; background: var(--grain), var(--cream); border-top: .06em solid var(--wine); color: var(--wine); }
.mc-checklist-title { margin-top: .03em; font-family: var(--script); font-size: .22em; line-height: 1.1; text-align: center; }
.mc-checklist-grid { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 .04em; margin: 0; padding: .02em .12em .04em; list-style: none; }
.mc-checklist-grid li { display: grid; justify-items: center; align-content: center; gap: .02em; }
/* fine pen-and-ink drawings, with a touch of wobble so they read hand-drawn */
.mc-checklist-grid svg { width: .58em; height: .58em; fill: none; stroke: var(--ink-brown); stroke-width: .85; stroke-linejoin: round; stroke-linecap: round; filter: url(#hand-ink); }
.mc-checklist-grid span { font-family: var(--serif); font-style: italic; font-size: .082em; white-space: nowrap; color: var(--ink-brown); }
.mc-checklist-grid .mc-checklist-need { display: grid; place-items: center; width: 4.6em; height: 4.6em; border: .12em solid currentColor; border-radius: 50%; font-size: .068em; line-height: 1.1; text-align: center; white-space: normal; color: var(--wine); }
.mc-checklist-band { height: .26em; display: flex; justify-content: center; align-items: center; gap: .14em; background: var(--wine); }
.mc-checklist-band svg { width: .12em; fill: var(--gold); }

/* Keepsake card */
.mc-lucky { display: grid; place-items: center; background: var(--grain), linear-gradient(160deg, #8F1F27, #7A1820); }
.mc-lucky-art { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--gold); stroke-width: .8; stroke-linecap: round; stroke-linejoin: round; }
.mc-lucky-art .mc-blossoms { fill: #E9C9C2; stroke: none; }
.mc-lucky p {
  position: relative;
  font-family: var(--script); font-size: .36em; line-height: .95; text-align: center;
  transform: rotate(-5deg);
  background: linear-gradient(100deg, #B8873A, #F1D48C 45%, #C3943F);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Fortune slip */
.mc-fortune { display: grid; place-items: center; background: var(--grain), #FCFBF7; }
.mc-fortune::before { content: ""; position: absolute; left: 0; top: 0; width: .22em; height: .1em; background: var(--wine); }
.mc-fortune::after { content: ""; position: absolute; right: .1em; top: .2em; width: .03em; height: .17em; background: var(--wine); }
.mc-fortune p { font-family: var(--serif); font-weight: 600; font-size: .105em; line-height: 1.2; text-align: center; color: var(--ink); }


/* Item names: a small tag that follows the cursor, or sits on a tapped item */
.mc-obj[data-name] { cursor: default; }
.mc-obj[data-name]:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.mc-tip {
  position: absolute; z-index: 30;
  transform: translate(-50%, calc(-100% - 12px));
  padding: 6px 10px;
  background: var(--ink); color: var(--cream);
  font-size: var(--step--1); line-height: 1.2; white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 16px -8px rgba(36, 27, 23, .6);
}
.button.button--wine { background: var(--wine); color: var(--cream); }
.button.button--wine:hover { background: var(--chocolate); }

@media (max-width: 860px) {
  .mc-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "scene"; }
  .mc-scene { justify-self: center; }
}

/* ---------------- Inquire ---------------- */
.inquire {
  background: var(--rose);
  padding: clamp(72px, 10vw, 150px) var(--gutter);
  text-align: center;
}
.inquire h2 {
  margin: 0 0 18px;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.4rem, 2rem + 6vw, 7.5rem);
  line-height: 1.1;
  color: var(--chocolate);
}
.inquire p { max-width: 34ch; margin: 0 auto 32px; }
.button {
  display: inline-block;
  padding: 14px 30px;
  background: var(--chocolate);
  color: var(--paper);
  text-decoration: none;
  font-size: var(--step--1);
  letter-spacing: .02em;
  transition: background-color .3s;
}
.button:hover { background: var(--steel); }

/* ---------------- Footer ---------------- */
.footer {
  background: var(--chocolate);
  color: var(--butter);
  padding: clamp(48px, 7vw, 96px) var(--gutter) 28px;
}
.footer-sig { display: block; width: min(56vw, 440px); margin-bottom: clamp(48px, 7vw, 96px); }
.footer-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--butter) 22%, transparent);
  font-size: var(--step--1);
  color: color-mix(in srgb, var(--butter) 70%, var(--chocolate));
}
.footer a { color: var(--butter); text-underline-offset: 4px; }

/* ---------------- Lightbox ---------------- */
.lightbox {
  width: 100vw; height: 100svh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--surface);
  color: var(--ink);
}
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox::backdrop { background: var(--surface); }
.lightbox figure {
  display: grid; justify-items: center; gap: 14px;
  height: 100%; padding: 64px 0 28px;
  grid-template-rows: 1fr auto;
  min-height: 0;
}
.lightbox img { max-height: 100%; width: auto; object-fit: contain; min-height: 0; }
.lightbox figcaption { font-size: var(--step--1); color: var(--muted); }
.lightbox figcaption span { color: var(--ink); margin-right: 12px; }
.lightbox button { border: 0; background: none; cursor: pointer; display: grid; place-items: center; height: 48px; }
.lightbox-close { position: absolute; top: 12px; right: 12px; width: 48px; }
.lightbox svg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] img { animation: rise .5s var(--ease); }
}

/* Desktop: all four works sit in one row, no scrolling.
   Each piece's width follows its aspect ratio (--r) times a size (--s),
   so the paintings keep their staggered heights. */
@media (min-width: 861px) {
  .gallery-track {
    overflow: visible;
    scroll-snap-type: none;
    max-width: 1800px;
    margin-inline: auto;
  }
  .piece { flex: calc(var(--r) * var(--s)) 1 0; min-width: 0; }
  .piece--tall   { --s: 1; }
  .piece--mid    { --s: .78; }
  .piece--detail { --s: .88; }
  .piece img { width: 100%; height: auto; max-width: 100%; }
  .piece-caption { flex-wrap: wrap; gap: 2px 12px; }
  .gallery-btn { display: none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-collage { justify-self: center; width: min(100%, 420px); }
  .work-intro, .paintelage-body, .closer, .about { grid-template-columns: 1fr; }
  .closer-pair { max-width: 480px; }
  .about-portrait { max-width: 420px; }
  .gallery-btn { display: none; }
  .definition { margin-top: 36px; }
  .piece--tall   { --h: clamp(300px, 58vh, 480px); }
  .piece--mid    { --h: clamp(240px, 44vh, 380px); }
  .piece--detail { --h: clamp(260px, 50vh, 420px); }
}
@media (max-width: 520px) {
  .nav { gap: 18px; }
  .nav ul { gap: 12px; }
  .nav-mark .sig { width: 38px; }
  .lightbox[open] { grid-template-columns: 40px 1fr 40px; }
}

/* ================= Mail Club page (mail-club.html) ================= */
:root, .mc-page {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --ink-brown: #4E2620;
  --flap: clamp(48px, 9vw, 140px);
}
.text-link { color: inherit; text-underline-offset: 5px; font-size: var(--step--1); }
.email-line { margin-top: 14px; font-size: var(--step--1); user-select: all; }
.button.button--cream { background: var(--cream); color: var(--wine); }
.button.button--cream:hover { background: var(--butter); }

/* Hero: a red envelope whose flap closes in a V */
.mcp-hero {
  background: var(--grain), var(--wine);
  color: var(--cream);
  padding: clamp(48px, 7vw, 104px) var(--gutter) calc(var(--flap) + clamp(48px, 6vw, 88px));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--flap)), 50% 100%, 0 calc(100% - var(--flap)));
}
.mcp-hero-head { container-type: inline-size; margin-bottom: clamp(24px, 4vw, 56px); }
.mcp-hero h1 {
  margin: 0;
  font-family: var(--script); font-weight: 400;
  font-size: min(calc(100cqw / 7.6), 17rem);
  line-height: 1.1; white-space: nowrap;
  color: var(--butter);
}
.mcp-hero-body {
  display: grid;
  grid-template-columns: minmax(0, 26rem) minmax(0, 560px);
  justify-content: space-between;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.mcp-hero-copy { display: grid; gap: 1.1em; justify-items: start; max-width: 36em; }
.mcp-lede { font-size: var(--step-2); line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.mcp-hero-copy .text-link { color: var(--cream); }
.mcp-hero-art { container-type: inline-size; }
.mcp-hero-canvas { --ox: 0; --oy: 0; position: relative; font-size: calc(100cqw / 8.4); height: 6.4em; }
.mcp-hero .mc-lucky { box-shadow: 0 0 0 .012em rgba(241, 212, 140, .35), 0 .05em .16em rgba(30, 5, 5, .45); }
.mcp-seal { display: flex; justify-content: center; margin-top: calc(-1 * clamp(14px, 1.6vw, 22px)); position: relative; z-index: 1; }
.mcp-seal svg { width: clamp(28px, 3.2vw, 44px); fill: var(--gold); transform: rotate(-8deg); filter: drop-shadow(0 2px 2px rgba(60, 20, 0, .35)); }

/* The flap closes onto the About section's butter */
.mcp-hero-wrap { background: var(--butter); }
.mcp-about { padding-top: clamp(40px, 6vw, 96px); }
.mcp-about-link { margin-top: 28px; }
.mcp-about-link .text-link { font-size: var(--step-0); }

/* What's inside: the parts, one by one */
.mcp-inside .mc-head h2 { font-size: min(calc(100cqw / 5.2), 17rem); }
/* Each part drawn on its own, all at the same true scale (1in = --in):
   the letter on the left, the smaller pieces arranged beside it */
.mcp-parts {
  --in: min(60px, calc((100vw - 2 * var(--gutter)) / 7.4));
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-areas:
    "letter prompt prompt"
    "letter todo   lucky"
    "letter fortune fortune";
  justify-content: center; align-items: start;
  gap: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 40px);
  margin: clamp(72px, 9vw, 140px) auto 0; padding: 0; list-style: none;
}
.mcp-part--letter  { grid-area: letter; margin-right: clamp(8px, 2vw, 32px); }
.mcp-part--prompt  { grid-area: prompt; }
.mcp-part--checklist    { grid-area: todo; }
.mcp-part--lucky   { grid-area: lucky; }
.mcp-part--fortune { grid-area: fortune; }
.mcp-part { display: flex; flex-direction: column; width: max(calc(var(--pw) * var(--in)), 10.5rem); }
.mcp-stage { display: flex; align-items: flex-end; }
.mcp-fit { --ox: 0; --oy: 0; position: relative; font-size: var(--in); width: calc(var(--pw) * 1em); height: calc(var(--ph) * 1em); }
.mcp-part > h3 { margin: 18px 0 4px; font-size: var(--step-0); font-weight: 500; }
.mcp-part > p { font-size: var(--step--1); color: var(--tan-ink); max-width: 16em; }

/* Subscribe */
.mcp-subscribe {
  background: var(--grain), var(--rose);
  padding: clamp(72px, 10vw, 150px) var(--gutter);
  text-align: center;
}
.mcp-subscribe h2 {
  margin: 0 0 18px;
  font-family: var(--script); font-weight: 400;
  font-size: clamp(3.4rem, 2rem + 6vw, 7.5rem); line-height: 1.1;
  color: var(--wine);
}
.mcp-subscribe > p:not(.email-line):not(.mcp-manage) { max-width: 34ch; margin: 0 auto 32px; }
.mcp-manage { margin-top: 28px; font-size: var(--step--1); }
.mcp-form {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end; gap: 16px;
  max-width: 44rem; margin: 0 auto; text-align: left;
}
.mcp-field { display: grid; gap: 6px; min-width: 0; }
.mcp-field label { font-size: var(--step--1); font-weight: 500; }
.mcp-field input {
  width: 100%; min-width: 0;
  padding: 13px 14px;
  font: inherit; color: var(--ink);
  background: var(--cream);
  border: 1px solid color-mix(in srgb, var(--wine) 35%, transparent);
  border-radius: 0;
}
.mcp-field input:focus-visible { outline: 2px solid var(--wine); outline-offset: 1px; }
.mcp-field input[aria-invalid="true"] { border-color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); }
.mcp-form .button { border: 0; cursor: pointer; font: inherit; font-size: var(--step--1); padding: 15px 30px; }
.mcp-form-msg { grid-column: 1 / -1; font-size: var(--step--1); }
.mcp-form-msg.is-error { color: var(--wine); font-weight: 500; }
.mcp-subscribe .email-line { margin-top: 24px; user-select: text; }
@media (max-width: 640px) { .mcp-form { grid-template-columns: minmax(0, 1fr); } }
.mcp-manage a { text-underline-offset: 4px; }

@media (max-width: 960px) {
  .mcp-parts { grid-template-columns: auto; grid-template-areas: "letter" "prompt" "todo" "lucky" "fortune"; justify-content: start; }
  .mcp-part--letter { margin-right: 0; }
  .mcp-hero-body { grid-template-columns: minmax(0, 1fr); }
  .mcp-hero-art { max-width: 520px; width: 100%; }
}

/* MadeThis: business sites run no page scripts, so the extras main.js added are CSS here */
.mc-obj[data-name]:hover::after, .mc-obj[data-name]:focus-visible::after {
  content: attr(data-name);
  position: absolute; left: 50%; top: 0; z-index: 30;
  transform: translate(-50%, calc(-100% - 8px));
  padding: 6px 10px;
  background: var(--ink); color: var(--cream);
  font-family: inherit; font-size: var(--step--1); line-height: 1.2; white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 16px -8px rgba(36, 27, 23, .6);
}
.gallery-btn, .lightbox { display: none !important; }
a.piece-open { display: block; color: inherit; }
.mcp-buy { display: flex; justify-content: center; margin: var(--space-m, 1.5rem) 0; }
.mc-offer { display: contents; }
.mc-offer-off { margin: 0; font-size: var(--step--1); }
/* MadeThis: business pages load Tailwind, whose reset (preflight) comes after this file; these put back the browser defaults this design
   relies on, one element deep (html x) so they beat the reset and lose to every class rule above */
html a { text-decoration: underline; }
html h1, html h2, html h3, html h4, html h5, html h6 { font-size: revert; font-weight: revert; margin: revert; }
html ul, html ol { list-style: revert; margin: revert; padding: revert; }
html svg { display: revert; vertical-align: revert; }
html hr { border-top-width: 1px; }
