/* Shared tokens and primitives for the visitor pages and the admin. */
:root {
  --paper: #f6f4ef;
  --paper-2: #efece5;
  --card: #fffdf9;
  --ink: #1f1d1a;
  --ink-2: #4a4640;
  --muted: #837d73;
  --line: #e2ddd3;
  --line-strong: #cfc8bb;
  --accent: #9c7a45;
  --accent-ink: #7a5c2e;
  --danger: #b4452f;
  --ok: #3f7a55;
  --focus: #9c7a45;
  --shadow: 0 1px 2px rgba(31, 29, 26, .06), 0 8px 24px rgba(31, 29, 26, .06);
  --radius: 10px;
  --serif: "Iowan Old Style", "Apple Garamond", "Palatino Linotype", Palatino, "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151412;
    --paper-2: #1c1b18;
    --card: #1f1e1b;
    --ink: #eeeae2;
    --ink-2: #c9c3b8;
    --muted: #8f897e;
    --line: #2e2c28;
    --line-strong: #403d37;
    --accent: #c9a46a;
    --accent-ink: #d9b983;
    --danger: #e0765f;
    --ok: #7dbb90;
    --focus: #c9a46a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.15;
}

.eyebrow {
  margin: 0 0 .75rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 38px; padding: 0 1rem;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 13.5px; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { opacity: .88; }
.btn:disabled { opacity: .45; cursor: default; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--ink); opacity: 1; }
.btn-quiet { background: transparent; color: var(--ink-2); padding: 0 .7rem; }
.btn-quiet:hover { background: var(--paper-2); opacity: 1; }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 8%, transparent); opacity: 1; }
