:root {
  --black: #07101d;
  --white: #f8fbf9;
  --ink: #0a1110;
  --emerald: #2ee39b;
  --emerald-deep: #0d9b6c;
  --line: #dbe5df;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--ink); background: #f5faf7; font-family: var(--sans); }
a { color: inherit; text-decoration: none; }

.topbar {
  min-height: 50px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
  color: var(--white);
  background: var(--black);
}

.brand { display: inline-flex; align-items: center; gap: 15px; font-size: 19px; font-weight: 750; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: #06151a; background: var(--emerald); border-radius: 7px; font-family: Georgia, serif; font-size: 22px; font-style: italic; font-weight: 700; }
.topbar-title { margin-left: 10px; color: var(--white); font-size: 14px; font-weight: 650; line-height: 1; white-space: nowrap; }
.topbar-title:hover { color: var(--emerald); }
.site-search { margin-left: auto; }
.site-search input { width: 190px; height: 30px; padding: 0 10px; color: var(--white); border: 1px solid rgba(172, 198, 221, .25); border-radius: 4px; outline: 0; background: transparent; font: inherit; font-size: 11px; }
.site-search input::placeholder { color: #8b9dab; }
.site-search input:focus { border-color: var(--emerald); }

.home { width: 100%; min-height: calc(100vh - 101px); margin: 0; padding: 32px 2px 80px; }
h1.home-heading { margin: 0 0 7px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(25px, 4vw, 38px); font-weight: 400; letter-spacing: -.04em; line-height: 1; text-align: center; }
.home-summary { margin: 0 auto 10px; color: #68766f; font-size: 13px; text-align: center; }
.tag-directory-link,
.tag-back-link { color: var(--emerald-deep); font-size: 12px; }
.tag-directory-link:hover,
.tag-back-link:hover { color: var(--ink); text-decoration: underline; }
h2, strong { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }

.guides-grid { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 auto; }
.guide-row { width: 100%; display: block; margin: 0 auto; padding: 34px 32px 31px; border: 1px solid var(--line); background: #fff; text-align: center; }
.guide-row:hover { border-color: var(--emerald-deep); }
.guide-card-link { display: block; }
.guide-row small { display: block; margin-top: 14px; color: var(--emerald-deep); font-size: 10px; font-weight: 800; letter-spacing: .05em; }
.tag-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 11px; }
.tag-chip { display: inline-block; padding: 3px 6px; color: var(--emerald-deep); border: 1px solid var(--line); font-size: 10px; line-height: 1.1; }
.tag-chip:hover { color: var(--ink); border-color: var(--emerald-deep); background: rgba(46, 227, 155, .12); }
.guide-cover { width: 100%; height: auto; aspect-ratio: 2 / 1; display: block; margin: 0 auto; object-fit: cover; border: 1px solid var(--line); border-radius: 0; }
.guide-row strong { display: block; margin-bottom: 14px; font-size: clamp(23px, 4vw, 36px); letter-spacing: -.04em; }
.guide-row.is-hidden { display: none; }
.home-footer { padding: 18px 0 32px; text-align: center; }
.tag-main { max-width: 1000px; margin: 0 auto; }
.tag-directory { width: min(620px, 100%); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 28px auto 0; }
.tag-directory-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); background: #fff; }
.tag-directory-item:hover { border-color: var(--emerald-deep); }
.tag-directory-item span { color: var(--ink); font-size: 14px; }
.tag-directory-item small { color: #68766f; font-size: 11px; }
.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: 600px) {
  .topbar { padding: 0 5px; }
  .site-search input { width: 130px; }
  .home { width: 100%; padding: 32px 2px 60px; }
  .guides-grid { grid-template-columns: 1fr; }
  .guide-row { padding: 27px 26px 25px; }
  .guide-cover { width: 100%; height: auto; }
  .tag-directory { grid-template-columns: 1fr; }
}
