:root {
  --page: #eef1ec;
  --paper: #ffffff;
  --surface: #f7f8f6;
  --ink: #182019;
  --muted: #59645b;
  --quiet: #606a62;
  --green: #047d59;
  --green-dark: #036347;
  --line: #d8ddd8;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  color: var(--ink);
  background: var(--page);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible {
  outline: 3px solid rgba(4, 125, 89, 0.25);
  outline-offset: 4px;
}

.page {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}

.topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-right: 12px;
  color: #fff;
  background: var(--green);
  border-radius: 5px;
  font-family: "Lora", Georgia, serif;
  font-size: 19px;
  font-weight: 600;
}

.brand-section {
  margin-left: 10px;
  padding-left: 10px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
}

.nav-links a {
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-links .nav-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  color: #fff;
  background: var(--green);
  border-radius: 5px;
}

.nav-links .nav-cta:hover {
  color: #fff;
  background: var(--green-dark);
}

.hero {
  max-width: 1040px;
  margin: 0 auto;
  padding: 72px 0 52px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.back-link {
  display: inline-block;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.back-link:hover {
  color: var(--green-dark);
}

.hero .eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.hero h1 {
  max-width: 980px;
  margin: 13px 0 18px;
  color: var(--ink);
  font-family: "Lora", Georgia, serif;
  font-size: clamp(40px, 6vw, 62px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.hero .meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.5;
}

.hero .meta-line span + span::before {
  content: "·";
  margin-right: 8px;
}

.hero > p:last-child {
  max-width: 900px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.article,
.content {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 60px 68px 68px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.article h2,
.content h2 {
  margin: 48px 0 14px;
  color: var(--ink);
  font-family: "Lora", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.article h2:first-child,
.content h2:first-child {
  margin-top: 0;
}

.article p,
.content p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.82;
}

.article ul,
.content ul {
  margin: 4px 0 26px;
  padding-left: 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.article li,
.content li {
  margin-bottom: 10px;
  padding-left: 5px;
}

.article strong,
.content strong {
  color: var(--ink);
  font-weight: 700;
}

.article code,
.content code {
  padding: 2px 5px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.88em;
}

.pull-quote,
blockquote {
  margin: 34px 0;
  padding: 4px 0 4px 22px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-left: 3px solid var(--green);
  border-radius: 0;
  font-family: "Lora", Georgia, serif;
  font-size: 19px;
  line-height: 1.65;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 24px 0 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.shortcut-card {
  min-width: 0;
  padding: 17px 16px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-size: 14px;
  line-height: 1.5;
}

.shortcut-card:nth-child(3n) {
  border-right: 0;
}

.shortcut-card:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.shortcut-card strong {
  display: block;
  margin-bottom: 4px;
}

.cta {
  margin-top: 42px;
  padding: 22px 24px;
  display: block;
  color: var(--green-dark);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.cta i {
  display: none;
}

.note-template {
  margin: 28px 0 38px;
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 6px;
}

.note-template h3 {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: "Lora", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
}

.template-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.template-row strong {
  color: var(--ink);
  font-size: 14px;
}

.template-row span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.action-format {
  margin: 18px 0 28px;
  padding: 16px 18px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
}

.related {
  width: 100%;
  max-width: 1040px;
  margin: 52px auto 0;
}

.related-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.related-kicker {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
}

.related-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Lora", Georgia, serif;
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.related-all {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.related-all:hover {
  color: var(--green-dark);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.related-link {
  position: relative;
  min-width: 0;
  padding: 24px 48px 24px 22px;
  border-left: 1px solid var(--line);
}

.related-link:first-child {
  border-left: 0;
}

.related-link:hover h3 {
  color: var(--green-dark);
}

.related-category {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.related-link h3 {
  margin: 0 0 9px;
  color: var(--ink);
  font-family: "Lora", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.related-link p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.related-arrow {
  position: absolute;
  top: 25px;
  right: 20px;
  color: var(--green);
  font-size: 18px;
  transition: transform 0.15s ease;
}

.related-link:hover .related-arrow {
  transform: translateX(3px);
}

.footer {
  max-width: 1040px;
  margin: 22px auto 0;
  padding: 20px 4px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--quiet);
  font-size: 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--ink);
}

@media (max-width: 720px) {
  body {
    padding: 12px;
  }

  .topbar {
    min-height: 60px;
    flex-direction: row;
    align-items: center;
    padding: 10px 12px;
  }

  .brand {
    font-size: 15px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    margin-right: 9px;
  }

  .brand-section {
    margin-left: 7px;
    padding-left: 7px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links .secondary-link {
    display: none;
  }

  .nav-links .nav-cta {
    padding: 7px 10px;
    font-size: 13px;
  }

  .hero {
    padding: 48px 4px 40px;
  }

  .back-link {
    margin-bottom: 30px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero > p:last-child {
    font-size: 16px;
    line-height: 1.68;
  }

  .article,
  .content {
    padding: 38px 24px 44px;
    border-radius: 6px;
  }

  .note-template {
    padding: 24px 20px;
  }

  .template-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .related {
    margin-top: 42px;
  }

  .related-heading {
    align-items: flex-start;
    padding: 0 4px;
  }

  .related-heading h2 {
    font-size: 26px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .related-link,
  .related-link:first-child {
    padding: 22px 42px 22px 4px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .related-arrow {
    right: 4px;
  }

  .article h2,
  .content h2 {
    margin-top: 40px;
    font-size: 25px;
  }

  .article p,
  .content p {
    font-size: 16px;
    line-height: 1.78;
  }

  .shortcut-grid {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .shortcut-card,
  .shortcut-card:nth-child(3n),
  .shortcut-card:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .footer-links {
    flex-wrap: wrap;
    gap: 10px 18px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 36px;
  }
}
