/* Aken / Editorial 1.1 — semantic foundations */
:root {
  --paper: #f7f7f3;
  --white: #ffffff;
  --ink: #172a32;
  --muted: #536772;
  --blue: #4d7086;
  --blue-dark: #375a70;
  --wash: #eaf1f3;
  --line: #ccd8dd;
  --surface-raised: #ffffff;
  --surface-hover: #e9eeed;
  --surface-selected: #e3edf1;
  --border-strong: #7b909a;
  --focus: #296385;
  --success: #35624d;
  --success-wash: #edf4ee;
  --danger: #a03932;
  --danger-wash: #fbefec;
  --text-caption: 12px;
  --text-label: 13px;
  --text-small: 14px;
  --text-control: 15px;
  --text-body: 16px;
  --text-lead: 20px;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --leading-body: 1.8;
  --leading-reading: 1.95;
  --leading-ui: 1.5;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-surface: 0 8px 24px #172a3208, 0 1px 3px #172a3205;
  --shadow-dialog: 0 28px 90px #172a3233;
  --duration-fast: 160ms;
  --duration-ui: 260ms;
  --ease-ui: cubic-bezier(.22,1,.36,1);
  --font: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --container: 1240px;
  --header-height: 104px;
  --gutter: clamp(24px,5.2vw,80px);
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  scrollbar-gutter: stable;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
body.dialog-open { overflow: hidden; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.4; letter-spacing: -.025em; text-wrap: pretty; }
h1 { font-size: clamp(38px,4.4vw,64px); }
h2 { font-size: clamp(29px,3.1vw,44px); }
h3 { font-size: 23px; }
p { overflow-wrap: break-word; }
ul, ol { padding-left: 1.2em; }
li + li { margin-top: 8px; }
[hidden] { display: none !important; }
:where(a,button,input,textarea,summary,[tabindex]:not([tabindex="-1"])):focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
:where(h1,h2,h3)[tabindex="-1"]:focus { outline:none; }
::selection { background: #c4dce7; color: var(--ink); }
section[id], .project-entry[id] { scroll-margin-top: 16px; }
.page-start { display: block; height: 0; }
.container { width: min(var(--container),calc(100% - var(--gutter)*2)); margin-inline: auto; }
.eyebrow { font-size: 14px; letter-spacing: .07em; color: var(--blue); margin-bottom: 25px; }
.stage-label { font-size: 13px; color: var(--muted); line-height: 1.7; }
.skip-link { position: fixed; top: 12px; left: -9999px; z-index: 30; background: var(--ink); color: white; padding: 12px 20px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 20px; }
.icon { display: block; width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1000px) {
  :root { --header-height: 82px; }
}
@media (max-width: 760px) {
  :root { --gutter: 24px; --header-height: 80px; }
  .eyebrow { font-size: 12px; margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
