:root {
  --ink: #17211c;
  --muted: #5b655f;
  --quiet: #7a837d;
  --line: #d9ded8;
  --paper: #f4f1ea;
  --canvas: #fffefb;
  --soft: #faf8f2;
  --accent: #2f6f4e;
  --accent-dark: #204c37;
  --gold: #bd8a38;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

/* ── Topbar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 234, 0.94);
  backdrop-filter: blur(8px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(900px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  text-decoration: none;
}

.eb-mark { flex-shrink: 0; }

.cover-mark {
  margin-bottom: 14px;
}

nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.93rem;
}

nav a {
  text-decoration: none;
}

button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--accent-dark);
  border-radius: 6px;
  color: #fff;
  background: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* ── Memo document ── */
.memo {
  width: min(860px, calc(100% - 40px));
  margin: 42px auto 24px;
  padding: 52px 60px;
  border: 1px solid #e4dfd4;
  background: var(--canvas);
  box-shadow: 0 20px 60px rgba(23, 33, 28, 0.08);
}

/* ── Cover ── */
.cover {
  padding-bottom: 30px;
  border-bottom: 2px solid var(--ink);
}

.eyebrow {
  display: block;
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
}

h4 {
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.subtitle {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 1.1rem;
}

.prepared-line {
  margin-bottom: 18px;
  color: var(--quiet);
  font-size: 0.87rem;
}

.sample-note {
  max-width: 660px;
  margin: 0 0 20px;
  padding: 10px 14px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.93rem;
}

.sample-note strong {
  color: var(--ink);
}

/* ── Memo header (dl) ── */
.memo-header {
  margin: 0;
  padding: 14px 0 4px;
  border-top: 1px solid var(--line);
}

.memo-header div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 8px;
  padding: 4px 0;
}

dt {
  color: var(--accent-dark);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding-top: 2px;
}

dd {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink);
}

/* ── Sections ── */
.section,
.closing {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.closing {
  border-bottom: 0;
}

.section-kicker {
  display: block;
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Body text ── */
.body-lead {
  max-width: 740px;
  font-size: 1.01rem;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ── What I noticed ── */
.observed-list {
  max-width: 720px;
  margin: 0;
  padding-left: 22px;
}

.observed-list li {
  padding: 5px 0;
  line-height: 1.55;
}

.observed-list li + li {
  margin-top: 3px;
}

/* ── Why it matters commercially ── */
.commercial-list {
  max-width: 640px;
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 3px solid var(--accent);
  list-style: none;
}

.commercial-list li {
  padding: 9px 0;
  font-size: 1.0rem;
  color: var(--ink);
  line-height: 1.5;
}

.commercial-list li + li {
  border-top: 1px solid var(--line);
  margin-top: 0;
}

/* ── Recommendations ── */
.rec {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.rec:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

.rec-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}

.rec-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1;
}

.rec-head h3 {
  margin: 0;
  font-size: 1.08rem;
}

.rec-list {
  margin: 0 0 10px 40px;
  padding-left: 20px;
}

.rec-list li {
  color: var(--muted);
  padding: 3px 0;
  line-height: 1.5;
}

.rec-list li + li {
  margin-top: 2px;
}

.rec-list--cols {
  columns: 2;
  column-gap: 28px;
}

.rec-note {
  margin: 8px 0 0 40px;
  color: var(--muted);
  font-size: 0.93rem;
}

/* ── Before / after ── */
.before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.before-after > div {
  padding-top: 14px;
  border-top: 2px solid var(--line);
}

.before-after > div:last-child {
  border-top-color: var(--accent);
}

.before-after h3 {
  margin-bottom: 12px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.before-after > div:last-child h3 {
  color: var(--accent-dark);
}

.before-after ul {
  margin: 0;
  padding-left: 20px;
}

.before-after li {
  color: var(--muted);
  padding: 4px 0;
  line-height: 1.5;
}

.before-after li + li {
  margin-top: 2px;
}

/* ── Scope list ── */
.scope-list {
  max-width: 620px;
  margin: 0;
  padding-left: 22px;
}

.scope-list li {
  color: var(--muted);
  padding: 4px 0;
  line-height: 1.5;
}

.scope-list li + li {
  margin-top: 2px;
}

/* ── Day list ── */
.day-list {
  max-width: 680px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.day-list li {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.day-list li:last-child {
  border-bottom: 0;
}

.day-list .day-label {
  color: var(--accent-dark);
  font-weight: 750;
  font-size: 0.9rem;
}

.day-list .day-task {
  color: var(--muted);
}

/* ── Closing ── */
.closing-text {
  max-width: 680px;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0;
}

/* ── Preview CTA (screen only) ── */
.preview-cta {
  border-bottom: 0;
  border-top: 1px solid var(--line);
}

.cta-link {
  display: inline-block;
  margin-top: 6px;
  padding: 11px 22px;
  border: 1px solid var(--accent-dark);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.cta-link:hover {
  background: var(--accent-dark);
}

.cta-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Footer ── */
.footer {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto 42px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 760px) {
  .topbar-inner,
  nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-inner {
    padding: 16px 0;
  }

  .memo {
    width: min(100% - 28px, 860px);
    padding: 34px 22px;
  }

  .before-after {
    grid-template-columns: 1fr;
  }

  .rec-list--cols {
    columns: 1;
  }

  .memo-header div {
    grid-template-columns: 110px minmax(0, 1fr);
  }
}

/* ── Print ── */
@media print {
  @page {
    size: A4;
    margin: 15mm;
  }

  body {
    background: #fff;
    color: #111;
    font-size: 10pt;
    line-height: 1.5;
  }

  .print-hidden {
    display: none;
  }

  .memo,
  .footer {
    width: 100%;
    margin: 0;
  }

  .memo {
    padding: 0;
    border: 0;
    box-shadow: none;
    background: #fff;
  }

  .cover,
  .section,
  .closing,
  .rec,
  .before-after {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .cover {
    padding-bottom: 10mm;
  }

  .section,
  .closing {
    padding: 7mm 0;
  }

  h1 {
    font-size: 22pt;
  }

  h2 {
    font-size: 14pt;
  }

  .sample-note {
    background: #fffdf8;
  }

  .before-after {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rec-list--cols {
    columns: 2;
  }

  .footer {
    padding-top: 8mm;
    border-top: 1px solid #ddd;
  }

  a {
    text-decoration: none;
  }
}
