:root {
  --paper: #fbf8f1;
  --paper-deep: #f3eddf;
  --ink: #29352f;
  --muted: #667068;
  --sage: #b9cbb8;
  --sage-dark: #416451;
  --sage-pale: #e7eee4;
  --blush: #e8c7c2;
  --blush-pale: #f7e9e5;
  --gold: #d8b66b;
  --line: #ccd6ca;
  --white: #fffefa;
  --shadow: 0 12px 28px rgba(65, 83, 70, .09);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(94, 120, 99, .045) 1px, transparent 1px) 0 0 / 100% 32px,
    var(--paper);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.72;
}
a { color: var(--sage-dark); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: #824f53; }
img, svg { display: block; max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; padding: .6rem 1rem; background: var(--ink); color: white; }
.skip:focus { left: 8px; }

.site-header { padding: 22px 0 10px; }
.mast { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 52px; height: 52px; }
.brand-name { font-family: "Caveat", cursive; font-size: 2.35rem; font-weight: 700; line-height: 1; }
.tagline { margin: 0; color: var(--muted); font-size: .88rem; text-align: right; }
.nav { display: flex; gap: 6px 20px; flex-wrap: wrap; padding: 12px 0 9px; margin-top: 12px; border-block: 1.5px dashed var(--line); }
.nav a { color: var(--ink); text-decoration: none; font-size: .91rem; font-weight: 800; }
.nav a:hover, .nav a[aria-current="page"] { color: #7c4b50; }
.language-switcher { display: flex; align-items: center; gap: 7px; margin-left: auto; padding-left: 16px; border-left: 1px solid var(--line); }
.language-switcher a { color: var(--muted); font-size: .76rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.language-switcher a[aria-current="true"] { color: #7c4b50; text-decoration: underline; }

main { min-height: 60vh; }
.article, .home { width: min(900px, calc(100% - 36px)); margin: 48px auto 80px; }
.home { width: min(1120px, calc(100% - 36px)); }
.eyebrow { margin: 0 0 8px; color: #7c4b50; font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.18; color: #26332d; }
h1 { max-width: 850px; margin: 0 0 16px; font-family: Georgia, serif; font-size: clamp(2.25rem, 5vw, 4.6rem); letter-spacing: -.035em; }
h2 { margin: 2.7rem 0 .8rem; font-family: Georgia, serif; font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -.02em; }
h3 { margin: 1.6rem 0 .45rem; font-size: 1.14rem; }
p { margin: 0 0 1.1rem; }
.dek { max-width: 750px; color: #526057; font-size: 1.13rem; }
.byline { display: flex; flex-wrap: wrap; gap: 5px 16px; margin: 20px 0; color: var(--muted); font-size: .88rem; }
.answer { margin: 25px 0 32px; padding: 22px 24px; background: var(--sage-pale); border: 1.5px solid #b8cbb8; border-radius: var(--radius); box-shadow: var(--shadow); font-size: 1.09rem; }
.answer p:last-child, .note p:last-child, .card p:last-child { margin-bottom: 0; }
.doodle { height: 26px; margin: 28px 0; color: #9e716e; }
.doodle svg { width: 230px; height: 26px; overflow: visible; }
.article-figure { margin: 30px 0 34px; }
.article-figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: var(--shadow); }
.article-figure figcaption { margin-top: 9px; padding-inline: 8px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.pull-number { font-family: Georgia, serif; color: #7c4b50; font-size: 1.4rem; font-weight: 700; }

.hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 26px; align-items: stretch; }
.hero-copy, .notebook-card { padding: clamp(24px, 5vw, 52px); border-radius: 30px; }
.hero-copy { background: var(--sage-pale); border: 1px solid #c6d3c2; }
.hero-copy h1 { font-size: clamp(2.55rem, 6vw, 5.25rem); }
.notebook-card { position: relative; background: var(--blush-pale); border: 1px solid #e2c7c1; box-shadow: var(--shadow); }
.notebook-card::before { content: ""; position: absolute; inset: 18px; border: 1px dashed rgba(124,75,80,.34); border-radius: 18px; pointer-events: none; }
.big-score { position: relative; margin: 22px 0 0; font-family: Georgia, serif; font-size: 4.6rem; line-height: 1; }
.big-score small { font: 800 .86rem/1.3 "Nunito", sans-serif; color: var(--muted); }
.button { display: inline-block; padding: 10px 17px; border-radius: 999px; background: var(--sage-dark); color: white; font-weight: 900; text-decoration: none; }
.button:hover { background: #73464a; color: white; }
.button.secondary { background: transparent; border: 1.5px solid var(--sage-dark); color: var(--sage-dark); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 23px; background: rgba(255,254,250,.85); border: 1.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card:nth-child(3n+2) { background: var(--blush-pale); border-color: #e3cbc5; }
.card h3 { margin-top: .25rem; font-family: Georgia, serif; font-size: 1.28rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: #7c4b50; }
.label { display: inline-block; color: #7c4b50; font-size: .71rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.score-pill { display: inline-block; padding: 2px 9px; border: 1px solid #9eb49f; border-radius: 999px; background: var(--sage-pale); font-size: .76rem; font-weight: 900; }
.note { margin: 28px 0; padding: 21px 23px; background: var(--blush-pale); border-left: 5px solid var(--blush); border-radius: 4px 18px 18px 4px; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0; }
.pros-cons > div { padding: 20px 22px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.pros-cons .cons { background: #fbefec; border-color: #e6ccc6; }
ul, ol { padding-left: 1.35rem; }
li { margin-bottom: .38rem; }

.table-wrap { margin: 26px 0 32px; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
caption { padding: 16px; background: var(--sage-pale); color: var(--ink); font-weight: 900; text-align: left; }
th, td { padding: 12px 14px; border-bottom: 1px solid #dde3db; text-align: left; vertical-align: top; }
thead th { background: #f0f3ed; font-size: .77rem; letter-spacing: .04em; text-transform: uppercase; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
.winner { color: #355b45; font-weight: 900; }
.faq { margin-top: 22px; }
.faq details { margin-bottom: 12px; padding: 15px 18px; background: rgba(255,254,250,.9); border: 1px solid var(--line); border-radius: 15px; }
.faq summary { cursor: pointer; font-weight: 900; }
.faq details p { margin: 12px 0 2px; }
.term { scroll-margin-top: 20px; padding: 18px 20px; margin: 0 0 14px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.term h2 { margin: 0 0 5px; font: 800 1.25rem/1.2 "Nunito", sans-serif; }
.editor { display: grid; grid-template-columns: 68px 1fr; gap: 16px; align-items: center; margin: 34px 0; padding: 20px; background: var(--sage-pale); border-radius: 20px; }
.avatar { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--blush); font-family: "Caveat", cursive; font-size: 1.7rem; font-weight: 700; }
.editor p { margin: 0; }

.site-footer { padding: 36px 0 42px; background: #e2e9de; border-top: 1px solid #c5d1c2; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; }
.site-footer nav { display: flex; justify-content: flex-end; gap: 8px 18px; flex-wrap: wrap; }
.site-footer p { margin: 0; }
.fine { margin-top: 12px !important; color: var(--muted); font-size: .78rem; }

@media (max-width: 780px) {
  body { font-size: 16px; }
  .mast { align-items: flex-start; }
  .tagline { max-width: 180px; }
  .hero-grid, .cards, .footer-grid { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .notebook-card { min-height: 270px; }
  .site-footer nav { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .wrap, .article, .home { width: min(100% - 24px, 1120px); }
  .brand-name { font-size: 1.95rem; }
  .brand-mark { width: 44px; height: 44px; }
  .tagline { display: none; }
  .nav { gap: 7px 15px; }
  .language-switcher { width: 100%; margin-left: 0; padding: 7px 0 0; border-left: 0; border-top: 1px dotted var(--line); }
  .article, .home { margin-top: 28px; }
  h1 { font-size: 2.2rem; }
  th, td { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
