@font-face { font-family: "Noto Sans"; src: url("../fonts/NotoSans-Regular.woff") format("woff"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("../fonts/NotoSans-Bold.woff") format("woff"); font-style: normal; font-weight: 600 800; font-display: swap; }

:root {
  --bg: #faf8f2;
  --surface: #f3f0e7;
  --text: #242622;
  --muted: #646860;
  --line: #e3e0d7;
  --accent: #2457d6;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
a { color: inherit; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-weight: 800; font-size: 1.2rem; text-decoration: none; }
.nav { display: flex; gap: 18px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
.hero { padding: 72px 0 36px; }
.hero h1 { margin: 0 0 14px; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.02; letter-spacing: -0.045em; }
.hero p { max-width: 760px; margin: 0; font-size: 1.12rem; color: var(--muted); }
.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 18px 0 40px; }
.card { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--bg); }
.card:hover { border-color: #cfd2d9; }
.card-meta { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.card h2 { margin: 0 0 10px; font-size: 1.45rem; line-height: 1.25; }
.card h2 a { text-decoration: none; }
.card p { margin: 0 0 16px; color: var(--muted); }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 20px 0 72px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.pagination a:hover { background: var(--surface); }
.pagination .current { background: var(--text); color: #fff; border-color: var(--text); }
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: .92rem; }
.post-wrap { width: min(780px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 90px; }
.back-link { display: inline-block; margin-bottom: 32px; color: var(--accent); text-decoration: none; font-weight: 700; }
.post-header { margin-bottom: 42px; }
.post-meta { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.post-header h1 { margin: 0 0 18px; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.15; letter-spacing: -0.035em; }
.lead { color: var(--muted); font-size: 1.25rem; margin: 0; }
.post-content h2 { margin: 46px 0 12px; font-size: 1.75rem; line-height: 1.25; }
.post-content p { margin: 0 0 20px; font-size: 1.06rem; }
.post-content blockquote { margin: 30px 0; padding: 16px 22px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; }
.next-prev { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.next-prev a { color: var(--accent); font-weight: 700; text-decoration: none; }
@media (max-width: 760px) {
  .blog-grid { grid-template-columns: 1fr; }
  .header-inner { min-height: 64px; }
  .hero { padding-top: 52px; }
  .nav { gap: 12px; font-size: .92rem; }
}

.post-series { color: var(--accent); font-weight: 700; margin: 0 0 18px; }
.post-content ul, .post-content ol { padding-left: 26px; margin: 0 0 24px; }
.post-content li { padding-left: 4px; margin-bottom: 12px; font-size: 1.06rem; }
.post-content a { color: var(--accent); overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; margin: 24px 0; }
table { border-collapse: collapse; width: 100%; font-size: .98rem; }
th, td { border: 1px solid var(--line); padding: 12px 16px; text-align: left; }
th { background: var(--surface); }
.worksheet { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 24px 0; }
.worksheet > div { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.worksheet > div:last-child { border-bottom: 0; }
.worksheet dt { font-weight: 700; }
.worksheet dd { margin: 4px 0 0; color: var(--muted); }
.post-header h1, .card h2 { overflow-wrap: anywhere; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.card { display: block; text-decoration: none; background: #fdfbf6; transition: border-color .18s, background .18s, transform .18s; }
.card:hover { background: #fffdf8; border-color: #b8bbae; transform: translateY(-2px); }
.card h2 { font-weight: 700; line-height: 1.4; }
.card p { margin-bottom: 0; }
.post-content { line-height: 1.85; }
.logo { letter-spacing: .04em; font-size: 1.1rem; }
.hero h1 { line-height: 1.12; letter-spacing: -.035em; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } .card:hover { transform: none; } }

[hidden] { display: none !important; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin: 12px 0 20px; background: #fdfbf6; }
.filter-main { flex: 0 1 285px; }
.filter-main > label, .filter-secondary legend { display: block; margin-bottom: 10px; font-size: .95rem; font-weight: 700; }
.filter-main select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; font-size: .9rem; }
.filter-secondary { flex: 1 1 370px; border: 0; padding: 0; margin: 0; min-width: 0; }
.filter-secondary legend { padding: 0; }
.domain-options { display: flex; flex-wrap: wrap; gap: 8px; }
.domain-option { display: inline-flex; cursor: pointer; }
.domain-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.domain-option span { display: inline-block; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; font-size: .85rem; background: var(--bg); }
.domain-option input:checked + span { background: var(--text); border-color: var(--text); color: #fff; }
.domain-option input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.reset-filters { margin-top: 34px; border: 0; background: transparent; color: var(--accent); font: inherit; font-size: .85rem; cursor: pointer; padding: 10px 0; }
.results-count { color: var(--muted); font-size: .92rem; margin: 0 0 4px; }
.secondary-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 22px; font-size: .78rem; }
.tags-label { color: var(--muted); margin-right: 4px; }
.domain-tag { padding: 3px 8px; border-radius: 6px; background: var(--surface); color: #555c4f; font-weight: 700; }
.tags-empty { color: var(--muted); }
.no-results { border: 1px solid var(--line); border-radius: 12px; padding: 28px; margin: 20px 0 60px; color: var(--muted); }
.pagination button { min-width: 42px; height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: inherit; cursor: pointer; font: inherit; }
.pagination button:hover { background: var(--surface); }
button:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
@media (max-width: 760px) { .filters { padding: 18px; gap: 20px; } .filter-main, .filter-secondary { flex-basis: 100%; } .reset-filters { margin-top: 0; padding: 0; } }
.card { display: flex; flex-direction: column; }
.card p { margin-bottom: 22px; }
.secondary-tags { margin-top: auto; }
#domain-filters { scroll-margin-top: 92px; }

:root { --action: #b94e0c; }
.reset-filters, .back-link, .next-prev a { color: var(--action); }
.hero-intro { max-width: 960px; margin-top: 24px; }
.hero-intro p { max-width: none; margin: 0 0 12px; font-size: 1rem; line-height: 1.85; }
.hero-intro p:last-child { margin-bottom: 0; }

@font-face { font-family: "Noto Sans"; src: url("../fonts/NotoSans-BoldItalic.woff") format("woff"); font-style: italic; font-weight: 700; font-display: swap; }
.post-content a.source-link { color: #a8450c; font-weight: 700; text-decoration: none; }
.post-content a.source-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-intro p { font-size: .9rem; font-weight: 700; font-style: italic; line-height: 1.8; }

.domain-option input:disabled + span { opacity: .4; cursor: not-allowed; background: var(--surface); color: var(--muted); }
