/* The site's two typefaces, served from this site rather than Google Fonts
   (same files, Latin set; licences in /fonts). */
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300; font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-300-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("/fonts/jost-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/jost-latin-400-normal.woff2") format("woff2");
}

/* P & S — black on warm white, thin serif, wide-tracked small caps,
   no rounded corners, one muted bronze accent. Written phone-first:
   the base rules are the mobile layout, the media query widens it. */
:root {
  --ink: #0a0a0a;
  --ink-soft: #2b2724;
  --paper: #faf9f7;
  --paper-warm: #f3f0eb;
  --muted: #6b6560;
  --line: #e2ded8;
  --accent: #8c7b6b;
  --accent-text: #6c5c4d; /* the accent at a contrast that's readable as small text */
  --display: "Cormorant Garamond", "Didot", Georgia, serif;
  --body: "Jost", "Futura", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-size-adjust: 100%;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; letter-spacing: 0.01em; margin: 0; }
::selection { background: var(--ink); color: var(--paper); }

.eyebrow {
  margin: 0;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}
/* The P&S monogram, same artwork as the footer mark, sized up. */
.wordmark { display: block; line-height: 0; }
.wordmark img { display: block; width: 104px; height: auto; }

.link-underline { position: relative; }
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 300ms ease;
}
@media (hover: hover) {
  .link-underline:hover::after { transform: scaleX(1); transform-origin: left; }
}

.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 48px; /* comfortable thumb target */
  padding: 0.8rem 1.25rem;
  font-family: var(--body); font-size: 0.6875rem;
  text-transform: uppercase; letter-spacing: 0.22em;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: background 200ms ease, color 200ms ease;
}
.btn-outline { background: transparent; color: var(--ink); }
.btn:active { background: var(--ink); color: var(--paper); }
@media (hover: hover) {
  .btn:hover { background: transparent; color: var(--ink); }
  .btn-outline:hover { background: var(--ink); color: var(--paper); }
}

/* Header */
.site-header {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  padding: 1.5rem 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

/* Intro */
.intro {
  max-width: 40rem; margin: 0 auto; text-align: center;
  padding: 2.5rem 1.25rem 2rem;
}
.intro h1 { font-size: clamp(2rem, 8vw, 3.5rem); line-height: 1.1; margin: 0.75rem 0 1rem; }
.lede { color: var(--ink-soft); font-size: 1rem; margin: 0; }

/* A look */
.look {
  display: grid; gap: 1.25rem;
  grid-template-areas: "head" "fig" "copy";
  max-width: 72rem; margin: 0 auto;
  padding: 0.5rem 1rem 3rem;
}
.look-head { grid-area: head; text-align: center; }
.look-head h1 { font-size: clamp(1.875rem, 7vw, 2.75rem); line-height: 1.15; margin: 0.4rem 0 0; }
.look-figure { grid-area: fig; margin: 0 -1rem; background: var(--paper-warm); } /* edge to edge on phones */
.look-figure img { width: 100%; height: auto; }
.look-copy { grid-area: copy; }
.jump {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; margin-top: 1rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.rule { width: 3rem; height: 1px; background: var(--accent); margin: 1.75rem 0; }
.pieces { scroll-margin-top: 1rem; }

.pieces { list-style: none; margin: 0; padding: 0; }
.piece {
  display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.piece:first-child { padding-top: 0; }
.piece-thumb { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-warm); }
.piece-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) { .piece-thumb:hover img { transform: scale(1.04); } }
.piece-body h3 { font-size: 1.25rem; line-height: 1.25; margin: 0.25rem 0 0.75rem; }
.piece-body .btn { margin-top: 0.25rem; }

.note {
  margin: 0 0 1rem;
  padding: 0.6rem 0.85rem;
  border-left: 1px solid var(--accent);
  background: var(--paper-warm);
  font-size: 0.875rem; color: var(--ink-soft);
}
.note-label {
  display: block;
  font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--accent-text); margin-bottom: 0.15rem;
}

[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Keyboard focus: a clear ink outline, only for keyboard users. */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn:focus-visible, .chip:focus-visible { outline-offset: 2px; }
main:focus { outline: none; }

/* Hidden until a keyboard user tabs to it. */
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  padding: 0.75rem 1.25rem; background: var(--ink); color: var(--paper);
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.22em;
  transition: top 200ms ease;
}
.skip-link:focus { top: 1rem; }
.how-title { grid-column: 1 / -1; margin: 0 0 -0.5rem; }
h2.eyebrow { font-family: var(--body); font-weight: 300; letter-spacing: 0.22em; }
.ink { color: var(--ink); }

/* Main nav, under the wordmark */
.site-nav {
  display: flex; gap: 1.75rem; margin-top: 0.85rem;
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.22em;
}
.site-nav a { padding: 0.35rem 0; } /* taller tap target without looking bigger */
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Home */
.intro-actions {
  display: flex; flex-direction: column; gap: 0.75rem;
  margin-top: 1.75rem;
}
.looks-section {
  max-width: 72rem; margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 0.5rem;
}
.section-head { text-align: center; margin-bottom: 1.25rem; }
.section-head h2 { font-size: clamp(1.75rem, 6vw, 2.5rem); line-height: 1.15; margin-top: 0.4rem; }

/* Filter chips: one swipeable row on phones rather than wrapping into a pile. */
.chips {
  display: flex; gap: 0.5rem; justify-content: center;
  overflow-x: auto; scrollbar-width: none;
  margin: 0 -1rem 1.75rem; padding: 0 1rem;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: 0 1.1rem;
  font-family: var(--body); font-size: 0.6875rem; font-weight: 300;
  text-transform: uppercase; letter-spacing: 0.18em;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (hover: hover) { .chip:hover { border-color: var(--ink); } }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem 0.75rem;
}
.card-link { display: block; }
.card-image { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-warm); margin-bottom: 0.75rem; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) { .card-link:hover img { transform: scale(1.03); } }
.card h3 { font-size: 1.25rem; line-height: 1.2; margin-top: 0.25rem; }
.empty { text-align: center; padding: 2rem 0; }

.about-teaser {
  max-width: 34rem; margin: 0 auto; text-align: center;
  padding: 3rem 1.25rem 3.5rem; border-top: 1px solid var(--line);
}
.teaser-text { font-family: var(--display); font-size: 1.375rem; line-height: 1.45; margin: 0.9rem 0 1.25rem; }

/* Look page */
.crumbs { max-width: 72rem; margin: 0 auto; padding: 1rem 1rem 0.5rem; }
.crumbs a { display: inline-block; padding: 0.35rem 0; color: var(--ink); }
.tags { margin-top: 0.6rem; }

.pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  max-width: 72rem; margin: 0 auto; padding: 1.5rem 1rem;
  border-top: 1px solid var(--line);
}
.pager-link { display: flex; flex-direction: column; gap: 0.35rem; min-height: 44px; }
.pager-next { text-align: right; align-items: flex-end; }
.pager-title { font-family: var(--display); font-size: 1.125rem; line-height: 1.25; }
.pager-all { text-align: center; padding: 0.5rem 1rem 3rem; }
.pager-all .btn { max-width: 22rem; margin: 0 auto; }

/* About */
.about .lede + .lede { margin-top: 1rem; }
.how {
  display: grid; gap: 1.75rem;
  max-width: 60rem; margin: 0 auto; padding: 2.5rem 1.25rem 2.5rem;
  border-top: 1px solid var(--line);
}
.how-item h3 { font-size: 1.375rem; margin: 0.35rem 0 0.4rem; }
.how-item p:last-child { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; }

/* ---------- Editions (home) ---------- */
.edition { margin-top: 1rem; }
.edition + .edition { margin-top: 3.5rem; }
.edition-head {
  text-align: center; max-width: 32rem; margin: 0 auto 1.75rem;
  padding: 1.25rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line);
}
.edition-head h2 { font-size: clamp(1.75rem, 6vw, 2.25rem); font-style: italic; margin: 0.35rem 0 0.5rem; }
.edition-head .lede { font-size: 0.9375rem; }

/* ---------- Look page: story, palette, shop ---------- */
.story { margin: 2.25rem 0 0; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.story p:not(.eyebrow) {
  font-family: var(--display); font-size: 1.25rem; line-height: 1.55; color: var(--ink-soft);
  margin: 0.9rem 0 0;
}
.story p:nth-of-type(2)::first-letter {
  float: left; font-size: 3.4rem; line-height: 0.85; padding: 0.3rem 0.5rem 0 0; color: var(--ink);
}

.palette { margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.swatches {
  list-style: none; margin: 1rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 0.75rem;
}
.swatch { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; }
.swatch-chip { display: block; width: 100%; aspect-ratio: 2 / 1; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06); }
.swatch-name { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }

.shop { margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.shop-head { margin-bottom: 1.5rem; }
.about-me { margin: 0.6rem 0 0; font-size: 0.875rem; color: var(--ink-soft); font-style: italic; font-family: var(--display); font-size: 1.0625rem; }
.brand { margin: 0.35rem 0 0; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink); }
.piece-body h3 { margin-top: 0.15rem; }
.fit {
  margin: -0.25rem 0 0.9rem; font-size: 0.875rem; color: var(--ink-soft);
}
.fit-label {
  font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--accent-text);
  margin-right: 0.6rem;
}
.whole-look { margin-top: 1.75rem; text-align: center; }

/* "The one I wore" / "Similar for less" */
.piece-label {
  display: inline-block; margin: 0.45rem 0 0; padding: 0.2rem 0.5rem;
  font-size: 0.5625rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--paper); background: var(--ink);
}
.alt .piece-label { color: var(--ink); background: transparent; border: 1px solid var(--line); }
/* Same columns as the piece above it, so pictures, text and buttons line up. */
.alt {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: inherit; gap: inherit; align-items: start;
  margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px dashed var(--line);
}
.alt-thumb { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-warm); }
.alt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.alt-name { font-family: var(--display); font-size: 1.25rem; line-height: 1.25; margin: 0.15rem 0 0.75rem; }
.btn-small { min-height: 42px; }
.link-note {
  margin: 0.5rem 0 0; font-size: 0.6875rem; letter-spacing: 0.06em; color: var(--muted);
}
.whole-look-hint { margin: 0.6rem 0 0; font-size: 0.8125rem; color: var(--muted); }

/* ---------- Privacy & Terms ---------- */
.legal { max-width: 40rem; margin: 0 auto; padding: 2.5rem 1.25rem 3.5rem; }
.legal h1 { font-size: clamp(2rem, 7vw, 2.75rem); line-height: 1.15; margin: 0.6rem 0 1rem; }
.legal .lede { margin-bottom: 0.5rem; }
.legal h2 { font-size: 1.375rem; margin: 2rem 0 0.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.legal p:not(.eyebrow):not(.lede) { margin: 0 0 0.8rem; color: var(--ink-soft); font-size: 0.9375rem; }

/* ---------- Motion ----------
   Slow and decelerating, like fabric settling. Only switched on by app.js
   when the device hasn't asked for reduced motion. */
.motion .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 1100ms cubic-bezier(0.22, 1, 0.36, 1), transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
}
.motion .reveal.in { opacity: 1; transform: none; }
.motion .grid .card:nth-child(3n+2) { transition-delay: 90ms; }
.motion .grid .card:nth-child(3n+3) { transition-delay: 180ms; }

/* Page-to-page crossfade, and the outfit picture gliding from its card into
   the look page (browsers that support cross-page view transitions). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 450ms; }
.site-header { view-transition-name: site-header; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.25rem calc(2.5rem + env(safe-area-inset-bottom)); text-align: center;
}
.footer-mark { display: inline-block; margin-bottom: 1.5rem; opacity: 0.9; }
.footer-mark img { display: block; width: 66px; height: auto; }
.disclosure { max-width: 34rem; margin: 0 auto 1.5rem; font-size: 0.8125rem; color: var(--muted); }
.footer-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-meta > * { padding: 0.35rem 0; }

@media (min-width: 900px) {
  .site-header { padding: 2.25rem 1rem 1.75rem; }
  .wordmark img { width: 124px; }
  .intro { padding: 5rem 1.25rem 3.5rem; }
  .intro-actions { flex-direction: row; justify-content: center; }
  .looks-section { padding: 4rem 2rem 5rem; }
  .grid { grid-template-columns: repeat(auto-fit, minmax(16rem, 21rem)); justify-content: center; gap: 3rem 2rem; }
  .card h3 { font-size: 1.5rem; }
  .crumbs { padding: 2rem 2rem 0; }
  .pager { padding: 2rem; }
  .how { grid-template-columns: repeat(3, 1fr); gap: 3rem; padding: 4rem 2rem; }
  .look {
    grid-template-columns: 1.05fr 1fr; grid-template-rows: auto 1fr;
    grid-template-areas: "fig head" "fig copy";
    column-gap: 4.5rem; row-gap: 1rem; padding: 2rem 2rem 5rem; align-items: start;
  }
  .look-head { text-align: left; }
  .look-figure { margin: 0; position: sticky; top: 2rem; }
  .jump { display: none; }
  .piece { grid-template-columns: 7.5rem 1fr; gap: 1.5rem; }
  .btn { display: inline-flex; width: auto; padding: 0.8rem 1.75rem; }
  .whole-look .btn { width: 100%; }
  .story p:not(.eyebrow) { font-size: 1.3125rem; }
  .swatches { grid-template-columns: repeat(6, 1fr); gap: 0.75rem 0.5rem; }
  .swatch-chip { aspect-ratio: 1; }
}
