/* SEND IT! The Sunset neighborhood kickstarter.
   Dusk over the avenues: a peach fade at the top, stucco pastels, hand-painted shop type.
   Tokens first: retheme by editing values only. */
:root {
  --fog: #ecefe9;
  --paper: #fbf9f2;
  --ink: #1b2b3c;
  --ink-soft: #55647a;
  --hair: rgba(27, 43, 60, 0.22);
  --poppy: #e4502a;
  --poppy-text: #b7360f;
  --sun: #f2b84b;
  --sea: #4f93a0;
  --sea-deep: #2f6f7e;
  --dusk: #f8d9c2;
  --block: 'Bowlby One', 'Arial Black', Impact, sans-serif;      /* the mark, numbers, stamps */
  --title: 'Caprasimo', 'Cooper Black', Georgia, serif;          /* project names: surf-shop window paint */
  --body: 'Libre Franklin', 'Franklin Gothic Medium', 'Helvetica Neue', sans-serif;
  --type: 'Courier Prime', 'Courier New', monospace;             /* small print: a flyer on a pole */
  --r: 26px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink);
  background: var(--fog) linear-gradient(180deg, var(--dusk) 0, #f7e6d2 110px, var(--fog) 330px) no-repeat;
  font: 400 17px/1.5 var(--body);
}
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--poppy); outline-offset: 3px; border-radius: 6px; }
main:focus, main:focus-visible { outline: none; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 5; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.top, main, .foot { max-width: 1120px; margin: 0 auto; padding-left: 18px; padding-right: 18px; }

/* Header: the mark, one line, one button */
.top { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 14px; padding-top: 20px; padding-bottom: 18px; }
.mark { position: relative; justify-self: start; text-decoration: none; display: inline-block; padding: 6px 10px 2px 0; isolation: isolate; }
.mark-word {
  font: 400 clamp(38px, 10vw, 60px)/0.95 var(--block); letter-spacing: .01em; color: var(--ink);
  text-shadow: 2px 2px 0 var(--paper), 5px 5px 0 var(--sun);
  display: inline-block; transform: rotate(-2deg);
}
.mark-sun {
  position: absolute; z-index: -1; right: -12px; top: -8px; width: 1.55em; height: 1.55em; border-radius: 50%;
  font-size: clamp(38px, 10vw, 60px);
  background: linear-gradient(180deg, var(--poppy) 0 44%, #ef7a3c 44% 58%, var(--sun) 58% 72%, transparent 72%);
}
.tag { grid-column: 1 / -1; font: 700 15px/1.3 var(--type); letter-spacing: .02em; }
.top-act { grid-area: 1 / 2; display: flex; align-items: center; gap: 8px; position: relative; }
@media (min-width: 760px) {
  .top { grid-template-columns: auto 1fr auto; gap: 24px; padding-top: 30px; padding-bottom: 26px; }
  .tag { grid-area: 1 / 2; font-size: 16px; padding-left: 14px; }
  .top-act { grid-area: 1 / 3; }
}

/* Buttons: soft pills, no hard edges */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--ink);
  font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer;
  background: transparent; color: var(--ink);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #0f1b28; }
.btn-go { background: var(--poppy); border-color: var(--poppy); color: #fff; }
.btn-go:hover { background: var(--poppy-text); border-color: var(--poppy-text); color: #fff; }
.btn-in { border-style: dashed; cursor: default; }
.btn-in:hover { background: transparent; color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-wide { width: 100%; }
.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 24px; }

/* Sections: small print, like the top of a flyer */
.sec { padding: 14px 0 10px; }
.sec-head { display: flex; align-items: baseline; gap: 2px 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sec-head h2, .label { font: 700 14px/1.2 var(--type); letter-spacing: .14em; text-transform: uppercase; }
.sec-head p { font: 400 15px/1.3 var(--type); color: var(--ink-soft); }
.grid { display: grid; gap: 34px 26px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 40px 34px; } }

/* A project: a patch of dusk sky with its name in it, a board on the wave, and plain words underneath. No box. */
.c-sun { --c: #f6dc8c; } .c-kelp { --c: #bfe1d3; } .c-ink { --c: #bcd6ea; } .c-poppy { --c: #f6c6b2; } .c-rose { --c: #edbccb; }
.card { position: relative; display: flex; flex-direction: column; }
.scene {
  position: relative; overflow: hidden; container-type: inline-size;
  background: var(--c); border-radius: var(--r) var(--r) var(--r) 8px;
  aspect-ratio: 5 / 3; padding: 18px 18px 0;
  transition: transform .2s ease;
}
.card:nth-child(even) .scene { border-radius: var(--r) var(--r) 8px var(--r); }
.card:has(.name a:hover) .scene { transform: translateY(-3px) rotate(-.4deg); }
.ride { position: absolute; inset: 0; width: 100%; height: 100%; }
.sea { fill: var(--sea); } .sea2 { fill: var(--sea-deep); }
.foam { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; }
.spray { fill: #fff; }
.deck { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.fin { fill: var(--ink); }
.stripe { stroke: var(--poppy); stroke-width: 4; stroke-linecap: round; }
.glyph * { fill: none; stroke: var(--ink); stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; }
.ride .glyph * { fill: var(--paper); }
.name {
  position: relative; max-width: 61%;
  font: 400 clamp(20px, 7cqw, 32px)/1.06 var(--title); letter-spacing: -.005em;
  text-wrap: balance; overflow-wrap: break-word;
}
h1.name { font-size: clamp(23px, 6cqw, 50px); max-width: 60%; }
.name a { color: inherit; text-decoration: none; }
.name a::after { content: ''; position: absolute; inset: -18px -200px -400px -18px; }
.stamp {
  position: relative; display: inline-block; margin: 0 0 8px -2px;
  font: 400 13px/1 var(--block); letter-spacing: .06em; text-transform: uppercase;
  background: var(--paper); color: var(--ink); padding: 7px 11px 6px; border-radius: 999px; transform: rotate(-3deg);
}
.stamp + .name { display: block; }
.stamp-live { background: var(--poppy); color: #fff; }
.stamp-flag { background: var(--ink); color: var(--paper); }

.under { padding: 14px 4px 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.meter { display: grid; gap: 7px; }
.meter p, p.meter { font-size: 16px; }
.meter b { font: 400 24px/1 var(--block); margin-right: 2px; }
.bar { height: 8px; border-radius: 999px; background: var(--hair); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--ink); }
.blurb { color: var(--ink); }
.left { font-weight: 700; font-size: 15px; }
.card-foot { margin-top: auto; padding-top: 2px; display: flex; gap: 12px; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.card-foot .btn { min-width: 118px; min-height: 50px; font-size: 17px; }
.by { font: 400 14px/1.4 var(--type); color: var(--ink-soft); }

/* Project page */
.back-link { display: inline-block; padding: 6px 0 14px; font: 700 15px/1.3 var(--type); }
.hero { display: grid; gap: 14px; }
.hero .scene { aspect-ratio: 5 / 3; padding: 22px 22px 0; }
.photo { border-radius: var(--r) var(--r) 8px var(--r); overflow: hidden; background: var(--hair); }
.photo img { display: block; width: 100%; height: 100%; max-height: 520px; object-fit: cover; }
@media (min-width: 860px) {
  .hero .scene { aspect-ratio: 2 / 1; max-height: 420px; width: 100%; padding: 32px 34px 0; }
  .hero.has-photo { grid-template-columns: 3fr 2fr; }
  .hero.has-photo .scene { aspect-ratio: auto; min-height: 320px; }
  .hero.has-photo .photo { max-height: 440px; }
}
.proj { display: grid; gap: 22px; padding: 22px 0 8px; }
.proj-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tally { display: grid; gap: 14px; align-content: start; }
@media (min-width: 860px) {
  .proj { grid-template-columns: 1fr 340px; gap: 54px; align-items: start; padding-top: 30px; }
  .tally { order: 2; position: sticky; top: 20px; }
}
.detail { font-size: 19px; line-height: 1.55; max-width: 60ch; }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 30px; }
.stats div { display: grid; gap: 4px; }
.stats b { font: 400 clamp(32px, 9vw, 42px)/1 var(--block); }
.stats span { font: 700 13px/1.2 var(--type); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.allor { font-size: 15px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.act .btn { flex: 1; min-height: 52px; }
.printer { font: 400 14px/1.4 var(--type); justify-self: start; }
.note { border-left: 4px solid var(--sea); padding: 4px 0 4px 14px; }
.hint, label.f small, legend small { font-weight: 400; color: var(--ink-soft); font-size: 15px; }

/* Ways in: a list, not a stack of boxes */
.tiers { display: grid; }
.tiers .label { padding-bottom: 6px; }
.tier {
  display: grid; gap: 2px; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: none; border: 0; border-top: 1.5px dotted var(--ink); padding: 14px 54px 14px 2px; min-height: 64px; position: relative;
}
.tier:last-child { border-bottom: 1.5px dotted var(--ink); }
.tier::after {
  content: '+'; position: absolute; right: 2px; top: 50%; translate: 0 -50%; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font: 700 22px/1 var(--body); background: var(--poppy); color: #fff; transition: transform .15s ease;
}
.tier:hover::after { transform: rotate(90deg); }
.tier b { font-size: 18px; }
.tier span { font-size: 15px; color: var(--ink-soft); }

/* Short lists: other projects, neighborhood events */
.mini { display: grid; padding: 0; margin: 0; list-style: none; }
.mini a { display: grid; grid-template-columns: 14px 1fr auto; gap: 4px 12px; align-items: center; text-decoration: none; padding: 12px 2px; border-top: 1.5px dotted var(--ink); min-height: 56px; }
.mini li:last-child a { border-bottom: 1.5px dotted var(--ink); }
.mini i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 1.5px solid var(--ink); }
.mini b { display: block; line-height: 1.3; }
.mini a:hover b { text-decoration: underline; }
.mini span { font-size: 14px; color: var(--ink-soft); }
.mini em { font: 700 14px/1.3 var(--type); font-style: normal; white-space: nowrap; }

/* Forms */
.form { display: grid; gap: 20px; max-width: 580px; }
.form h1, .dlg-pad h2 { font: 400 34px/1.05 var(--title); }
label.f { display: grid; gap: 7px; font-weight: 700; }
input[type=text], input[type=number], input[type=date], textarea {
  font: 400 17px/1.4 var(--body); color: inherit; width: 100%;
  background: #fff; border: 1.5px solid var(--hair); border-radius: 14px; padding: 12px 14px; min-height: 50px;
}
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--sun); outline-offset: 0; border-color: var(--ink); }
input[type=file] { font: 400 15px/1.4 var(--type); padding: 10px 0; }
textarea { min-height: 104px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 700; padding: 0 0 10px; }
legend small { display: block; }
.two { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.sentence { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; font-weight: 700; }
.sentence input[type=number] { width: 100px; }
.sentence input[type=text] { flex: 1 1 200px; width: auto; }
.err { color: var(--poppy-text); font-weight: 700; }
.photo-thumb { width: 100%; max-height: 260px; object-fit: cover; border-radius: var(--r) var(--r) 8px var(--r); }

/* Toggles for ways in */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--hair); background: #fff; font-weight: 500; }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chips input:checked + span::before { content: '✓'; margin-right: 7px; }
.chips input:focus-visible + span { outline: 3px solid var(--poppy); outline-offset: 2px; }

/* What rides your board */
.icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 10px; }
.icons legend { grid-column: 1 / -1; }
.icons label { position: relative; display: grid; place-items: center; aspect-ratio: 1; min-height: 50px; background: #fff; border: 1.5px solid var(--hair); border-radius: 50%; cursor: pointer; }
.icons svg { width: 28px; height: 28px; }
.icons input { position: absolute; opacity: 0; }
.icons label:has(input:checked) { background: var(--sun); border-color: var(--ink); }
.icons label:has(input:focus-visible) { outline: 3px solid var(--poppy); outline-offset: 2px; }
.icons .ask { grid-column: 1 / -1; aspect-ratio: auto; border-radius: 999px; justify-self: start; padding: 0 18px; font-weight: 500; }

.preview { display: grid; gap: 10px; max-width: 360px; }

/* Dialog */
dialog {
  border: 0; border-radius: var(--r); padding: 0; background: var(--paper); color: var(--ink);
  width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  box-shadow: 0 24px 60px rgba(27, 43, 60, .28);
}
dialog::backdrop { background: rgba(27, 43, 60, .5); }
.dlg-pad { padding: 24px; display: grid; gap: 16px; }
.dlg-pad h2.big { font: 400 46px/1 var(--block); color: var(--ink); text-shadow: 2px 2px 0 var(--paper), 5px 5px 0 var(--sun); transform: rotate(-2deg); justify-self: start; }

/* Steward queue */
.queue { display: grid; gap: 14px; }
.q { background: var(--paper); border-radius: var(--r) var(--r) var(--r) 8px; padding: 18px; display: grid; gap: 8px; }
.q h3 { font: 400 22px/1.2 var(--title); }

.foot { padding-top: 44px; padding-bottom: 44px; display: grid; gap: 8px; }
.quiet { color: var(--ink-soft); font-size: 15px; }
.empty { color: var(--ink-soft); padding: 8px 0 16px; }

/* Phone first: thumbs, one column, sheets from the bottom */
@media (max-width: 639px) {
  .top { padding-top: 14px; padding-bottom: 14px; }
  .top .btn { min-height: 44px; padding: 0 15px; font-size: 15px; }
  body:not([data-view=home]) .tag { display: none; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .card-foot .btn { width: 100%; }
  .detail { font-size: 18px; }
  .act {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0; padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--fog) 92%, transparent); backdrop-filter: blur(8px); flex-wrap: nowrap;
  }
  .printer { display: none; }
  body[data-view=project] .foot { padding-bottom: 110px; }
  dialog { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: var(--r) var(--r) 0 0; max-height: 92dvh; }
  .dlg-pad { padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
  .dlg-pad .row .btn, .form .row .btn { flex: 1; min-height: 50px; }
  .two { grid-template-columns: 1fr; }
  .preview { max-width: none; }
  .mini a { grid-template-columns: 14px 1fr; }
  .mini em { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .btn, .scene, .tier::after { transition: none; } }

/* Paper door: a project page prints as a flyer for a pole or a shop window */
.print-only { display: none; }
@media print {
  body { background: #fff; font-size: 14pt; }
  .top .btn, .foot, .back-link, .act, .printer, .tiers, .note, .hint, section.sec, dialog, .skip { display: none !important; }
  .scene, .bar i, .stamp, .mini i, .mark-sun { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .proj { display: block; }
  .print-only { display: grid; gap: 8pt; margin-top: 14pt; }
  .flyer-cta { font: 400 22pt/1 var(--title); }
  .flyer-url { font: 700 15pt/1.3 var(--type); word-break: break-all; }
  .mini em { display: none; }
}

/* A gift from Knowy */
.gift { display: grid; gap: 18px; max-width: 720px; }
.gift h1 { font: 400 clamp(28px, 7vw, 40px)/1.08 var(--title); text-wrap: balance; }
.gift-sec .sec-head { margin-bottom: 4px; }
.mini.plain a { grid-template-columns: 1fr auto; }
.mini.plain a:not([href]) { cursor: default; }
.mini.plain em { color: var(--poppy-text); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.check input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.check small { display: block; }
@media (max-width: 639px) { .mini.plain a { grid-template-columns: 1fr; } .mini.plain em { grid-column: 1; } .gift .row .btn { flex: 1; } }

select { font: 400 17px/1.4 var(--body); color: inherit; background: #fff; border: 1.5px solid var(--hair); border-radius: 14px; padding: 12px 14px; min-height: 50px; width: 100%; }

/* The icon sits beside the project name. The wave stays behind. */
.title-row { position: relative; display: flex; align-items: flex-start; gap: 12px; max-width: 86%; }
.badge { flex: none; width: 46px; height: 46px; padding: 8px; border-radius: 50%; background: var(--paper); }
.title-row .name { max-width: none; flex: 1; min-width: 0; padding-top: 2px; }
h1.name { max-width: none; }
.hero .badge { width: 58px; height: 58px; padding: 10px; }
#pv-icon { display: contents; }
@media (min-width: 860px) { .hero .badge { width: 72px; height: 72px; padding: 13px; } .hero .title-row { gap: 18px; max-width: 70%; } }

/* The menu: three lines, three links */
.menu-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; cursor: pointer; display: grid; place-content: center; gap: 5px; padding: 0; }
.menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); }
.menu-btn[aria-expanded=true] { background: var(--ink); } .menu-btn[aria-expanded=true] span { background: var(--paper); }
.menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 5; min-width: 210px; background: var(--paper); border-radius: 20px; padding: 8px; box-shadow: 0 18px 44px rgba(27, 43, 60, .22); display: grid; }
.menu[hidden] { display: none; }
.menu a, .menu button { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 14px; font: 700 17px/1.2 var(--body); color: var(--ink); text-decoration: none; background: none; border: 0; text-align: left; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--fog); }
.menu button { font-weight: 400; color: var(--ink-soft); font-size: 15px; border-top: 1.5px dotted var(--hair); border-radius: 0 0 14px 14px; margin-top: 4px; }
.page { display: grid; gap: 16px; max-width: 640px; }
.page h1 { font: 400 clamp(30px, 7vw, 40px)/1.08 var(--title); }
.page p { font-size: 18px; line-height: 1.55; }
.sec:first-child { padding-top: 4px; }
@media (max-width: 639px) { .top .btn { min-height: 44px; } .menu-btn { width: 44px; height: 44px; } }

/* Small phones: the mark stays on one line, the button says less */
.mark-word { white-space: nowrap; }
@media (max-width: 480px) {
  .wide { display: none; }
  .mark-word, .mark-sun { font-size: clamp(30px, 8.6vw, 40px); }
}

/* A little life under the cursor: buttons lift and tip, cards rise */
.btn { transition: background .15s ease, color .15s ease, transform .18s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s ease; }
.btn:hover { transform: translateY(-3px) rotate(-1.5deg); box-shadow: 0 8px 0 -3px var(--sun); }
.btn-go:hover { box-shadow: 0 8px 0 -3px var(--ink); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; }
.btn-in:hover { transform: none; box-shadow: none; }
.menu-btn { transition: transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.menu-btn:hover { transform: rotate(8deg) scale(1.06); }
.scene { transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), box-shadow .25s ease; }
.card:has(.name a:hover) .scene, .card:hover .scene { transform: translateY(-5px) rotate(-.6deg); box-shadow: 0 14px 30px rgba(27, 43, 60, .16); }
.card:hover .badge { transform: rotate(-10deg) scale(1.08); }
.badge { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.tier { transition: padding-left .18s ease; }
.tier:hover { padding-left: 10px; }
.mark-word { transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.mark:hover .mark-word { transform: rotate(-4deg) scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .btn, .scene, .badge, .tier, .menu-btn, .mark-word { transition: none; }
  .btn:hover, .card:hover .scene, .card:has(.name a:hover) .scene, .card:hover .badge, .menu-btn:hover, .mark:hover .mark-word { transform: none; }
}
.modes { display: grid; gap: 10px; }
.modes .check { min-height: 44px; align-items: center; }
.modes input[type=radio] { width: 24px; height: 24px; accent-color: var(--ink); flex: none; margin: 0; }
.legal h2 { font: 400 24px/1.15 var(--title); margin-top: 10px; }
.legal ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.legal li, .legal p { font-size: 17px; line-height: 1.5; }
.dlg-pad .quiet, .form .quiet { font-size: 14px; }

/* Anything marked hidden stays hidden, whatever its layout */
[hidden] { display: none !important; }

/* The floater's private page */
.care { background: var(--paper); border-radius: var(--r) var(--r) var(--r) 8px; padding: 18px 20px; display: grid; gap: 10px; }
.care h2 { font: 400 22px/1.15 var(--title); }
.care ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.care li { font-size: 16px; line-height: 1.45; }
.people a { grid-template-columns: 1fr; cursor: default; }
.people span { font-size: 15px; overflow-wrap: anywhere; }
.mine .row .btn { flex: 1 1 auto; }

/* Touch screens have no hover: don't leave a tapped button looking stuck */
@media (hover: none) {
  .btn:hover, .card:hover .scene, .card:has(.name a:hover) .scene, .card:hover .badge, .menu-btn:hover, .mark:hover .mark-word { transform: none; box-shadow: none; }
  .btn:hover { background: transparent; color: var(--ink); }
  .btn-ink:hover { background: var(--ink); color: var(--paper); }
  .btn-go:hover { background: var(--poppy); border-color: var(--poppy); color: #fff; }
  .tier:hover { padding-left: 2px; }
}

/* Language picker, across the very top */
.lang { max-width: 1120px; margin: 0 auto; padding: 6px 12px 0; display: flex; justify-content: flex-end; gap: 2px; }
.lang button { min-height: 40px; min-width: 44px; padding: 0 10px; border: 0; background: none; cursor: pointer; border-radius: 999px; font: 700 14px/1 var(--type); color: var(--ink-soft); }
.lang button:hover { color: var(--ink); text-decoration: underline; }
.lang button[aria-pressed=true] { color: var(--ink); background: rgba(255, 255, 255, .55); }
.lang + .top { padding-top: 6px; }
html[lang=en] .lang-note { display: none; }
html[lang^=zh] { --title: 'Caprasimo', 'Noto Serif TC', 'PingFang TC', 'Microsoft JhengHei', serif; --type: 'Courier Prime', 'PingFang TC', 'Microsoft JhengHei', monospace; }
html[lang^=zh] .name, html[lang^=zh] h1, html[lang^=zh] h2 { font-weight: 700; letter-spacing: 0; }
html[lang^=zh] .stats span, html[lang^=zh] .sec-head h2, html[lang^=zh] .label { letter-spacing: .04em; }
@media print { .lang { display: none; } }

/* Cards, take three: the name and the icon carry the card. The wave is a ripple at the foot. */
.scene { aspect-ratio: auto; min-height: 168px; padding: 20px 20px 46px; display: flex; flex-direction: column; justify-content: flex-start; }
.hero .scene { aspect-ratio: auto; min-height: 200px; max-height: none; padding: 24px 24px 54px; }
.ride { inset: auto 0 0 0; width: 100%; height: 22px; }
.sea { fill: color-mix(in srgb, var(--c) 62%, var(--sea)); }
.ghost { position: absolute; right: -26px; bottom: -22px; width: 190px; height: 190px; transform: rotate(-12deg); opacity: .13; pointer-events: none; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.ghost * { stroke-width: 2.2; fill: none; }
.card:hover .ghost { transform: rotate(-4deg) scale(1.06); }
.title-row { max-width: 100%; align-items: center; gap: 14px; margin-top: auto; margin-bottom: auto; }
.stamp { align-self: flex-start; }
.badge { width: 72px; height: 72px; padding: 13px; box-shadow: 0 0 0 3px var(--ink); }
.badge * { stroke-width: 2.9; }
.name, .title-row .name { font-size: clamp(25px, 8.6cqw, 38px); line-height: 1.04; padding-top: 0; }
h1.name { font-size: clamp(28px, 7cqw, 56px); }
.hero .badge { width: 88px; height: 88px; padding: 16px; }
.hero .ghost { width: 260px; height: 260px; right: -30px; bottom: -40px; }
#pv-ghost { display: contents; }
@media (min-width: 860px) {
  .hero .scene { min-height: 260px; padding: 34px 36px 64px; }
  .hero .badge { width: 112px; height: 112px; padding: 21px; }
  .hero .title-row { gap: 24px; max-width: 82%; }
  .hero .ghost { width: 380px; height: 380px; right: -20px; bottom: -70px; }
  .hero .ride { height: 30px; }
}
@media (prefers-reduced-motion: reduce) { .ghost { transition: none; } .card:hover .ghost { transform: rotate(-12deg); } }
@media (hover: none) { .card:hover .ghost { transform: rotate(-12deg); } }
@media print { .ghost { display: none; } }

/* A sixth card color, and more air between the header and the projects */
.c-lilac { --c: #d9cdee; }
.top { padding-bottom: 30px; }
@media (min-width: 760px) { .top { padding-bottom: 44px; } }
