:root {
  --ink: #181713;
  --paper: #f7f4ec;
  --paper-deep: #eee8db;
  --muted: #625c51;
  --line: #d4cab9;
  --rust: #9a4124;
  --olive: #465e3e;
  --blue: #23536a;
  --gold: #c49a3d;
  --white: #fffdf7;
  --shadow: 7px 7px 0 rgba(24, 23, 19, 0.1);
  --measure: 72ch;
  --content: 1120px;
  --ui: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--ui);
  font-size: 1rem;
  line-height: 1.65;
}

body,
button,
input {
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 3px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

[id] {
  scroll-margin-top: 104px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border: 2px solid var(--white);
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 78px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 236, 0.96);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
}

.brand > span:last-child {
  display: grid;
  line-height: 1.15;
}

.brand strong {
  font-family: var(--serif);
  font-size: 1.2rem;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--gold);
}

.brand-mark::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid var(--ink);
  background: var(--paper);
  transform: rotate(45deg);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 18px;
  font-size: 0.86rem;
  font-weight: 750;
}

.nav a {
  padding: 5px 0;
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 -3px var(--gold);
}

.breadcrumbs {
  padding: 13px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  width: min(var(--content), 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 7px;
  color: #9b9387;
}

.breadcrumbs a {
  color: var(--blue);
}

.hero {
  min-height: 470px;
  display: grid;
  align-items: end;
  padding: clamp(54px, 8vw, 98px) clamp(18px, 4vw, 56px) clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(24, 23, 19, 0.86) 0%, rgba(24, 23, 19, 0.64) 55%, rgba(24, 23, 19, 0.2) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1500' height='900' viewBox='0 0 1500 900'%3E%3Crect width='1500' height='900' fill='%23ebe2d1'/%3E%3Cpath d='M0 720 C210 650 352 690 545 610 C760 520 941 590 1170 470 C1307 398 1409 385 1500 410 L1500 900 L0 900 Z' fill='%23536b49' opacity='.82'/%3E%3Cpath d='M0 210 C200 120 370 160 540 98 C760 18 926 102 1120 64 C1298 28 1400 65 1500 35 L1500 0 L0 0 Z' fill='%23285c74' opacity='.66'/%3E%3Crect x='145' y='250' width='210' height='330' fill='%23fffdf7' stroke='%23181713' stroke-width='8'/%3E%3Crect x='190' y='294' width='120' height='14' fill='%23181713'/%3E%3Crect x='190' y='335' width='90' height='14' fill='%23a64b2a'/%3E%3Crect x='188' y='440' width='124' height='92' fill='%23c49a3d' stroke='%23181713' stroke-width='6'/%3E%3Crect x='412' y='176' width='310' height='468' fill='%23f7f4ec' stroke='%23181713' stroke-width='8'/%3E%3Cpath d='M472 260 L660 260 M472 318 L635 318 M472 376 L674 376 M472 434 L610 434 M472 492 L650 492' stroke='%23181713' stroke-width='12'/%3E%3Ccircle cx='980' cy='348' r='178' fill='%23fffdf7' stroke='%23181713' stroke-width='8'/%3E%3Cpath d='M873 350 H1088 M980 240 V455 M910 284 C963 329 1010 373 1048 420 M1048 284 C1005 331 955 376 910 420' stroke='%23181713' stroke-width='10' fill='none'/%3E%3Crect x='1135' y='545' width='210' height='96' fill='%23a64b2a' stroke='%23181713' stroke-width='8'/%3E%3Cpath d='M1180 592 H1300' stroke='%23fffdf7' stroke-width='12'/%3E%3C/svg%3E");
  background-position: center;
  background-size: cover;
}

.home-page .hero {
  min-height: min(720px, calc(100vh - 124px));
}

.hero-inner,
.section-inner,
.footer-inner,
.footer-legal {
  width: min(var(--content), 100%);
  margin: 0 auto;
}

.hero-copy {
  max-width: 820px;
  color: var(--white);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.48);
}

.eyebrow,
.section-number {
  margin: 0 0 12px;
  font-family: var(--ui);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.06;
  text-wrap: balance;
}

h1 {
  max-width: 930px;
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  letter-spacing: -0.045em;
}

.home-page h1 {
  font-size: clamp(4.2rem, 10vw, 8rem);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 720px;
  margin: 20px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.14rem, 2vw, 1.46rem);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 27px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border: 2px solid var(--ink);
  background: var(--gold);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
  text-shadow: none;
  box-shadow: 5px 5px 0 rgba(24, 23, 19, 0.32);
}

.button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 7px 7px 0 rgba(24, 23, 19, 0.32);
}

.button.secondary {
  background: var(--white);
}

.overview-band {
  padding: clamp(34px, 5vw, 56px) clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: start;
}

.short-answer {
  padding-left: 22px;
  border-left: 7px solid var(--rust);
}

.short-answer h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.short-answer p:last-child {
  max-width: var(--measure);
  margin: 12px 0 0;
  color: #3f3b34;
  font-family: var(--serif);
  font-size: 1.12rem;
}

.contents {
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--white);
}

.contents ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 22px;
  font-size: 0.88rem;
}

.contents a {
  color: var(--blue);
  font-weight: 750;
}

.band {
  padding: clamp(48px, 7vw, 84px) clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.band.alt {
  background: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: 52px minmax(0, 760px);
  gap: 16px;
  align-items: start;
  margin-bottom: 30px;
}

.section-number {
  margin: 5px 0 0;
  color: var(--rust);
}

.section-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  letter-spacing: -0.03em;
}

.section-heading p:not(.section-number),
.body-copy {
  max-width: var(--measure);
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card,
.resource-card,
.pack,
.reference-card {
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 20px;
  box-shadow: var(--shadow);
}

.card {
  min-height: 178px;
}

.card h3,
.resource-card h3,
.pack h3,
.reference-card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.card h3 a {
  text-decoration: none;
  box-shadow: inset 0 -2px var(--gold);
}

.card p,
.resource-card p,
.pack p,
.reference-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

.resource-card .creator {
  color: var(--ink);
  font-weight: 800;
}

.resource-card a,
.pack a,
.reference-card a,
.section-action a {
  color: var(--blue);
  font-weight: 800;
}

.list {
  display: grid;
  gap: 10px;
  max-width: 880px;
  margin: 0 0 0 68px;
  padding: 0;
  list-style: none;
}

.list li {
  padding: 8px 0 8px 18px;
  border-left: 5px solid var(--gold);
}

.reference-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-left: 68px;
}

.table-wrap {
  margin-left: 68px;
  overflow-x: auto;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.comparison-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.91rem;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table thead th {
  background: var(--ink);
  color: var(--white);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.comparison-table tbody th {
  width: 22%;
  background: var(--paper-deep);
}

.comparison-table tr:last-child > * {
  border-bottom: 0;
}

.comparison-table tr > *:last-child {
  border-right: 0;
}

.resource-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 24px 68px;
}

.filter-button {
  min-height: 40px;
  border: 2px solid var(--ink);
  padding: 7px 12px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font: 750 0.82rem var(--ui);
}

.filter-button:hover {
  background: var(--paper-deep);
}

.filter-button.active {
  background: var(--olive);
  color: var(--white);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.resource-card {
  display: flex;
  flex-direction: column;
}

.resource-card > a,
.resource-card > .availability {
  margin-top: auto;
}

.tag {
  align-self: flex-start;
  display: inline-flex;
  margin-bottom: 13px;
  padding: 4px 8px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
}

.availability {
  align-self: flex-start;
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.note {
  max-width: 900px;
  margin: 30px 0 0;
  padding: 18px;
  border-left: 7px solid var(--rust);
  background: var(--white);
  color: var(--muted);
}

.section-action {
  margin: 24px 0 0;
}

.source-band {
  background: #e8edf0;
}

.source-list {
  display: grid;
  gap: 12px;
  max-width: 880px;
  margin: 0 0 20px 68px;
  padding: 0;
  list-style: none;
}

.source-list li {
  display: grid;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px solid #bcc9cf;
}

.source-list a,
.source-layout > p a {
  color: #123f55;
  font-weight: 800;
}

.source-list span {
  color: #4d5b61;
  font-size: 0.87rem;
}

.source-layout > p {
  margin: 0 0 0 68px;
}

.related {
  padding: clamp(48px, 7vw, 78px) clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.related .section-heading p:not(.section-number) {
  color: #d8d2c8;
}

.related .section-number {
  color: var(--gold);
}

.related-link {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  padding: 19px;
  border: 1px solid #5b574f;
  background: #23221e;
  color: var(--white);
  text-decoration: none;
}

.related-link span {
  color: var(--gold);
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.related-link strong {
  margin: 10px 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.1;
}

.related-link small {
  color: #d3cec4;
  line-height: 1.5;
}

.footer {
  padding: 54px clamp(18px, 4vw, 56px) 26px;
  background: #0f0f0d;
  color: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, 1fr);
  gap: 34px;
}

.footer-brand > strong {
  font-family: var(--serif);
  font-size: 1.65rem;
}

.footer-brand p {
  margin: 8px 0;
  color: var(--gold);
  font-weight: 750;
}

.footer-brand small {
  color: #bdb8af;
}

.footer nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer nav strong {
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer nav a {
  color: #ddd8cf;
  font-size: 0.84rem;
  text-decoration: none;
}

.footer nav a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid #3c3a34;
  color: #a9a49a;
  font-size: 0.73rem;
}

@media (max-width: 960px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 430px;
  }

  .grid,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .brand small {
    display: none;
  }

  .nav {
    gap: 3px 14px;
    font-size: 0.8rem;
  }

  .breadcrumbs {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .hero,
  .home-page .hero {
    min-height: 0;
    padding-top: 64px;
  }

  h1,
  .home-page h1 {
    font-size: clamp(3rem, 17vw, 5.3rem);
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  .grid,
  .resource-grid,
  .reference-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .list,
  .reference-grid,
  .related-grid,
  .resource-toolbar,
  .source-list,
  .source-layout > p,
  .table-wrap {
    margin-left: 44px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-legal {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .site-header {
    position: static;
  }

  .list,
  .reference-grid,
  .related-grid,
  .resource-toolbar,
  .source-list,
  .source-layout > p,
  .table-wrap {
    margin-left: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .actions,
  .contents,
  .related,
  .footer,
  .resource-toolbar {
    display: none !important;
  }

  .hero {
    min-height: 0;
    padding: 24px 0;
    background: none;
  }

  .hero-copy,
  .hero-copy > p:not(.eyebrow) {
    color: #000;
    text-shadow: none;
  }

  .band,
  .overview-band {
    padding: 24px 0;
    background: #fff;
  }

  .card,
  .resource-card,
  .pack,
  .reference-card {
    break-inside: avoid;
    box-shadow: none;
  }
}
