/* Weather Fables — syderalis.com/weatherfables
   One responsive page. The canvas sources in design/website-live/ are two FIXED mockups,
   1440 and 390; this is the single fluid page they describe. Every colour, radius, mask and
   animation below is lifted from those sources unchanged — only the sizing is made fluid.

   No javascript. No tracking. The only outside request is Google Fonts, which the live CSP
   already allows (style-src fonts.googleapis.com, font-src fonts.gstatic.com).

   THE LETTERING: Bradley Hand is asked for BY NAME and never shipped. Apple devices and
   Windows-with-Office have their own copy; everyone else falls back to Patrick Hand. The font
   file is never put on the site — that would need a licence we deliberately refused. */

:root {
  --ink: #2B2620;
  --ink-soft: #6B4E32;
  --parchment: #EFE4C8;
  --parchment-deep: #E9DCBD;
  --amber: #E4A24A;
  /* 20px on a phone and 120px at 1440 — the two widths the design was actually drawn at.
     A single clamp cannot hit both: clamp(20px, 5.2vw, 120px) resolves to 75px at 1440,
     which quietly widened the content from the approved 1200 to 1290. Two rules instead. */
  --pad: 20px;
  --folk: 168px;
  /* the feathered rectangle: two linear gradients intersected, so a picture's own edge
     dissolves into the parchment while keeping the shape it was painted in */
  --feather:
    linear-gradient(to right, rgba(0,0,0,0) 0%, #000 8%, #000 92%, rgba(0,0,0,0) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, #000 6%, #000 94%, rgba(0,0,0,0) 100%);
}

/* Above phone width the margin grows to the 120px the desktop design was drawn with,
   reaching it at 1430 and holding there. Below 700 it stays at the phone's 20px. */
@media (min-width: 700px) {
  :root { --pad: clamp(24px, 8.4vw, 120px); }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* The parchment and its grain live on the BODY, not on the .paper container. The canvas
   sources were fixed 1440 boards, so this never arose there — but a real page has a
   max-width, and on a window wider than 1440 the body showed either side of it in a
   different tone (#E9DCBD, untextured) against the page's #EFE4C8. Same paper everywhere
   now, and .paper is only a width. */
body {
  margin: 0;
  background-color: var(--parchment);
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.30 0 0 0 0 0.22 0 0 0 0 0.12 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: "Bradley Hand", "Bradley Hand ITC", "Patrick Hand", "Comic Sans MS", cursive;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--ink-soft); text-decoration-color: rgba(228,162,74,.9); text-underline-offset: 4px; }
a:hover { color: var(--ink); }
h1, h2, h3, p { margin: 0; font-weight: normal; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
img { max-width: 100%; }

.ui { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; }

/* only a width now — the paper itself is painted on the body, so the surround matches.
   No overflow:hidden: it would clip the darker bands' bleed back to 1440. */
.paper {
  max-width: 1440px;
  margin: 0 auto;
}

/* hand-drawn boxes ------------------------------------------------------- */
.ink  { border: 2px solid var(--ink); border-radius: 22px 16px 24px 14px / 14px 24px 16px 22px; }
.ink2 { border: 2px solid var(--ink); border-radius: 16px 24px 14px 22px / 22px 14px 24px 16px; }
.card { background: rgba(239,228,200,.94); box-shadow: 2px 3px 0 rgba(43,38,32,.20); }

.btn {
  min-height: 60px; padding: 0 32px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: clamp(21px, 1.8vw, 25px); color: var(--ink);
  background: rgba(228,162,74,.62);
  border: 2.5px solid var(--ink);
  border-radius: 26px 18px 28px 16px / 16px 28px 18px 26px;
  box-shadow: 2px 3px 0 rgba(43,38,32,.22);
  text-decoration: none;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 34px; padding: 6px 14px;
  font-size: clamp(16px, 1.4vw, 19px); color: var(--ink);
  background: rgba(239,228,200,.92);
  border: 1.5px solid var(--ink);
  border-radius: 14px 10px 16px 9px / 9px 16px 10px 14px;
  box-shadow: 1px 2px 0 rgba(43,38,32,.18);
}

.softrule {
  position: absolute; left: var(--pad); right: var(--pad); top: 0; height: 2px;
  background: linear-gradient(90deg, rgba(43,38,32,0), rgba(43,38,32,.30) 18%, rgba(43,38,32,.30) 82%, rgba(43,38,32,0));
}
/* the cover's rule is the one exception: the hero runs to its own edge with no padding
   under it, so at top:0 the rule welds itself to the painting. 35px centres it. */
.softrule--cover { top: 35px; }

/* pictures ---------------------------------------------------------------- */
.page { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.soft {
  -webkit-mask-image: var(--feather); -webkit-mask-composite: source-in;
  mask-image: var(--feather); mask-composite: intersect;
}
/* The cover feathers on all four sides, exactly like every other painting. It used to fade
   on three, solid from the left, because it was written for a full-bleed hero — but the page
   has a max-width, so on a wider window the cover starts at the container's edge with
   parchment beside it, and an opaque left edge reads as a hard vertical line. Third fault of
   this same kind: a fixed-1440 assumption that only shows up in a window wider than 1440. */
.softHero {
  -webkit-mask-image: var(--feather); -webkit-mask-composite: source-in;
  mask-image: var(--feather); mask-composite: intersect;
}

/* the sixteen, breathing on page one and nowhere else ---------------------- */
@keyframes breathe {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-9px) rotate(-1deg); }
}
.folkgrid { display: flex; flex-wrap: wrap; justify-content: center; gap: 34px 28px; }
.folkgrid > div { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; width: var(--folk); }
.folkgrid img { display: block; width: var(--folk); height: var(--folk); object-fit: contain; animation: breathe 5.5s ease-in-out infinite; }
.folkgrid > div:nth-child(2n) img { animation-delay: -1.3s; }
.folkgrid > div:nth-child(3n) img { animation-delay: -2.7s; }
.folkgrid > div:nth-child(5n) img { animation-delay: -4.0s; }
.folkgrid .name { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.05; }
.folkgrid .what { font-size: clamp(13px, 1.1vw, 16px); color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .folkgrid img { animation: none; } }

/* layout ------------------------------------------------------------------ */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--pad); }
.bar a { display: inline-flex; align-items: center; gap: 6px; font-size: clamp(18px, 1.5vw, 21px); text-decoration: none; }
.bar nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 36px); font-size: clamp(17px, 1.5vw, 21px); }
.bar nav a { text-decoration: none; }
.bar .pill { display: none; }

section { position: relative; }

.hero { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr); min-height: 860px; }
.hero-art { display: block; width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: 50% 42%; }
.hero-say { display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 2.2vw, 30px); padding: clamp(32px, 4.4vw, 64px) clamp(20px, 7.2vw, 104px) clamp(32px, 4.4vw, 64px) clamp(20px, 3.3vw, 48px); }
.hero h1 { font-size: clamp(40px, 5.4vw, 78px); line-height: .98; }
.lede { font-size: clamp(19px, 1.9vw, 27px); line-height: 1.35; color: var(--ink-soft); }
.namecard { display: flex; align-items: center; gap: 16px; }
.namecard img { display: block; width: clamp(56px, 5.3vw, 76px); height: clamp(56px, 5.3vw, 76px); border-radius: 22%; box-shadow: 2px 3px 0 rgba(43,38,32,.2); }
.namecard .t { display: flex; flex-direction: column; gap: 2px; }
.namecard .t b { font-weight: normal; font-size: clamp(23px, 2.1vw, 30px); line-height: 1; }
.namecard .t span { font-size: clamp(15px, 1.3vw, 19px); color: var(--ink-soft); }
.actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.fineprint { font-size: clamp(13px, 1.1vw, 15px); line-height: 1.5; color: var(--ink-soft); }

.band { padding: clamp(56px, 6.7vw, 96px) var(--pad); }
.band--tight { padding: clamp(48px, 5.3vw, 76px) var(--pad) clamp(56px, 6.1vw, 88px); }
/* NO DARKER BANDS — one parchment everywhere. They were painted inside the 1440 container,
   so on a wider window they stopped at its edge and read as a boxed rectangle. Bleeding them
   to the window's edge cured the edge but kept a band nobody wanted; the same colour cures
   both. --parchment-deep is left defined but now unused by the page itself. */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(32px, 5.5vw, 80px); align-items: center; }
.split--artfirst { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); }
.split--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 600px); }
.say { display: flex; flex-direction: column; gap: clamp(18px, 1.9vw, 26px); align-items: flex-start; }

h2 { font-size: clamp(34px, 4.4vw, 62px); line-height: 1; }
h2.big { font-size: clamp(36px, 4.8vw, 68px); }
h3.who { font-size: clamp(30px, 4vw, 56px); line-height: 1; }
h3.small { font-size: clamp(26px, 3.2vw, 46px); line-height: 1; }
h3.eyebrow { font-size: clamp(22px, 2.4vw, 34px); line-height: 1; color: var(--ink-soft); margin-bottom: clamp(24px, 3vw, 44px); }
.body { font-size: clamp(18px, 1.8vw, 25px); line-height: 1.42; }
.body--soft { color: var(--ink-soft); }

.quote { display: flex; align-items: center; gap: 16px; padding: 16px 24px 16px 16px; }
.quote img { display: block; flex: none; width: clamp(56px, 5.5vw, 80px); height: clamp(56px, 5.5vw, 80px); object-fit: contain; }
.quote .t { display: flex; flex-direction: column; gap: 4px; }
.quote .when { font-size: clamp(14px, 1.3vw, 18px); color: var(--ink-soft); }
.quote .line { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.3; }

.lead { display: flex; flex-direction: column; gap: 20px; padding-bottom: clamp(32px, 3.9vw, 56px); max-width: 860px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4.4vw, 64px); align-items: start; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.3vw, 48px); align-items: start; }
.stack { display: flex; flex-direction: column; gap: clamp(14px, 1.5vw, 22px); }
.rowtop { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.heads { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(28px, 4.4vw, 64px); align-items: baseline; margin-bottom: clamp(24px, 2.4vw, 34px); }
.shots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.7vw, 24px); }
.shots img { display: block; width: 100%; aspect-ratio: 420 / 913; object-fit: cover; border-radius: 14px; box-shadow: 2px 3px 0 rgba(43,38,32,.2); }

.saying { display: flex; flex-direction: column; gap: 12px; padding: clamp(20px, 2vw, 28px) clamp(22px, 2.2vw, 32px); }
.saying .words { font-size: clamp(28px, 2.9vw, 42px); line-height: 1.1; }
.saying .from { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.saying p { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--ink-soft); }

.quiet { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(28px, 3.9vw, 56px); align-items: center; padding: clamp(28px, 3vw, 44px) clamp(24px, 3.9vw, 56px); }
.quiet .who { display: flex; align-items: center; gap: 18px; }
.quiet .who img { display: block; flex: none; width: clamp(76px, 7.8vw, 112px); height: clamp(76px, 7.8vw, 112px); object-fit: contain; }
.quiet .who h2 { font-size: clamp(30px, 3.6vw, 52px); }
.quiet .points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px clamp(24px, 3vw, 44px); font-size: clamp(18px, 1.6vw, 23px); line-height: 1.35; }

.closing { display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 3.3vw, 48px); padding: clamp(48px, 5.5vw, 80px) var(--pad); }
.closing .who { display: flex; align-items: center; gap: clamp(18px, 1.9vw, 28px); }
.closing .who img { display: block; flex: none; width: clamp(96px, 10.4vw, 150px); height: clamp(96px, 10.4vw, 150px); object-fit: contain; }
.closing h2 { font-size: clamp(30px, 3.9vw, 56px); }

footer { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 3.9vw, 56px); padding: clamp(40px, 3.9vw, 56px) var(--pad) 48px; }
footer .col { display: flex; flex-direction: column; gap: 10px; }
footer .mark { display: flex; align-items: center; gap: 12px; }
footer .mark img { display: block; width: 44px; height: 44px; border-radius: 22%; }
footer .mark span { font-size: clamp(22px, 1.8vw, 26px); line-height: 1; }
footer p { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.4; color: var(--ink-soft); }
footer .head { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-soft); }
footer .col a.ui { font-size: 15px; }
footer .back { display: inline-flex; align-items: center; gap: 6px; font-size: clamp(17px, 1.4vw, 20px); text-decoration: none; }
footer .rights { font-size: 13px; color: var(--ink-soft); }

/* ---- narrow: the page becomes the phone mockup --------------------------- */
@media (max-width: 900px) {
  :root { --folk: 108px; }
  .bar nav { display: none; }
  .bar .pill { display: inline-flex; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { aspect-ratio: 4 / 5; min-height: 0; }
  .hero-say { padding: 26px var(--pad) 44px; text-align: left; }
  .split, .split--artfirst, .split--wide { grid-template-columns: 1fr; }
  .split--artfirst > img { order: -1; }
  .pair, .trio, .heads, .quiet, .quiet .points { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .closing { flex-direction: column; align-items: flex-start; }
  footer { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  :root { --folk: 84px; }
  .folkgrid { gap: 22px 14px; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
