:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --ink: #182335;
  --accent: #2854a0;
  --line: #dcdfdf;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.shell { width: min(1120px, calc(100% - 72px)); margin-inline: auto; }
.topbar { min-height: 70px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; font-weight: 760; font-size: 23px; letter-spacing: -.07em; }
.brand > span:last-child { color: var(--accent); }
.brand-mark { display: inline-flex; align-items: center; gap: 2px; margin-right: 9px; transform: rotate(32deg); }
.brand-mark i { width: 5px; height: 15px; border-radius: 6px; background: var(--accent); }
.brand-mark i:nth-child(2) { height: 23px; }
main { flex: 1; display: grid; align-items: center; }
.hero { text-align: center; padding: 20px 0 55px; }
.surf-stage { position: relative; width: min(790px, 100%); height: clamp(245px, 32vw, 330px); margin: 0 auto 3px; }
.surf-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#surf-path { fill: none; stroke: url(#water); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.surfer { position: absolute; left: 58%; top: 69%; width: clamp(122px, 20vw, 220px); translate: -50% -88%; }
.surfer-art { transform-origin: 50% 88%; transform: rotate(var(--bank, 0deg)); }
.surfer img { display: block; width: 100%; height: auto; }
.speech {
  position: absolute;
  left: 77%;
  bottom: 91%;
  white-space: nowrap;
  padding: 8px 13px;
  border: 1px solid #b7cbdc;
  border-radius: 100px;
  background: #fffefb;
  color: var(--ink);
  font-size: clamp(12px, 1.6vw, 15px);
  font-weight: 700;
  transition: opacity .24s ease, transform .24s ease;
}
.speech::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  left: 17px;
  bottom: -5px;
  transform: rotate(45deg);
  background: inherit;
  border-right: 1px solid #b7cbdc;
  border-bottom: 1px solid #b7cbdc;
}
.riding .speech { opacity: 0; transform: translateY(4px); transition: none; }
h1 { margin: 0; font: 400 clamp(46px, 8.6vw, 111px)/1 Georgia, serif; letter-spacing: -.075em; }
h1 em { color: var(--accent); font-weight: inherit; padding-right: .09em; }
.description { margin: 17px 0 0; color: #4c5969; font-size: 16px; line-height: 1.5; }
#replay { margin-top: 21px; padding: 8px 13px; border: 1px solid #c9d0d8; border-radius: 100px; background: transparent; color: var(--ink); cursor: pointer; font: 650 13px system-ui, sans-serif; }
#replay:hover { background: #e8eff5; }
#replay span { padding-right: 4px; font-size: 15px; }
.footer { border-top: 1px solid var(--line); padding-block: 17px 21px; color: #4c5969; font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) {
  .shell { width: calc(100% - 36px); }
  .topbar { min-height: 60px; }
  .hero { padding: 12px 0 42px; }
  .description { margin: 14px auto 0; max-width: 30ch; font-size: 15px; }
  .speech { left: 62%; padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .speech { transition: none; }
}
