:root {
  --ink: #14100C;
  --char: #35302A;
  --graphite: #4A443C;
  --cream: #F3EDE2;
  --paper: #FBF7EF;
  --gold: #C6A15B;
  --gold-line: #DFC27E;
  --gold-pale: #E9D6A7;
  --cinnabar: #A83A2C;
  --mist: #D9D0C3;
  --copper: #7A5B36;
  --max: 1240px;
  --radius-pill: 999px;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --shadow-soft: 0 18px 40px rgba(20, 16, 12, 0.16);
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--cream);
  background-image:
    linear-gradient(90deg, rgba(20, 16, 12, 0.028) 1px, transparent 1px),
    linear-gradient(0deg, rgba(20, 16, 12, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

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

::selection {
  background: var(--gold);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 16px;
  border: 1px solid var(--gold-line);
  border-radius: 4px 14px 4px 14px;
  background: var(--gold-pale);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

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

/* ===== shared typography and page primitives ===== */
.mono,
.strip-index,
.entry-index,
.section-kicker,
.footer-label {
  font-family: var(--font-mono);
}

.mono {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--copper);
}

.page-shell {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.page-intro {
  position: relative;
  margin: clamp(24px, 4vw, 56px) auto;
  padding: clamp(28px, 5vw, 64px);
  background: var(--paper);
  border: 1px solid var(--graphite);
  box-shadow:
    14px 14px 0 rgba(20, 16, 12, 0.06),
    inset 0 0 0 8px var(--cream);
}

.page-intro::before {
  content: "";
  position: absolute;
  top: -1px;
  left: clamp(20px, 4vw, 56px);
  width: 90px;
  height: 6px;
  background: var(--gold);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--cinnabar);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.display-title {
  max-width: 12ch;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.lede {
  max-width: 38ch;
  margin-top: 22px;
  color: var(--char);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
}

.body-copy {
  max-width: 34ch;
  color: var(--char);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.7fr);
  gap: 24px;
  align-items: end;
  margin: clamp(36px, 6vw, 72px) 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--mist);
}

.section-kicker {
  color: var(--cinnabar);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
}

.section-note {
  justify-self: end;
  max-width: 32ch;
  color: var(--graphite);
  font-size: 13px;
  line-height: 1.7;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.tag--red {
  background: rgba(168, 58, 44, 0.07);
  color: var(--cinnabar);
}

.tag--gold {
  background: var(--gold-pale);
  border-color: var(--gold);
  color: var(--copper);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background 200ms ease,
    color 200ms ease,
    border-color 200ms ease,
    transform 200ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.button--gold:hover {
  background: var(--gold-line);
}

.button--ghost {
  background: transparent;
  border-color: rgba(223, 194, 126, 0.45);
  color: var(--cream);
}

.button--ghost:hover {
  background: rgba(198, 161, 91, 0.12);
  color: var(--gold-pale);
}

.button--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.button--ink:hover {
  background: var(--char);
}

.paper-card {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--mist);
  border-radius: 6px 26px 6px 26px;
  background: var(--paper);
  box-shadow: 8px 8px 0 rgba(20, 16, 12, 0.055);
}

.paper-card::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

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

.entry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--mist);
  border-radius: 4px 24px 4px 24px;
  background: var(--paper);
  box-shadow: 8px 8px 0 rgba(20, 16, 12, 0.05);
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.entry-card:hover,
.entry-card:focus-visible {
  border-color: var(--gold);
  box-shadow: 10px 12px 0 rgba(198, 161, 91, 0.18);
  transform: translateY(-3px);
}

.entry-card--primary {
  border-color: var(--gold);
  box-shadow:
    0 0 0 1px var(--gold-line),
    8px 8px 0 rgba(198, 161, 91, 0.18);
}

.entry-index {
  margin-bottom: 16px;
  color: var(--cinnabar);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.entry-title {
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.25;
}

.entry-desc {
  max-width: 28ch;
  margin-top: 10px;
  color: var(--char);
  font-size: 14px;
  line-height: 1.7;
}

.entry-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--copper);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.entry-arrow {
  font-size: 18px;
  line-height: 1;
  transition: transform 200ms ease;
}

.entry-card:hover .entry-arrow,
.entry-card:focus-visible .entry-arrow {
  transform: translateX(4px);
}

.timeline {
  position: relative;
  display: grid;
  gap: 22px;
  padding-left: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 5px;
  width: 1px;
  background: linear-gradient(var(--gold), var(--mist));
}

.timeline-item {
  position: relative;
}

.timeline-mark {
  position: absolute;
  top: 7px;
  left: -24px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 0 4px var(--cream);
}

.timeline-title {
  font-size: 18px;
  line-height: 1.4;
}

.timeline-note {
  margin-top: 4px;
  color: var(--graphite);
  font-size: 13px;
}

.breadcrumbs {
  margin: 20px 0 0;
  font-size: 12px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--graphite);
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list li + li::before {
  content: "/";
  color: var(--gold);
}

.breadcrumb-link {
  border-bottom: 1px solid transparent;
  color: var(--graphite);
  text-decoration: none;
}

.breadcrumb-link:hover {
  border-color: currentColor;
  color: var(--cinnabar);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 700;
}

.tab-shell {
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--mist);
  border-radius: 6px 28px 6px 28px;
  background: var(--paper);
  box-shadow: 8px 8px 0 rgba(20, 16, 12, 0.05);
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--mist);
}

.tab {
  appearance: none;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--char);
  font-size: 13px;
  line-height: 1.3;
  transition:
    background 200ms ease,
    color 200ms ease,
    border-color 200ms ease;
}

.tab:hover {
  border-color: var(--gold);
  color: var(--cinnabar);
}

.tab[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--gold-pale);
}

.tab-panel {
  padding: 0 2px;
}

.image-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--mist);
  border-radius: 4px 22px 4px 22px;
  background: linear-gradient(135deg, var(--mist), var(--paper));
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame--wide {
  aspect-ratio: 21 / 9;
}

.image-frame--portrait {
  aspect-ratio: 4 / 5;
}

.image-caption {
  margin-top: 8px;
  color: var(--graphite);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ===== header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 16px 20px 10px;
  background: linear-gradient(
    180deg,
    rgba(243, 237, 226, 0.97) 0%,
    rgba(243, 237, 226, 0.76) 68%,
    rgba(243, 237, 226, 0) 100%
  );
  backdrop-filter: blur(6px);
}

.masthead {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: min(var(--max), 100%);
  margin-inline: auto;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(198, 161, 91, 0.32);
  border-radius: 30px;
  background: var(--ink);
  box-shadow:
    var(--shadow-soft),
    inset 0 0 0 1px rgba(251, 247, 239, 0.04);
  color: var(--paper);
}

.masthead::before {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -1px;
  left: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.45;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--paper);
  text-decoration: none;
}

.brand-lockup:hover .brand-seal {
  background: var(--gold);
  color: var(--ink);
}

.brand-seal {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  border-radius: 10px 3px 10px 3px;
  background: linear-gradient(145deg, #3a2e1f, #14100c);
  color: var(--gold-line);
  font-size: 20px;
  font-weight: 900;
  transition:
    background 200ms ease,
    color 200ms ease;
}

.brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  color: var(--paper);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-sub {
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  gap: 2px;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 1px solid rgba(223, 194, 126, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(53, 48, 42, 0.72);
}

.nav-item {
  min-width: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--cream);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.nav-link:hover {
  border-color: rgba(223, 194, 126, 0.28);
  background: rgba(198, 161, 91, 0.14);
  color: var(--gold-pale);
}

.nav-link[aria-current="page"] {
  border-color: var(--gold-line);
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
}

.nav-item:first-child .nav-link {
  border-color: rgba(198, 161, 91, 0.55);
  color: var(--gold-pale);
}

.nav-item:first-child .nav-link[aria-current="page"] {
  color: var(--ink);
}

.header-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-self: end;
}

.header-cta {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 10px 6px 7px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-pill);
  background: rgba(198, 161, 91, 0.07);
  color: var(--gold-line);
  text-decoration: none;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.header-cta-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.header-cta-text {
  color: inherit;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--gold);
  color: var(--ink);
}

.header-cta:hover .header-cta-tag {
  background: var(--ink);
  color: var(--gold-line);
}

.copy-home {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(217, 208, 195, 0.25);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--mist);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.copy-home:hover {
  border-color: var(--gold);
  color: var(--paper);
}

.copy-home.is-copied {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
}

.copy-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle {
  position: relative;
  display: none;
  width: 40px;
  height: 36px;
  border: 1px solid rgba(223, 194, 126, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(53, 48, 42, 0.8);
  color: var(--paper);
}

.nav-toggle-lines {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: background 200ms ease;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition:
    transform 200ms ease,
    top 200ms ease;
}

.nav-toggle-lines::before {
  top: -5px;
}

.nav-toggle-lines::after {
  top: 5px;
}

.site-header[data-open="true"] .nav-toggle-lines {
  background: transparent;
}

.site-header[data-open="true"] .nav-toggle-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.header-strip {
  display: flex;
  gap: 12px;
  align-items: center;
  width: min(var(--max), 100%);
  margin: 8px auto 0;
  padding: 0 14px;
  color: var(--graphite);
  font-size: 9px;
  letter-spacing: 0.16em;
  line-height: 1;
}

.strip-index {
  color: var(--copper);
  white-space: nowrap;
}

.strip-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(198, 161, 91, 0.08));
}

.strip-note {
  color: var(--copper);
  white-space: nowrap;
}

/* ===== footer ===== */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  padding: 0 20px 24px;
  border-top: 1px solid var(--gold);
  background: var(--ink);
  color: var(--cream);
}

.footer-shell {
  width: min(var(--max), 100%);
  margin-inline: auto;
  padding: 48px 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(140px, 0.7fr) minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(223, 194, 126, 0.25);
}

.footer-brand {
  min-width: 0;
}

.footer-seal {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 6px 16px 6px 16px;
  background: var(--gold);
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.footer-brand-name {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-decoration: none;
}

.footer-brand-name:hover {
  color: var(--gold-line);
}

.footer-brand-line {
  max-width: 16ch;
  margin-bottom: 18px;
  color: var(--gold-pale);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.footer-fixed {
  max-width: 36ch;
  padding-left: 14px;
  border-left: 1px solid var(--gold);
  color: var(--mist);
  font-size: 13px;
  line-height: 1.8;
}

.footer-address {
  color: var(--gold-line);
  font-family: var(--font-mono);
  font-size: 0.92em;
  word-break: break-all;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 6px;
}

.footer-link {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(243, 237, 226, 0.18);
  color: var(--cream);
  font-size: 14px;
  text-decoration: none;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.footer-link:hover {
  border-color: var(--gold);
  color: var(--gold-line);
}

.footer-contact {
  padding: 20px;
  border-radius: 4px 24px 4px 24px;
  background: var(--paper);
  color: var(--ink);
}

.footer-label {
  margin-bottom: 12px;
  color: var(--cinnabar);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.footer-contact-line {
  margin-bottom: 6px;
  color: var(--char);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.footer-mono {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.footer-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--mist);
  color: var(--graphite);
  font-size: 12px;
  line-height: 1.7;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-link {
  color: var(--mist);
  font-size: 12px;
  text-decoration: none;
}

.footer-legal-link:hover {
  color: var(--gold-line);
}

.footer-icp,
.footer-copyright {
  color: rgba(243, 237, 226, 0.62);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* ===== responsive ===== */
@media (max-width: 1180px) {
  .site-header {
    padding-inline: 14px;
  }

  .masthead {
    gap: 10px;
  }

  .nav-link {
    padding: 8px 8px;
    font-size: 10.5px;
  }

  .header-cta-text {
    display: none;
  }

  .copy-home {
    padding: 7px 9px;
    font-size: 10px;
  }
}

@media (max-width: 1040px) {
  .site-header {
    padding: 12px 14px 8px;
  }

  .masthead {
    grid-template-columns: auto auto;
    justify-content: space-between;
    border-radius: 24px;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    z-index: 5;
    display: none;
    padding: 10px;
    border: 1px solid rgba(223, 194, 126, 0.28);
    border-radius: 22px;
    background: var(--ink);
    box-shadow: 0 24px 48px rgba(20, 16, 12, 0.25);
  }

  .site-header[data-open="true"] .primary-nav {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 2px;
    align-items: stretch;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .nav-link {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
  }

  .nav-item:first-child .nav-link {
    border-color: rgba(198, 161, 91, 0.4);
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .header-strip {
    display: none;
  }
}

@media (max-width: 900px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .section-note {
    justify-self: start;
    max-width: 38ch;
  }

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

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

@media (max-width: 760px) {
  .page-shell {
    width: min(var(--max), calc(100% - 28px));
  }

  .entry-grid {
    grid-template-columns: 1fr;
  }

  .page-intro {
    box-shadow:
      8px 8px 0 rgba(20, 16, 12, 0.06),
      inset 0 0 0 5px var(--cream);
  }

  .site-header {
    padding-inline: 10px;
  }

  .masthead {
    gap: 8px;
    padding: 8px 10px;
  }

  .brand-seal {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .brand-name {
    font-size: 14px;
  }

  .brand-sub {
    display: none;
  }

  .header-cta {
    padding: 5px 7px;
  }

  .header-cta-tag {
    font-size: 8.5px;
  }

  .copy-home {
    min-height: 34px;
    padding: 6px 9px;
  }

  .nav-toggle {
    width: 38px;
    height: 34px;
  }

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

  .footer-contact {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .copy-home {
    display: none;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal {
    gap: 12px;
  }

  .footer-icp,
  .footer-copyright {
    margin: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
