:root {
  --ink: #132f33;
  --muted: #607175;
  --teal: #0b4650;
  --teal-deep: #06323a;
  --orange: #dc672d;
  --paper: #fffdf8;
  --sand: #f2ebde;
  --line: #d9dedb;
  --white: #ffffff;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(11, 70, 80, 0.035) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--paper);
}

a { color: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  color: white;
  background: var(--teal);
  border-radius: 0.5rem;
}

.skip-link:focus { top: 1rem; }

.site-header {
  border-bottom: 1px solid rgba(11, 70, 80, 0.16);
  background: rgba(255, 253, 248, 0.94);
}

.header-inner,
main,
footer {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  color: white;
  background: var(--teal);
  border-radius: 0.35rem 0.35rem 0.95rem 0.35rem;
  font-family: "Newsreader", serif;
  font-size: 1.45rem;
  font-weight: 600;
}

.brand strong,
.brand small { display: block; }

.brand strong { letter-spacing: 0.11em; }

.brand small {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.access-note {
  padding: 0.5rem 0.75rem;
  color: var(--teal);
  border: 1px solid rgba(11, 70, 80, 0.22);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.intro {
  max-width: 820px;
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(3.25rem, 7vw, 5.5rem);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Newsreader", serif;
  font-weight: 600;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.2rem, 8vw, 6.9rem);
  line-height: 0.89;
}

.intro-copy {
  max-width: 670px;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.records {
  padding: clamp(2rem, 5vw, 4rem);
  color: var(--ink);
  background: var(--white);
  border-top: 5px solid var(--teal);
  box-shadow: 0 24px 65px rgba(18, 47, 51, 0.08);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1;
}

.record-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.record-count strong { color: var(--ink); }

.record-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  background: #f6f9f8;
  border: 1px solid var(--line);
}

.date-block {
  width: 86px;
  padding: 0.6rem 0.5rem;
  text-align: center;
  color: white;
  background: var(--teal);
}

.date-block span,
.date-block strong,
.date-block small { display: block; }

.date-block span {
  font-family: "Newsreader", serif;
  font-size: 2.7rem;
  line-height: 1;
}

.date-block strong {
  margin: 0.2rem 0;
  color: #ffc6a8;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
}

.date-block small { font-size: 0.74rem; }

.record-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.type-pill {
  padding: 0.35rem 0.6rem;
  color: var(--teal);
  background: #dceceb;
  border-radius: 999px;
  font-weight: 700;
}

.record-body h3 {
  margin: 0.9rem 0 0.45rem;
  font-family: "Newsreader", serif;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.08;
}

.record-body p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.record-actions {
  display: grid;
  min-width: 144px;
  gap: 0.75rem;
  text-align: center;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1rem;
  color: white;
  background: var(--orange);
  border-radius: 0.25rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.primary-action:hover { background: #bf4e19; transform: translateY(-2px); }

.primary-action:focus-visible,
.text-action:focus-visible,
.brand:focus-visible { outline: 3px solid #ed9b72; outline-offset: 3px; }

.primary-action svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-action {
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 700;
  text-underline-offset: 0.22em;
}

.empty-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 2.5rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.empty-groups section {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
}

.category-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--teal);
  background: var(--sand);
  border-radius: 50%;
  font-family: "Newsreader", serif;
  font-weight: 600;
}

.empty-groups h3 { margin: 0 0 0.25rem; font-size: 1rem; }

.empty-groups p { margin: 0; color: var(--muted); font-size: 0.88rem; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2.5rem;
  color: var(--muted);
  font-size: 0.78rem;
}

footer p { margin: 0; }

@media (max-width: 760px) {
  .header-inner { min-height: 76px; }
  .access-note { display: none; }
  .intro { padding-top: 4rem; }
  .record-card { grid-template-columns: auto 1fr; }
  .record-actions { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; text-align: right; }
  .text-action { padding: 0.8rem; }
  .empty-groups { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .header-inner, main, footer { width: min(100% - 1.25rem, 1120px); }
  h1 { font-size: clamp(3rem, 16vw, 4.6rem); }
  .section-heading { display: block; }
  .record-count { margin-top: 1rem; }
  .records { padding: 1.25rem; }
  .record-card { grid-template-columns: 1fr; }
  .date-block { width: 76px; }
  .record-actions { grid-column: auto; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary-action { transition: none; }
}
