:root {
  color-scheme: dark;
  --background: #14110e;
  --surface: #1d1914;
  --text: #f2e9db;
  --muted: #bdb09f;
  --gold: #d7b47a;
  --line: #3c3328;
}
* { box-sizing: border-box; }
html { background: var(--background); scroll-padding-top: 24px; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 80% 0, #292118 0, var(--background) 650px); color: var(--text); font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.75; }
a { color: var(--gold); text-underline-offset: .22em; overflow-wrap: anywhere; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; border-radius: 3px; }
main { width: min(840px, calc(100% - 64px)); margin: 0 auto; padding: 24px 0 64px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 24px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { display: block; width: 155px; height: 68px; object-fit: contain; }
nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
nav a[aria-current="page"] { color: var(--gold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
.brand, .label { color: var(--gold); font-size: 10px; letter-spacing: .18em; font-weight: 600; }
h1 { margin: 12px 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 6vw, 58px); font-weight: 400; line-height: 1.12; letter-spacing: -.025em; overflow-wrap: anywhere; }
h2 { margin: 0 0 14px; color: var(--text); font-family: Georgia, "Times New Roman", serif; font-size: clamp(23px, 3vw, 29px); font-weight: 400; line-height: 1.3; }
p, li { color: var(--muted); }
p { margin: 0 0 16px; }
strong { color: var(--text); font-weight: 600; }
.intro { font-size: 17px; line-height: 1.65; max-width: 690px; color: #d3c7b6; }
.updated { font-size: 12px; margin-top: 20px; }
.card { margin: 28px 0; padding: 24px 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.summary { border-left: 2px solid var(--gold); }
.summary > strong { display: block; margin-bottom: 10px; }
.summary p:last-child, section p:last-child { margin-bottom: 0; }
.contents { display: block; padding: 16px 0 28px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.contents .label { margin-bottom: 8px; }
.contents ol { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0; padding-left: 20px; }
.contents a { line-height: 1.5; padding: 6px 0; }
article section { padding: 18px 0 26px; scroll-margin-top: 20px; }
article section + section { border-top: 1px solid var(--line); padding-top: 30px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 9px; padding-left: 3px; }
details { border-bottom: 1px solid var(--line); }
details:last-child { border-bottom: 0; }
summary { min-height: 52px; padding: 14px 0; cursor: pointer; color: var(--text); font-size: 15px; font-weight: 500; }
summary::marker { color: var(--gold); }
details p { padding: 0 12px 0 18px; }
details p:last-child { padding-bottom: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 12px 18px; border: 1px solid var(--gold); border-radius: 8px; background: var(--gold); color: #19140e; font-weight: 600; text-align: center; text-decoration: none; line-height: 1.45; }
.button:hover { background: #e1c394; color: #19140e; }
.button.secondary { border-color: var(--line); background: transparent; color: var(--text); }
.button.secondary:hover { background: var(--surface); border-color: var(--gold); }
footer { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 12px; }
.footer-slogan { font-family: Georgia, "Times New Roman", serif; font-size: 20px; color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.skip-link { position: absolute; top: 8px; left: 16px; padding: 10px 16px; background: var(--surface); z-index: 10; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
@media (max-width: 600px) {
  main { width: calc(100% - 36px); padding-top: 12px; }
  .site-header { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 28px; padding-bottom: 12px; }
  .logo img { width: 137px; height: 58px; }
  nav { gap: 4px 16px; }
  .contents ol { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .intro { font-size: 16px; }
  .actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
}

.back-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 14px; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 10px; background: rgba(215,180,122,.04); color: var(--gold); font-size: 13px; line-height: 20px; text-decoration: none; transition: background .16s ease, border-color .16s ease; }
.back-link:hover { background: var(--surface); border-color: var(--gold); }
.back-link svg { flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) { .back-link { transition: none; } }
