* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #f7f2ea;
  --paper: #fffaf2;
  --ink: #342119;
  --muted: #735f52;
  --line: #dfc9ad;
  --accent: #7a3f24;
  --accent-strong: #4f2616;
  --soft: #efe0cc;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--accent);
  font-weight: 700;
}

.shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #f1d2a6;
  color: var(--accent-strong);
  font-size: 24px;
  font-weight: 900;
}

.brand-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
}

.brand-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--accent-strong);
  text-decoration: none;
}

.document {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(72, 43, 24, 0.08);
}

.hero,
.section {
  padding: 28px;
}

.hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fffaf2 0%, #f5e5d0 100%);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  line-height: 1.28;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h2 {
  margin-top: 6px;
  font-size: 1.45rem;
}

h3 {
  font-size: 1.1rem;
}

p,
ul,
ol {
  margin-top: 0;
}

ul,
ol {
  padding-left: 1.3rem;
}

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

.summary {
  color: var(--muted);
  font-size: 1.05rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 0.92rem;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.notice {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.steps {
  display: grid;
  gap: 12px;
  padding-left: 0;
  list-style: none;
}

.step {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff6e9;
}

.step strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-strong);
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow-wrap: anywhere;
}

.table th,
.table td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table th {
  background: var(--soft);
  color: var(--accent-strong);
}

.footer {
  padding: 24px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 20px, 960px);
    padding-top: 18px;
  }

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

  .nav {
    justify-content: flex-start;
    width: 100%;
  }

  .nav a {
    flex: 1 1 auto;
    justify-content: center;
  }

  .hero,
  .section {
    padding: 22px 18px;
  }

  .table {
    display: block;
    overflow-x: auto;
  }
}
