:root {
  --paper:#faf9f6; --surface:#fff; --ink:#243b35; --muted:#69756f; --line:#e4e7df;
  --green:#2d6350; --green_dark:#204c3d; --mint:#e7f1e8; --peach:#f9eadb;
  --pink:#f8e7e8; --lavender:#eeebf7; --error:#a53431; --error_bg:#fff0ed;
  --success:#256449; --success_bg:#eaf5ed; --editor:#24332e; --code:#e0eade;
  --code_muted:#b0beb3; --yellow:#f6e8b7;
  --space_1:4px; --space_2:8px; --space_3:12px; --space_4:16px; --space_5:20px;
  --space_6:24px; --space_8:32px; --space_10:40px; --space_12:48px; --space_16:64px;
  --radius_sm:12px; --radius:20px; --radius_lg:24px;
  --shadow:0 8px 32px rgb(36 59 53 / .05);
  --ease:cubic-bezier(.2,.8,.2,1); --mono:Consolas,'Courier New',monospace;
  color:var(--ink); background:var(--paper); font-family:system-ui,'Malgun Gothic',sans-serif;
  font-size:16px; line-height:1.7; font-synthesis:none; -webkit-font-smoothing:antialiased;
}
* { box-sizing:border-box; }
body { margin:0; min-width:320px; }
button,input,textarea,select { font:inherit; }
button,a,select,summary { -webkit-tap-highlight-color:transparent; }
button,a { touch-action:manipulation; }
button { cursor:pointer; }
a { color:inherit; text-decoration:none; }
button:disabled { cursor:not-allowed; opacity:.5; }
:focus-visible { outline:3px solid var(--green); outline-offset:4px; }
button:active:not(:disabled),.button:active { transform:translateY(1px); }
h1,h2,h3,p { margin:0; }
h1,h2,h3,p,li { word-break:keep-all; overflow-wrap:anywhere; }
h1,h2,h3 { line-height:1.3; letter-spacing:-.04em; }
img { display:block; max-width:100%; height:auto; }
button { color:inherit; }
code,pre,textarea { font-family:var(--mono); }
code { font-size:.9em; }
pre { overflow:auto; margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
[hidden] { display:none !important; }
.container { width:min(1200px,calc(100% - 80px)); margin-inline:auto; }
.skip_link { position:fixed; top:-80px; left:16px; background:var(--green); color:white; padding:12px; z-index:20; }
.skip_link:focus { top:12px; }
.site_header { display:flex; align-items:center; justify-content:space-between; min-height:104px; gap:24px; }
.brand { display:inline-flex; align-items:center; gap:10px; font-size:22px; font-weight:800; letter-spacing:-.06em; white-space:nowrap; }
.brand_mark { display:grid; place-items:center; width:36px; height:36px; border-radius:12px; background:var(--green); color:white; font:bold 20px var(--mono); letter-spacing:-5px; padding-right:4px; }
.header_nav { display:flex; align-items:center; gap:32px; font-size:14px; font-weight:600; }
.text_button { background:none; border:0; padding:10px 0; font-weight:600; }
.text_button:hover,.nav_link:hover { color:var(--green); text-decoration:underline; text-underline-offset:5px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:46px; padding:12px 22px; border:1px solid transparent; border-radius:999px; background:var(--green); color:var(--surface); font-size:14px; font-weight:700; transition:transform 150ms var(--ease),background 150ms var(--ease); }
.button:hover:not(:disabled) { background:var(--green_dark); }
.button.is_secondary { color:var(--ink); background:var(--surface); border-color:var(--line); }
.button.is_secondary:hover:not(:disabled) { background:var(--mint); }
.button.is_small { min-height:40px; padding:8px 16px; }
.arrow { display:inline-grid; place-items:center; width:24px; height:24px; border-radius:50%; background:rgb(255 255 255 / .15); font-size:18px; line-height:1; }
.eyebrow { display:block; color:var(--green); font:700 12px/1.5 var(--mono); letter-spacing:.12em; text-transform:uppercase; }
.muted { color:var(--muted); }
.tag { display:inline-flex; align-items:center; min-height:26px; padding:3px 10px; border-radius:6px; background:var(--mint); font-size:12px; line-height:1.5; font-weight:700; letter-spacing:.02em; }
.theme_html { --theme:var(--peach); }
.theme_selector { --theme:var(--pink); }
.theme_flex { --theme:var(--mint); }
.theme_combo { --theme:var(--lavender); }
.theme_javascript { --theme:var(--yellow); }
.theme_html .tag,.theme_selector .tag,.theme_flex .tag,.theme_combo .tag,.theme_javascript .tag { background:var(--theme); }
progress { display:block; width:100%; height:5px; border:0; border-radius:9px; overflow:hidden; background:var(--line); accent-color:var(--green); }
progress::-webkit-progress-bar { background:var(--line); }
progress::-webkit-progress-value { background:var(--green); border-radius:9px; }
.site_footer { display:flex; justify-content:space-between; align-items:center; gap:24px; border-top:1px solid var(--line); padding-block:32px; margin-top:64px; font-size:12px; color:var(--muted); }
.footer_brand { font-weight:700; letter-spacing:-.03em; color:var(--ink); font-size:16px; }
dialog { width:min(520px,calc(100% - 40px)); max-height:85dvh; border:0; border-radius:24px; padding:32px; color:var(--ink); box-shadow:var(--shadow); }
dialog::backdrop { background:rgb(20 40 30 / .35); backdrop-filter:blur(3px); }
.dialog_top { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:24px; }
.dialog_top h2 { font-size:24px; }
.dialog_copy { display:grid; gap:20px; }
.dialog_copy p { font-size:15px; color:var(--muted); }
.dialog_copy strong { display:block; color:var(--ink); margin-bottom:4px; }
.dialog_progress { display:grid; gap:8px; }
.dialog_progress a { display:flex; justify-content:space-between; padding:12px 16px; background:var(--paper); border-radius:12px; font-size:14px; }
.dialog_progress a:hover { background:var(--mint); }
.storage_notice { padding:12px 20px; background:var(--yellow); color:var(--ink); font-size:14px; }
@media(max-width:768px) {
  .container { width:calc(100% - 40px); }
  .site_header { min-height:84px; gap:12px; }
  .header_nav { gap:20px; }
  .header_nav .nav_link { display:none; }
  .brand { font-size:20px; }
  .site_footer { align-items:flex-start; flex-direction:column; gap:12px; margin-top:40px; }
}
@media(max-width:420px) { .header_nav { gap:14px; } .header_nav .button { padding:8px 14px; min-height:40px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none !important; animation:none !important; scroll-behavior:auto !important; } }
