:root {
  --ink: #223244;
  --muted: #566575;
  --blue: #145b94;
  --blue-dark: #0b426f;
  --paper: #fff;
  --wash: #f3f6f8;
  --line: #dbe3e9;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 17px/1.75 Arial, Helvetica, sans-serif; }
a { color: var(--blue); text-underline-offset: 4px; }
a:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.skip-link { position: absolute; top: -100px; left: 16px; background: var(--paper); padding: 12px; z-index: 1; }
.skip-link:focus { top: 12px; }
.site-header { border-top: 5px solid var(--blue); border-bottom: 1px solid var(--line); }
.header-inner, .site-body, .site-footer > div { max-width: 1160px; margin: auto; padding-left: 32px; padding-right: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 100px; }
.wordmark { display: flex; align-items: center; gap: 7px; color: var(--ink); font-size: 26px; font-weight: 750; letter-spacing: -1px; text-decoration: none; line-height: 1; white-space: nowrap; }
.domain { font-size: 18px; color: var(--muted); letter-spacing: 0; margin-left: -7px; }
.mark { font-size: 36px; color: var(--blue); margin-right: 5px; }
.header-inner nav { display: flex; gap: 28px; }
.header-inner nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.header-inner nav a:hover, .header-inner nav a[aria-current] { color: var(--blue); text-decoration: underline; }
.site-body { min-height: 65vh; padding-top: 40px; padding-bottom: 72px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 32px; font-size: 14px; color: var(--muted); }
.breadcrumbs a { white-space: nowrap; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 72px; align-items: start; }
.layout.wide { display: block; }
main { min-width: 0; }
h1, h2 { line-height: 1.22; letter-spacing: -0.035em; }
h1 { font-size: clamp(30px, 4.5vw, 48px); margin: 0 0 28px; max-width: 900px; overflow-wrap: anywhere; }
h2 { font-size: 25px; margin: 0 0 18px; }
p { margin: 0 0 20px; }
.prose { max-width: 760px; }
.intro { font-size: 19px; }
.category-copy { font-size: 19px; }
.lead { color: var(--muted); font-size: 19px; max-width: 720px; }
.browse { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.browse > p { color: var(--muted); }
.category-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 24px 0 0; padding: 0; gap: 0 32px; }
.category-list li { min-width: 0; border-bottom: 1px solid var(--line); }
.category-list a { display: block; padding: 12px 0; line-height: 1.5; text-decoration: none; font-size: 16px; }
.category-list a:hover { text-decoration: underline; }
.category-list a[aria-current] { color: var(--ink); font-weight: bold; }
aside { border-left: 1px solid var(--line); padding-left: 28px; }
aside h2 { font-size: 18px; letter-spacing: 0; }
aside .category-list { display: block; margin-top: 12px; }
aside .category-list li { border: none; }
aside .category-list a { padding: 5px 0; font-size: 15px; }
.subcategories { margin-top: 48px; }
.subcategories .category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.notice { margin-top: 48px; background: var(--wash); border-left: 3px solid var(--blue); padding: 24px 28px; }
.notice h2 { font-size: 20px; }
.notice p { margin: 0; max-width: 750px; color: var(--muted); }
.back-link { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 40px; font-size: 15px; }
.site-footer { border-top: 1px solid var(--line); background: var(--wash); }
.site-footer > div { padding-top: 32px; padding-bottom: 32px; }
.footer-name { color: var(--ink); font-weight: bold; text-decoration: none; }
.site-footer p { color: var(--muted); font-size: 14px; margin: 4px 0 12px; }
.site-footer a:last-child { font-size: 14px; }
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr) 200px; gap: 32px; }
  .category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .header-inner, .site-body, .site-footer > div { padding-left: 20px; padding-right: 20px; }
  .header-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 20px; padding-top: 24px; padding-bottom: 20px; }
  .wordmark { font-size: 25px; }
  .header-inner nav { gap: 24px; }
  .site-body { padding-top: 28px; padding-bottom: 40px; }
  .layout { display: block; }
  .breadcrumbs { font-size: 13px; margin-bottom: 24px; }
  .category-copy, .intro, .lead { font-size: 17px; }
  .category-list, .subcategories .category-list { grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
  .category-list a { padding: 10px 0; }
  aside { margin-top: 40px; border-left: none; border-top: 1px solid var(--line); padding: 28px 0 0; }
  aside .category-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  aside .category-list a { font-size: 14px; overflow-wrap: anywhere; }
  .notice { padding: 20px; }
}
