:root {
  --paper: #f4efe3;
  --paper-soft: #fbf7ef;
  --ink: #20251f;
  --muted: #5e655f;
  --line: #b9b09f;
  --line-soft: #d6ccb8;
  --green: #2f4637;
  --green-deep: #1c2d25;
  --olive: #6c7d3b;
  --rust: #8f4f2b;
  --cream: #fffdf7;
  --shadow: 0 12px 30px rgba(33, 38, 31, 0.12);
  --radius: 14px;
  --width: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.45), transparent 28%),
    linear-gradient(180deg, #ece4d2 0%, #f5efe3 36%, #ebe3d2 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-wrap {
  max-width: var(--width);
  margin: 0 auto;
  padding: 18px 16px 28px;
}

.masthead,
.panel,
.closing,
.footer {
  border: 1px solid var(--line);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.masthead {
  padding: 18px 18px 14px;
}

.masthead__brand {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.seal {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 3px double var(--green);
  border-radius: 50%;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #fffef8, #f0eadb);
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--rust);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
}

.masthead h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--green-deep);
}

.subhead {
  margin-top: 4px;
  color: var(--muted);
}

.masthead__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
}

.masthead__nav a,
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8f2e6;
  color: var(--green-deep);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.masthead__nav a:hover,
.back-link:hover {
  transform: translateY(-1px);
  background: #fff;
  border-color: var(--green);
}

.content {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.hero,
.checklist-layout,
.steps {
  display: grid;
  gap: 16px;
}

.hero {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
}

.hero__text,
.notice-board,
.card,
.bullet,
.side-note,
.closing {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fffdf7, #f8f1e5);
}

.hero__text,
.notice-board,
.panel,
.closing {
  padding: 20px;
}

.hero__text h2,
.panel__heading h2,
.closing h2 {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  color: var(--green-deep);
}

.lead {
  margin-top: 14px;
  font-size: 1.02rem;
  color: #404640;
}

.hero__text p + p {
  margin-top: 12px;
}

.notice-board {
  background:
    linear-gradient(180deg, #f2ead6, #e8dfc9);
  border-left: 5px solid var(--olive);
}

.notice-board__label {
  color: var(--olive);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
}

.notice-board h3,
.card h3,
.bullet h3,
.side-note h3,
.steps h3 {
  margin-top: 8px;
  color: var(--green-deep);
  font-size: 1.1rem;
}

.notice-board ul {
  margin: 14px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: #3d433f;
}

.panel {
  background: rgba(255, 252, 245, 0.94);
}

.panel--alt {
  background: linear-gradient(180deg, #f7f1e4, #efe6d4);
}

.panel__heading {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.card,
.bullet,
.side-note,
.steps article {
  padding: 16px;
}

.card p,
.bullet p,
.side-note p,
.steps p {
  margin-top: 8px;
}

.bullet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.bullet {
  background: #fffdf8;
}

.bullet__num {
  display: inline-block;
  color: var(--rust);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.checklist-layout {
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.checklist li {
  position: relative;
  padding: 15px 14px 15px 44px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fffaf1;
  color: #343934;
  line-height: 1.6;
}

.checklist li::before {
  content: "•";
  position: absolute;
  left: 16px;
  top: 12px;
  color: var(--olive);
  font-size: 1.5rem;
  line-height: 1;
}

.side-note {
  background: linear-gradient(180deg, #ede4d2, #e2d7c1);
}

.steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps article {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fdf8ee;
}

.steps h3 {
  font-size: 1rem;
}

.closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(180deg, #f5ecd9, #ede2ca);
}

.footer {
  margin-top: 16px;
  padding: 14px 18px;
  font-size: 0.92rem;
  color: #66706a;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero,
  .checklist-layout,
  .closing {
    grid-template-columns: 1fr;
  }

  .bullet-grid,
  .steps,
  .split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .closing {
    display: grid;
  }
}

@media (max-width: 700px) {
  .page-wrap {
    padding-left: 10px;
    padding-right: 10px;
  }

  .masthead,
  .panel,
  .hero__text,
  .notice-board,
  .closing {
    padding: 16px;
  }

  .masthead__brand {
    align-items: flex-start;
  }

  .masthead__nav {
    gap: 8px;
  }

  .masthead__nav a {
    font-size: 0.84rem;
  }

  .bullet-grid,
  .steps,
  .split-grid {
    grid-template-columns: 1fr;
  }
}
