/*
 * The shop front.
 *
 * Built on theme.css, so it inherits the same paper, the same terracotta and
 * the same dark mode as the editor and the documents — a visitor should not be
 * able to tell that the page they landed on and the tool they end up in were
 * laid out by different files.
 *
 * Two rules run through all of it. EB Garamond carries every heading and Inter
 * every line meant to be read, because that split is the brand; and colour is
 * rationed — terracotta marks exactly three things (the wordmark comma, the
 * eyebrow, the hairline under a hovered card) and nothing else competes.
 *
 * No JavaScript is loaded by this page and none is needed: the only moving
 * parts are hover states and a <details>.
 */

/* ------------------------------------------------------------- scaffold */

.home-body {
  min-height: 100%;
  background: var(--bg);
}

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

.wrap-narrow { max-width: 760px; }

/* Visible only once it has focus, which is the whole point of it. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- type */

.home-body h1,
.home-body h2,
.home-body .step-n {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 400;
  /* Off, not tightened. A didone wants its hairlines pulled together at
     display size; an old-style is already snug and only reads cramped. */
  letter-spacing: -0.005em;
  color: var(--ink);
}

.home-body h1 em {
  font-style: italic;
  /* The one italic on the page. It lands on the last two words of the
     headline, where the sentence turns from a description into a claim. */
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--brand);
}

.lede {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(15px, 1.5vw, 17.5px);
  line-height: 1.62;
  color: var(--ink-soft);
}

/* -------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: Inter, sans-serif;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.btn-solid {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  box-shadow: 0 1px 2px rgba(22, 19, 15, 0.12), 0 10px 22px -14px rgba(22, 19, 15, 0.55);
}

.btn-solid:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(22, 19, 15, 0.14), 0 16px 30px -16px rgba(22, 19, 15, 0.6); }
.btn-solid:active { transform: none; }

.btn-sm { padding: 8px 16px; font-size: 12.5px; }
.btn-lg { padding: 15px 30px; font-size: 15px; letter-spacing: 0.005em; }

.btn:focus-visible,
.site-nav a:focus-visible,
.moments a:focus-visible,
.foot-col a:focus-visible,
.wordmark:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

@media (prefers-reduced-motion: reduce) {
  .btn, .moments a, .gallery figure { transition: none; }
  .btn-solid:hover { transform: none; }
}

/* --------------------------------------------------------------- header */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}

.site-head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 62px;
}

/* The lockup is .wordmark, in theme.css. The header takes it at full size;
   the footer takes the small variant. */

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav > a:not(.btn) {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}
.site-nav > a:not(.btn):hover { color: var(--ink); }

/* ----------------------------------------------------------------- hero */

.hero {
  padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px);
  background: var(--stage);
  border-bottom: 1px solid var(--line);
}

/*
 * Three areas rather than two columns, so the phone can put the poster between
 * the promise and the button: the words say what it is, the picture proves it,
 * and only then is anyone asked to act. On a wide screen the words and the
 * button go back together and the poster takes the right-hand side.
 */
.hero-in {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
  grid-template-areas: "copy" "art" "act";
}

.hero-copy { grid-area: copy; }
.hero-art  { grid-area: art; }
.hero-act  { grid-area: act; }

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.75rem, 7.2vw, 4.8rem);
  line-height: 1.04;
}

.hero-act { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

.hero-price {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--muted);
}

/* A tick drawn in the accent, rather than an emoji that renders as a different
   picture on every platform the page lands on. */
.proof li {
  position: relative;
  padding-left: 17px;
}
.proof li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 9px;
  height: 5px;
  border-left: 1.6px solid var(--brand);
  border-bottom: 1.6px solid var(--brand);
  transform: rotate(-45deg);
}


/* --------------------------------------------------------- hero search */

/* Visually hidden, still read aloud. */
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.hero-search {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 520px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--r-sm) + 6px);
  background: var(--panel);
  box-shadow: var(--shadow-card);
}
.hero-search:focus-within { border-color: var(--focus); box-shadow: 0 0 0 4px var(--focus-soft); }
.hero-search input {
  flex: 1;
  min-width: 0;
  /* theme.css fixes every search box at 36px tall; this one has to match the
     button beside it, or the hint sits at the top of the bar. */
  height: auto;
  align-self: stretch;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  padding: 0 10px;
  font: inherit;
  font-size: 16px;            /* 16px or iOS zooms the page on focus */
  color: var(--ink);
  outline: none;
}
.hero-search input::placeholder { color: var(--faint); }
.hero-search input:focus-visible { box-shadow: none; }   /* the bar shows focus */
.hero-search .btn { flex: none; white-space: nowrap; }

/* ------------------------------------------------------- season strip */

.season {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 11px 20px;
  background: #1f3a2e;
  color: #f4efe6;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
}
.season strong { color: #f0c987; font-weight: 600; }
.season:hover strong { text-decoration: underline; }

/* ------------------------------------------------------ language switch */

.site-nav .langswitch {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.site-nav .langswitch:hover { color: var(--brand); }

/* ------------------------------------------------------------- posters */

/*
 * The paper. A poster is a physical object and the page should say so before
 * the visitor reads a word: a warm sheet, a real shadow, and a hairline that
 * stands in for the cut edge.
 */
.frame {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 1px 1px rgba(22, 19, 15, 0.10),
    0 12px 26px -10px rgba(22, 19, 15, 0.28),
    0 40px 70px -40px rgba(22, 19, 15, 0.5);
}

/* The cut edge. An inset hairline reads as the paper's own edge; a border
   would read as a frame the poster does not come with. */
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(22, 19, 15, 0.07);
  pointer-events: none;
}

.mock { display: block; width: 100%; height: auto; }

.hero-art .frame {
  max-width: 366px;
  margin: 0 auto;
  transform: rotate(-1.4deg);
}

/* --------------------------------------------------------------- bands */

.band { padding: clamp(56px, 8vw, 96px) 0; }
.band-sunk { background: var(--sunk); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.band-head { margin: 0 0 clamp(28px, 4vw, 44px); max-width: 44ch; }

.band-head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.9vw, 2.8rem);
  line-height: 1.14;
}

.band-head p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------ occasions */

.moments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.moments a {
  position: relative;
  display: block;
  height: 100%;
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

/* The hairline is the whole hover: six cards that each fill with colour is a
   lot of colour, and the rule reads as the card being picked out rather than
   switched on. */
.moments a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 0;
  background: var(--brand);
  transition: width 0.24s ease;
}

.moments a:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.moments a:hover::before,
.moments a:focus-visible::before { width: 100%; }

.moment-ico {
  display: block;
  width: 26px;
  height: 26px;
  margin-bottom: 14px;
  color: var(--brand);
}
.moment-ico svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.moments strong {
  display: block;
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.moment-line {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* ----------------------------------------------------------------- how */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(26px, 4vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li { position: relative; padding-top: 6px; }

.step-n {
  display: block;
  font-size: 45px;
  line-height: 1;
  color: var(--faint);
  margin-bottom: 12px;
}

.steps h3 {
  margin: 0 0 6px;
  font-family: Inter, sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
}

.steps p {
  margin: 0;
  font-size: 14px;
  line-height: 1.62;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------- gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(18px, 3vw, 34px);
  align-items: end;
}

.gallery figure { margin: 0; }

/* The two middle sheets stand slightly proud of their neighbours — enough to
   give the row a centre, not enough to look like an accident. */
.gallery figure:nth-child(2) .frame,
.gallery figure:nth-child(3) .frame { transform: translateY(-14px); }

/* The blank sheet: the same shape as a poster, drawn as an outline, so it
   reads as "yours goes here" rather than as a missing picture. */
.frame-own {
  aspect-ratio: 210 / 297;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--panel);
  border: 1.5px dashed var(--line-strong);
  box-shadow: none;
  transition: border-color .15s, transform .15s;
}
.frame-own::after { display: none; }
.frame-own:hover { border-color: var(--brand); }
.frame-own:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.own-plus {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--panel);
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  transition: background .15s;
}
.frame-own:hover .own-plus { background: var(--brand); }
.frame-own strong {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.15;
}
.own-line { font-size: 12.5px; line-height: 1.5; color: var(--muted); }

.gallery figcaption {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

.gallery figure:nth-child(2) figcaption,
.gallery figure:nth-child(3) figcaption { margin-top: 2px; }

.gallery-more {
  margin: clamp(26px, 4vw, 38px) 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------- close */

.closing {
  padding: clamp(60px, 9vw, 110px) 0;
  text-align: center;
  background: var(--stage);
  border-top: 1px solid var(--line);
}

.closing h2 {
  margin: 0 0 14px;
  font-size: clamp(2.15rem, 4.9vw, 3.45rem);
  line-height: 1.1;
}

.closing p {
  margin: 0 auto 26px;
  max-width: 46ch;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink-soft);
}

.closing-note {
  margin: 18px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* ----------------------------------------------------------------- faq */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 18px 40px 18px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

/* A plus that becomes a minus. Two bars, one of which stops turning. */
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 13px;
  height: 1.5px;
  background: var(--muted);
  transition: transform 0.2s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }

.faq summary:hover { color: var(--brand); }
.faq summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }

.faq details p {
  margin: -4px 0 20px;
  padding-right: 40px;
  font-size: 14.5px;
  line-height: 1.66;
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  .faq summary::before, .faq summary::after { transition: none; }
}

/* -------------------------------------------------------------- footer */

.site-foot {
  padding: clamp(40px, 6vw, 64px) 0 48px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.site-foot-in {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
}


/* The descriptor is the lockup's second line here too, so it lines up under
   the name rather than under the pin, and the 17px of slack that a separate
   paragraph left below an inline-flex box goes with it. */
.foot-brand { --wordmark-note: 13px; }
.foot-brand .wordmark-note { max-width: 30ch; }

.foot-col { display: flex; flex-direction: column; gap: 9px; }

.foot-h {
  margin: 0 0 3px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.foot-col a {
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  width: fit-content;
}
.foot-col a:hover { color: var(--brand); }

/* ------------------------------------------------------------ wide view */

@media (min-width: 860px) {
  .hero-in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    grid-template-areas:
      "copy art"
      "act  art";
    align-items: start;
    column-gap: clamp(40px, 6vw, 80px);
    row-gap: 32px;
  }

  /* Pinned to the top rather than centred on the text: centred, it moved
     whenever the headline took another line, as it does in Bulgarian, and
     the poster jumped every time the language changed. */
  .hero-art { align-self: start; }
  .hero-art .frame { max-width: 420px; transform: rotate(-1.8deg); }

  .gallery { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 859px) {
  /* The raised middle poster needs three abreast to read as a centre. Below
     that it is just one sheet sitting oddly higher than its neighbours. */
  .gallery { align-items: start; }
  .gallery figure:nth-child(2) .frame,
  .gallery figure:nth-child(3) .frame { transform: none; }
  .gallery figure:nth-child(2) figcaption,
  .gallery figure:nth-child(3) figcaption { margin-top: 16px; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .site-nav { gap: 14px; }

  /* The button stays. It is the only call to action on screen once the hero
     has scrolled away, and it is why the fold below matters less here. */
  .site-nav > a:not(.btn):not(.langswitch) { display: none; }

  /* Search before poster on a phone: the box is the call to action, and it
     has to be on the first screen. The poster proves it just below. */
  .hero-in { grid-template-areas: "copy" "act" "art"; }
  .hero h1 { font-size: 2.5rem; margin-bottom: 14px; }
  .hero-search { flex-direction: column; max-width: none; }
  .hero-search input { padding: 12px 10px; }
  .hero-search .btn { width: 100%; }

  /* Sized so the whole sheet — type included — lands inside the first screen
     on a phone. A bigger poster cut off at the city name proves less than a
     smaller one a visitor can see all of. */
  .hero-art .frame { max-width: 292px; }

  .hero-act { align-self: stretch; }

  /* All three, stacked. They are the product; scrolling past three posters is
     not a cost worth saving on a page that exists to show them. */
  .gallery { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; gap: 30px; }

  .site-foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
