/*
 * Super Plumber ($SUPERPLUMB) — the plunger-hat plumber from the plumber wave, now in a red cape with a pill on his chest.
 * MS Paint look: white paper, bright plumber green with thick black outlines, comic lettering, a plumber's license for the address.
 * Super Plumber（$SUPERPLUMB）——plumber 浪里头戴绿马桶搋子的那位，现在披上红披风、胸前一颗药丸。
 * MS Paint 画风：白纸、亮绿配粗黑线、漫画字，合约区做成一张管道工执照。
 */
:root {
  --paper: #fefefe;
  --paper-2: #f3fff3;
  --ink: #111111;
  --muted: #4a4a4a;
  --green: #33e033;
  --green-deep: #149a14;
  --green-soft: #c8f7c8;
  --red: #e8262b;
  --black: #0b0b0b;
  --display: 'Comic Neue', 'Comic Sans MS', 'Chalkboard SE', sans-serif;
  --sans: 'Comic Neue', 'Comic Sans MS', 'Chalkboard SE', sans-serif;
  --mono: 'Red Hat Mono', 'Courier New', monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 700 18px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p, dl, dd, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
code { font-family: var(--mono); }
[hidden] { display: none !important; }

/* The pump pill, drawn in CSS: half green, half white, tilted / CSS 画的绿白胶囊，斜放 */
.pill { display: inline-block; width: 30px; height: 14px; border: 2.5px solid var(--ink); border-radius: 999px; background: linear-gradient(to right, var(--green) 50%, var(--paper) 50%); transform: rotate(-45deg); flex: none; }

/* Header / 页眉 */
.site-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 12px var(--gutter); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 3px solid var(--ink); }
.monogram { display: inline-flex; align-items: center; gap: 12px; font: 700 clamp(20px, 1.7vw, 26px)/1 var(--display); color: var(--green); -webkit-text-stroke: 1.2px var(--ink); paint-order: stroke fill; }
.site-nav { display: flex; justify-content: center; gap: clamp(18px, 2.6vw, 40px); font: 700 16px/1 var(--sans); }
.site-nav a { padding: 8px 0; border-bottom: 3px solid transparent; transition: border-color 0.2s var(--ease); }
.site-nav a:hover { border-color: var(--green); }
.header-right { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.header-social { font: 700 15px/1 var(--sans); padding: 8px 10px; border: 2.5px solid var(--ink); border-radius: 999px; }
.header-ticker { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: var(--green); color: var(--ink); border: 2.5px solid var(--ink); font: 700 16px/1 var(--sans); box-shadow: 0 3px 0 var(--ink); transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.header-ticker:hover { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

/* Hero: white paper, the plumber pinned right and fit by height, the copy on the empty left / 首屏：白纸，角色按高度贴右，文字放左侧空白 */
.hero { position: relative; min-height: calc(100vh - 62px); min-height: calc(100svh - 62px); overflow: hidden; background: var(--paper); }
.hero-art { position: absolute; inset: 0; }
.hero-art img { position: absolute; right: 0; bottom: 0; height: 100%; width: auto; max-width: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 52%) 1fr; min-height: inherit; padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(40px, 5vw, 72px); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 14px; max-width: 720px; }
.eyebrow { width: fit-content; padding: 7px 14px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 clamp(12px, 0.95vw, 14px)/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
.dot { opacity: 0.6; padding: 0 2px; }
.wordmark { display: flex; flex-direction: column; font: 700 clamp(64px, min(8.4vw, 15vh), 150px)/0.9 var(--display); text-transform: uppercase; letter-spacing: -0.01em; }
.wm-super, .wm-plumber { -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }
.wm-super { color: var(--red); }
.wm-plumber { color: var(--green); }
.hero-lede { font: 700 clamp(22px, 2.1vw, 32px)/1.2 var(--sans); color: var(--ink); max-width: 26ch; }
.hero-line { font: 700 clamp(16px, 1.3vw, 19px)/1.45 var(--sans); color: var(--muted); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font: 700 17px/1 var(--sans); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.btn:hover { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn-green { background: var(--green); color: var(--ink); }
.btn-white { background: var(--paper); color: var(--ink); }
.ca-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; width: fit-content; padding: 9px 12px; border-radius: 12px; background: var(--paper); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
.ca-label { font: 600 12px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--green-deep); }
.ca-short { font: 600 15px/1 var(--mono); color: var(--ink); }
.btn-copy { padding: 10px 14px; border-radius: 9px; border: 2.5px solid var(--ink); background: var(--green); color: var(--ink); font: 700 15px/1 var(--sans); transition: background 0.2s var(--ease), transform 0.2s var(--ease); }
.btn-copy:hover { transform: translateY(-1px); }
.btn-copy.is-copied { background: var(--ink); color: var(--green); }
.btn-copy-sm { padding: 7px 12px; font-size: 14px; }
.hero-note { width: fit-content; max-width: 56ch; font: 700 14px/1.5 var(--sans); color: var(--muted); }

/* Running head: plumber-green band with pills / 跑马灯：管道绿底配药丸 */
.running-head { overflow: hidden; background: var(--green); color: var(--ink); padding: 13px 0; font: 700 15px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; border-block: 3px solid var(--ink); }
.running-track { display: flex; gap: 48px; width: max-content; animation: run 44s linear infinite; }
.running-track span { display: inline-flex; align-items: center; }
.running-track span::before { content: ''; width: 24px; height: 11px; margin-right: 20px; border: 2px solid var(--ink); border-radius: 999px; background: linear-gradient(to right, var(--paper) 50%, var(--green-deep) 50%); transform: rotate(-45deg); }
@keyframes run { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Sections / 区块 */
.section { padding: clamp(72px, 9vw, 120px) var(--gutter); }
.kicker { font: 600 clamp(12px, 1vw, 14px)/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 16px; }
.section h2 { font: 700 clamp(34px, 3.9vw, 60px)/1.02 var(--display); text-transform: uppercase; max-width: 20ch; }
.section p + p { margin-top: 14px; }
.plain { color: var(--muted); }

/* Where it started: the post, quoted as a card / 起点：原推做成一张卡 */
.started { background: var(--paper-2); border-bottom: 3px solid var(--ink); }
.started-grid { display: grid; grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.post { padding: 22px 24px; background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 8px 8px 0 var(--green); font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; }
.post-head { display: flex; align-items: center; gap: 12px; }
.post-avatar { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #ddd; object-fit: cover; }
.post-who { display: flex; flex-direction: column; line-height: 1.2; }
.post-name { font-weight: 700; font-size: 16px; }
.post-handle { font-weight: 400; font-size: 15px; color: #5b6670; }
.post-text { margin-top: 16px; font: 400 clamp(22px, 2vw, 28px)/1.3 system-ui, -apple-system, 'Segoe UI', sans-serif; }
.post-meta { margin-top: 14px; font-size: 14px; font-weight: 400; color: #5b6670; }
.post-stats { display: flex; gap: 18px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #e3e6e8; font-size: 14px; font-weight: 400; color: #5b6670; }
.post-stats b { color: var(--ink); }
.post-link { display: inline-block; margin-top: 14px; font: 700 15px/1 var(--sans); text-decoration: underline; text-underline-offset: 3px; }
.started-copy h2 { margin-bottom: 22px; }
.started-copy p { color: var(--muted); }

/* Who's a plumber / 谁是管道工 */
.plumbers { background: var(--paper); }
.plumbers-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.9fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.plumbers-copy h2 { margin-bottom: 22px; }
.plumbers-copy p { color: var(--muted); }
.shift { padding: 8px 22px; background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--green); }
.shift li { display: grid; grid-template-columns: 70px 1fr; gap: 14px; padding: 13px 0; border-bottom: 2.5px dashed rgba(17, 17, 17, 0.2); font: 700 clamp(16px, 1.35vw, 19px)/1.3 var(--sans); }
.shift li:last-child { border-bottom: 0; }
.shift .time { font: 600 14px/1.6 var(--mono); color: var(--green-deep); }
.shift .now .time, .shift .now .what { color: var(--red); }

/* The plumber's code: green band with three cards / 守则：绿底三张卡 */
.rules-section { background: var(--green); border-block: 3px solid var(--ink); }
.rules-section .kicker { color: var(--ink); }
.rules-section h2 { color: var(--paper); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; margin-bottom: 40px; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rules li { padding: 26px 24px; background: var(--paper); border-radius: var(--radius); border: 3px solid var(--ink); box-shadow: 0 7px 0 var(--ink); }
.rule-no { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green); border: 3px solid var(--ink); font: 700 17px/1 var(--display); margin-bottom: 16px; }
.rules h3 { font: 700 clamp(24px, 2vw, 30px)/1.05 var(--display); text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.rules p { color: var(--muted); font-size: 17px; }

/* The pipe: white rooftop scene, the button drops him into the black pill room / 管道：白底场景，按钮把他送进黑底药丸屋 */
.pipe-scene { position: relative; min-height: clamp(520px, 56vw, 1100px); background: var(--paper); overflow: hidden; display: grid; place-items: start center; border-bottom: 3px solid var(--ink); transition: background 0.8s var(--ease); }
.pipe-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; transition: opacity 0.8s var(--ease); }
.pipe-art-down { opacity: 0; }
.pipe-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: clamp(40px, 5vw, 84px) var(--gutter) 0; text-align: center; }
.pipe-word { font: 700 clamp(64px, 9.5vw, 170px)/0.9 var(--display); text-transform: uppercase; color: var(--green); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; }
.word-down { display: none; -webkit-text-stroke-color: var(--paper); }
.pipe-sub { padding: 6px 14px; border-radius: 10px; background: var(--ink); font: 700 clamp(16px, 1.5vw, 21px)/1.3 var(--sans); color: var(--paper); }
.when-down { display: none; }
.btn-pipe { padding: 13px 28px; border-radius: 12px; border: 3px solid var(--ink); background: var(--green); color: var(--ink); font: 700 clamp(18px, 1.5vw, 22px)/1 var(--display); text-transform: uppercase; box-shadow: 0 6px 0 var(--ink); transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.btn-pipe:hover { transform: translateY(3px); box-shadow: 0 3px 0 var(--ink); }
.is-down { background: var(--black); }
.is-down .pipe-art-down { opacity: 1; }
.is-down .word-up, .is-down .when-up { display: none; }
.is-down .word-down { display: block; }
.is-down .when-down { display: inline; }
.is-down .pipe-sub { background: var(--paper); color: var(--ink); }
.is-down .btn-pipe { border-color: var(--paper); box-shadow: 0 6px 0 var(--paper); }

/* Join the crew / 加入 */
.join { background: var(--paper); }
.join-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.action img { border-radius: var(--radius); border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--green); }
.action figcaption { margin-top: 16px; font: 600 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.join-copy h2 { margin-bottom: 18px; }
.ticker-inline { color: var(--green-deep); }
.join-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ca-block { display: grid; gap: 10px; margin-top: 24px; padding: 16px 18px; background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 0 5px 0 var(--ink); }
.ca-full { font: 600 14px/1.5 var(--mono); word-break: break-all; color: var(--ink); }
.ca-block .btn-copy { width: fit-content; }

/* Plumber's license / 管道工执照 */
.license-section { background: var(--paper-2); border-top: 3px solid var(--ink); }
.license { max-width: 980px; margin: 0 auto; background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 12px 12px 0 var(--ink); overflow: hidden; }
.license-band { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px clamp(20px, 3vw, 36px); background: var(--green); border-bottom: 3px solid var(--ink); }
.license-title { font: 700 clamp(22px, 2.1vw, 30px)/1 var(--display); text-transform: uppercase; }
.license-class { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; }
.license-class span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: var(--paper); border: 3px solid var(--ink); font: 700 22px/1 var(--display); letter-spacing: 0; }
.license-body { display: grid; grid-template-columns: 220px 1fr; gap: clamp(20px, 3vw, 40px); padding: clamp(22px, 3vw, 40px); }
.license-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border: 3px solid var(--ink); border-radius: 10px; background: var(--paper); }
.license-photo figcaption { margin-top: 10px; font: 600 12px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: center; }
.license-main h2 { margin: 0; max-width: none; }
.license-sub { margin-top: 8px; font: 600 13px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-deep); }
.license-rows { margin-top: 20px; border-top: 3px solid var(--ink); }
.license-rows > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 2.5px dashed rgba(17, 17, 17, 0.2); }
.license-rows dt { font: 600 12px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.license-rows dd { font: 700 16px/1.45 var(--sans); }
.license-rows dd a { text-decoration: underline; text-underline-offset: 3px; }
.row-ca dd { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.row-ca code { font: 600 13px/1.5 var(--mono); word-break: break-all; }
.license-sign { margin-top: 20px; display: flex; justify-content: flex-end; align-items: baseline; gap: 12px; font: 400 14px/1 var(--mono); color: var(--muted); }
.license-sign .sign { display: inline-block; font: 700 28px/1 var(--display); color: var(--red); text-transform: uppercase; transform: rotate(-3deg); }

/* Footer / 页脚 */
.site-footer { padding: 32px var(--gutter) 40px; background: var(--ink); color: rgba(255, 255, 255, 0.78); font: 700 14px/1.6 var(--sans); }
.site-footer p { max-width: 900px; }

/* Reveal / 滚入 */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .running-track { animation: none; }
  .pipe-art, .pipe-scene { transition: none; }
}

/* Tablet and below: stacked hero / 平板及以下：首屏叠放 */
@media (max-width: 1080px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .site-nav { justify-content: flex-start; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-inner { order: 1; position: static; display: flex; flex-direction: column; padding: 28px var(--gutter) 0; }
  .hero-copy { position: relative; z-index: 1; max-width: none; gap: 12px; }
  .hero-art { order: 2; position: relative; inset: auto; width: 100%; margin: -8% 0 0; z-index: 0; }
  .hero-art img { position: relative; right: auto; bottom: auto; width: 100%; height: auto; max-width: 100%; }
  .started-grid, .plumbers-grid, .join-grid { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
}

/* Phone / 手机 */
@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; padding: 12px 16px; }
  .site-nav { display: none; }
  :root { --gutter: 16px; }
  .hero-note, .hero-line { display: none; }
  .hero-art { margin-top: -62%; }
  .eyebrow { font-size: 11px; letter-spacing: 0.1em; }
  .wordmark { font-size: clamp(56px, 17vw, 84px); }
  .wm-super, .wm-plumber { -webkit-text-stroke: 4px var(--ink); }
  .hero-lede { font-size: 21px; }
  .btn { padding: 11px 15px; font-size: 15px; }
  .pipe-scene { min-height: 78vh; }
  .pipe-word { -webkit-text-stroke-width: 5px; }
  .license-body { grid-template-columns: 1fr; }
  .license-photo { max-width: 200px; margin: 0 auto; }
  .license-rows > div { grid-template-columns: 1fr; gap: 4px; }
  .license { box-shadow: 6px 6px 0 var(--ink); }
  .post { box-shadow: 6px 6px 0 var(--green); }
}

/* Wide / 超宽 */
@media (min-width: 2000px) {
  body { font-size: 21px; }
  :root { --gutter: 7vw; }
  .hero-copy { max-width: 1000px; }
  .wordmark { font-size: clamp(150px, min(7vw, 15vh), 220px); }
  .eyebrow { font-size: 17px; padding: 9px 18px; }
  .hero-lede, .hero-line, .hero-note { font-size: 1.3em; }
  .btn, .btn-copy { font-size: 20px; padding: 16px 26px; }
  .ca-short { font-size: 20px; }
  .ca-label { font-size: 15px; }
  .section h2 { font-size: clamp(60px, 3.2vw, 86px); }
  .license { max-width: 1300px; }
  .license-body { grid-template-columns: 300px 1fr; }
  .started-grid, .plumbers-grid, .join-grid, .rules, .rules-section h2, .rules-section .kicker, .site-footer p { max-width: 1800px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 3000px) {
  body { font-size: 27px; }
  .wordmark { font-size: clamp(200px, min(6.4vw, 15vh), 280px); }
  .btn, .btn-copy { font-size: 26px; padding: 20px 34px; }
  .ca-short { font-size: 26px; }
  .started-grid, .plumbers-grid, .join-grid, .rules, .site-footer p { max-width: 2600px; }
  .license { max-width: 1700px; }
}
