/* Emily D'Agostino — minimal, full width, art first.
   Design system: every colour, size, space, radius, shadow and timing below is a token.
   Page rules further down only use these tokens and the shared elements; see DESIGN.md and /styleguide. */

/* =========================================================================
   1. Tokens
   ========================================================================= */
:root {
  /* Colour — primitives (ink on paper, from the logo) */
  --paper: oklch(0.975 0.008 78);   /* page background */
  --tint: oklch(0.945 0.013 75);    /* table surface, image placeholders */
  --ink: #1D1613;                   /* near-black from the logo */
  --ink-soft: oklch(0.5 0.015 55);  /* quiet UI text: inactive nav, counts, labels */
  --rule: oklch(0.88 0.014 72);     /* hairlines and dividers */
  --wine: oklch(0.38 0.12 14);      /* the one accent: rare, small, meaningful */

  /* Colour — roles */
  --heading: var(--ink);            /* all headings */
  --body: #3A3A3A;                  /* body copy */
  --ink-06: color-mix(in oklch, var(--ink) 6%, transparent);   /* hover wash */
  --ink-12: color-mix(in oklch, var(--ink) 12%, transparent);  /* faint outline */
  --ink-45: color-mix(in oklch, var(--ink) 45%, transparent);  /* ruled lines */
  --paper-85: color-mix(in oklch, var(--paper) 85%, transparent); /* glass dock */
  --paper-98: color-mix(in oklch, var(--paper) 98%, transparent); /* lightbox */

  /* Type — families */
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;  /* everything else */
  --serif: "Fraunces", Georgia, serif;                         /* headings only */

  /* Type — scale */
  --text-xs: 12px;     /* counts, tiny labels */
  --text-sm: 13px;     /* small UI (copy button) */
  --text-base: 15px;   /* body, nav, captions, filters */
  --text-md: 16px;     /* intro copy, buttons, descriptions */
  --text-lg: 17px;     /* postcard message */
  --text-xl: clamp(18px, 1.7vw, 24px);          /* email address */
  --display-sm: clamp(48px, 15vw, 68px);         /* phone menu links */
  --display-md: clamp(48px, 5.4vw, 80px);        /* postcard title */
  --display-lg: clamp(44px, 7vw, 96px);          /* page titles */
  --display-xl: clamp(48px, 8.6vw, 124px);       /* collection headings */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --leading-body: 1.6;
  --leading-snug: 1.5;
  --leading-display: 0.95;
  --tracking-display: -0.04em;

  /* Space */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-section: 132px;  /* between portfolio collections */

  /* Layout */
  --gutter: clamp(16px, 2.5vw, 40px);  /* page side margin */
  --gap: clamp(8px, 1.2vw, 20px);      /* gap between artworks */
  --header-h: 80px;
  --measure: 46ch;                     /* comfortable line length */

  /* Radius */
  --radius-art: 4px;      /* artwork thumbnails (desktop) */
  --radius-art-lg: 8px;   /* homepage carousel cards (desktop) */
  --radius-card: 16px;    /* paper surfaces: postcard, shop cards */
  --radius-pill: 999px;   /* buttons, dock, filters */

  /* Shadow — soft, offset, warm (tinted with ink) */
  --shadow-hair: 0 1px 2px color-mix(in oklch, var(--ink) 8%, transparent);
  --shadow-print: var(--shadow-hair), 0 20px 40px -20px color-mix(in oklch, var(--ink) 30%, transparent);
  --shadow-card: var(--shadow-hair), 0 30px 60px -28px color-mix(in oklch, var(--ink) 40%, transparent);
  --shadow-card-lift: var(--shadow-hair), 0 44px 80px -30px color-mix(in oklch, var(--ink) 45%, transparent);
  --shadow-float: 0 10px 30px -14px color-mix(in oklch, var(--ink) 30%, transparent);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);        /* default ease-out */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);    /* confident arrivals */
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);      /* quick exits */
  --dur-fast: 0.2s;    /* colour and hover feedback */
  --dur-base: 0.45s;   /* fills, underlines, small moves */
  --dur-slow: 0.7s;    /* sheets and entrances */

  /* Focus */
  --focus: 2px solid var(--ink);

  /* Layers */
  --z-sticky: 10;
  --z-header: 20;
  --z-modal: 30;
}
@media (max-width: 760px) { :root { --header-h: 64px; } }

/* =========================================================================
   2. Base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; scrollbar-color: var(--rule) transparent; }
body {
  margin: 0; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--body); caret-color: var(--ink); accent-color: var(--ink);
  font-family: var(--sans); font-size: var(--text-base); font-weight: var(--weight-regular); line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: var(--focus); outline-offset: 3px; }
.wrap { width: 100%; padding: 0 var(--gutter); }
body > main { flex: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes fade { from { opacity: 0; } }

/* =========================================================================
   3. Elements — use these instead of new one-off styles
   ========================================================================= */

/* Type: headings are Fraunces SemiBold, tight; everything else is Inter Tight */
h1, h2, .display-title, .group-title { color: var(--heading); }
h1 { font-weight: var(--weight-regular); margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
.display-title, .group-title {
  font-family: var(--serif); font-weight: var(--weight-semibold);
  line-height: var(--leading-display); letter-spacing: var(--tracking-display);
}
.display-title { font-size: var(--display-lg); }
.group-title { font-size: var(--display-xl); line-height: 0.87; }
.lede { color: var(--body); max-width: var(--measure); margin: 0; text-wrap: pretty; }
.caption { font-size: var(--text-xs); color: var(--ink-soft); letter-spacing: 0.02em; }

/* Text link: a fine underline that wipes away on hover */
.link {
  text-decoration: none; padding-bottom: 5px; white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size var(--dur-base) var(--ease);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* Button: outline pill that fills with ink, left to right, on hover. The header Shop link shares it.
   .btn--solid starts filled (the phone menu's Shop). */
.btn, .nav .shop {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ink); border-radius: var(--radius-pill);
  font: var(--weight-medium) var(--text-md)/1 var(--sans); color: var(--ink); text-decoration: none; white-space: nowrap;
  background: linear-gradient(var(--ink), var(--ink)) 0 0 / 0% 100% no-repeat;
  transition: background-size var(--dur-base) var(--ease), color 0.3s var(--ease);
}
.btn { min-height: 48px; padding: 12px 26px; }
.btn:hover, .btn:focus-visible { background-size: 100% 100%; color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }

/* Surface: a sheet of paper resting on the table (postcard, shop cards) */
.surface { background: var(--paper); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }

/* Artwork thumbnail: A-series proportions on a tinted placeholder */
.art { aspect-ratio: 1 / 1.414; overflow: hidden; background: var(--tint); }
.art img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 761px) { .art { border-radius: var(--radius-art); } }

/* =========================================================================
   4. Components and pages
   ========================================================================= */

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header); background: var(--paper);
  border-bottom: 1px solid transparent; transition: border-color var(--dur-fast);
}
.site-header.scrolled { border-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav a {
  font: var(--weight-medium) var(--text-base)/1 var(--sans);
  text-decoration: none; padding: 6px 0 4px; color: var(--ink-soft); transition: color var(--dur-fast);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
/* The current page is underlined; other links draw the same line in on hover */
.nav a:not(.shop) {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color var(--dur-fast), background-size var(--dur-base) var(--ease);
}
.nav a:not(.shop):hover, .nav a[aria-current="page"] { background-size: 100% 1px; }
/* Shop: the shared .btn pill, in its compact header size */
.nav .shop { padding: 10px 20px; font-size: var(--text-base); }
.nav .shop:hover, .nav .shop:focus-visible, .nav .shop[aria-current="page"] { background-size: 100% 100%; color: var(--paper); }

/* 44px tap target; whole-pixel bars so the lines stay crisp and evenly spaced */
.menu-btn {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0; margin-right: -11px;
  background: none; border: 0; cursor: pointer; color: var(--ink);
}
.menu-btn span { display: block; width: 22px; height: 2px; border-radius: 1px; background: currentColor; transition: transform 0.3s var(--ease), opacity var(--dur-fast); }

.nav-meta { display: none; }

/* Phone menu: a full sheet of paper that unrolls from the header bar.
   It sits behind the header's own logo and close button (z-index -1 inside the header), so the bar never moves. */
@media (max-width: 760px) {
  .logo img { height: 32px; }
  .menu-btn { display: flex; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: calc(var(--header-h) + var(--space-2xl)) var(--gutter) max(var(--space-xl), env(safe-area-inset-bottom));
    background: var(--paper); overflow-y: auto; overscroll-behavior: contain;
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path 0.32s var(--ease-in), visibility 0s 0.32s;
  }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav {
    clip-path: inset(0 0 0 0); visibility: visible;
    transition: clip-path var(--dur-slow) var(--ease-expo), visibility 0s;
  }

  /* Page links: large Fraunces, matching the collection headings */
  .nav > a:where(:not(.shop)) {
    font: var(--weight-semibold) var(--display-sm)/1 var(--serif); letter-spacing: -0.035em;
    padding: 6px 0 14px; color: var(--heading); background: none;
    opacity: 0; transform: translateY(28px);
    transition: opacity var(--dur-fast), transform var(--dur-fast);
  }
  .nav a:not(.shop), .nav a:not(.shop):hover { background: none; } /* drop the desktop underline */
  .nav > a:where(:not(.shop)):hover { color: var(--wine); }
  .nav > a:where(:not(.shop))[aria-current="page"] { color: var(--ink-soft); }
  .nav > a:where(:not(.shop))[aria-current="page"]::after {
    content: ""; display: inline-block; width: 0.16em; height: 0.16em; margin-left: 0.14em;
    border-radius: 50%; background: var(--wine); vertical-align: 0.12em;
  }

  /* Shop and the small links sit at the foot of the sheet, one thumb away */
  .nav .shop { margin-top: auto; padding: 18px 20px; font-size: var(--text-lg);
    background: var(--ink); color: var(--paper); /* .btn--solid */
    opacity: 0; transform: translateY(16px);
    transition: opacity var(--dur-fast), transform var(--dur-fast);
  }
  .nav .shop[aria-current="page"] { background: var(--ink); }
  .nav-meta {
    display: flex; justify-content: center; gap: var(--space-xl); margin: var(--space-lg) 0 0;
    opacity: 0; transition: opacity var(--dur-fast);
  }
  .nav-meta a { font: var(--weight-medium) var(--text-base)/1 var(--sans); color: var(--ink-soft); text-decoration: none; padding: 8px 0; }
  .nav-meta a:hover { color: var(--ink); }

  /* Opening: links rise in order once the sheet is mostly down; closing drops them all at once, faster */
  body.menu-open .nav > a, body.menu-open .nav-meta {
    opacity: 1; transform: none;
    transition: opacity 0.5s var(--d, 0.18s), transform var(--dur-slow) var(--ease-expo) var(--d, 0.18s);
  }
  body.menu-open .nav > a:nth-child(2) { --d: 0.24s; }
  body.menu-open .nav > a:nth-child(3) { --d: 0.3s; }
  body.menu-open .nav > .shop { --d: 0.36s; }
  body.menu-open .nav-meta { --d: 0.42s; }

  body.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .menu-btn span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.menu-open .site-header { border-color: transparent; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .nav, body.menu-open .nav { clip-path: none; opacity: 0; transition: opacity var(--dur-fast), visibility 0s var(--dur-fast); }
  body.menu-open .nav { opacity: 1; transition: opacity var(--dur-fast), visibility 0s; }
  .nav > a, .nav-meta, body.menu-open .nav > a, body.menu-open .nav-meta { transform: none; transition: opacity var(--dur-fast); }
}

/* ---------- Home: arch carousel ---------- */
.home { overflow: hidden; }
.arch {
  position: relative; height: calc(100svh - var(--header-h)); overflow: hidden;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
}
.arch.is-dragging { cursor: grabbing; }
.arch-ring { position: absolute; left: 50%; top: 16px; }
.arch-card {
  position: absolute; left: 0; top: 0; display: block;
  width: var(--card-w, 200px); aspect-ratio: 1 / 1.414;
  background: var(--tint); will-change: transform; -webkit-user-drag: none;
  transform-origin: 50% 0; /* hang from the arch so each card points at its centre */
}
.arch-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 0.6s var(--ease); }
.arch-card:hover img { transform: scale(1.04); }
.arch-card:focus-visible { outline: var(--focus); outline-offset: 4px; }

.arch-intro {
  position: absolute; left: 50%; bottom: clamp(96px, 22vh, 240px); translate: -50% 0;
  width: min(44ch, 100% - 2 * var(--gutter));
  display: flex; flex-direction: column; align-items: center; gap: var(--space-lg); text-align: center;
  cursor: auto;
}
/* The intro copy and links rise in once the prints have landed */
.arch-intro > * { animation: rise var(--dur-slow) var(--ease-expo) both; animation-delay: 0.75s; }
.arch-intro > .intro-links { animation-delay: 0.9s; }
@keyframes rise { from { opacity: 0; translate: 0 16px; } }
.arch-intro h1 { font-size: var(--text-md); font-weight: var(--weight-regular); line-height: var(--leading-body); letter-spacing: normal; color: var(--body); } /* reads as body copy */
/* Quiet text links, styled like the header menu, with a fine underline */
.intro-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-xs) var(--space-xl); }
.arch-intro .link { font-size: var(--text-md); font-weight: var(--weight-medium); padding: 6px 0 4px; background-position: 0 calc(100% - 2px); }

@media (max-width: 760px) {
  .arch-intro { bottom: var(--space-lg); }
}

/* ---------- Portfolio ---------- */
.portfolio { padding-top: var(--space-md); }

/* Filter dock: one floating control pinned to the bottom of the screen */
.dock {
  position: fixed; left: 50%; bottom: max(var(--space-2xl), calc(env(safe-area-inset-bottom) + var(--space-md)));
  translate: -50% 0; z-index: var(--z-sticky);
  max-width: calc(100% - 2 * var(--gutter));
  /* Rounded pill on a softly blurred, see-through cream background */
  padding: 5px; border-radius: var(--radius-pill); border: 1px solid var(--ink-12);
  background: var(--paper-85);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: var(--shadow-float);
  animation: dock-in 0.8s 0.6s var(--ease-expo) both; /* lands after the first prints */
}
@keyframes dock-in { from { transform: translateY(calc(100% + 32px)); opacity: 0; } }
.filters {
  position: relative; display: flex; gap: 2px;
  overflow-x: auto; scrollbar-width: none; border-radius: var(--radius-pill);
}
.filters::-webkit-scrollbar { display: none; }
.dock-indicator {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  border-radius: var(--radius-pill); background: var(--ink); pointer-events: none;
  transition: transform 0.5s var(--ease), width 0.5s var(--ease);
}
.filters button {
  position: relative; z-index: 1; flex: none;
  font: var(--weight-semibold) var(--text-base)/1 var(--sans); color: var(--ink-soft); white-space: nowrap;
  padding: 12px 18px; border: 0; border-radius: var(--radius-pill); cursor: pointer; background: none;
  transition: color 0.35s var(--ease), background-color 0.25s var(--ease);
}
.filters button:hover { color: var(--ink); }
.filters button:not([aria-pressed="true"]):hover { background-color: var(--ink-06); }
.filters button[aria-pressed="true"] { color: var(--paper); }
.filters button:focus-visible { outline-offset: -3px; }
.filters .count { margin-left: 6px; font-size: var(--text-xs); font-weight: var(--weight-semibold); opacity: 0.6; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .dock { bottom: max(var(--space-xl), calc(env(safe-area-inset-bottom) + var(--space-sm))); }
  .filters button { font-size: var(--text-md); padding: 12px 16px; }
  .filters .count { display: none; }
}

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 42vw), 1fr));
  gap: var(--space-xl) var(--gap); padding-bottom: var(--space-2xl);
}
.grid .meta span:last-child { display: none; } /* collection name is shown by the group subheading (All) or the active filter */
/* Collection heading on the left, its description right-aligned on the same baseline row */
.group-head {
  grid-column: 1 / -1; margin: calc(var(--space-section) - var(--space-xl)) 0 -4px; /* section gap minus the grid row gap; 28px above the cards */
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-md) 28px;
}
/* Load: each heading rises out of its own line, as if from under a sheet of paper; the description follows */
.group-title { animation: line-up 0.9s var(--ease-expo) both; }
.group-note { animation: rise var(--dur-slow) var(--ease-expo) 0.2s both; }
@keyframes line-up {
  from { transform: translateY(105%); clip-path: inset(-20% 0 105% 0); }
  to { transform: none; clip-path: inset(-20% 0 -20% 0); }
}
.group-head:first-child { margin-top: calc(var(--space-4xl) - var(--space-md)); } /* 96px below the header, less the page padding */
.group-title { margin: 0; }
.group-note {
  margin: 0; max-width: 42ch; text-align: right;
  font-size: var(--text-base); font-weight: var(--weight-medium); line-height: 20px; color: var(--body); text-wrap: pretty;
}
@media (max-width: 760px) {
  .group-head { flex-direction: column; align-items: flex-start; }
  .group-note { text-align: left; }
}
.grid:not([data-filter="all"]) .group-head { display: none; }
/* Prints arrive in reading order, a beat apart (capped), lifting the last few pixels into place */
.card { all: unset; display: block; cursor: zoom-in; animation: card-in 0.8s var(--ease-expo) both; animation-delay: calc(0.25s + var(--n, 0) * 0.05s); }
@keyframes card-in { from { opacity: 0; transform: translateY(24px); } }
.card:focus-visible { outline: var(--focus); outline-offset: 4px; }
.card img { opacity: 0; transition: opacity 0.5s, transform 0.9s var(--ease); }
.card img.loaded { opacity: 1; }
.card:hover img { transform: scale(1.025); }
.card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-xs); margin-top: var(--space-sm); font-size: var(--text-base); font-weight: var(--weight-medium); }
.card .meta span:last-child { font-size: var(--text-xs); letter-spacing: 0.02em; color: var(--ink-soft); white-space: nowrap; } /* .caption */
.card.hide { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-modal); display: none; align-items: center; justify-content: center;
  padding: var(--space-2xl) 80px; background: var(--paper-98);
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-height: 100%; }
.lightbox img { max-height: calc(100svh - 140px); width: auto; user-select: none; }
.lightbox figcaption { margin-top: var(--space-md); font-size: var(--text-base); text-align: center; }
.lightbox figcaption span { color: var(--ink-soft); }
.lb-btn { position: absolute; display: grid; place-items: center; background: none; border: 0; padding: 14px; cursor: pointer; color: var(--ink-soft); transition: color var(--dur-fast); }
.lb-btn:hover { color: var(--ink); }
.lb-close { top: var(--space-sm); right: var(--space-sm); }
.lb-prev { left: var(--space-sm); top: 50%; translate: 0 -50%; }
.lb-next { right: var(--space-sm); top: 50%; translate: 0 -50%; }
@media (max-width: 640px) {
  .lightbox { padding: 64px var(--space-md) 80px; }
  .lb-prev, .lb-next { top: auto; bottom: var(--space-md); translate: none; }
}

/* Artwork gets softly rounded corners on desktop (portfolio grid, homepage carousel and the viewer) */
@media (min-width: 761px) {
  .lightbox img { border-radius: var(--radius-art); }
  .arch-card { border-radius: var(--radius-art-lg); overflow: hidden; }
}

/* ---------- Shop: two cards floating side by side, like cards resting just above the page ---------- */
/* Same "prints on a table" setting as the contact page: header floats over a tinted table with prints scattered under the cards */
.shop-body .site-header { position: absolute; inset: 0 0 auto; background: transparent; border-color: transparent; }
.shop-page {
  position: relative; overflow: clip; background: var(--tint);
  display: flex; align-items: center; justify-content: center;
  min-height: 100svh; padding: calc(var(--header-h) + var(--space-lg)) var(--gutter) var(--space-3xl);
}
.shop-options { position: relative; z-index: 1; }
.shop-options {
  display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); gap: clamp(32px, 5vw, 72px);
  justify-content: center; width: 100%;
}
.shop-option {
  --tilt: -1.2deg; --delay: 0s;
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-lg); aspect-ratio: 4 / 5; text-align: center; text-decoration: none; color: var(--ink);
  padding: clamp(28px, 3.5vw, 48px); /* paper, radius and shadow come from .surface */
  rotate: var(--tilt);
  animation: shop-float 7s var(--delay) ease-in-out infinite alternate;
  transition: box-shadow var(--dur-base) var(--ease), scale var(--dur-base) var(--ease), rotate var(--dur-base) var(--ease);
}
.shop-option + .shop-option { --tilt: 1deg; --delay: -3.5s; }
/* A slow, gentle drift so the cards feel like they're hovering */
@keyframes shop-float { from { translate: 0 -6px; } to { translate: 0 6px; } }
.shop-option:hover, .shop-option:focus-visible {
  rotate: 0deg; scale: 1.02;
  box-shadow: var(--shadow-card-lift);
}
/* Both logos share one height and the descriptions reserve the same space, so everything lines up across the cards */
.shop-logo { height: 64px; width: 100%; max-width: 300px; object-fit: contain; }
.shop-logo-rpm { mix-blend-mode: multiply; } /* drops the logo's white background */
.shop-desc { font-size: var(--text-md); color: var(--body); max-width: 30ch; line-height: var(--leading-snug); min-height: 6em; }
@media (max-width: 760px) {
  .shop-page .table-prints .tp-2, .shop-page .table-prints .tp-4 { display: none; }
  .shop-options { grid-template-columns: minmax(0, 340px); }
  .shop-option { aspect-ratio: 5 / 4; }
}

/* ---------- 404 ---------- */
.not-found {
  min-height: 72svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-md); padding: var(--space-3xl) 0; text-align: center;
}
.not-found .email-link { display: inline-block; margin-top: var(--space-xl); }

/* ---------- Contact ---------- */
/* Contact: the back of a postcard lying on a table strewn with Emily's prints. The stamp is her Limoncello print,
   the address lines are how to reach Emily. The header floats transparently so the table runs to the top. */
.contact-page .site-header { position: absolute; inset: 0 0 auto; background: transparent; border-color: transparent; }
.contact {
  display: grid; place-items: center; min-height: 100svh; background: var(--tint); overflow: clip;
  padding: calc(var(--header-h) + var(--space-lg)) var(--gutter) var(--space-3xl); position: relative;
}

/* Prints scattered on the table, cropped by the screen edges and tucked under the card */
.table-prints img {
  position: absolute; width: clamp(160px, 17vw, 280px); height: auto; rotate: var(--r);
  box-shadow: var(--shadow-print);
  animation: table-in 0.8s calc(var(--d, 0) * 1s) var(--ease) both;
}
@keyframes table-in { from { opacity: 0; translate: 0 12px; } }
.table-prints .tp-1 { left: -3vw; top: 14%; --d: 0; }
.table-prints .tp-2 { left: 6vw; bottom: -12%; --d: 0.08; }
.table-prints .tp-3 { right: -2vw; top: 6%; --d: 0.16; }
.table-prints .tp-4 { right: 7vw; bottom: -16%; --d: 0.24; }
.table-prints .tp-5 { left: 30%; top: -14%; width: clamp(140px, 13vw, 220px); --d: 0.32; }

.postcard {
  --pad: clamp(28px, 3.6vw, 56px);
  position: relative; z-index: 1; width: min(1080px, 100%, (100svh - var(--header-h) - 96px) * 1.5); aspect-ratio: 3 / 2;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: var(--pad);
  /* paper, radius and shadow come from .surface */
  rotate: -0.8deg;
  animation: card-in 1s 0.1s var(--ease-expo) both;
}
@keyframes card-in {
  from { opacity: 0; translate: 0 -48px; rotate: -4deg; scale: 1.03;
         box-shadow: 0 1px 2px color-mix(in oklch, var(--ink) 0%, transparent), 0 80px 100px -40px color-mix(in oklch, var(--ink) 25%, transparent); }
  40% { opacity: 1; }
}

/* Left: the message */
.pc-message { display: flex; flex-direction: column; padding-right: var(--pad); }
.pc-message .display-title { font-size: var(--display-md); margin: var(--space-lg) 0 0 -0.04em; }
.pc-message .lede { margin-top: var(--space-lg); font-size: var(--text-lg); line-height: 1.55; max-width: 30ch; }
.pc-sign { margin: var(--space-xl) 0 0; font-size: var(--text-lg); }

/* Right: stamp, postmark and address lines, split from the message by the printed centre line */
.pc-address {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-2xl);
  border-left: 1px solid var(--rule); padding-left: var(--pad);
}
.pc-spine {
  position: absolute; left: 0; top: 50%; margin: 0; translate: -50% -50%; rotate: 180deg;
  writing-mode: vertical-rl; white-space: nowrap; padding: var(--space-sm) 0; background: var(--paper);
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft);
}

.pc-stamp-area { position: relative; display: flex; justify-content: flex-end; }
/* Perforated edge: a solid centre plus a grid of holes whose centres sit exactly on the stamp's edges */
.stamp {
  --hole: 14px;
  position: relative; display: block; flex: none;
  width: calc(var(--hole) * 11); height: calc(var(--hole) * 14); padding: 8px;
  background: oklch(0.995 0.003 80);
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle, #0000 3.6px, #000 4px) calc(var(--hole) / -2) calc(var(--hole) / -2) / var(--hole) var(--hole);
          mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle, #0000 3.6px, #000 4px) calc(var(--hole) / -2) calc(var(--hole) / -2) / var(--hole) var(--hole);
  rotate: 2deg; transition: rotate 0.5s var(--ease), translate 0.5s var(--ease);
}
.pc-stamp-area { filter: drop-shadow(0 1px 1px color-mix(in oklch, var(--ink) 14%, transparent)) drop-shadow(0 6px 10px color-mix(in oklch, var(--ink) 8%, transparent)); }
.stamp:hover { rotate: 0deg; translate: 0 -3px; }
.stamp-face { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; }
.stamp-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* Postmark: lands a beat after the card, slightly askew, overlapping the stamp */
.postmark {
  position: absolute; z-index: 1; right: 112px; top: 150px; width: 240px; height: auto;
  color: var(--wine); opacity: 0.78; mix-blend-mode: multiply; rotate: -9deg; pointer-events: none;
  animation: postmark-in 0.35s 1.05s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}
@keyframes postmark-in { from { opacity: 0; scale: 1.25; } }

/* Address lines */
.pc-lines { list-style: none; margin: 0; padding: 0; }
.pc-lines li {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-xs) var(--space-lg);
  min-height: 52px; padding: 14px 0 10px; border-bottom: 1px solid var(--ink-45);
}
.contact .email-link {
  font-size: var(--text-xl); line-height: 1.25; letter-spacing: -0.01em;
  text-decoration: none; overflow-wrap: anywhere; padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--dur-base) var(--ease), color var(--dur-fast);
}
.contact .email-link:hover { background-size: 100% 1px; color: var(--wine); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; flex: none;
  font: var(--weight-medium) var(--text-sm)/1 var(--sans); color: var(--ink-soft); cursor: pointer; background: none; border: 0;
  transition: color var(--dur-fast);
}
.copy-btn:hover { color: var(--ink); }
.copy-btn .i-done, .copy-btn.done .i-copy { display: none; }
.copy-btn.done .i-done { display: block; }
.copy-btn.done { color: var(--wine); }
.pc-lines .pc-links { justify-content: flex-start; column-gap: var(--space-xl); }
.pc-links a { text-decoration: none; transition: color var(--dur-fast); }
.pc-links a:hover { color: var(--wine); }
.pc-links a span { display: inline-block; color: var(--ink-soft); transition: translate 0.35s var(--ease), color var(--dur-fast); }
.pc-links a:hover span { color: currentColor; translate: 2px -2px; }

/* Narrower screens: the card turns portrait, message above, address below */
@media (max-width: 900px) {
  .postcard { width: min(560px, 100%); aspect-ratio: auto; grid-template-columns: 1fr; rotate: -0.5deg; }
  .pc-message { padding: 0 0 var(--space-2xl); }
  .pc-address { border-left: 0; border-top: 1px solid var(--rule); padding: var(--space-xl) 0 0; }
  .pc-spine { display: none; }
  .table-prints .tp-2, .table-prints .tp-4 { display: none; }
  .table-prints .tp-5 { left: auto; right: 18%; top: auto; bottom: -4%; }
}
@media (max-width: 480px) {
  .postcard { rotate: 0deg; }
  .stamp { --hole: 11px; }
  .postmark { width: 200px; right: 86px; top: 112px; }
}

/* ---------- Footer: a pit of Emily's icon balls to flick around ---------- */
.pit {
  position: relative; height: clamp(300px, 48svh, 520px); overflow: hidden;
  border-top: 1px solid var(--rule); touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.pit-ball {
  position: absolute; left: 0; top: 0; border-radius: 50%;
  background: url("/images/site/ball.png") center / cover no-repeat;
  box-shadow: 0 10px 18px -12px var(--ink-45);
  cursor: grab; touch-action: none; will-change: transform;
}
.pit-ball.is-held { cursor: grabbing; }
/* Footer hidden for now: delete this line to bring the ball pit back */
.pit { display: none; }
/* The floating filter bar steps aside while the pit is on screen */
.dock { transition: opacity 0.3s var(--ease), visibility 0.3s; }
body.pit-visible .dock { opacity: 0; visibility: hidden; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
