﻿/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/font-2.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/font-1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/font-2.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/font-1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/font-2.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/font-1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/font-2.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/font-1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/font-4.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/font-5.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/font-3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/font-4.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/font-5.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/font-3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/font-4.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/font-5.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/font-3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}




:root {
  --paper: #f7f4ed;
  --paper-deep: #efe9dd;
  --panel: #fffdf8;
  --ink: #1b1d1a;
  --ink-2: #4d5049;
  --green: #2f5d50;
  --green-soft: #e7f0eb;
  --orange: #a8411b;
  --line: #d9d3c7;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }

button, a, input, select, summary { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  z-index: 100;
  border-radius: 2px;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  flex-wrap: wrap;
  padding-block: 12px;
}
.wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.wordmark::before {
  content: '';
  width: 9px;
  height: 9px;
  background: var(--orange);
  display: inline-block;
  flex: none;
}
.wordmark:hover { text-decoration: none; }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-2);
}
.site-nav a:hover,
.site-nav a[aria-current='page'] { color: var(--ink); }

main > section { scroll-margin-top: 96px; }

.label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 14px;
}
.label::before {
  content: '';
  width: 9px;
  height: 9px;
  background: var(--orange);
  flex: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 68px;
  align-items: center;
  padding: 84px 0 92px;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.1rem);
  margin: 0 0 22px;
  max-width: 15ch;
}
.lede {
  font-size: 1.14rem;
  color: var(--ink-2);
  max-width: 48ch;
  margin-bottom: 30px;
}
.actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  border-radius: 2px;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid var(--ink);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--green); border-color: var(--green); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { background: var(--paper-deep); border-color: var(--ink-2); }

.match {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 30px;
  border-radius: 2px;
}
.match h2 { font-size: 1.4rem; margin: 0 0 8px; }
.match-intro { color: var(--ink-2); font-size: 0.95rem; margin-bottom: 20px; }
.choices { display: grid; gap: 10px; }
.choice {
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 15px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  min-height: 48px;
}
.choice:hover { background: var(--paper-deep); }
.choice[aria-pressed='true'] {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}
.match-result {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  min-height: 130px;
}
.match-result[hidden] { display: none; }
.match-result h3 { font-size: 1.15rem; margin: 0 0 6px; }
.match-result p { font-size: 0.92rem; color: var(--ink-2); margin-bottom: 12px; }
.match-result a { color: var(--green); font-weight: 700; }

.section { padding: 74px 0; }
.section-tint { background: var(--paper-deep); }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.85rem, 3.4vw, 2.5rem); margin: 0; }
.section-head .aside { color: var(--ink-2); font-size: 0.95rem; max-width: 38ch; }
.section-head .aside p { margin: 0; }

.shortlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.shortlist li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) minmax(0, 1.4fr) auto;
  gap: 20px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.shortlist .num { font-family: 'Fraunces', Georgia, serif; color: var(--orange); font-size: 1.1rem; }
.shortlist .name { font-size: 1.15rem; font-weight: 700; }
.shortlist .desc { color: var(--ink-2); font-size: 0.95rem; }
.shortlist .go { font-size: 0.9rem; font-weight: 700; color: var(--green); }

.article-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.article-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.article-row h3 { font-size: 1.5rem; margin: 0 0 10px; }
.article-row h3 a:hover { color: var(--green); }
.article-row p { color: var(--ink-2); font-size: 0.96rem; margin-bottom: 12px; }
.article-row .meta { color: var(--green); font-size: 0.9rem; font-weight: 700; }
.article-row .aside-note { border-left: 2px solid var(--orange); padding-left: 18px; color: var(--ink-2); font-size: 0.94rem; }

.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  padding: 26px 28px;
  max-width: 720px;
  background: var(--panel);
}
.note h2 { font-size: 1.45rem; margin: 0 0 10px; }
.note p { color: var(--ink-2); margin-bottom: 0; }

.page-head { padding: 70px 0 40px; }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin: 0 0 16px; }
.page-head p { font-size: 1.08rem; color: var(--ink-2); max-width: 58ch; margin: 0; }

.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.search {
  flex: 1 1 260px;
  min-width: 0;
}
.search label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.search input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.search input::placeholder { color: #74776f; }
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.filter-group span { font-size: 0.85rem; font-weight: 700; margin-right: 4px; }
.filter-btn {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 44px;
  padding: 9px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
}
.filter-btn:hover { background: var(--paper-deep); }
.filter-btn[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.result-line { color: var(--ink-2); font-size: 0.9rem; margin-bottom: 22px; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.tool-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}
.tool-card[hidden] { display: none; }
.tool-card .cat { color: var(--green); font-size: 0.8rem; font-weight: 700; margin-bottom: 10px; }
.tool-card h3 { font-size: 1.3rem; margin: 0 0 10px; }
.tool-card p { color: var(--ink-2); font-size: 0.94rem; flex: 1; }
.tool-card .price { font-size: 0.84rem; color: var(--ink-2); padding-top: 14px; border-top: 1px solid var(--line); margin-bottom: 12px; }
.tool-card a { color: var(--green); font-weight: 700; font-size: 0.92rem; }

.empty {
  border: 1px dashed var(--line);
  padding: 36px;
  text-align: center;
  color: var(--ink-2);
}
.empty[hidden] { display: none; }
.empty h3 { margin: 0 0 8px; font-size: 1.25rem; color: var(--ink); }
.empty p { margin: 0 0 16px; }

.prose { max-width: 720px; padding-bottom: 30px; }
.prose h2 { font-size: 1.8rem; margin: 46px 0 14px; }
.prose h3 { font-size: 1.25rem; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.prose .pull {
  border-left: 3px solid var(--orange);
  padding-left: 20px;
  font-size: 1.1rem;
  font-family: 'Fraunces', Georgia, serif;
  color: var(--ink);
  margin: 26px 0;
}
.back { display: inline-block; margin-bottom: 28px; font-size: 0.9rem; font-weight: 700; color: var(--green); }
.article-meta { color: var(--ink-2); font-size: 0.9rem; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 10px; }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 40px 0 46px;
  color: var(--ink-2);
  font-size: 0.9rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-inner .wordmark { font-size: 1.2rem; color: var(--ink); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: start; }
.footer-links a { font-weight: 600; }
.footer-note { margin-top: 22px; max-width: 60ch; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 58px 0 70px; }
  .hero h1 { max-width: none; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shortlist li { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .shortlist .desc { grid-column: 2 / -1; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 0; gap: 12px; }
  .site-nav ul { gap: 16px; }
  .site-nav a { font-size: 0.85rem; }
  .hero { padding: 44px 0 56px; }
  .hero h1 { font-size: 2.45rem; }
  .lede { font-size: 1.05rem; }
  .match { padding: 22px; }
  .section { padding: 56px 0; }
  .article-row { grid-template-columns: 1fr; gap: 14px; }
  .article-row .aside-note { border-left: none; border-top: 2px solid var(--orange); padding: 14px 0 0; }
  .shortlist li { grid-template-columns: 28px minmax(0, 1fr); gap: 8px 14px; }
  .shortlist .go { grid-column: 2; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 0; }
  .filters { gap: 16px; }
  .filter-group { width: 100%; }
  .prose h2 { font-size: 1.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
