:root {
  --bg: #f4f1e9;
  --surface: #fbfaf6;
  --ink: #19362f;
  --muted: #65736e;
  --line: #d8d8cc;
  --accent: #d85432;
  --accent-dark: #b94326;
  --soft: #e7eadf;
  --radius: 12px;
  --pill: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.site-header, main, footer { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.site-header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 12px; letter-spacing: .05em; }
.header-link { font-size: 14px; font-weight: 650; text-decoration: none; border-bottom: 1px solid var(--ink); padding-block: 5px; }

.hero { padding: 92px 0 76px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 840px; margin-bottom: 28px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 8vw, 88px); line-height: .98; letter-spacing: -.055em; font-weight: 500; }
.hero-copy { max-width: 680px; color: var(--muted); font-size: 19px; }
.hero-stats { display: flex; gap: 56px; margin-top: 52px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: Georgia, serif; font-size: 32px; line-height: 1; font-weight: 500; }
.hero-stats span { color: var(--muted); font-size: 13px; margin-top: 7px; }

.guide, .directory { padding: 76px 0; border-bottom: 1px solid var(--line); }
.section-heading h2, .note h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(36px, 5vw, 52px); line-height: 1.05; letter-spacing: -.035em; font-weight: 500; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.guide-card { min-height: 180px; padding: 24px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; color: var(--ink); background: transparent; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; transition: background 160ms ease; }
.guide-card:hover, .guide-card:focus-visible { background: var(--surface); }
.guide-card:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 34%, transparent); outline-offset: 3px; }
.guide-number { color: var(--accent); font-family: Georgia, serif; font-size: 13px; }
.guide-card strong { margin-top: auto; font-size: 17px; }
.guide-card > span:last-child { color: var(--muted); margin-top: 5px; font-size: 14px; }

.directory-topline { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.directory-actions { display: flex; align-items: center; gap: 18px; }
.result-count { margin: 0 0 5px; color: var(--muted); font-size: 14px; }
.alphabetical-button { min-height: 40px; padding: 0 14px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: var(--pill); font-size: 13px; font-weight: 700; cursor: pointer; }
.alphabetical-button:hover { border-color: var(--ink); background: var(--surface); }
.toolbar { display: flex; gap: 12px; margin-top: 36px; }
.search-field { flex: 1; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.search-field:focus-within { border-color: var(--ink); }
.search-field svg { width: 19px; fill: none; stroke: var(--muted); stroke-width: 1.7; }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-field input::placeholder { color: #89938f; }
.sort-field { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 14px; }
.sort-field select { border: 0; outline: 0; color: var(--ink); background: transparent; font-weight: 600; }
.filter-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 28px; }
.filter { min-height: 40px; padding: 0 17px; border: 1px solid var(--line); border-radius: var(--pill); background: transparent; color: var(--muted); cursor: pointer; }
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { color: var(--surface); background: var(--ink); border-color: var(--ink); }

.registrar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.registrar-card { min-height: 264px; padding: 22px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-top { display: flex; justify-content: space-between; gap: 16px; }
.initials { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: .03em; }
.card-link { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); text-decoration: none; transition: background 160ms ease, color 160ms ease; }
.card-link:hover { background: var(--ink); color: var(--surface); }
.registrar-card h3 { margin: 28px 0 7px; font-family: Georgia, serif; font-size: 25px; font-weight: 500; letter-spacing: -.02em; }
.registrar-card p { margin-bottom: 20px; color: var(--muted); font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag { padding: 5px 9px; border-radius: var(--pill); background: var(--soft); font-size: 11px; font-weight: 650; }
.empty-state { padding: 72px 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state h3 { margin-bottom: 6px; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.empty-state p { color: var(--muted); }
.primary-button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }
.primary-button:hover { background: var(--accent-dark); }

.note { padding: 82px 0 76px; max-width: 800px; }
.note > p:last-child { max-width: 650px; margin: 24px 0 0; color: var(--muted); font-size: 17px; }
.faq { padding: 0 0 82px; max-width: 800px; }
.faq h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(32px, 4vw, 45px); line-height: 1.08; font-weight: 500; letter-spacing: -.03em; }
.faq-list { margin-top: 30px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 20px 34px 20px 0; cursor: pointer; font-weight: 650; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; color: var(--accent); font-size: 25px; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { max-width: 650px; margin: -3px 0 20px; color: var(--muted); }
.noscript-message { width: min(1180px, calc(100% - 48px)); margin: 0 auto 32px; color: var(--muted); font-size: 14px; }
footer { padding: 32px 0 42px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); }
footer p { margin: 0; max-width: 520px; color: var(--muted); font-size: 12px; text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 820px) {
  .guide-grid, .registrar-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 72px; }
}
@media (max-width: 580px) {
  .site-header, main, footer { width: min(100% - 32px, 1180px); }
  .site-header { height: 72px; }
  .header-link { display: none; }
  .hero { padding: 58px 0; }
  h1 { font-size: 49px; }
  .hero-copy { font-size: 17px; }
  .hero-stats { gap: 28px; justify-content: space-between; }
  .guide, .directory { padding: 58px 0; }
  .guide-grid, .registrar-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 150px; }
  .directory-topline { align-items: start; flex-direction: column; }
  .directory-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .toolbar { flex-direction: column; }
  .sort-field { justify-content: space-between; }
  footer { align-items: flex-start; flex-direction: column; }
  footer p { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
