/* HSOrbit · [AM:ouse] design system — paper, ink and one clock hand.
   Layout: a single reading column (max 1080px) with generous section spacing; cards only where a tool lives. */
:root {
  --paper: #f4f3ee;
  --surface: #ffffff;
  --ink: #353532;
  --ink-muted: #6b6a64;
  --line: #e2e0d8;
  --hand: #e07a3f;
  --hand-ink: #a9501f;
  --hand-soft: #f7e3d5;
  --night: #353532;
  --on-night: #f4f3ee;
  --well: #e9e7df;
  --font-brand: "Nunito", "Gowun Dodum", system-ui, sans-serif;
  --font-body: "Gowun Dodum", "Nunito", system-ui, sans-serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-4: 16px; --space-6: 24px; --space-12: 48px;
  --radius-sm: 10px; --radius-md: 20px; --radius-pill: 999px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1c1b19; --surface: #262522; --ink: #edebe4; --ink-muted: #a9a79f; --line: #3a3936;
    --hand: #ee8e55; --hand-ink: #f2a271; --hand-soft: #3a2a20; --night: #33322e; --on-night: #edebe4; --well: #2a2926;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1c1b19; --surface: #262522; --ink: #edebe4; --ink-muted: #a9a79f; --line: #3a3936;
  --hand: #ee8e55; --hand-ink: #f2a271; --hand-soft: #3a2a20; --night: #33322e; --on-night: #edebe4; --well: #2a2926;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.75;
  word-break: keep-all; overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: var(--hand-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--hand); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%; max-width: 1080px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* header */
.site-head { padding-block: 20px; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-brand); font-size: 20px; line-height: 1; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo b { font-weight: 800; } .logo span { font-weight: 600; }
.nav { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.nav a {
  color: var(--ink); text-decoration: none; font-family: var(--font-ui); font-size: 14px; font-weight: 500;
  padding: 10px 14px; border-radius: var(--radius-pill); min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:hover { background: var(--hand-soft); color: var(--ink); }

/* type */
.label { font-family: var(--font-brand); font-weight: 800; font-size: 13px; letter-spacing: .08em; color: var(--hand-ink); line-height: 1.3; }
h1, h2, h3 { font-family: var(--font-body); font-weight: 400; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 5.2vw, 52px); line-height: 1.22; }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.3; }
h3 { font-size: 22px; line-height: 1.4; }
.lede { font-size: 18px; line-height: 1.8; color: var(--ink); max-width: 38ch; margin: 0; }
.muted { color: var(--ink-muted); }
p { margin: 0; }
.prose { display: flex; flex-direction: column; gap: var(--space-4); max-width: 62ch; }

/* sections */
.section { padding-block: 56px; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }

/* buttons */
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: var(--radius-pill); font-family: var(--font-ui); font-size: 15px; font-weight: 600; line-height: 1.2;
  text-decoration: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.btn:hover { color: var(--ink); border-color: var(--ink-muted); }
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.primary:hover { color: var(--paper); opacity: .9; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); }
.dots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dots li { display: flex; gap: 12px; align-items: baseline; }
.dots li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--hand); flex: none; transform: translateY(-3px); }

/* footer */
.site-foot { padding-block: 40px 56px; border-top: 1px solid var(--line); margin-top: 24px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; font-family: var(--font-ui); font-size: 14px; color: var(--ink-muted); }
.site-foot a { color: var(--ink-muted); }
.site-foot a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
