@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 100; font-display: swap; src: url("/assets/fonts/archivo-latin-100-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/archivo-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 200; font-display: swap; src: url("/assets/fonts/archivo-latin-200-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/archivo-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/archivo-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/archivo-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/archivo-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/archivo-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/archivo-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/archivo-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/archivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/archivo-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/archivo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/archivo-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/archivo-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 900; font-display: swap; src: url("/assets/fonts/archivo-latin-900-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/archivo-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: 'Courier Prime'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/courier-prime-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Courier Prime'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/courier-prime-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Courier Prime'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/courier-prime-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Courier Prime'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/courier-prime-latin-700-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #e3ef9c;
  --fg-light-base-body: #14301f;
  --fg-light-base-heading: #14301f;
  --fg-light-base-muted: #3a5641;
  --fg-light-base-link: #14301f;
  --fg-light-base-inverse: #24452f;
  --bg-light-card: #fafce6;
  --fg-light-card-body: #14301f;
  --fg-light-card-heading: #14301f;
  --fg-light-card-muted: #3a5641;
  --fg-light-card-link: #14301f;
  --fg-light-card-inverse: #24452f;
  --bg-light-elevated: #d2e27e;
  --fg-light-elevated-body: #14301f;
  --fg-light-elevated-heading: #14301f;
  --fg-light-elevated-muted: #3a5641;
  --fg-light-elevated-link: #14301f;
  --fg-light-elevated-inverse: #24452f;
  --brand-light-accent: #c43a1f;
  --brand-light-accent-hover: #8a220f;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #c43a1f;
  --border-light-default: #1b3826;
  --border-light-subtle: #a9bb62;
}
.bg-surface-base { background: var(--bg-light-base); --fg-body: var(--fg-light-base-body); --fg-heading: var(--fg-light-base-heading); --fg-muted: var(--fg-light-base-muted); --fg-link: var(--fg-light-base-link); --fg-inverse: var(--fg-light-base-inverse); }
.bg-surface-card { background: var(--bg-light-card); --fg-body: var(--fg-light-card-body); --fg-heading: var(--fg-light-card-heading); --fg-muted: var(--fg-light-card-muted); --fg-link: var(--fg-light-card-link); --fg-inverse: var(--fg-light-card-inverse); }
.bg-surface-elevated { background: var(--bg-light-elevated); --fg-body: var(--fg-light-elevated-body); --fg-heading: var(--fg-light-elevated-heading); --fg-muted: var(--fg-light-elevated-muted); --fg-link: var(--fg-light-elevated-link); --fg-inverse: var(--fg-light-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
.text-role-link:hover { color: var(--brand-light-accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-light-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-light-ring); }

/* Library card catalogue: lime ground, forest cabinet rail, ruled stock cards, tomato stamps. */

:root {
  --lime: var(--bg-light-base);
  --stock: var(--bg-light-card);
  --forest: var(--bg-light-elevated);
  --tomato: var(--brand-light-accent);
  --tomato-deep: var(--brand-light-accent-hover);
  --ink-rule: var(--border-light-default);
  --soft-rule: var(--border-light-subtle);
  --type: 'Courier Prime', 'Courier New', Courier, monospace;
  --label: 'Archivo', 'Arial Black', Arial, sans-serif;
  --line: 1.75rem;
  --gutter: clamp(1rem, 3.5vw, 2.75rem);
  --rail: 15.5rem;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }

body.cat {
  margin: 0;
  font-family: var(--type);
  font-size: 1.0625rem;
  line-height: var(--line);
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }

img { max-width: 100%; height: auto; }

.cat-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.5rem 0.9rem;
  background: var(--stock);
  border: 2px solid var(--ink-rule);
  font-family: var(--label);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

a:focus-visible,
summary:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--tomato);
  outline-offset: 3px;
}

/* ---------- Frame: cabinet rail + desk ---------- */

.cat-frame { min-height: 100vh; }

.cat-cabinet {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem var(--gutter);
  border-bottom: 4px solid var(--ink-rule);
}

.cat-brand { display: block; line-height: 0; flex: 0 1 11.5rem; min-width: 0; }
.cat-brand .site-logo { display: block; width: 100%; max-width: 11.5rem; height: auto; }
.cat-menu { flex: none; }

.cat-drawers { display: none; }

/* ---------- Mobile menu toggle ---------- */

.cat-menu .site-menu { position: static; }

.cat-menu .site-menu > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  border: 2px solid var(--ink-rule);
  border-radius: 3px;
  background: var(--stock);
  font-family: var(--label);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--fg-body);
}
.cat-menu .site-menu > summary::-webkit-details-marker { display: none; }

/* Drawer-pull icon: a small handle with a centre rivet. */
.cat-menu .menu-icon {
  position: relative;
  width: 1.4rem;
  height: 0.75rem;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 0.6rem 0.6rem;
}
.cat-menu .menu-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -0.35rem;
  width: 0.35rem;
  height: 0.35rem;
  margin-left: -0.175rem;
  border-radius: 50%;
  background: var(--tomato);
}

.cat-menu .site-menu[open] > summary { border-color: var(--tomato); }

.cat-menu .site-menu > ul {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 30;
  list-style: none;
  margin: 0;
  padding: 0.5rem var(--gutter) 1.25rem;
  background: var(--forest);
  border-bottom: 4px solid var(--ink-rule);
}
.cat-menu .site-menu li { border-top: 1px solid var(--soft-rule); }
.cat-menu .site-menu li:first-child { border-top: 0; }
.cat-menu .site-menu a {
  display: block;
  padding: 0.7rem 0;
  font-family: var(--label);
  font-weight: 700;
  text-decoration: none;
  color: var(--fg-link);
}
.cat-menu .site-menu a:hover { color: var(--fg-link); text-decoration: underline; text-decoration-color: var(--tomato); text-decoration-thickness: 3px; }
.cat-menu .site-menu ul ul { list-style: none; padding-left: 1rem; }

/* ---------- Desk ---------- */

.cat-desk { min-width: 0; }

.cat-sheet {
  max-width: 76rem;
  padding: clamp(1.5rem, 4vw, 3.25rem) var(--gutter) 3rem;
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  font-size: 0.9rem;
}
.breadcrumbs li + li::before { content: '/'; margin-right: 0.5rem; color: var(--fg-muted); }

/* ---------- Card stock ---------- */

.cat-card {
  position: relative;
  border: 2px solid var(--ink-rule);
  border-radius: 4px;
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

/* Ruled lines with the red head rule of a catalogue card. */
.cat-ruled {
  background-image:
    linear-gradient(var(--tomato), var(--tomato)),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--line) - 1px), color-mix(in srgb, var(--soft-rule) 55%, transparent) calc(var(--line) - 1px), color-mix(in srgb, var(--soft-rule) 55%, transparent) var(--line));
  background-size: 100% 2px, 100% var(--line);
  background-position: 0 3.25rem, 0 0;
  background-repeat: no-repeat, repeat;
}

/* Punched rod hole at the foot of a card. */
.cat-card::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.55rem;
  width: 0.85rem;
  height: 0.85rem;
  margin-left: -0.425rem;
  border-radius: 50%;
  background: var(--lime);
  border: 2px solid var(--ink-rule);
}

/* Date-stamp mark: a rotated double-ruled ink box. */
.cat-stamped::before {
  content: '';
  position: absolute;
  top: -1.4rem;
  right: 1.5rem;
  width: 3.4rem;
  height: 3.4rem;
  border: 3px solid var(--tomato);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--stock), inset 0 0 0 6px var(--tomato);
  background: var(--stock);
  transform: rotate(-12deg);
  pointer-events: none;
}

.cat-lead::before {
  content: 'FILED';
  position: absolute;
  top: -1.1rem;
  right: 1.25rem;
  padding: 0.2rem 0.7rem;
  border: 3px double var(--tomato);
  border-radius: 3px;
  background: transparent;
  color: var(--tomato);
  font-family: var(--label);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  transform: rotate(-8deg);
  pointer-events: none;
}

/* ---------- Prose inside cards ---------- */

.cat-prose { font-size: 1.0625rem; }
.cat-prose > * + * { margin-top: var(--line); }
.cat-prose p, .cat-prose li { max-width: 66ch; }
.cat-prose ul, .cat-prose ol { padding-left: 1.4rem; }
.cat-prose li + li { margin-top: 0.35rem; }
.cat-prose li::marker { color: var(--fg-muted); }
.cat-prose a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cat-prose a:hover { text-decoration-thickness: 2px; }
.cat-prose strong { font-weight: 700; }

.cat-prose h2,
.cat-prose h3 {
  font-family: var(--label);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.cat-prose h2 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
.cat-prose h3 { font-size: 1.1rem; }

.cat-prose figure img,
.photo-hero img {
  display: block;
  width: 100%;
  border: 2px solid var(--ink-rule);
  border-radius: 2px;
}
.photo-hero { margin-bottom: var(--line); }
.cat-prose figcaption { font-size: 0.9rem; color: var(--fg-muted); margin-top: 0.4rem; }

/* ---------- Home: headline card beside the drawer stack ---------- */

.cat-home {
  display: grid;
  gap: 2.5rem;
}

.cat-lead {
  align-self: start;
  padding-top: 4.5rem;
  padding-bottom: 3rem;
}

.cat-lead-title h1 {
  font-family: var(--type);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.cat-lead-lines { margin-top: 2rem; }
.cat-lead-lines .display-line {
  max-width: 44ch;
  padding-left: 1.4rem;
  position: relative;
}
.cat-lead-lines .display-line + .display-line { margin-top: var(--line); }
.cat-lead-lines .display-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid var(--tomato);
  border-radius: 50%;
}

/* Stacked drawer: cards fanned behind the front card. */
.cat-drawer { position: relative; padding: 1.25rem 0 0 1.25rem; }

.cat-stack {
  position: relative;
  border: 2px solid var(--ink-rule);
  border-radius: 4px;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow:
    -0.6rem -0.6rem 0 -2px var(--stock),
    -0.6rem -0.6rem 0 0 var(--ink-rule),
    -1.2rem -1.2rem 0 -2px var(--stock),
    -1.2rem -1.2rem 0 0 var(--ink-rule);
}

/* Each body section opens with a divider tab. */
.cat-stack > h2 {
  position: relative;
  display: inline-block;
  margin-top: calc(var(--line) * 1.5);
  padding: 0.45rem 1rem 0.4rem;
  border: 2px solid var(--ink-rule);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 2px 0 0 var(--stock);
}
.cat-stack > h2 + * {
  margin-top: 0;
  padding-top: 1rem;
  border-top: 2px solid var(--ink-rule);
}

/* ---------- Topic cluster: grid of tabbed entry cards ---------- */

.cat-topic { display: grid; gap: 2.25rem; }

.cat-topic-head { padding-bottom: 2.75rem; }
.cat-topic-title h1 {
  font-family: var(--label);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.cat-entries > ul {
  list-style: none;
  margin: 0;
  padding: 1.2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 2.6rem 1.25rem;
}

.cat-entries li {
  position: relative;
  min-height: 8.5rem;
  background:
    linear-gradient(var(--tomato), var(--tomato)) 0 2.6rem / 100% 2px no-repeat,
    var(--stock);
  border: 2px solid var(--ink-rule);
  border-radius: 0 4px 4px 4px;
}
.cat-entries li::before {
  content: '';
  position: absolute;
  left: -2px;
  top: -1.15rem;
  width: 5.5rem;
  height: 1.15rem;
  background: var(--stock);
  border: 2px solid var(--ink-rule);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}
.cat-entries li:nth-child(3n + 2)::before { left: calc(50% - 2.75rem); }
.cat-entries li:nth-child(3n)::before { left: auto; right: -2px; }

.cat-entries a {
  display: block;
  height: 100%;
  padding: 3.2rem 1.1rem 1.25rem;
  font-family: var(--type);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
  text-decoration: none;
}
.cat-entries a:hover { text-decoration: underline; text-decoration-color: var(--tomato); text-decoration-thickness: 2px; }

/* ---------- Question detail: one ruled card ---------- */

.cat-entry { max-width: 50rem; }

.cat-entry-card { padding-bottom: 3rem; }

.cat-entry-query {
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--tomato);
}
.cat-entry-query h1 {
  font-family: var(--type);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.cat-entry-body { background-position: 0 -100rem, 0 0; }

/* The opening paragraph is the stamped short answer. */
.cat-entry-body > p:first-of-type {
  position: relative;
  padding: 0.9rem 1.1rem;
  border: 3px double var(--tomato);
  border-radius: 3px;
  background: var(--stock);
}

/* ---------- Geo cluster: drawer tabs beside the local card ---------- */

.cat-geo { display: grid; gap: 2rem; }

.cat-geo-title h1 {
  font-family: var(--label);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.cat-geo-items > ul:empty { display: none; }

.cat-geo-items > ul,
.cat-geo-sets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.cat-geo-items > ul { margin-bottom: 0.6rem; }

.cat-geo-items li,
.cat-geo-sets li {
  background: var(--stock);
  border: 2px solid var(--ink-rule);
  border-left-width: 0.6rem;
  border-radius: 0 6px 6px 0;
}
.cat-geo-items a,
.cat-geo-sets a {
  display: block;
  padding: 0.7rem 1rem;
  font-family: var(--label);
  font-weight: 700;
  text-decoration: none;
}
.cat-geo-items a:hover,
.cat-geo-sets a:hover { text-decoration: underline; text-decoration-color: var(--tomato); text-decoration-thickness: 2px; }

.cat-geo-card { padding-bottom: 3rem; }

/* ---------- About: fanned stepped cards ---------- */

.cat-about { max-width: 58rem; }

.cat-about-title h1 {
  font-family: var(--label);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 2rem;
}

.cat-fan {
  background: transparent;
  --step: clamp(0.75rem, 3vw, 2.5rem);
}
.cat-fan > * {
  margin-top: 0;
  background: var(--stock);
  border-left: 2px solid var(--ink-rule);
  border-right: 2px solid var(--ink-rule);
  padding: 0.6rem clamp(1rem, 2.5vw, 1.75rem);
}
.cat-fan > :first-child { border-top: 2px solid var(--ink-rule); padding-top: 1.5rem; border-radius: 4px 4px 0 0; }
.cat-fan > :last-child { border-bottom: 2px solid var(--ink-rule); padding-bottom: 1.5rem; border-radius: 0 0 4px 4px; }
.cat-fan > h2 {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 2px solid var(--ink-rule);
  border-radius: 4px 4px 0 0;
  background:
    linear-gradient(var(--tomato), var(--tomato)) 0 100% / 100% 2px no-repeat,
    var(--stock);
  padding-bottom: 0.8rem;
}
.cat-fan > h2 + * { padding-top: 1rem; }
.cat-fan > :has(+ h2) { border-bottom: 2px solid var(--ink-rule); border-radius: 0 0 4px 4px; padding-bottom: 1.4rem; }
.cat-fan > * { margin-right: calc(var(--step) * 4); }
.cat-fan p, .cat-fan li { max-width: none; }
.cat-fan > h2:nth-of-type(1),
.cat-fan > h2:nth-of-type(1) ~ * { margin-left: var(--step); margin-right: calc(var(--step) * 3); }
.cat-fan > h2:nth-of-type(2),
.cat-fan > h2:nth-of-type(2) ~ * { margin-left: calc(var(--step) * 2); margin-right: calc(var(--step) * 2); }
.cat-fan > h2:nth-of-type(3),
.cat-fan > h2:nth-of-type(3) ~ * { margin-left: calc(var(--step) * 3); margin-right: var(--step); }
.cat-fan > h2:nth-of-type(4),
.cat-fan > h2:nth-of-type(4) ~ * { margin-left: calc(var(--step) * 4); margin-right: 0; }

/* ---------- Contact: lined form card + stamped notes card ---------- */

.cat-contact { display: grid; gap: 2.5rem; align-items: start; }

.cat-contact-form { padding-top: 4.5rem; padding-bottom: 3rem; }

.cat-contact-title h1 {
  font-family: var(--label);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.05;
  margin-bottom: 2.25rem;
}

.cat-form { display: grid; gap: 1.5rem; max-width: 30rem; }
.cat-field { display: grid; gap: 0.35rem; }
.cat-label { font-family: var(--label); font-weight: 700; font-size: 0.98rem; }
.cat-input {
  font: inherit;
  font-family: var(--type);
  font-size: 1.05rem;
  min-height: 46px;
  padding: 0.5rem 0.2rem;
  background: transparent;
  color: var(--fg-body);
  border: 0;
  border-bottom: 2px solid var(--ink-rule);
  border-radius: 0;
}
.cat-input:focus-visible { outline-offset: 2px; }

.cat-button {
  justify-self: start;
  min-height: 46px;
  padding: 0.6rem 1.4rem;
  font-family: var(--label);
  font-weight: 800;
  font-size: 1rem;
  color: var(--brand-light-on-accent);
  background: var(--tomato);
  border: 2px solid var(--tomato);
  border-radius: 3px;
  cursor: pointer;
}
.cat-button:hover { background: var(--tomato-deep); border-color: var(--tomato-deep); }

.cat-contact-notes { padding-top: 2.25rem; padding-bottom: 3rem; }

/* ---------- Thank you: three cards ---------- */

.cat-thanks { display: grid; gap: 2rem; align-items: start; }

.cat-thanks-main { padding-top: 2.25rem; padding-bottom: 3rem; }
.cat-thanks-title h1 {
  font-family: var(--label);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.05;
}

.cat-thanks-next {
  display: block;
  min-height: 9rem;
  padding-top: 3.2rem;
  font-family: var(--type);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  background:
    linear-gradient(var(--tomato), var(--tomato)) 0 2.4rem / 100% 2px no-repeat,
    var(--stock);
}
.cat-thanks-next:hover { text-decoration: underline; text-decoration-color: var(--tomato); }

/* ---------- Footer ---------- */

.cat-foot {
  max-width: 76rem;
  margin: 0 var(--gutter) 0;
  padding: 1.75rem 0 2.5rem;
  border-top: 4px double var(--ink-rule);
  display: grid;
  gap: 0.5rem;
}
.cat-foot-name { font-family: var(--label); font-weight: 800; font-size: 1.1rem; }
.cat-foot-line { font-size: 0.95rem; max-width: 52ch; }
.cat-foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.95rem; }

/* ---------- Wide screens: cabinet rail of drawer fronts ---------- */

@media (min-width: 60rem) {
  .cat-frame {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
  }

  .cat-cabinet {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2rem;
    padding: 1.5rem 1.1rem 2rem;
    border-bottom: 0;
    border-right: 4px solid var(--ink-rule);
  }

  .cat-brand { flex: none; }
  .cat-brand .site-logo { width: 100%; max-width: none; }

  .cat-menu { display: none; }
  .cat-drawers { display: block; }

  .cat-drawers .site-nav > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
  }

  /* Each link is a drawer front: a label holder over a pull. */
  .cat-drawers .site-nav > ul > li {
    position: relative;
    padding: 0.6rem 0.6rem 1.35rem;
    border: 2px solid var(--ink-rule);
    border-radius: 3px;
  }
  .cat-drawers .site-nav > ul > li::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0.4rem;
    width: 2.2rem;
    height: 0.55rem;
    margin-left: -1.1rem;
    border: 2px solid var(--ink-rule);
    border-top: 0;
    border-radius: 0 0 1rem 1rem;
  }

  .cat-drawers .site-nav a,
  .cat-drawers .site-nav-group > summary {
    display: block;
    padding: 0.5rem 0.6rem;
    background: var(--stock);
    border: 1px solid var(--ink-rule);
    font-family: var(--label);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    color: var(--fg-link);
  }
  .cat-drawers .site-nav a:hover,
  .cat-drawers .site-nav-group > summary:hover {
    color: var(--fg-link);
    border-color: var(--tomato);
    box-shadow: inset 0 -3px 0 var(--tomato);
  }
  .cat-drawers .site-nav a[aria-current='page'] { box-shadow: inset 0 -3px 0 var(--ink-rule); }

  .cat-drawers .site-nav-group > summary { list-style: none; cursor: pointer; }
  .cat-drawers .site-nav-group > summary::-webkit-details-marker { display: none; }
  .cat-drawers .site-nav-group > ul { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.3rem; }
  .cat-drawers .site-nav-group > ul a { font-family: var(--type); font-weight: 400; text-align: left; }

  .cat-home {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 3rem;
    align-items: start;
  }

  .cat-geo {
    grid-template-columns: minmax(14rem, 0.38fr) minmax(0, 1fr);
    gap: 2.75rem;
    align-items: start;
  }

  .cat-contact { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }

  .cat-thanks { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
