@font-face {
  font-family: "Geist Sans";
  src: url("./fonts/geist-sans-v1.7.2.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: Pretendard;
  src: url("./fonts/pretendard-variable-v1.3.9.woff2") format("woff2");
  font-weight: 45 920;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("./fonts/geist-mono-v1.7.2.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fafaf8;
  --ink: #1d1d1b;
  --muted: #676761;
  --line: #ddddd7;
  --soft: #f1f1ed;
  --mono: "Geist Mono", monospace;
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist Sans", Pretendard, system-ui, sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.65; }
a { color: inherit; text-underline-offset: 0.2em; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.frame { width: min(calc(100% - 46px), 50rem); margin-inline: auto; }

.site-header {
  display: flex;
  align-items: center;
  min-height: 5.125rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  font-size: 1.375rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark { font-family: var(--mono); font-size: 1.125rem; font-weight: 500; }
.site-name { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.content { padding-block: clamp(2.125rem, 6vh, 4rem) 4rem; }
h1, h2 { line-height: 1.3; letter-spacing: -0.04em; word-break: keep-all; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 650; }
h2 { margin: 0 0 0.875rem; font-size: clamp(1.375rem, 3vw, 1.625rem); font-weight: 650; }
.subject { display: flex; align-items: center; gap: 0.875rem; }
.subject img { flex: none; border: 1px solid var(--line); border-radius: 9px; }
.lead { max-width: 41rem; margin: 0.875rem 0 1.75rem; color: var(--muted); }
.section { margin-top: 2.5rem; }

.options { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.options li, .web-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.875rem 0;
}

.options li { border-bottom: 1px solid var(--line); }
.options strong, .web-option strong { display: block; font-weight: 650; }
.options span, .web-option span { display: block; color: var(--muted); font-size: 0.875rem; }
.web-option { padding: 1rem 1.125rem; border: 1px solid var(--line); background: var(--soft); }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.875rem;
  border: 1px solid #8b8b82;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.button:hover { background: var(--soft); border-color: var(--ink); }
.button.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.button.primary:hover { background: #363632; }
.prose p, .prose ol { max-width: 44rem; margin: 0.75rem 0; }
.prose ol { padding-inline-start: 1.5rem; }
.prose li + li { margin-top: 0.5rem; }
.prose code { font-family: var(--mono); font-size: 0.9em; background: var(--soft); overflow-wrap: anywhere; }
.details { margin: 0; border-top: 1px solid var(--line); }
.details div { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.details dt { font-weight: 650; }
.details dd { margin: 0.125rem 0 0; }
.sources { padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
.sources h2 { color: var(--ink); font-size: 1.125rem; }

@media (max-width: 600px) {
  .site-header { min-height: 4.375rem; }
  .brand { font-size: 1.25rem; }
  .subject img { width: 42px; height: 42px; }
}

@media (max-width: 460px) {
  .options li, .web-option { grid-template-columns: minmax(0, 1fr); }
  .options .button { justify-self: start; }
}
