/* dm.soga123.com — base styles. No external dependencies. */

:root {
  --bg: #14110e;
  --surface: #1c1814;
  --surface-2: #241f19;
  --line: #332b22;
  --ink: #ece5d8;
  --ink-soft: #c4baa9;
  --muted: #948b7c;
  --gold: #d6a350;
  --gold-dim: #a67c37;
  --moss: #7fa07f;
  --rust: #c06a4e;
  --maxw: 46rem;
  --radius: 10px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.15rem;
}

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
  background: rgba(20, 17, 14, 0.94);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(6px);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
}

.brand {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand b {
  color: var(--gold);
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 1.15rem;
  font-size: 0.86rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold-dim);
}

/* ---------- hero ---------- */

.hero {
  padding: 3.2rem 0 2.2rem;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 0 0 1rem;
  font-weight: 600;
}

h1 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(1.85rem, 5.2vw, 2.7rem);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

h1 .hl {
  color: var(--gold);
}

.lede {
  font-size: 1.06rem;
  color: var(--ink-soft);
  margin: 0 0 1.6rem;
  max-width: 40rem;
}

/* ---------- answer box ---------- */

.answer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.25rem;
  margin: 0 0 2rem;
}

.answer .label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.answer p {
  margin: 0;
  color: var(--ink);
}

.answer p + p {
  margin-top: 0.7rem;
}

/* ---------- prose ---------- */

article section,
.prose section {
  margin: 0 0 2.4rem;
}

h2 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.42rem;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 0.85rem;
  letter-spacing: -0.005em;
}

h3 {
  font-size: 1.02rem;
  font-weight: 650;
  margin: 1.5rem 0 0.5rem;
  color: var(--ink);
}

p { margin: 0 0 1.05rem; }

a { color: var(--gold); text-decoration-color: var(--gold-dim); }
a:hover { color: #edc07a; }

ul, ol {
  margin: 0 0 1.1rem;
  padding-left: 1.35rem;
}

li { margin-bottom: 0.5rem; }

li::marker { color: var(--gold-dim); }

strong { color: #fff; font-weight: 650; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  color: #e5d3ac;
}

pre {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  margin: 0 0 1.3rem;
  font-size: 0.86rem;
  line-height: 1.6;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink-soft);
}

blockquote {
  margin: 0 0 1.3rem;
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-style: italic;
}

/* ---------- tables ---------- */

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 32rem;
}

th, td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

tbody tr:last-child td { border-bottom: 0; }

td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- callouts ---------- */

.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 0 0 1.4rem;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.note b { color: var(--gold); }

.warn {
  border-left: 3px solid var(--rust);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---------- cards / index lists ---------- */

.cards {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.6rem;
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.card:hover {
  border-color: var(--gold-dim);
  background: var(--surface-2);
}

.card h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  color: var(--ink);
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.card .tagline {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.3rem;
}

/* ---------- faq ---------- */

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}

.faq details:first-of-type { border-top: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.1rem;
  line-height: 1;
}

.faq details[open] summary::after { content: "–"; }

.faq .a {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 1.8rem 0 2.4rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.site-foot p { margin: 0 0 0.6rem; }

.site-foot a { color: var(--ink-soft); }

/* ---------- misc ---------- */

.meta {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 1.4rem;
}

.cta {
  display: inline-block;
  background: var(--gold);
  color: #1a1409;
  font-weight: 650;
  text-decoration: none;
  padding: 0.6rem 1.15rem;
  border-radius: 6px;
  font-size: 0.92rem;
}

.cta:hover { background: #e8b965; color: #1a1409; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

@media (max-width: 520px) {
  body { font-size: 16.5px; }
  .hero { padding: 2.2rem 0 1.6rem; }
  .nav { gap: 0.85rem; font-size: 0.8rem; }
  h2 { font-size: 1.28rem; }
}
