/* ==========================================================================
   Pacific PC Canada — shared site kit  (/assets/site.css)
   1 reset · 2 tokens · 3 typography · 4 layout · 5 components
   6 header · 7 footer · 8 motion & responsive
   ========================================================================== */

/* ---------- 1. reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, picture, video { display: block; max-width: 100%; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

:where(a, button, input, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--aurora);
  outline-offset: 2px;
}

/* ---------- 2. tokens ---------- */
:root {
  --paper: #F4EFE6;
  --paper-2: #E4DCCD;
  --ink: #141A1F;
  --ink-2: #3B444C;
  --maple: #B5342A;
  --maple-deep: #9A2A21;
  --sea: #0F2E4A;
  --aurora: #2FB6A8;
  --fir: #2C5E4A;
  --snow: #FFFFFF;
  --aurora-grad: linear-gradient(120deg, #0F2E4A 0%, #1C5B6E 55%, #2FB6A8 100%);

  --hair: rgba(20, 26, 31, 0.16);
  --hair-strong: rgba(20, 26, 31, 0.34);
  --hair-dark: rgba(244, 239, 230, 0.22);
  --hair-dark-strong: rgba(244, 239, 230, 0.42);

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: var(--font-display);
  --font-mono: "Space Grotesk", "DIN Alternate", "Helvetica Neue", Arial, ui-monospace, monospace;

  --gutter: clamp(20px, 6vw, 96px);
  --shell: 1440px;
  --gap: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --measure: 34em;
}

/* ---------- 3. typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.h-display { font-size: clamp(40px, 7vw, 96px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.02; }
.h-section { font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; letter-spacing: -0.015em; }
.h-card { font-size: clamp(19px, 1.6vw, 22px); font-weight: 900; letter-spacing: -0.01em; line-height: 1.35; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.6;
  color: var(--ink-2);
  text-transform: uppercase;
}

.lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.7; color: var(--ink-2); max-width: var(--measure); }

.annotation {
  font-size: 12px;
  letter-spacing: 0.16em;
  line-height: 1.6;
  color: var(--ink-2);
}

.annotation--vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  height: auto;
  letter-spacing: 0.26em;
}

.annotation--rotated { transform: rotate(-90deg); transform-origin: left top; white-space: nowrap; }

.batch-code {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--aurora);
  white-space: nowrap;
}

.batch-code--paper { color: var(--maple); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

.stack { display: grid; gap: var(--gap); }
.stack--tight { gap: 12px; }
.stack--wide { gap: 48px; }

.rule { height: 1px; background-color: var(--hair); border: 0; margin: 0; }
.rule--dark { background-color: var(--hair-dark); }
.rule--aurora { height: 2px; background: var(--aurora-grad); }

.prose { max-width: var(--measure); font-size: 17px; line-height: 1.8; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-size: clamp(24px, 2.4vw, 32px); margin-top: 2.2em; }
.prose h3 { font-size: clamp(19px, 1.8vw, 24px); margin-top: 1.8em; }
.prose p { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 900; }
.prose ul, .prose ol { display: grid; gap: 0.6em; padding-left: 1.4em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--maple); }
.prose blockquote {
  border-left: 3px solid var(--sea);
  padding: 4px 0 4px 20px;
  color: var(--ink);
  font-weight: 700;
}
.prose a {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--aurora);
  transition: color 160ms var(--ease);
}
.prose a:hover { color: var(--maple); }
.prose code {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.92em;
  background-color: var(--paper-2);
  padding: 2px 6px;
}

/* ---------- 5. components ---------- */
.panel {
  position: relative;
  background-color: var(--snow);
  border: 1px solid var(--hair);
  padding: 32px;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease);
}

.panel:hover { transform: translateY(-2px); background-color: #FBF8F2; border-color: var(--hair-strong); }
.panel--flat:hover { transform: none; background-color: var(--snow); border-color: var(--hair); }
.panel--dark { background-color: var(--sea); color: var(--paper); border-color: transparent; }
.panel--dark:hover { background-color: #123553; border-color: transparent; }
.panel--paper { background-color: var(--paper-2); }

.panel__index {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--maple);
}

.panel--dark .panel__index { color: var(--aurora); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 2px;
  border: 1px solid var(--hair);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.7;
  white-space: nowrap;
}

.tag--maple { border-color: transparent; background-color: var(--maple); color: var(--snow); }
.tag--fir { border-color: transparent; background-color: var(--fir); color: var(--snow); }
.tag--aurora { border-color: transparent; background-color: var(--aurora); color: var(--sea); }
.tag--ghost { border-color: var(--hair-strong); color: var(--ink-2); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid var(--hair-dark);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--paper);
  transition: border-color 160ms var(--ease), color 160ms var(--ease), background-color 160ms var(--ease);
}

.chip:hover { border-color: var(--aurora); color: var(--aurora); background-color: rgba(47, 182, 168, 0.08); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  height: 40px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: 0;
  background-color: transparent;
  color: inherit;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background-color: var(--maple); border-color: var(--maple); color: var(--snow); }
.btn--primary:hover { background-color: var(--maple-deep); border-color: var(--maple-deep); }

.btn--ghost { border-color: var(--hair-strong); color: var(--ink); }
.btn--ghost:hover { background-color: var(--paper-2); }

.btn--on-dark { border-color: var(--hair-dark-strong); color: var(--paper); }
.btn--on-dark:hover { background-color: rgba(244, 239, 230, 0.1); border-color: var(--aurora); color: var(--aurora); }

.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn--block { width: 100%; }

.breadcrumb { padding-block: 20px; }
.breadcrumb__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb__item + .breadcrumb__item::before { content: "/"; color: var(--hair-strong); }
.breadcrumb__link { transition: color 160ms var(--ease); }
.breadcrumb__link:hover { color: var(--maple); }
.breadcrumb__item[aria-current="page"] { color: var(--ink); font-weight: 700; }

.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--paper-2);
  border: 1px solid var(--hair);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 46, 74, 0.18), rgba(15, 46, 74, 0.04));
  pointer-events: none;
}

.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

.media__caption {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--ink-2);
}

.media__credit { color: var(--ink-2); opacity: 0.7; }

/* ---------- 6. header ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 999;
  padding: 12px 20px;
  background-color: var(--ink);
  color: var(--paper);
  border: 2px solid var(--aurora);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: top 160ms var(--ease);
}

.skip-link:focus { top: 12px; }

.site-header {
  --nav-accent: var(--aurora);
  --nav-hover: var(--aurora);
  position: sticky;
  top: 0;
  z-index: 120;
  background-color: var(--sea);
  color: var(--paper);
  transition: background-color 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.site-header[data-scrolled="true"] {
  --nav-accent: var(--maple);
  --nav-hover: var(--maple);
  background-color: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--ink);
}

.site-header__stripe { height: 2px; background: var(--aurora-grad); }

/* 批次横杆 */
.util-rail {
  max-height: 46px;
  overflow: hidden;
  border-bottom: 1px solid var(--hair-dark);
  transition: max-height 200ms var(--ease), opacity 160ms var(--ease), border-color 160ms var(--ease);
}

.site-header[data-scrolled="true"] .util-rail {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.util-rail__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 34px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.util-rail__brand { font-weight: 700; opacity: 0.85; }

.util-rail__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.util-rail__label { opacity: 0.62; letter-spacing: 0.12em; }

/* 主桅杆 */
.masthead__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  min-height: 70px;
  border-bottom: 1px solid var(--hair-dark);
  transition: border-color 200ms var(--ease);
}

.site-header[data-scrolled="true"] .masthead__inner { border-bottom-color: transparent; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }

.brand__mark {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  background-color: var(--maple);
  clip-path: polygon(50% 0%, 58% 28%, 86% 16%, 74% 42%, 100% 52%, 68% 60%, 78% 90%, 50% 72%, 22% 90%, 32% 60%, 0% 52%, 26% 42%, 14% 16%, 42% 28%);
}

.brand__text { display: block; }
.brand__name { display: block; font-family: var(--font-display); font-size: 19px; font-weight: 900; letter-spacing: -0.01em; line-height: 1.15; }
.brand__latin { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; line-height: 1.5; opacity: 0.62; }

.nav { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }

.nav__item { position: relative; display: flex; align-items: center; }

.nav__item--ruled::before {
  content: "";
  flex: 0 0 1px;
  width: 1px;
  height: 18px;
  margin: 0 10px 0 2px;
  background-color: currentColor;
  opacity: 0.32;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.6;
  transition: color 160ms var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 160ms var(--ease);
}

.nav__link:hover { color: var(--nav-hover); }
.nav__link:hover::after,
.nav__link:focus-visible::after { transform: scaleX(1); }

.nav__link[aria-current="page"] { color: var(--nav-accent); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
  transition: color 160ms var(--ease);
}

.nav__trigger:hover { color: var(--nav-hover); }

.nav__chevron {
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 180ms var(--ease);
}

.nav__trigger[aria-expanded="true"] .nav__chevron { transform: rotate(-135deg) translate(-1px, -1px); }

.nav__aside { display: none; }
.nav__aside-link { font-size: 15px; font-weight: 700; border-bottom: 1px solid var(--maple); padding-bottom: 2px; }

.masthead__aside { display: flex; align-items: center; gap: 18px; }

.latest-link {
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.latest-link:hover { color: var(--nav-hover); border-color: var(--nav-hover); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--hair-dark-strong);
  border-radius: 0;
  background: none;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.site-header[data-scrolled="true"] .nav-toggle { border-color: var(--hair-strong); }

.nav-toggle__bars { display: grid; gap: 3px; width: 16px; }
.nav-toggle__bars span { display: block; height: 1px; background-color: currentColor; transition: transform 180ms var(--ease), opacity 180ms var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

/* 抽屉 */
.drawer {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 110;
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  background-color: var(--snow);
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  box-shadow: 0 24px 48px -36px rgba(20, 26, 31, 0.7);
  transition: grid-template-rows 220ms var(--ease);
}

.drawer[data-open="true"] { grid-template-rows: 1fr; }
.drawer[hidden] { display: none; }
.drawer__inner { min-height: 0; overflow: hidden; }

.drawer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 48px;
  padding-top: 36px;
  padding-bottom: 32px;
}

.drawer__title {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink-2);
}

.drawer__list { display: grid; }
.drawer__item { min-width: 0; }

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--hair);
  font-size: 15px;
  font-weight: 700;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), padding-left 160ms var(--ease);
}

.drawer__link:hover { background-color: var(--paper); color: var(--maple); padding-left: 16px; }

.drawer__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
}

.drawer__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
  font-size: 13px;
}

.drawer__foot-link { font-weight: 700; border-bottom: 1px solid var(--aurora); padding-bottom: 1px; transition: color 160ms var(--ease); }
.drawer__foot-link:hover { color: var(--maple); }

@keyframes drawerIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.drawer[data-open="true"] .drawer__item { animation: drawerIn 220ms var(--ease) both; }
.drawer[data-open="true"] .drawer__item:nth-child(2) { animation-delay: 20ms; }
.drawer[data-open="true"] .drawer__item:nth-child(3) { animation-delay: 40ms; }
.drawer[data-open="true"] .drawer__item:nth-child(4) { animation-delay: 60ms; }
.drawer[data-open="true"] .drawer__item:nth-child(5) { animation-delay: 80ms; }

/* ---------- 7. footer ---------- */
.site-footer {
  position: relative;
  margin-top: 96px;
  background-color: var(--sea);
  color: var(--paper);
  border-top: 1px solid var(--hair-dark);
}

.footer-band { height: 3px; background: var(--aurora-grad); }

.footer-archive {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px 64px;
  padding-block: 64px 48px;
  border-bottom: 1px solid var(--hair-dark);
}

.footer-archive__title { font-size: clamp(24px, 2.6vw, 34px); color: var(--paper); }
.footer-archive__note { margin-top: 12px; font-size: 14px; line-height: 1.8; color: rgba(244, 239, 230, 0.72); max-width: 26em; }

.archive-search__label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--aurora);
}

.archive-search { display: flex; max-width: 520px; border: 1px solid var(--hair-dark-strong); }

.archive-search__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 14px;
  border: 0;
  background-color: rgba(244, 239, 230, 0.06);
  color: var(--paper);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.archive-search__input::placeholder { color: rgba(244, 239, 230, 0.42); }
.archive-search__input:focus-visible { outline: 2px solid var(--aurora); outline-offset: -2px; }
.archive-search__input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--maple); }
.archive-search .btn { border: 0; border-left: 1px solid var(--hair-dark-strong); height: auto; }
.archive-search .btn:hover { transform: none; }

.archive-search__hint { margin-top: 10px; font-size: 12px; line-height: 1.7; color: rgba(244, 239, 230, 0.7); }
.archive-search__hint[data-state="error"] { color: #F0A79F; }

.archive-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.archive-suggest:empty { display: none; }

.archive-recent { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 18px; }
.archive-recent__label { font-size: 11px; letter-spacing: 0.16em; color: rgba(244, 239, 230, 0.6); }
.archive-recent__list { display: flex; flex-wrap: wrap; gap: 8px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
  padding-block: 56px 40px;
  border-bottom: 1px solid var(--hair-dark);
}

.footer-col--brand { min-width: 0; }
.brand--footer { color: var(--paper); }
.footer-brand__desc { margin-top: 16px; max-width: 28em; font-size: 14px; line-height: 1.8; color: rgba(244, 239, 230, 0.72); }

.footer-col__title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--aurora);
}

.footer-col__list { display: grid; gap: 10px; }

.footer-col__link {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244, 239, 230, 0.86);
  transition: color 160ms var(--ease), opacity 160ms var(--ease);
}

.footer-col__link:hover { color: var(--aurora); }

.footer-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
  padding-block: 32px;
  border-bottom: 1px solid var(--hair-dark);
}

.footer-contact__item { min-width: 0; font-size: 14px; line-height: 1.7; color: rgba(244, 239, 230, 0.9); }

.footer-contact__k {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--aurora);
}

.footer-contact__note {
  grid-column: 1 / -1;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(244, 239, 230, 0.62);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(244, 239, 230, 0.66);
}

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

/* ---------- 8. responsive ---------- */
@media (max-width: 1199px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-col--brand { grid-column: 1 / -1; }
}

@media (max-width: 1023px) {
  .masthead__inner { grid-template-columns: 1fr auto; min-height: 64px; }
  .nav-toggle { display: inline-flex; justify-self: end; }
  .masthead__aside { display: none; }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 130;
    display: block;
    max-height: min(78vh, 640px);
    overflow-y: auto;
    background-color: var(--paper);
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
    box-shadow: 0 28px 48px -36px rgba(20, 26, 31, 0.75);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms var(--ease);
  }

  .nav[data-open="true"] { opacity: 1; visibility: visible; transform: none; }

  .nav__list { display: block; padding-block: 8px; }
  .nav__item { width: 100%; border-bottom: 1px solid var(--hair); }
  .nav__item--ruled::before { display: none; }
  .nav__link { width: 100%; padding: 14px var(--gutter); font-size: 17px; }
  .nav__link::after { left: var(--gutter); right: auto; width: 28px; bottom: 8px; }
  .nav__trigger { margin-right: var(--gutter); height: 34px; width: 34px; border: 1px solid var(--hair); }

  .nav__aside {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px var(--gutter) 28px;
  }

  .drawer__grid { grid-template-columns: 1fr 1fr; gap: 20px 28px; padding-top: 28px; }
  .footer-archive { grid-template-columns: 1fr; gap: 24px; padding-block: 48px 40px; }
}

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .span-3 { grid-column: span 6; }
  .span-4 { grid-column: span 6; }
  .span-5 { grid-column: span 6; }
  .span-6 { grid-column: span 6; }
  .span-7 { grid-column: span 6; }
  .span-8 { grid-column: span 6; }
  .span-9 { grid-column: span 6; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-contact { grid-template-columns: 1fr; }
  .panel { padding: 24px; }
}

@media (max-width: 760px) {
  .drawer__grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .site-footer { margin-top: 64px; }
  .brand__latin { letter-spacing: 0.14em; }
}

@media (max-width: 420px) {
  .nav-toggle__label { display: none; }
  .archive-search { flex-wrap: wrap; }
  .archive-search .btn { width: 100%; border-left: 0; border-top: 1px solid var(--hair-dark-strong); padding-block: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
