:root {
  color-scheme: light;
  --paper: #f7f6ef;
  --surface: #fffcf6;
  --ink: #18251e;
  --muted: #4d5b51;
  --line: #d9ddd1;
  --green: #213b30;
  --lime: #dfecad;
  --mono: ui-monospace, "SF Mono", monospace;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #4b6c46; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
.shell { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 3; background: white; padding: 8px 16px; }
.skip:focus { top: 8px; }
.header { border-bottom: 1px solid var(--line); }
.bar { min-height: 70px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 750; }
.mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; color: var(--lime); background: var(--green); font: italic 700 23px Georgia, serif; }
nav { display: flex; gap: clamp(15px, 3vw, 38px); font-size: 14px; }
nav a { padding-block: 10px; }
nav a:hover, nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.hero { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 4.5vw, 58px); align-items: center; padding-block: 60px 66px; }
.eyebrow, .tag { font: 650 11px/1.6 var(--mono); letter-spacing: .13em; color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #668949; }
h1 { margin-block: 17px 22px; font-size: clamp(35px, 4.45vw, 66px); line-height: 1.23; letter-spacing: -.06em; font-weight: 800; }
h1 em { color: #3c6249; font-style: normal; }
.lede { color: var(--muted); max-width: 33em; font-size: 16px; line-height: 1.85; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 45px; padding: 8px 15px; border: 1px solid var(--green); border-radius: 7px; font-size: 14px; font-weight: 700; }
.primary { color: var(--lime); background: var(--green); }
.primary:hover { background: #2d4e3e; }
.primary:disabled { opacity: .55; cursor: default; }
.outline:hover { background: #ebeee1; }
.desk { padding: 11px; border: 1px solid #a17b56; border-radius: 17px; background: #e5bf94; box-shadow: 0 15px 25px #59402e25, inset 0 1px #f5dbb9; }
.desk-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 2px 5px 9px; color: #4b3526; font: 700 11px/1.4 var(--mono); letter-spacing: .08em; }
.desk-label span:last-child { letter-spacing: 0; }
.desk-surface {
  position: relative;
  container-type: inline-size;
  isolation: isolate;
  aspect-ratio: 1.42;
  border-radius: 10px;
  border: 1px solid #22382e;
  background:
    repeating-linear-gradient(0deg, #d4e6c612 0 1px, transparent 1px 21px),
    repeating-linear-gradient(90deg, #d4e6c612 0 1px, transparent 1px 21px),
    radial-gradient(ellipse at 27% 5%, #55725c, #294338 85%);
  box-shadow: inset 0 2px 9px #1c332aab;
}
.desk-object {
  position: absolute;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #262d21;
  text-align: left;
  transform: rotate(var(--tilt));
  transition: transform .18s ease;
}
.desk-object:hover, .desk-object:focus-visible { z-index: 2; transform: translateY(-4px) rotate(0deg); }
.desk-object:focus-visible { outline: 2px solid #fff9dc; outline-offset: 5px; }
.desk-object strong { display: block; font-size: clamp(12px, 3.3cqw, 21px); line-height: 1.2; }
.desk-object small { display: block; margin-top: 4px; font-size: clamp(9px, 2.18cqw, 13px); line-height: 1.3; }
.object-meta, .radio-frequency { display: block; font: 700 clamp(8px, 1.8cqw, 11px)/1.25 var(--mono); letter-spacing: .07em; }
.desk-folder { --tilt: -9deg; left: 8%; top: 12%; width: 38%; }
.folder-paper { position: absolute; z-index: -1; inset: -12% 9% 18% 10%; transform: rotate(4deg); border-radius: 3px; background: repeating-linear-gradient(0deg, #e5e2cf 0 1px, #fcf7e7 1px 8px); box-shadow: 1px 2px 5px #22180f45; }
.folder-cover { position: relative; display: block; padding: 9% 8% 8%; border: 1px solid #a17b37; border-radius: 4px 8px 7px 7px; background: linear-gradient(145deg, #f6d993, #dcb15c); box-shadow: 3px 5px 0 #92652f, 6px 12px 15px #11271f65; }
.folder-cover::before { content: ""; position: absolute; z-index: -1; top: -14%; left: -1px; width: 43%; height: 23%; border: 1px solid #a17b37; border-radius: 7px 10px 0 0; background: #f0ce80; }
.folder-cover strong { margin-top: 10%; }
.folder-cover strong span { margin-left: 3px; }
.desk-computer { --tilt: 7deg; right: 8%; top: 9%; width: 39%; }
.computer-frame { display: block; padding: 7% 7% 4%; border: 1px solid #ad9e81; border-radius: 10% 10% 7% 7%; background: linear-gradient(150deg, #f8f1dc, #cfc2a4); box-shadow: 4px 5px 0 #8e816a, 7px 11px 15px #10271c66; }
.computer-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1.69; object-fit: cover; object-position: center 24%; border: 3px solid #303e32; border-radius: 9%; background: #263b32; }
.computer-frame i { display: block; width: 4px; height: 4px; margin: 6% 0 0 auto; border-radius: 50%; background: #557b32; }
.computer-base { display: block; width: 80%; margin: 1% auto 0; padding: 4% 6%; border: 1px solid #a89c83; border-radius: 2px 2px 6px 6px; background: #e7dec6; text-align: center; box-shadow: 2px 3px 0 #8f836b; }
.computer-base strong { font-size: clamp(10px, 2.6cqw, 15px); }
.desk-photo { --tilt: 6deg; bottom: 8%; left: 10%; width: 45%; padding: 1.6%; background: #fff9eb; border: 1px solid #ded1b3; border-radius: 2px; box-shadow: 4px 6px 12px #11271f80; }
.photo-scene { position: relative; display: block; }
.photo-scene img { display: block; width: 100%; height: auto; }
.photo-caption { position: absolute; inset: auto 4% 5%; color: #fff; text-align: center; text-shadow: 0 1px 3px #111, 0 0 4px #111; overflow-wrap: anywhere; font-size: clamp(8px, 2cqw, 12px); }
.photo-label { display: flex; justify-content: space-between; align-items: center; padding: 4% 3% 1%; }
.photo-label strong { font-size: clamp(11px, 2.65cqw, 16px); }
.desk-radio { --tilt: -8deg; right: 9%; bottom: 12%; width: 28%; }
.radio-face { position: relative; display: block; padding: 8%; border: 1px solid #2a3430; border-radius: 8px; background: linear-gradient(155deg, #bbd2bd, #809c87); box-shadow: 4px 5px 0 #203a30, 6px 11px 12px #13291f66; }
.radio-face::after { position: absolute; top: 12%; right: 8%; width: 16%; aspect-ratio: 1; border: 1px solid #263f35; border-radius: 50%; background: radial-gradient(at 28% 25%, #62776a, #22352e 75%); content: ""; }
.radio-frequency { width: max-content; padding: 3% 5%; border-radius: 2px; background: #274035; color: #e3edaf; }
.radio-frequency i { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #d9ea90; vertical-align: 2px; }
.radio-grille { display: block; height: clamp(8px, 3.4cqw, 20px); margin-block: 8%; background: repeating-linear-gradient(0deg, #29493b 0 1px, transparent 1px 4px); opacity: .8; }
.radio-face strong { font-size: clamp(11px, 2.8cqw, 17px); }
.desk-pencil { position: absolute; z-index: -1; top: 46%; left: 39%; width: 18%; height: 2%; transform: rotate(-31deg); border-radius: 8px 0 0 8px; background: linear-gradient(90deg, #9f6654 0 11%, #bd8c53 11% 18%, #d3a858 18% 84%, #d9bc8f 84% 96%, #332e24 96%); box-shadow: 2px 3px 4px #182d23a8; }
.radio-display { overflow: hidden; border-radius: 14px; background: #263d33; box-shadow: 0 16px 32px #162c201a; --signal: #dbea9e; }
.radio-display[data-channel="sing"] { --signal: #f0c3e2; }
.radio-display[data-channel="archery"] { --signal: #f3cd9a; }
.radio-display[data-channel="tennis"] { --signal: #e8eea1; }
.radio-display[data-channel="badminton"] { --signal: #bfe4e8; }
.dial-header { display: flex; justify-content: space-between; padding: 14px 16px 0; color: var(--signal); font: 11px var(--mono); letter-spacing: .13em; }
.dial-header i { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor; }
.radio-display svg { display: block; width: 100%; height: clamp(180px, 23vw, 310px); color: var(--signal); }
.station { display: none; }
[data-channel="work"] .station-work,
[data-channel="sing"] .station-sing,
[data-channel="archery"] .station-archery,
[data-channel="tennis"] .station-tennis,
[data-channel="badminton"] .station-badminton { display: block; animation: tune-in .24s ease-out; }
@keyframes tune-in { from { opacity: .25; } to { opacity: 1; } }
.radio-display figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px 14px; border-top: 1px solid #bdc9ad55; color: #e0e8d4; }
#channel-caption strong { display: block; color: var(--signal); font-size: 14px; }
#channel-caption span { display: block; font-size: 12px; }
.dial { display: flex; flex-wrap: wrap; gap: 5px; }
.dial button { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid #bdc9ad55; border-radius: 8px; background: #ffffff08; color: #e0e8d4; font: 17px/1 system-ui, sans-serif; }
.dial button:first-child { font: italic 700 19px/1 Georgia, serif; }
.dial button:hover { background: #ffffff21; }
.dial button[aria-pressed="true"] { border-color: var(--signal); background: var(--signal); color: #263d33; }
.dial button:focus-visible { outline-color: #fff; outline-offset: 2px; }
.section { border-top: 1px solid var(--line); padding-block: 34px 58px; scroll-margin-top: 14px; }
.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 18px; margin-bottom: 20px; }
h2 { font-size: clamp(27px, 3.25vw, 42px); line-height: 1.25; letter-spacing: -.045em; }
.section h2 { margin-top: 5px; }
.subpage { padding-block: 24px 36px; }
.subpage > .section:first-child { border-top: 0; }
.subpage h1 { margin: 5px 0 0; font-size: clamp(32px, 4vw, 48px); }
.text-link { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: transparent; color: #365a43; font-size: 14px; font-weight: 750; text-decoration: underline; text-decoration-color: #91aa88; text-underline-offset: 5px; }
.text-link:hover { color: #162f21; text-decoration-color: currentColor; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cover { position: relative; display: grid; place-items: center; width: 100%; min-width: 0; height: clamp(178px, 22vw, 250px); padding: 0; border: 0; overflow: hidden; }
.cover:focus-visible { outline-offset: -5px; }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.radar { background: #dce7dc; padding: 18px 18px 0; }
.radar img { height: auto; align-self: start; border-radius: 7px 7px 0 0; box-shadow: 0 8px 22px #213b3033; }
.delivery { background: #eae8db; }
.report-sheet { width: 80%; background: #f8f7ef; border: 1px solid #c8cec0; border-radius: 6px; padding: 11px 14px; transform: rotate(-4deg); box-shadow: 10px 11px 0 #d4d9c8; text-align: left; }
.report-sheet > span { display: flex; justify-content: space-between; color: var(--muted); font: 10px var(--mono); }
.report-sheet i { font-style: normal; }
.report-sheet strong { display: block; margin: 6px 0 8px; font-size: clamp(15px, 2.25vw, 25px); }
.sheet-row { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 4px; padding-block: 4px; border-top: 1px solid var(--line); font-size: 12px; }
.sheet-row b, .sheet-row span:last-child { font: 10px var(--mono); color: var(--muted); }
.dongpo img { object-position: 50% 35%; }
.caption { background: #677279; color: white; }
.caption span { position: absolute; bottom: 15px; max-width: 90%; padding: 4px 12px; background: #1a201ecc; font-size: clamp(12px, 1.6vw, 17px); letter-spacing: .08em; }
.card-body { display: flex; flex-direction: column; align-items: start; flex: 1; gap: 6px; padding: 19px 21px 22px; }
.tag { color: #43604c; font-size: 11px; letter-spacing: .07em; }
h3 { font-size: 23px; line-height: 1.35; letter-spacing: -.035em; }
.card-body p:not(.tag), .about p:not(.eyebrow) { color: var(--muted); font-size: 15px; }
.card-body .text-link { margin-top: auto; padding-top: 7px; }
.about { display: grid; grid-template-columns: 1fr .93fr; gap: 30px; align-items: center; }
.about h1, .note h3 { margin-bottom: 10px; }
.about .text-link { margin-top: 15px; }
.hobbies { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0 0; padding: 0; list-style: none; }
.hobbies li { padding: 4px 9px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); font-size: 13px; }
.note { background: #edf0e4; border-left: 3px solid #88a171; padding: 20px 21px; }
.note .eyebrow { margin-bottom: 6px; }
.radio-section .radio-display { max-width: 560px; }
.about-hero { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:clamp(28px,5vw,72px); align-items:center; }
.about-intro h1 { margin-bottom:22px; }
.about-intro > p:not(.eyebrow) { margin-top:16px; color:var(--muted); font-size:15px; line-height:1.9; }
.about-intro > p.about-lede { color:var(--green); font-size:clamp(20px,2.2vw,25px); line-height:1.65; }
.about-intro p a { text-decoration:underline; text-decoration-color:#9aa996; text-underline-offset:4px; }
.about-intro > .off-screen { margin-top:25px; padding-top:18px; border-top:1px dashed var(--line); }
.about-radio { min-width:0; scroll-margin-top:28px; }
.about-radio .section-heading { align-items:start; margin-bottom:16px; }
.about-radio .section-heading h2 { font-size:22px; margin-top:7px; }
.radio-invite { color:var(--muted); font-size:12px; padding-top:3px; }
.about-radio .radio-display svg { height:auto; }
.about-radio .dial button { min-width:38px; min-height:38px; }
.about-details { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:24px; }
.desk-story, .about-contact { padding:clamp(22px,3vw,36px); border:1px solid var(--line); border-radius:12px; }
.desk-story { background:#edf0e4; }
.about-contact { background:var(--surface); }
.about-details h2 { margin:12px 0 16px; font-size:clamp(22px,2.5vw,29px); line-height:1.45; }
.about-details p:not(.eyebrow) { color:var(--muted); font-size:15px; line-height:1.9; }
.desk-story p + p { margin-top:12px; }
.desk-story .text-link { margin-top:22px; }
.about-contact .button { margin-top:24px; }
.about-contact .contact-address { margin-top:12px; font:12px/1.7 var(--mono); overflow-wrap:anywhere; }
@media (max-width:780px) {
  .about-hero, .about-details { grid-template-columns:1fr; gap:30px; }
  .about-radio { width:100%; max-width:560px; margin-inline:auto; }
  .about-intro > p.about-lede { font-size:21px; }
}
.caption-editor-body { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; gap: 18px; border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--surface); }
canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 7px; background: #f0e4d6; }
.caption-controls label { display: block; font-size: 14px; }
.caption-controls input { width: 100%; min-height: 42px; border: 1px solid #939d8f; padding: 6px 9px; border-radius: 6px; margin-block: 4px 10px; }
#caption-status:not(:empty) { margin-top: 7px; font-size: 14px; }
@media (max-width: 850px) {
  .shell { width: calc(100% - 48px); }
  .hero { padding-block: 52px 55px; gap: 25px; }
  h1 { font-size: clamp(30px, 4.55vw, 46px); }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 32px); }
  .bar { min-height: 60px; }
  .brand { gap: 7px; font-size: 13px; }
  .mark { width: 29px; height: 29px; font-size: 20px; }
  nav { gap: 12px; font-size: 13px; }
  .hero { grid-template-columns: 1fr; padding-block: 34px 37px; }
  .desk { padding: 8px; }
  .desk-surface { aspect-ratio: 1.24; }
  h1 { font-size: clamp(29px, 7.65vw, 48px); margin-block: 13px 16px; }
  .radio-display svg { height: clamp(150px, 43vw, 220px); }
  .dial button { width: 42px; height: 42px; }
  .actions { margin-top: 19px; }
  .section { padding-block: 26px 38px; }
  .card-grid, .about, .caption-editor-body { grid-template-columns: 1fr; gap: 15px; }
  .cover { height: clamp(175px, 52vw, 280px); }
  .card-body { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .desk-object { transition: none; }
  .station { animation: none !important; }
}
.work-intro { max-width:48em; color:var(--muted); font-size:15px; line-height:1.9; margin-bottom:26px; }
.project-grid { align-items:stretch; }
.project-body { gap:12px; padding:25px; }
.project-body h2 { margin:0; font-size:27px; line-height:1.35; letter-spacing:-.035em; }
.project-body .project-lead { color:var(--ink); font-size:16px; }
.project-facts { margin:0; width:100%; }
.project-facts > div { padding-block:14px; border-top:1px solid var(--line); }
.project-facts dt { color:#43604c; font-size:12px; font-weight:750; margin-bottom:5px; }
.project-facts dd { margin:0; color:var(--muted); font-size:14px; line-height:1.8; }
.project-body .project-boundary { font-size:12px; line-height:1.7; }
.radar-overview { display:flex; flex-direction:column; justify-content:center; align-items:stretch; gap:20px; padding:22px; background:#dce7dc; }
.flow-label { font:10px/1.6 var(--mono); color:#43604c; letter-spacing:.04em; }
.radar-flow { display:grid; grid-template-columns:minmax(0,1fr) 22px minmax(0,1.12fr); align-items:center; gap:8px; }
.source-slip, .task-slip { display:flex; flex-direction:column; min-width:0; gap:9px; padding:14px; border:1px solid #b9c8b8; border-radius:7px; background:#fffcf3; box-shadow:3px 4px 0 #a8bca633; }
.source-slip { transform:rotate(-3deg); }
.source-slip > span { font-size:14px; line-height:1.8; }
.source-slip small, .task-slip small { color:#5c6a5c; font-size:10px; }
.source-slip i, .task-slip i { font-size:10px; font-style:normal; color:#43604c; }
.task-slip { gap:7px; border-top:3px solid #55775c; }
.task-slip strong { font-size:15px; line-height:1.5; }
.task-slip > span { font-size:11px; }
.task-slip b { margin-right:7px; color:#5c6a5c; font-weight:400; }
.flow-arrow { text-align:center; font-size:22px; color:#43604c; }
.site-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px 36px; margin-top:12px; padding-block:26px 34px; border-top:1px solid var(--line); }
.footer-brand { color:var(--green); font-size:14px; font-weight:750; }
.site-footer p { color:var(--muted); font-size:12px; margin-top:5px; }
.site-footer nav { flex-wrap:wrap; gap:6px 23px; font-size:12px; }
.site-footer nav a { padding-block:8px; }
.tool-notice { display:flex; align-items:baseline; gap:8px 18px; padding:13px 16px; margin:0 0 25px; border:1px solid var(--line); border-radius:8px; background:#edf0e480; }
.tool-notice strong { flex-shrink:0; color:#43604c; font-size:12px; }
.tool-notice p { color:var(--muted); font-size:12px; line-height:1.8; }
#jump-to-result { display:inline-flex; margin-top:10px; }
#jump-to-result[hidden] { display:none; }
#export-result { scroll-margin-top:20px; }
.export-result h2 { margin:0 0 12px; font-size:23px; }
.missing-page { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:60px; align-items:center; padding-block:90px; }
.missing-page h1 { font-size:clamp(30px,4vw,48px); }
.missing-page p:not(.eyebrow) { max-width:35em; color:var(--muted); }
.missing-folder { display:flex; flex-direction:column; align-items:center; padding:32px 20px; border:1px solid #a17b37; border-radius:7px 14px 12px 12px; background:#eed18c; box-shadow:7px 9px 0 #c7b485; transform:rotate(-5deg); color:#3e442c; }
.missing-folder > span { font:11px var(--mono); letter-spacing:.08em; }
.missing-folder strong { font:italic 700 clamp(80px,12vw,140px)/1.3 Georgia,serif; }
.missing-folder small { font-size:13px; }
@media (max-width:760px) {
  .project-body { padding:20px; }
  .radar-overview { min-height:250px; padding:18px; gap:15px; }
  .radar-flow { grid-template-columns:minmax(0,1fr) 16px minmax(0,1.1fr); gap:5px; }
  .source-slip, .task-slip { padding:10px; }
  .source-slip > span { font-size:12px; }
  .task-slip strong { font-size:13px; }
  .task-slip > span { font-size:10px; }
  .site-footer { align-items:start; }
  .site-footer nav { gap:4px 20px; }
  .tool-notice { flex-direction:column; gap:4px; padding:12px 14px; }
  .missing-page { grid-template-columns:1fr; gap:30px; padding-block:42px; }
  .missing-folder { max-width:260px; width:90%; margin-inline:auto; padding-block:22px; }
}

.portfolio-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
  scroll-margin-top: 30px;
}
.portfolio-links a {
  display: grid;
  gap: 3px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.portfolio-links a:hover { border-color: var(--green); }
.portfolio-links strong { color: var(--green); }
.portfolio-links small { color: var(--muted); font-size: 13px; }
.project-callout { margin-top: 18px; }
@media (max-width: 640px) {
  .portfolio-links { grid-template-columns: 1fr; }
}
