@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&family=Open+Sans:ital,wght@0,400;0,600;1,400&family=Playfair+Display:ital,wght@0,600;0,700;1,400;1,500&display=swap');

:root {
  --cream: #FDFBF8;
  --beige: #F7F4EC;
  --ink: #2C3E50;
  --ink-soft: #55657A;
  --sage: #6B8E23;
  --sage-dark: #526D1A;
  --line: #E0E0E0;
  --card-line: #EFEFEF;
  --footer: #34495E;
  --radius: 10px;
  --shadow: 0 6px 20px rgba(44, 62, 80, 0.07);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 18px/1.6 'Open Sans', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: var(--radius); background: var(--beige); }
a { color: var(--sage-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--sage); text-decoration: underline; }
p { margin: 0 0 1.1rem; }
ul, ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
li { margin-bottom: .45rem; }
h1, h2, h3, h4 { font-family: 'Montserrat', Arial, sans-serif; font-weight: 600; line-height: 1.22; margin: 0 0 .8rem; color: var(--ink); }
h1 { font-size: 42px; }
h2 { font-size: 30px; }
h3 { font-size: 21px; }
h4 { font-size: 18px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; color: #fff; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(253, 251, 248, .9); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header.scrolled { box-shadow: 0 4px 18px rgba(44, 62, 80, .09); border-bottom-color: var(--line); }
.topbar { font-size: 13px; color: var(--ink-soft); border-bottom: 1px solid var(--card-line); }
.topbar .container { display: flex; justify-content: space-between; gap: 1rem; padding-top: 6px; padding-bottom: 6px; }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { font: 700 28px 'Montserrat', sans-serif; color: var(--ink); letter-spacing: -.01em; }
.brand:hover { color: var(--sage-dark); text-decoration: none; }
.brand-light, .brand-light:hover { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; font-size: 15.5px; font-weight: 600; }
.nav-links > a:not(.btn), .dropdown > a { color: var(--ink); padding: 8px 0; border-bottom: 2px solid transparent; }
.nav-links > a:not(.btn):hover, .dropdown > a:hover, .nav-links a[aria-current="page"] { color: var(--sage-dark); border-bottom-color: var(--sage); text-decoration: none; }
.dropdown { position: relative; }
.dropdown > a::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.dropdown-menu { position: absolute; top: 100%; left: -20px; width: 520px; display: none; grid-template-columns: 1fr 1fr; gap: 2px 18px; padding: 18px 22px; background: #fff; border: 1px solid var(--card-line); border-radius: var(--radius); box-shadow: var(--shadow); }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: grid; }
.dropdown-menu a { padding: 7px 0; font-weight: 400; color: var(--ink); font-size: 15.5px; }
.dropdown-menu a:hover { color: var(--sage-dark); }
.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); transition: .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-block; background: var(--sage); color: #fff; font: 700 17px 'Montserrat', sans-serif; padding: 13px 28px; border: 2px solid var(--sage); border-radius: 8px; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.btn:hover { background: #55711b; border-color: #55711b; color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-sm { font-size: 15px; padding: 9px 20px; background: var(--sage-dark); border-color: var(--sage-dark); }
.btn-outline { background: transparent; color: var(--sage-dark); border-color: var(--sage-dark); }
.btn-outline:hover { background: var(--sage-dark); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.4rem; }
.text-link { font-weight: 600; font-family: 'Montserrat', sans-serif; font-size: 16px; }
.text-link::after { content: ' →'; }

/* Magazine hero */
.masthead { padding: 28px 0 70px; background: var(--cream); }
.mast-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 14px; color: var(--ink-soft); letter-spacing: .04em; }
.mast-top .issue { text-transform: uppercase; font-weight: 600; letter-spacing: .14em; font-size: 12.5px; }
.mast-body { display: grid; grid-template-columns: 1.55fr 1fr; gap: 56px; align-items: end; padding: 44px 0 40px; }
.mast-body h1 { font: 700 clamp(2.4rem, 4.6vw, 4.1rem)/1.08 'Playfair Display', Georgia, serif; letter-spacing: -.01em; margin: 0; }
.epigraph { font: italic 500 1.35rem/1.55 'Playfair Display', Georgia, serif; color: var(--ink); margin: 0 0 1.2rem; padding-left: 22px; border-left: 3px solid var(--sage); }
.mast-aside p.lead { font-size: 17px; color: var(--ink-soft); }
.mast-figure { margin: 0; display: grid; grid-template-columns: 2.1fr 1fr; gap: 28px; align-items: end; }
.mast-figure img { height: 400px; }
.mast-figure figcaption { font-size: 15px; color: var(--ink-soft); font-style: italic; border-top: 1px solid var(--line); padding-top: 12px; }

/* Inner page head */
.page-head { background: var(--beige); padding: 44px 0 50px; border-bottom: 1px solid var(--line); }
.page-head .rule { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--ink); padding-top: 10px; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 26px; }
.page-head h1 { max-width: 880px; }
.page-head .lead { max-width: 780px; font-size: 19.5px; color: var(--ink-soft); margin-bottom: 0; }
.breadcrumb { font-size: 14.5px; margin-bottom: 14px; color: var(--ink-soft); }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb span { margin: 0 6px; }
.byline { font-size: 14.5px; color: var(--ink-soft); margin-top: 1.2rem; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--beige); }
.section-head { max-width: 760px; margin-bottom: 2.6rem; }
.eyebrow { font: 600 13px 'Montserrat', sans-serif; letter-spacing: .14em; color: var(--sage-dark); margin-bottom: .6rem; text-transform: uppercase; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { height: 420px; }
.card { background: #fff; border: 1px solid var(--card-line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(44, 62, 80, .11); }
.card img { height: 210px; margin-bottom: 18px; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--sage-dark); text-decoration: none; }
.card p { font-size: 16.5px; color: var(--ink-soft); }
.card .text-link { margin-top: auto; }
.card .tag { font: 600 12px 'Montserrat', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--sage-dark); margin-bottom: 8px; }
.icon { width: 44px; height: 44px; stroke: var(--sage-dark); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }

/* Ranked list */
.ranked { list-style: none; padding: 0; margin: 0; counter-reset: rank; }
.ranked li { counter-increment: rank; display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; margin: 0; border-bottom: 1px solid var(--line); }
.ranked li:first-child { border-top: 1px solid var(--line); }
.ranked li::before { content: counter(rank, decimal-leading-zero); font: 700 34px 'Playfair Display', Georgia, serif; color: var(--sage); line-height: 1; padding-top: 4px; }
.ranked h3 { margin-bottom: .4rem; }
.ranked p { margin-bottom: .5rem; }
.ranked .meta { font-size: 15px; color: var(--ink-soft); }

/* Content */
.prose { max-width: 820px; }
.prose h2 { margin-top: 2.6rem; }
.prose h3 { margin-top: 1.8rem; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.sidebar { position: sticky; top: 130px; display: grid; gap: 22px; }
.toc { background: #fff; border: 1px solid var(--card-line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.toc h3 { font-size: 17px; }
.toc ul { list-style: none; padding: 0; margin: 0; font-size: 16px; }
.toc li { margin-bottom: .5rem; }
figure { margin: 2rem 0; }
figure img { height: 360px; }
figcaption { font-size: 14.5px; color: var(--ink-soft); font-style: italic; margin-top: 10px; }
.note { background: #fff; border: 1px solid var(--card-line); border-left: 4px solid var(--sage); border-radius: var(--radius); padding: 20px 24px; margin: 2rem 0; font-size: 16.5px; }
.note strong { font-family: 'Montserrat', sans-serif; }
.note p:last-child { margin-bottom: 0; }
blockquote { margin: 2rem 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--sage); font: italic 500 1.3rem/1.55 'Playfair Display', Georgia, serif; }
.table-wrap { overflow-x: auto; margin: 1.6rem 0; border: 1px solid var(--card-line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 15px 'Montserrat', sans-serif; background: var(--beige); }
tr:last-child td { border-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: left; }
.stat { border-top: 2px solid var(--sage); padding-top: 14px; }
.stat b { display: block; font: 700 34px 'Playfair Display', Georgia, serif; }
.stat span { font-size: 15.5px; color: var(--ink-soft); }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: ''; position: absolute; left: 4px; top: .5em; width: 8px; height: 14px; border-right: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(45deg); }
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 54px 48px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band img { height: 260px; }
.cta-band .btn-outline { color: #fff; border-color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--ink); }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--card-line); border-radius: var(--radius); margin-bottom: 14px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 20px 56px 20px 24px; font: 600 18px 'Montserrat', sans-serif; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 24px; top: 14px; font-size: 28px; color: var(--sage-dark); }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding: 0 24px 8px; color: var(--ink-soft); }

/* Forms */
.form { display: grid; gap: 18px; }
.form label { font: 600 15px 'Montserrat', sans-serif; display: block; margin-bottom: 6px; }
.form input, .form textarea, .form select { width: 100%; font: 400 17px 'Open Sans', sans-serif; padding: 13px 15px; color: var(--ink); background: #fff; border: 1px solid #C9CED4; border-radius: 8px; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 3px solid rgba(107, 142, 35, .35); border-color: var(--sage); }
.form textarea { min-height: 150px; resize: vertical; }
.form .check { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.form .check input { width: 20px; height: 20px; margin-top: 4px; flex: none; }
.form .check label { font: 400 15.5px 'Open Sans', sans-serif; margin: 0; }
.field-error { color: #9B2C2C; font-size: 14.5px; margin-top: 4px; display: none; }
.has-error .field-error { display: block; }
.has-error input, .has-error textarea { border-color: #9B2C2C; }
.success { display: none; background: #EAF0DC; border: 1px solid var(--sage); border-left-width: 5px; border-radius: var(--radius); padding: 18px 22px; margin-top: 18px; }
.success.show { display: block; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: 1.1rem; }
.contact-list b { display: block; font-family: 'Montserrat', sans-serif; font-size: 15px; }

/* Legal */
.legal { max-width: 860px; }
.legal h2 { font-size: 24px; margin-top: 2.4rem; }
.legal h3 { font-size: 19px; margin-top: 1.6rem; }
.legal .updated { color: var(--ink-soft); font-size: 15.5px; }

/* Footer */
.site-footer { background: var(--footer); color: #D6DEE6; padding: 70px 0 0; font-size: 16px; }
.site-footer a { color: #D6DEE6; }
.site-footer a:hover { color: #fff; }
.site-footer h3 { color: #fff; font-size: 17px; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-bottom { margin-top: 54px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; justify-content: space-between; gap: 2rem; font-size: 14.5px; color: #B8C4D0; }
.footer-bottom p { margin: 0; }

/* Cookie banner */
.cookie-banner { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 90; max-width: 960px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(44, 62, 80, .22); padding: 20px 24px; display: flex; gap: 24px; align-items: center; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 15.5px; line-height: 1.5; }
.cookie-actions { display: flex; gap: 10px; flex: none; }

/* Responsive */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  .menu-toggle { display: flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(44, 62, 80, .1); flex-direction: column; align-items: flex-start; gap: .4rem; padding: 18px 24px 26px; max-height: calc(100vh - 110px); overflow-y: auto; }
  .nav-links.open { display: flex; }
  .dropdown-menu { position: static; display: grid; width: 100%; box-shadow: none; border: 0; padding: 4px 0 8px 14px; grid-template-columns: 1fr; background: transparent; }
  .dropdown > a::after { display: none; }
  .mast-body, .split, .grid-2, .cta-band, .mast-figure { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .mast-body { gap: 28px; }
  .mast-figure img, .split img { height: 300px; }
  .section { padding: 56px 0; }
  .cta-band { padding: 34px 26px; }
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 14px; }
  .footer-bottom { flex-direction: column; gap: .6rem; }
  .topbar span:first-child { display: none; }
  .topbar .container { justify-content: flex-end; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .grid-4, .footer-grid, .stats { grid-template-columns: 1fr; }
  .ranked li { grid-template-columns: 44px 1fr; gap: 12px; }
  .ranked li::before { font-size: 26px; }
  .page-head .rule span:last-child { display: none; }
  figure img { height: 240px; }
  .cookie-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
