:root {
  --forest-950: #1d251d;
  --forest-900: #222c23;
  --forest-700: #425545;
  --paper: #f5efdf;
  --ink: #282819;
  --muted: #736b58;
}

* { box-sizing: border-box; }

html {
  background: radial-gradient(circle at top, #384134 0%, #1c201c 58%, #171a17 100%);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(251, 246, 234, 0.96), rgba(251, 246, 234, 0.96)),
    repeating-linear-gradient(0deg, rgba(142, 130, 102, 0.05) 0, rgba(142, 130, 102, 0.05) 1px, transparent 1px, transparent 22px);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.topbar {
  background: rgba(27, 34, 28, 0.96);
  color: #f4efdf;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-row {
  max-width: 1540px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.utility-nav,
.utility-flags {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
}

.utility-nav a,
.utility-flags span {
  font-size: 0.95rem;
  color: rgba(244, 239, 223, 0.88);
}

.utility-flags span {
  padding: 0.32rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.binder-app {
  max-width: 1540px;
  margin: 0 auto;
  padding: 1.7rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 260px;
  gap: 1.5rem;
  align-items: start;
}

.binder-tabs,
.note-rail {
  position: sticky;
  top: 1.25rem;
}

.binder-tabs {
  padding: 1.2rem 1rem 1rem;
  background: linear-gradient(180deg, #f4ead5 0%, #eadfc8 100%);
  border: 1px solid rgba(74, 68, 53, 0.12);
  border-radius: 1.5rem;
  box-shadow: 0 18px 40px rgba(46, 39, 25, 0.1);
}

.paper-stack { position: relative; height: 1.25rem; margin-bottom: 1rem; }
.paper-stack span {
  position: absolute;
  inset: 0;
  border-radius: 0.7rem;
  border: 1px solid rgba(74, 68, 53, 0.1);
  background: rgba(255, 250, 241, 0.9);
}
.paper-stack span:nth-child(1) { transform: rotate(-2deg) translateY(0.1rem); }
.paper-stack span:nth-child(2) { transform: rotate(1deg); }

.tab-label,
.eyebrow,
.page-chip,
.note-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: var(--forest-700);
}

.tab-nav { margin-top: 0.9rem; display: grid; gap: 0.72rem; }

.tab-link {
  display: block;
  padding: 0.95rem 1rem;
  background: rgba(255, 252, 245, 0.86);
  border: 1px solid rgba(66, 85, 69, 0.12);
  clip-path: polygon(0 0, 93% 0, 100% 50%, 93% 100%, 0 100%);
}

.tab-link.active {
  transform: translateX(0.18rem);
  border-color: rgba(66, 85, 69, 0.38);
  background: linear-gradient(90deg, rgba(99, 120, 101, 0.16), rgba(255, 252, 245, 0.92));
}

.tab-title { display: block; font-size: 1rem; font-weight: 600; }
.binder-center { min-width: 0; }
.page-intro { margin-bottom: 1.2rem; padding: 0 0.25rem; }

.page-intro h1 {
  margin: 0.45rem 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 4.6vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 64ch;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #514b3d;
}

.binder-spread {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
  margin-bottom: 1.35rem;
}

.paper-page {
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(255, 251, 242, 0.98), rgba(245, 237, 217, 0.98)),
    repeating-linear-gradient(0deg, rgba(102, 94, 72, 0.06) 0, rgba(102, 94, 72, 0.06) 1px, transparent 1px, transparent 2.1rem);
  border: 1px solid rgba(80, 73, 54, 0.14);
  border-radius: 1.7rem;
  padding: 1.45rem;
  box-shadow: 0 18px 42px rgba(60, 50, 35, 0.12);
}

.paper-page h2,
.paper-page h3 {
  margin: 0.55rem 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
}

.paper-page h2 { font-size: clamp(1.6rem, 2.5vw, 2.4rem); line-height: 1.02; }
.paper-page h3 { font-size: 1.08rem; }

.photo-page img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid rgba(76, 70, 54, 0.12);
  margin-top: 0.9rem;
}

.caption-row {
  margin-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.checklist-lines,
.note-bullets,
.sequence-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.78rem;
}

.checklist-lines li,
.sequence-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding-bottom: 0.72rem;
  border-bottom: 1px dashed rgba(74, 68, 53, 0.18);
  line-height: 1.56;
}

.checklist-lines span {
  width: 1.1rem;
  height: 1.1rem;
  border: 1.6px solid rgba(78, 88, 60, 0.52);
  border-radius: 0.2rem;
  margin-top: 0.15rem;
  background: rgba(255, 255, 255, 0.6);
}

.sequence-list { counter-reset: seq; }
.sequence-list li::before {
  counter-increment: seq;
  content: counter(seq);
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--forest-900);
  background: rgba(106, 125, 103, 0.18);
  border: 1px solid rgba(66, 85, 69, 0.18);
  margin-top: 0.05rem;
}

.page-split,
.format-list,
.tip-stack { display: grid; gap: 1rem; }
.page-split { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1rem; }

.page-split p,
.tip-stack p,
.paper-page p {
  margin: 0;
  line-height: 1.65;
  color: #4a4538;
}

.format-link,
.paper-link {
  display: block;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  border: 1px solid rgba(66, 85, 69, 0.14);
  background: rgba(255, 251, 243, 0.88);
}

.format-link strong,
.paper-link strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}

.format-link span,
.paper-link {
  line-height: 1.55;
  color: #4d493d;
}

.paper-link { margin-top: 1rem; font-weight: 600; color: var(--forest-900); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.9rem;
  font-size: 0.96rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.82rem 0.2rem;
  border-bottom: 1px dashed rgba(74, 68, 53, 0.18);
  vertical-align: top;
}

.data-table th {
  color: var(--forest-700);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.note-rail { display: grid; gap: 1rem; }

.note-card {
  background: linear-gradient(180deg, #f4ead5 0%, #ecdcb9 100%);
  border: 1px solid rgba(74, 68, 53, 0.12);
  border-radius: 1.35rem;
  padding: 1.05rem;
  box-shadow: 0 12px 30px rgba(60, 50, 35, 0.1);
}

.note-list { margin: 0.8rem 0 0; display: grid; gap: 0.9rem; }
.note-list div { display: grid; gap: 0.18rem; }
.note-list dt {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--forest-700);
}

.note-list dd,
.note-bullets li { margin: 0; line-height: 1.55; color: #4b4638; }
.note-bullets { margin-top: 0.85rem; gap: 0.7rem; padding-left: 1.05rem; list-style: disc; }

.weather-card { background: linear-gradient(180deg, #fff7e8 0%, #f5e5c3 100%); }
.weather-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px dashed rgba(74, 68, 53, 0.18);
}
.weather-row:last-child { border-bottom: 0; }

.footer {
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 1.5rem 1.8rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #4d493d;
  font-size: 0.96rem;
}

@media (max-width: 1240px) {
  .binder-app { grid-template-columns: 220px minmax(0, 1fr); }
  .note-rail {
    grid-column: 1 / -1;
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .brand-row,
  .binder-app,
  .binder-spread,
  .page-split,
  .note-rail,
  .footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  .brand-row { gap: 0.9rem; }
  .utility-nav,
  .utility-flags { gap: 0.8rem; }
  .binder-tabs,
  .note-rail { position: static; }
  .footer { padding-top: 0.6rem; }
}
