:root {
  --bg: #f5f0e7;
  --surface: rgba(255, 252, 246, 0.82);
  --surface-strong: #fffaf2;
  --text: #1e1d1a;
  --muted: #645e52;
  --line: rgba(56, 49, 38, 0.12);
  --accent: #b45a28;
  --accent-soft: rgba(180, 90, 40, 0.1);
  --shadow: 0 18px 40px rgba(43, 33, 19, 0.08);
  --radius: 24px;
  --content-width: 880px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(233, 186, 138, 0.32), transparent 28%),
    radial-gradient(circle at top right, rgba(110, 137, 128, 0.18), transparent 24%),
    linear-gradient(180deg, #f8f4ec 0%, var(--bg) 100%);
  line-height: 1.7;
}

a {
  color: inherit;
}

.page {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d98242, #8a4b26);
  color: #fff;
  font-size: 0.9rem;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topnav a {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(180, 90, 40, 0.28);
}

.hero,
.panel,
.toc,
.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero {
  border-radius: 32px;
  padding: 40px;
  margin-bottom: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 12px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.96rem;
}

.toc {
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 22px;
}

.toc h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 28px;
}

.toc li {
  break-inside: avoid;
  margin: 0 0 8px;
}

.panel {
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 18px;
}

.panel h2 {
  margin: 0 0 12px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: 1.65rem;
  line-height: 1.15;
}

.panel h3 {
  margin: 22px 0 10px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.panel p,
.panel li {
  color: #2e2a24;
}

.panel p:last-child,
.panel ul:last-child,
.panel ol:last-child {
  margin-bottom: 0;
}

.panel ul,
.panel ol {
  margin: 10px 0 0;
  padding-left: 22px;
}

.panel li + li {
  margin-top: 8px;
}

.notice {
  border-radius: 20px;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.notice strong {
  color: var(--accent);
}

.footer {
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer a {
  color: var(--accent);
}

.contact-card {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.contact-card a {
  color: var(--accent);
  text-decoration: none;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .page {
    width: min(calc(100% - 20px), var(--content-width));
    padding-top: 18px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 28px 22px;
    border-radius: 26px;
  }

  .toc ol {
    columns: 1;
  }

  .panel {
    padding: 22px 18px;
  }
}
