/* Show & Tell Prints' site, in Grams for the Fam's clothes: this is www/index.html's
   stylesheet, lifted verbatim so the two read as one family. Change a shared rule in
   both, or in neither. Show & Tell Prints' own additions are at the bottom.
   Paths are relative to this file (img/, not assets/).
   Cloudflare caches this for hours: bump ?v= in the pages' <link> when it changes. */

/* ------------------------------------------------------------------
   The page is a fridge door. Everything on it is an object: a print,
   a note, a sticker, a magnet. Colors come from the photo of our
   actual fridge: the yellow clip magnet, the teal chair, the orange
   tag, the red bubble bottle.
   ------------------------------------------------------------------ */
:root {
  --fridge:   #FAEED3;   /* butter. the page. */
  --mint:     #DCEBE4;   /* one band, the teal chair in the fridge photo */
  --ink:      #222222;
  --ink-2:    #5E554A;
  --paper:    #FFFFFF;   /* notes, index cards, print borders */
  --stock:    #F6F2EA;   /* the postcard's own stock; only on card-back mockups */
  --tomato:   #D9472B;   /* buttons, the price sticker */
  --tomato-2: #B63619;
  --m-yellow: #F2C230;
  --m-orange: #E8752A;
  --m-blue:   #2B4F8E;
  --m-green:  #5B8C5A;

  --measure: 34rem;
  --gutter: 1.25rem;
  --wrap: 74rem;
  --shadow: 0 1px 2px rgba(0,0,0,0.16), 0 8px 16px -8px rgba(0,0,0,0.30);
}

*, *::before, *::after { box-sizing: border-box; }
/* No double-tap zoom (pinch still works). Same as the app. */
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; }
body {
  margin: 0;
  background: var(--fridge);
  color: var(--ink);
  font-family: 'Familjen Grotesk', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
:focus-visible { outline: 3px solid var(--m-blue); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Type. Young Serif for anything big; it's one weight on purpose. */
.serif { font-family: 'Young Serif', Georgia, serif; font-weight: 400; }
.h1 { font-family: 'Young Serif', Georgia, serif; font-weight: 400; font-size: clamp(2.75rem, 5.6vw, 4.5rem); line-height: 1.0; letter-spacing: -0.01em; text-wrap: balance; }
/* The recipient rotates. Reserve the lines so the rest of the hero doesn't jump when a longer name wraps,
   and sit the words on the bottom of that space: the last line stays put above the blurb and a shorter
   recipient gives its spare room to the top, never a gap under "Dad's desk." */
.hero .h1 { min-height: 4em; display: flex; flex-direction: column; justify-content: flex-end; }
@media (min-width: 900px) { .hero .h1 { min-height: 3em; } }
.rot { color: var(--m-blue); }
#h1-rot { transition: opacity 0.25s ease; }
@media (prefers-reduced-motion: reduce) { #h1-rot { transition: none; } }
.h2 { font-family: 'Young Serif', Georgia, serif; font-weight: 400; font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.05; text-wrap: balance; }
.lead { font-size: clamp(1.1875rem, 1.7vw, 1.4375rem); line-height: 1.45; max-width: var(--measure); }
.body { max-width: var(--measure); }
.body p + p { margin-top: 1em; }
.muted { color: var(--ink-2); }
.small { font-size: 0.9375rem; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--tomato); color: #fff;
  font-weight: 700; font-size: 1.0625rem; line-height: 1;
  padding: 1.05rem 1.6rem; border-radius: 8px;
  text-decoration: none; border: 0;
  box-shadow: 0 2px 0 var(--tomato-2);
}
.btn:hover { background: var(--tomato-2); }
.btn-sm { padding: 0.7rem 1.1rem; font-size: 0.9375rem; }

/* A print: the actual product. A full-bleed 4x6 with rounded corners, no border. */
.print { background: var(--stock); border-radius: 14px; box-shadow: var(--shadow); position: relative; }
.print img, .print .todo { width: 100%; border-radius: 14px; }
.print img { aspect-ratio: 3 / 2; object-fit: cover; }
.print.card-back img { aspect-ratio: auto; }

/* A note: a piece of paper with words on it. */
.note { background: var(--paper); padding: 1.75rem 2rem 2rem; box-shadow: var(--shadow); position: relative; }
@media (min-width: 900px) { .note { padding: 2.25rem 2.5rem 2.5rem; } }

/* A magnet. */
.magnet {
  position: absolute; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%;
  top: -13px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.55), rgba(255,255,255,0) 48%), var(--c, var(--m-yellow));
  box-shadow: inset -3px -4px 6px rgba(0,0,0,0.18), 0 2px 3px rgba(0,0,0,0.3);
}
.magnet.orange { --c: var(--m-orange); }
.magnet.blue   { --c: var(--m-blue); }
.magnet.green  { --c: var(--m-green); }
.magnet.left   { left: 14%; }
.magnet.right  { left: 86%; }

/* Header */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.5rem; }
.nav .btn { white-space: nowrap; }
.nav-right { display: flex; align-items: center; gap: 1.25rem; }
.nav-link { color: var(--ink); font-size: 0.9375rem; white-space: nowrap; }
.wordmark { font-family: 'Young Serif', Georgia, serif; font-size: 1.25rem; text-decoration: none; white-space: nowrap; }
@media (min-width: 480px) { .wordmark { font-size: 1.5rem; } }

#promo-banner {
  display: none; align-items: center; justify-content: center; gap: 1rem;
  padding: 0.6rem var(--gutter); background: var(--paper); border-bottom: 2px solid var(--m-yellow); font-size: 0.9375rem;
}
#promo-banner-close { background: none; border: 0; cursor: pointer; font: inherit; color: var(--ink-2); padding: 0; }

/* ------------------------------------------------------------------
   The holiday line. It's allowed to break the butter: one evergreen
   band and a matching banner, so the two read as one campaign.
   ------------------------------------------------------------------ */
:root { --pine: #1F4D3A; --pine-2: #163A2B; --cream: #FFF6E5; --holly: #C8372D; }
.link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.link:hover { color: var(--tomato-2); }

#holiday-banner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1rem;
  padding: 0.6rem var(--gutter); background: var(--pine); color: var(--cream); font-size: 0.9375rem; text-align: center;
}
#holiday-banner[hidden] { display: none; }
@media (max-width: 599px) { #holiday-banner .banner-more { display: none; } }
#holiday-banner .btn { padding: 0.5rem 0.9rem; font-size: 0.875rem; box-shadow: none; }
#holiday-banner-close { background: none; border: 0; cursor: pointer; font: inherit; color: var(--cream); opacity: 0.7; padding: 0.25rem; }
#holiday-banner-close:hover { opacity: 1; }

.hero-holiday { margin-top: 1.25rem; }

.section.holiday {
  background: var(--pine) url("img/holiday-garland.svg") repeat-x 0 0;
  color: var(--cream); padding-top: 8rem;
}
@media (min-width: 900px) { .section.holiday { padding-top: 9rem; } }
.section.holiday .muted { color: #C9E2D3; }
.holiday-list { list-style: none; padding: 0; margin-top: 1.5rem; display: grid; gap: 0.5rem; max-width: var(--measure); }
.holiday-list li { padding-left: 1.6rem; position: relative; }
.holiday-list li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--c, var(--m-yellow)); box-shadow: inset -2px -2px 3px rgba(0,0,0,0.2); }
.holiday-list li:nth-child(2) { --c: var(--holly); }
.holiday-list li:nth-child(3) { --c: #7FB2E5; }
.holiday-list li:nth-child(4) { --c: var(--cream); }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; margin-top: 2rem; max-width: var(--measure); }
@media (max-width: 480px) { .tiers { grid-template-columns: 1fr; } }
.tiers-h { font-family: 'Young Serif', Georgia, serif; font-size: 1.25rem; margin: 0; }
.tiers .small { margin: 0.15rem 0 0.6rem; }
.tiers dl { display: grid; grid-template-columns: auto auto; margin: 0; font-variant-numeric: tabular-nums; }
.tiers dt, .tiers dd { margin: 0; padding: 0.35rem 0; border-top: 1px dashed rgba(255,255,255,0.25); }
.tiers dd { text-align: right; font-weight: 700; }
/* Four backs fanned like a hand of cards. */
.fan { position: relative; width: 100%; max-width: 34rem; aspect-ratio: 1 / 0.95; margin-inline: auto; }
.fan .print { position: absolute; width: 64%; }
.fan .f1 { left: 0;   top: 4%;  transform: rotate(-6deg); z-index: 1; }
.fan .f2 { right: 0;  top: 0;   transform: rotate(4deg);  z-index: 2; }
.fan .f3 { left: 4%;  top: 50%; transform: rotate(3deg);  z-index: 3; }
.fan .f4 { right: 2%; top: 46%; transform: rotate(-3deg); z-index: 4; }

/* Hero */
.hero { padding: 1.25rem 0 4rem; }
.hero-grid { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 2.5rem 0 7rem; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.hero .lead { margin-top: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: 2rem; }
.hero-from { margin-top: 2.25rem; }

/* Portrait prints: a fixed shape, so the cards keep their places at any width. */
.fridge { position: relative; width: 100%; aspect-ratio: 20 / 19; max-width: 34rem; margin-inline: auto; }
.fridge .print { position: absolute; }
.fridge .print.port img { aspect-ratio: 2 / 3; }
.fridge .p1 { width: 47%; left: 1%; top: 6%; transform: rotate(-5deg); z-index: 1; }
.fridge .p2 { width: 46%; right: 1%; top: 22%; transform: rotate(3deg); z-index: 3; }
.fridge .p3 { width: 30%; left: 45%; top: -3%; transform: rotate(6deg); z-index: 2; }

/* Fridge photo with a note stuck on it */
.band { position: relative; }
.band > img { width: 100%; height: 30rem; object-fit: cover; object-position: center 30%; }
@media (min-width: 900px) { .band > img { height: 46rem; } }
.band-note { max-width: 34rem; margin: -4rem var(--gutter) 0; transform: rotate(-1.5deg); }
@media (min-width: 900px) { .band-note { position: absolute; left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); bottom: 4rem; margin: 0; transform: rotate(-2deg); } }
.band-note .h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.band-note p { margin-top: 1rem; }

/* Sections are objects laid out loosely, not rows of cards. */
.section { padding: 5rem 0; }
@media (min-width: 900px) { .section { padding: 7rem 0; } }
.section.mint { background: var(--mint); }
.two { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.two .h2 + .body, .two .h2 + .lead { margin-top: 1.25rem; }
.obj { position: relative; padding-top: 14px; }

/* How it works: a real sequence, so real numbers. */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1.5rem; max-width: var(--measure); margin-top: 2rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.75rem 1fr; gap: 0.5rem; align-items: start; }
.steps li::before { content: counter(step) "."; font-family: 'Young Serif', Georgia, serif; font-size: 2rem; line-height: 1; color: var(--tomato); }
.steps b { display: block; font-weight: 700; font-size: 1.1875rem; margin-bottom: 0.15rem; }

/* Price: a sticker. */
.sticker {
  width: clamp(12rem, 22vw, 16rem); aspect-ratio: 1; border-radius: 50%;
  background: var(--tomato); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform: rotate(-8deg); box-shadow: var(--shadow);
  text-align: center; line-height: 1;
}
.sticker .price { font-family: 'Young Serif', Georgia, serif; font-size: clamp(3rem, 6vw, 4.25rem); letter-spacing: -0.02em; }
.sticker .for { font-weight: 700; font-size: 1rem; margin-top: 0.5rem; }
.includes { list-style: none; padding: 0; display: grid; gap: 0.5rem; max-width: var(--measure); }
.includes li { padding-left: 1.6rem; position: relative; }
.includes li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--m-yellow); box-shadow: inset -2px -2px 3px rgba(0,0,0,0.15); }

/* Prototype-only placeholder for photos not yet shot. Delete when the photo exists. */
.todo { aspect-ratio: 3 / 2; border: 2px dashed rgba(0,0,0,0.25); display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; color: var(--ink-2); font-size: 0.9375rem; background: rgba(255,255,255,0.4); }

footer { padding: 3rem 0 3.5rem; font-size: 0.9375rem; color: var(--ink-2); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
  

/* ------------------------------------------------------------------
   Show & Tell Prints' own: the logo lockup (brand/showandtell/BRAND.md)
   and the questions list.
   ------------------------------------------------------------------ */
/* The mark, then "Show & Tell" in Young Serif over "Prints + voice grams". --size is
   line 1's; everything else follows it. */
.st-logo { --size: 1.45rem; display: inline-flex; align-items: center; gap: calc(var(--size) * 0.3);
           color: var(--ink); text-decoration: none; line-height: 1; }
@media (min-width: 480px) { .st-logo { --size: 1.65rem; } }
.st-logo img { height: calc(var(--size) * 1.95); width: auto; }
.st-logo__words { display: flex; flex-direction: column; }
.st-logo__name { font-family: 'Young Serif', Georgia, serif; font-size: var(--size); letter-spacing: -0.01em; white-space: nowrap; }
.st-logo__sub { font-size: calc(var(--size) * 0.48); color: var(--ink-2); margin-top: calc(var(--size) * -0.02); white-space: nowrap; }
/* The footer's short form: the mark and line 1. */
footer .st-logo { --size: 1.1rem; }
footer .st-logo .st-logo__sub { display: none; }
footer .foot p { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; }
/* The logo is wider than Grams' wordmark: on a phone the nav keeps just the button. */
@media (max-width: 520px) { .nav .nav-link { display: none; } }
.faq { max-width: var(--measure); margin-top: 1.5rem; }
.faq dt { font-weight: 700; margin-top: 1.25rem; }
.faq dd { margin: 0.25rem 0 0; color: var(--ink-2); }

/* The "Start a shop" form: a note on the door, with fields ruled like an index card. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
#start { scroll-margin-top: 1rem; }
.start-note { max-width: 32rem; width: 100%; }
.start-form { display: grid; gap: 1.1rem; }
/* display: grid above would beat the hidden attribute, and the form has to go away
   once it is sent. */
.start-form[hidden], .start-note [hidden] { display: none; }
.start-form label { display: block; font-weight: 700; font-size: 1rem; }
.start-form label .muted { font-weight: 400; }
.start-form input, .start-form textarea {
  font: inherit; font-weight: 400; font-size: 1.0625rem; color: var(--ink);
  display: block; width: 100%; margin-top: 0.35rem; padding: 0.7rem 0.8rem;
  background: var(--paper); border: 1.5px solid #CFC6B6; border-radius: 8px;
}
.start-form textarea { resize: vertical; min-height: 6rem; }
.start-form input:focus-visible, .start-form textarea:focus-visible { outline-offset: 1px; border-color: var(--m-blue); }
.start-form .btn { justify-self: start; cursor: pointer; font-family: inherit; }
.start-form .btn:disabled { opacity: 0.6; cursor: default; }
.start-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.start-error { color: var(--tomato-2); font-weight: 500; }
.start-done-h { font-size: 1.75rem; line-height: 1.15; margin-bottom: 0.5rem; }
#start-done:focus { outline: none; }
