/* ════════════════════════════════════════════════════════════════
   zurc.dev — the house
   One stylesheet, zero build, zero CDNs, zero network fonts.

   THEME (ruled 2026-09-08): Sprite green / yellow. Yellow is the
   ground and comes in shades, one per band of the page; green is the
   highlight and comes in several greens that contrast against it.
   Ink is a near-black green so text reads on every yellow.

   Grid: every spacing value is a multiple of 4. Borders are 3px
   everywhere, shadows are hard and offset — the marker/poster look
   is a decision, not a default.
   ════════════════════════════════════════════════════════════════ */

:root {
  /* yellows — the grounds, palest to deepest */
  --y-cream:   #FFF9D6;
  --y-butter:  #FFF3A3;
  --y-lemon:   #FFE94A;
  --y-sprite:  #F7E017;
  --y-deep:    #F2C90C;

  /* greens — the highlights */
  --g-mint:    #B9F2C6;
  --g-lime:    #7ED957;
  --g-sprite:  #00B140;
  --g-deep:    #0B6E3A;
  --g-forest:  #0A4A2A;
  --g-teal:    #00A88E;

  --ink:       #10301C;
  --muted:     #3F5F4B;
  --paper:     #FFFDF2;   /* the white-ish paper inside frames */

  --wrap: 1080px;
  --bw: 3px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--y-butter); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* short pages (the haiku line, the 404) still put the footer at the bottom */
  min-height: 100svh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p a, li a { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; text-decoration-color: var(--g-sprite); }
p a:hover, li a:hover { text-decoration-color: var(--g-forest); }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--g-forest); color: var(--y-lemon); padding: 8px 12px; }
.skip-link:focus { left: 8px; z-index: 50; }

/* ── the marker highlight: a green band behind the words ── */
.hi   { background: linear-gradient(transparent 55%, var(--g-lime) 55%, var(--g-lime) 94%, transparent 94%); padding: 0 .08em; }
.hi-2 { background: linear-gradient(transparent 55%, var(--g-mint) 55%, var(--g-mint) 94%, transparent 94%); padding: 0 .08em; }

/* ── nav: sprite green bar ── */
.site-nav { background: var(--g-sprite); border-bottom: var(--bw) solid var(--g-forest); position: sticky; top: 0; z-index: 20; }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { font-weight: 900; letter-spacing: .1em; font-size: 22px; display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand .mark {
  display: inline-block; width: 28px; height: 28px; border-radius: 50%;
  background: var(--y-lemon); box-shadow: 4px 4px 0 var(--g-forest);
  transition: transform .15s ease;
}
.brand:hover .mark { transform: translate(-1px,-1px); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; font-size: 15px; font-weight: 700; }
.site-nav li a { display: inline-block; padding: 8px 0; border-bottom: var(--bw) solid transparent; transition: border-color .15s ease; }
.site-nav li a:hover, .site-nav li a[aria-current="page"] { border-bottom-color: var(--y-lemon); }
.site-nav li .soon { color: var(--g-forest); font-weight: 600; opacity: .8; }
.site-nav li a, .site-nav li .soon { white-space: nowrap; }
@media (max-width: 560px) {
  .site-nav ul { gap: 16px; font-size: 14px; }
  .brand { font-size: 18px; }
  .site-nav li .soon { display: none; }   /* nothing to lose: the shop isn't live yet */
}

/* ── hero: lemon ground. The house hero and the line heroes share it. ── */
.hero { padding: 72px 0 64px; overflow: hidden; background: var(--y-lemon); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 {
  margin: 0; font-size: clamp(72px, 14vw, 168px); line-height: .9; font-weight: 900;
  letter-spacing: -.02em; color: var(--g-deep);
  text-shadow: 6px 6px 0 var(--g-lime);
}
.hero.line h1 { font-size: clamp(48px, 8vw, 96px); text-shadow: 4px 4px 0 var(--g-lime); }
.hero .tag { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin: 24px 0 12px; color: var(--g-forest); }
.hero .lede { font-size: 18px; color: var(--muted); max-width: 46ch; margin: 0 0 16px; }
.hero .lede:last-child { margin-bottom: 0; }
.hero .lede b { color: var(--ink); }
.hero .eyebrow { margin-bottom: 16px; }
.polaroid {
  background: var(--paper); padding: 12px 12px 16px; border: var(--bw) solid var(--g-forest);
  box-shadow: 12px 12px 0 var(--g-sprite);
  transform: rotate(-2.5deg); margin: 0;
  max-width: 440px; width: 100%; justify-self: end;
}
/* the photos are portrait (phone shots of paper on the table); the frames are too */
.polaroid img { aspect-ratio: 3 / 4; object-fit: cover; }
.polaroid figcaption { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 12px; }
/* the haiku line has no photo yet: its "polaroid" is set in type */
.polaroid.type { display: grid; place-items: center; aspect-ratio: 3 / 4; background: var(--y-sprite); }
.polaroid.type .fives {
  font-family: var(--mono); font-size: clamp(40px, 6vw, 72px); font-weight: 700; line-height: 1.1;
  color: var(--g-deep); text-shadow: 4px 4px 0 var(--g-lime); text-align: center;
}
.polaroid.type .fives small { display: block; font-size: 13px; letter-spacing: .24em; color: var(--g-forest); text-shadow: none; margin-top: 12px; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0; }
  .polaroid { transform: rotate(-1.5deg); max-width: 400px; justify-self: start; }
}

/* ── bands: each section is a different yellow, and they don't all breathe the same ── */
section { padding: 56px 0; }
#lines  { background: var(--y-butter); padding: 64px 0; }
#table  { background: var(--y-cream);  border-top: var(--bw) solid var(--g-mint); border-bottom: var(--bw) solid var(--g-mint); }
#shop   { background: var(--y-sprite); padding: 48px 0 64px; }
#work   { background: var(--y-cream);  border-top: var(--bw) solid var(--g-mint); padding: 64px 0; }
#poems  { background: var(--y-cream);  border-top: var(--bw) solid var(--g-mint); padding: 64px 0; }
#buying { background: var(--y-sprite); padding: 48px 0 64px; }

.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--g-deep); margin: 0 0 12px; }
h2 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.05; margin: 0 0 20px; letter-spacing: -.01em; color: var(--g-forest); }
h2 a { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; text-decoration-color: var(--g-sprite); }
h2 a:hover { text-decoration-color: var(--g-lime); }
h3 { font-size: 22px; margin: 0 0 8px; }
.prose { max-width: 62ch; }
.prose p { margin: 0 0 16px; }
.prose p:last-child { margin-bottom: 0; }

/* ── lines (house → line → product): two peers, same size on purpose ── */
.lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; margin-top: 32px; }
.line-card {
  display: grid; grid-template-rows: auto 1fr; border: var(--bw) solid var(--g-forest); background: var(--y-cream);
  box-shadow: 8px 8px 0 var(--g-lime); transition: transform .15s ease, box-shadow .15s ease;
}
.line-card:hover { transform: translate(-2px,-2px); box-shadow: 12px 12px 0 var(--g-sprite); }
.line-card:active { transform: translate(0,0); box-shadow: 6px 6px 0 var(--g-sprite); }
.line-card .art { aspect-ratio: 1 / 1; overflow: hidden; border-bottom: var(--bw) solid var(--g-forest); background: var(--y-lemon); }
.line-card .art img { width: 100%; height: 100%; object-fit: cover; }
.line-card .art.type { display: grid; place-items: center; background: var(--y-sprite); }
.line-card .art.type .fives {
  font-family: var(--mono); font-size: clamp(34px, 5vw, 56px); font-weight: 700; line-height: 1.1;
  color: var(--g-deep); text-shadow: 4px 4px 0 var(--g-lime); text-align: center;
}
.line-card .art.type .fives small { display: block; font-size: 13px; letter-spacing: .24em; color: var(--g-forest); text-shadow: none; margin-top: 12px; }
.line-card .body { padding: 20px 24px 24px; }
.line-card .kind { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--g-teal); }
.line-card h3 { margin: 8px 0 8px; font-size: 26px; color: var(--g-forest); }
.line-card p { margin: 0 0 16px; color: var(--muted); }
.line-card .go { font-weight: 800; color: var(--g-deep); }
.line-card .go::after { content: " →"; }

/* ── the table (studies strip): 3 × 2, no orphans ── */
.table-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; margin-top: 32px; }
.table-strip figure { margin: 0; background: var(--paper); padding: 8px 8px 12px; border: var(--bw) solid var(--g-deep); }
.table-strip figure:nth-child(3n+1) { transform: rotate(1.2deg);  box-shadow: 6px 6px 0 var(--g-lime); }
.table-strip figure:nth-child(3n+2) { transform: rotate(-1.4deg); box-shadow: 6px 6px 0 var(--g-teal); }
.table-strip figure:nth-child(3n)   { transform: rotate(.8deg);   box-shadow: 6px 6px 0 var(--g-sprite); }
.table-strip img { aspect-ratio: 1; object-fit: cover; }
.table-strip figcaption { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 8px; }
@media (max-width: 720px) { .table-strip { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; } }

/* ── gallery (line pages): one row of three at desktop, a single column below ── */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; margin-top: 32px; }
.gallery figure { margin: 0; }
.gallery .frame { background: var(--paper); padding: 12px; border: var(--bw) solid var(--g-forest); box-shadow: 8px 8px 0 var(--g-lime); }
.gallery figure:nth-child(2) .frame { box-shadow: 8px 8px 0 var(--g-teal); }
.gallery figure:nth-child(3) .frame { box-shadow: 8px 8px 0 var(--g-sprite); }
.gallery img { aspect-ratio: 3 / 4; object-fit: cover; }
.gallery figcaption { margin-top: 16px; }
.gallery figcaption b { display: block; font-size: 18px; color: var(--g-forest); }
.gallery figcaption span { color: var(--muted); font-size: 15px; }
.gallery .status { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 8px; background: var(--g-lime); color: var(--ink); margin-top: 8px; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr; max-width: 560px; } }

/* ── haiku ── */
.poems { max-width: 40ch; }
.haiku { margin: 0 0 48px; padding: 20px 24px; background: var(--y-butter); border-left: 6px solid var(--g-sprite); }
.haiku p { margin: 0; font-size: 24px; line-height: 1.5; font-weight: 500; }
.haiku footer { font-family: var(--mono); font-size: 12px; color: var(--g-deep); margin-top: 12px; letter-spacing: .1em; }
.empty { border: var(--bw) dashed var(--g-deep); padding: 20px 24px; max-width: 48ch; }
.empty p { margin: 0; color: var(--muted); }
.empty b { color: var(--ink); }

/* ── notes / callouts ── */
.note { border: var(--bw) dashed var(--g-deep); padding: 20px 24px; background: var(--y-cream); max-width: 62ch; }
.note p { margin: 0 0 8px; }
.note p:last-child { margin-bottom: 0; }
.note b { color: var(--g-deep); }

/* ── footer: forest green, lemon type ── */
.site-foot { background: var(--g-forest); color: var(--g-mint); padding: 32px 0 48px; font-size: 15px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: baseline; }
.site-foot b { color: var(--y-lemon); }
.site-foot a { color: var(--y-lemon); text-decoration-color: var(--g-lime); }
.site-foot a:hover { text-decoration-color: var(--y-lemon); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }

/* ── 404 ── */
.lost { min-height: calc(100svh - 67px); display: grid; place-items: center; text-align: center; padding: 48px 0; background: var(--y-lemon); }
.lost h1 { font-size: clamp(64px, 16vw, 200px); margin: 0; line-height: .9; color: var(--g-deep); text-shadow: 6px 6px 0 var(--g-lime); font-weight: 900; }
.lost p { font-size: 20px; }

@media (prefers-reduced-motion: reduce) {
  .line-card, .line-card:hover, .brand .mark, .brand:hover .mark { transition: none; transform: none; }
}
