:root {
  color-scheme: light;
  --bg: #f7f7f2;
  --surface: #ffffff;
  --soft: #edeee6;
  --ink: #23271f;
  --muted: #686e60;
  --line: #dcdfd3;
  --accent: #d6ef79;
  --accent-ink: #303b16;
  --success: #398156;
  --warning: #8a681c;
  --error: #aa4238;
  --info: #536f93;
  --inactive: #94998c;
  --rose: #f5e7e0;
  --blue: #e4edf4;
  --green: #e8eedb;
  --yellow: #f3edcf;
  --shadow: 0 8px 24px #24271d08;
  --font: Pretendard, "Noto Sans KR", system-ui, sans-serif;
  --caption: 0.6875rem;
  --small: 0.75rem;
  --body: 0.875rem;
  --h4: 1rem;
  --h3: 1.25rem;
  --h2: 1.75rem;
  --h1: 4rem;
  --hero-mobile: 2.5rem;
  --brand-size: 1.875rem;
  --art-type: 3rem;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s8: 32px;
  --s10: 40px;
  --s12: 48px;
  --s16: 64px;
  --s20: 80px;
  --s24: 96px;
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --pill: 999px;
  --border: 1px;
  --focus: 3px;
  --touch: 44px;
  --page: 1160px;
  --art-size: 280px;
  --art-tile: 88px;
  --tracking: -0.055em;
  --label-tracking: 0.13em;
  --label-tracking-compact: 0.08em;
  --ease: 180ms ease;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1c211b;
  --surface: #242b22;
  --soft: #30372b;
  --ink: #edf0e5;
  --muted: #a7b09c;
  --line: #3b4435;
  --accent: #d6ef79;
  --accent-ink: #303b16;
  --success: #9ed4aa;
  --warning: #e4c478;
  --error: #f0a298;
  --info: #a8c1df;
  --inactive: #88917f;
  --rose: #47372f;
  --blue: #2c3c48;
  --green: #39452e;
  --yellow: #45412b;
  --shadow: 0 8px 24px #00000010;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: var(--body)/1.65 var(--font); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a:focus-visible, button:focus-visible { outline: var(--focus) solid var(--success); outline-offset: var(--s1); }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.shell { width: min(calc(100% - var(--s12) * 2), var(--page)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; height: var(--s24); border-bottom: var(--border) solid var(--line); }
.brand { display: flex; align-items: center; font-size: var(--brand-size); font-weight: 750; letter-spacing: var(--tracking); }
.brand-mark { display: grid; place-items: center; width: var(--s8); height: var(--s8); margin-right: var(--s3); border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); font-size: var(--h3); }
.brand-domain { color: var(--muted); font-weight: 400; }
.header-actions { display: flex; align-items: center; gap: var(--s6); }
.header-note { font-size: var(--small); color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--touch); padding: var(--s2) var(--s4); border: var(--border) solid var(--line); border-radius: var(--pill); background: transparent; font-size: var(--small); }
.button:hover { background: var(--soft); }
.button svg { width: var(--s4); height: var(--s4); }
.hero { display: flex; justify-content: space-between; align-items: center; padding: var(--s20) 0; gap: var(--s8); }
.eyebrow { display: flex; gap: var(--s2); align-items: center; font-size: var(--caption); font-weight: 650; letter-spacing: var(--label-tracking); }
.tiny-dot { display: inline-block; width: var(--s2); height: var(--s2); border-radius: var(--pill); background: var(--success); flex-shrink: 0; }
.hero h1 { margin: var(--s6) 0; font-size: var(--h1); font-weight: 650; letter-spacing: var(--tracking); line-height: 1.22; }
.hero-period { color: var(--success); }
.hero-description { color: var(--muted); line-height: 1.9; }
.hero-link { display: inline-flex; align-items: center; gap: var(--s6); font-weight: 650; margin-top: var(--s6); min-height: var(--touch); border-bottom: var(--border) solid var(--ink); }
.hero-link:hover { color: var(--success); }
.hero-art { position: relative; width: var(--art-size); height: var(--art-size); flex-shrink: 0; margin-right: var(--s10); }
.art-orbit { position: absolute; inset: var(--s3); border: var(--border) dashed var(--line); border-radius: 50%; transform: rotate(-15deg); }
.art-tile { position: absolute; width: var(--art-tile); height: var(--art-tile); border: var(--border) solid var(--line); border-radius: var(--r-lg); display: grid; place-items: center; box-shadow: var(--shadow); font-size: var(--art-type); }
.tile-grid { top: var(--s6); left: var(--s6); display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); padding: var(--s5); background: var(--surface); transform: rotate(-12deg); }
.tile-grid i { width: 100%; aspect-ratio: 1; border-radius: var(--s1); background: var(--ink); }
.tile-grid i:nth-child(2) { background: var(--accent); }
.tile-heart { right: var(--s4); top: var(--s16); background: var(--rose); transform: rotate(12deg); }
.tile-check { left: var(--s20); bottom: var(--s6); background: var(--accent); color: var(--accent-ink); transform: rotate(-5deg); }
.art-note { position: absolute; top: 0; right: 0; font-size: var(--small); color: var(--muted); transform: rotate(7deg); }
.art-spark { position: absolute; left: 0; bottom: var(--s16); font-size: var(--h2); color: var(--muted); }
.art-caption { position: absolute; bottom: 0; right: 0; font-size: var(--caption); color: var(--muted); }
.collection { padding-bottom: var(--s12); scroll-margin-top: var(--s6); }
.collection-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s6); }
.collection-title { display: flex; align-items: center; gap: var(--s3); }
.collection-title h2 { font-size: var(--h3); font-weight: 650; letter-spacing: var(--tracking); }
.count { padding: 0 var(--s2); background: var(--soft); color: var(--muted); font-size: var(--small); border-radius: var(--pill); }
.collection-note { font-size: var(--small); color: var(--muted); }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.app-card { min-width: 0; padding: var(--s6); background: var(--surface); border: var(--border) solid var(--line); border-radius: var(--r-md); transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease); }
.app-card:hover { border-color: var(--muted); box-shadow: var(--shadow); transform: translateY(calc(-1 * var(--s1))); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s5); }
.app-icon { display: grid; place-items: center; width: var(--s12); height: var(--s12); border-radius: var(--r-md); flex-shrink: 0; }
.app-icon svg { width: var(--s6); height: var(--s6); }
.rose { background: var(--rose); }
.blue { background: var(--blue); }
.green { background: var(--green); }
.yellow { background: var(--yellow); }
.card-labels { display: flex; align-items: flex-end; flex-direction: column; gap: var(--s1); font-size: var(--caption); color: var(--muted); }
.today { background: var(--soft); border-radius: var(--pill); padding: 0 var(--s2); }
.app-card h3 { font-size: var(--h3); font-weight: 650; letter-spacing: var(--tracking); }
.description { font-size: var(--small); color: var(--muted); margin-top: var(--s2); min-height: var(--s10); word-break: keep-all; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); border-top: var(--border) solid var(--line); margin-top: var(--s4); padding-top: var(--s2); }
.status { display: flex; align-items: center; gap: var(--s1); font-size: var(--caption); color: var(--muted); white-space: nowrap; }
.status-dot { width: var(--s1); height: var(--s1); margin-right: var(--s1); border-radius: var(--pill); background: var(--inactive); }
.status[data-state="online"] .status-dot { background: var(--success); }
.latency { margin-left: var(--s1); font-variant-numeric: tabular-nums; }
.open-link { display: flex; align-items: center; gap: var(--s2); min-height: var(--touch); font-size: var(--small); font-weight: 650; }
.open-link:hover { color: var(--success); }
.status-note { display: flex; align-items: flex-start; gap: var(--s2); margin-top: var(--s6); color: var(--muted); font-size: var(--caption); }
.status-note .tiny-dot { background: var(--inactive); width: var(--s1); height: var(--s1); margin-top: var(--s2); }
.note-divider { margin: 0 var(--s2); }
.site-footer { display: flex; align-items: center; justify-content: space-between; padding: var(--s8) 0; border-top: var(--border) solid var(--line); color: var(--muted); font-size: var(--small); }
.site-footer strong { color: var(--ink); }
.site-footer a { display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--touch); }
.skip-link { position: absolute; top: var(--s2); left: var(--s2); padding: var(--s3); background: var(--accent); color: var(--accent-ink); transform: translateY(-200%); z-index: 2; }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: var(--border); height: var(--border); padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1000px) {
  .hero h1 { font-size: var(--hero-mobile); }
  .hero-art { margin-right: 0; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - var(--s5) * 2); }
  .site-header { height: var(--s20); }
  .header-note, .hero-art, .collection-note { display: none; }
  .theme-toggle { width: var(--touch); padding: 0; }
  .theme-toggle span { display: none; }
  .hero { padding: var(--s12) 0 var(--s16); }
  .hero h1 { margin: var(--s5) 0; font-size: var(--hero-mobile); }
  .eyebrow { font-size: var(--caption); letter-spacing: var(--label-tracking-compact); }
  .hero-description { font-size: var(--small); }
  .app-grid { grid-template-columns: minmax(0, 1fr); }
  .app-card { padding: var(--s5); }
  .description { min-height: 0; }
  .collection-heading { margin-bottom: var(--s5); }
  .status-note p { line-height: 1.8; }
  .note-divider { display: block; height: 0; visibility: hidden; }
  .site-footer { padding: var(--s6) 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
