/* Kanazawa Japan — homepage styles
   Theme follows the reference brief: warm off-white paper, near-black ink, one red accent,
   heavy Inter Tight headings, square edges, thin ink borders, sand bands and a black footer. */

@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F6F3EC;
  --sand: #EFEBE2;
  --cream: #F1E6CC;
  --white: #FFFFFF;
  --ink: #111111;
  --ink-soft: #4A4A46;
  --muted: #6B6A64;
  --red: #C93A1E;
  --red-dark: #A82E16;
  --red-tint: #F8DED5;
  --red-light: #F3B3A2;
  --line: #111111;
  --line-soft: rgba(17, 17, 17, 0.14);
  --footer-text: #CFCABE;

  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(18px, 4vw, 32px);
  --section: clamp(56px, 7vw, 84px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.55;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
p, li { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: var(--gutter); top: 0; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--white); font-weight: 700;
  transform: translateY(-120%);
}
.skip-link:focus { transform: translateY(8px); }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow-light { color: var(--red-light); }

h2 { font-size: clamp(1.625rem, 1.25rem + 1.3vw, 2rem); letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.25; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 20px;
  border: 1px solid var(--ink);
  font: 800 1rem/1.2 var(--font);
  text-decoration: none; text-align: center;
  touch-action: manipulation;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 0.9375rem; }
.btn-red { background: var(--red); border-color: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-black { background: var(--ink); color: var(--white); justify-content: space-between; width: 100%; }
.btn-black::after { content: "→"; font-weight: 600; }
.btn-black:hover { background: var(--red); border-color: var(--red); }
.btn-outline { background: rgba(246, 243, 236, 0.85); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); }
.btn-red.affiliate-link::after { content: "↗"; font-weight: 600; }

.link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 800; font-size: 0.9375rem;
  text-decoration: underline; text-decoration-color: var(--red);
  text-decoration-thickness: 2px; text-underline-offset: 8px;
}
.link::after { content: " →"; white-space: pre; }
.link-light { color: var(--white); }
.link:hover { text-decoration-color: currentColor; }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; background: var(--paper); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  column-gap: 24px; min-height: 70px;
}
.brand { display: inline-flex; flex-direction: column; gap: 3px; text-decoration: none; padding-block: 14px; }
.brand-name { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.brand-tag { font-size: 0.5625rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); line-height: 1; }

.site-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.site-nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.9375rem; font-weight: 700; text-decoration: none;
}
.site-nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-cta { margin-left: 4px; }
.menu-toggle { display: none; }

@media (max-width: 899px) {
  .js .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0 16px;
    border: 1px solid var(--ink); background: transparent; color: var(--ink);
    font: 800 0.9375rem/1 var(--font); cursor: pointer; touch-action: manipulation;
  }
  .js .menu-toggle[aria-expanded="true"] { background: var(--ink); color: var(--white); }
  .js .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-block: 1px solid var(--ink);
    padding: 8px var(--gutter) 20px;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav li:not(.nav-cta) + li { border-top: 1px solid var(--line-soft); }
  .js .site-nav a:not(.btn) { display: flex; min-height: 54px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
  .js .nav-cta { margin: 12px 0 0; }
  .js .nav-cta .btn { width: 100%; min-height: 50px; }
  html:not(.js) .site-nav { width: 100%; padding-bottom: 10px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(560px, 86vh, 720px);
  background: #1C1C1A;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 62% 55%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.05) 0%, rgba(17, 17, 17, 0.35) 45%, rgba(17, 17, 17, 0.82) 100%);
}
.hero-content { position: relative; z-index: 2; padding-block: 120px clamp(36px, 6vw, 72px); }
.hero-title {
  margin-top: 14px;
  font-size: clamp(2.5rem, 1.55rem + 3.8vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 14ch;
}
.hero-lede {
  margin-top: 16px; max-width: 40rem;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); font-weight: 500; line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}
.hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.hero-caption { padding-block: 10px; font-size: 0.8125rem; color: var(--muted); text-align: right; }

@media (min-width: 900px) {
  .hero::before {
    background:
      linear-gradient(90deg, rgba(17, 17, 17, 0.78) 0%, rgba(17, 17, 17, 0.45) 38%, rgba(17, 17, 17, 0) 66%),
      linear-gradient(180deg, rgba(17, 17, 17, 0) 55%, rgba(17, 17, 17, 0.35) 100%);
  }
  .hero-title { max-width: none; }
}
/* Phones: the photo sits on top (lantern and pavilion in view) and fades into the dark text block. */
@media (max-width: 699px) {
  .hero { display: block; min-height: 0; }
  .hero-bg { position: relative; display: block; inset: auto; height: auto; }
  .hero-bg img { position: static; height: auto; aspect-ratio: 5 / 4; }
  .hero::before { display: none; }
  .hero-bg::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 96px;
    background: linear-gradient(180deg, rgba(28, 28, 26, 0) 0%, #1C1C1A 100%);
  }
  .hero-content { padding-block: 4px 32px; }
  .hero-title { margin-top: 10px; }
}
@media (max-width: 599px) {
  .hero-actions .btn { width: 100%; }
  .hero-caption { text-align: left; }
}

/* ---------- Live bar: time, weather, forecast, notes ---------- */
.infobar { border-block: 1px solid var(--line); background: var(--paper); }
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "time  now"
    "days  days"
    "notes notes";
}
.info-cell { padding: 16px var(--gutter) 18px; min-width: 0; }
.info-time { grid-area: time; }
.info-now { grid-area: now; border-left: 1px solid var(--line); }
.info-days { grid-area: days; border-top: 1px solid var(--line); }
.info-notes { grid-area: notes; border-top: 1px solid var(--line); }

.info-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.info-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.info-big {
  margin-top: 4px;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.info-sub { margin-top: 2px; font-size: 0.8125rem; color: var(--ink-soft); }

.now-row { display: flex; align-items: center; gap: 8px; }
.now-row .info-big { margin-top: 0; }
.wx-icon { display: inline-block; width: 32px; height: 32px; flex: none; }
.wx-icon-lg { width: 40px; height: 40px; }
.info-now[data-state="loading"] .wx-icon-lg,
.info-now[data-state="error"] .wx-icon-lg { display: none; }

.unit-toggle {
  min-width: 44px; min-height: 36px; margin-left: auto; padding: 0 8px;
  border: 1px solid var(--line-soft); background: transparent; color: var(--ink);
  font: 800 0.75rem/1 var(--font); cursor: pointer;
}
.unit-toggle:hover { border-color: var(--ink); }

.wx-days { margin-top: 8px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.wx-day { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.wx-dname { font-size: 0.875rem; font-weight: 800; }
.wx-temps { font-size: 0.875rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wx-temps b { color: var(--ink); font-weight: 800; }
.wx-rain { font-size: 0.75rem; font-weight: 700; color: #2F6FB0; white-space: nowrap; }
.wx-rain::before {
  content: ""; display: inline-block; width: 7px; height: 9px; margin-right: 3px;
  background: #3B7FC4; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  clip-path: polygon(50% 0, 100% 60%, 85% 95%, 50% 100%, 15% 95%, 0 60%);
}
.wx-empty { grid-column: 1 / -1; font-size: 0.875rem; color: var(--ink-soft); padding-block: 6px; }

.notes { margin-top: 8px; display: grid; gap: 6px; font-size: 0.875rem; line-height: 1.45; }
.notes li { display: flex; gap: 8px; }
.dot { flex: none; width: 7px; height: 7px; margin-top: 0.45em; border-radius: 50%; }
.dot-amber { background: #A8740F; }
.dot-red { background: var(--red); }

.wx-credit { padding-block: 8px; border-top: 1px solid var(--line-soft); font-size: 0.75rem; color: var(--muted); }
.wx-credit a { color: inherit; }
.wx-credit .wx-old { color: var(--red); font-weight: 700; }

@media (min-width: 768px) {
  .info-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "time days"
      "now  days"
      "notes notes";
  }
  .info-now { border-left: 0; border-top: 1px solid var(--line); }
  .info-days { border-top: 0; border-left: 1px solid var(--line); }
}

@media (min-width: 1100px) {
  .info-grid {
    max-width: 1360px; margin: 0 auto;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, 1.6fr);
    grid-template-areas: "time now days notes";
  }
  .info-cell { padding: 18px 24px 20px; }
  .info-time { padding-left: var(--gutter); }
  .info-now, .info-days, .info-notes { border-top: 0; border-left: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.band-sand { background: var(--sand); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 8px 24px; margin-bottom: clamp(24px, 3vw, 32px);
}
.section-head h2 { margin-top: 8px; }
.head-note { font-size: 0.9375rem; font-weight: 800; color: var(--red); }

/* ---------- Places: feature ---------- */
.feature { display: grid; gap: 24px; border: 1px solid var(--line); background: var(--white); padding: 0; }
.media-frame { position: relative; }
.media-frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.media-tag {
  position: absolute; left: 0; bottom: 0;
  padding: 7px 12px; background: var(--paper);
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.feature-media figcaption { padding: 10px 18px 0; font-size: 0.8125rem; color: var(--muted); }
.feature-body { padding: 0 18px 22px; }
.feature-num { font-size: 1.375rem; font-weight: 800; color: var(--red); letter-spacing: -0.02em; }
.feature-body h3 { margin-top: 4px; font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem); letter-spacing: -0.03em; }
.feature-body h3 + p { margin-top: 12px; color: var(--ink-soft); }

.mini-table {
  margin: 20px 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line-soft);
}
.mini-table > div { padding: 10px 12px 10px 0; }
.mini-table > div + div { padding-left: 12px; border-left: 1px solid var(--line-soft); }
.mini-table dt { font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.mini-table dd { margin: 2px 0 0; font-weight: 700; font-size: 0.9375rem; }

@media (max-width: 479px) {
  .mini-table { grid-template-columns: 1fr; border-bottom: 0; }
  .mini-table > div,
  .mini-table > div + div {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    padding: 9px 0; border-left: 0; border-bottom: 1px solid var(--line-soft);
  }
  .mini-table dd { margin: 0; }
}

.plan { margin-top: 14px; font-size: 0.875rem; font-weight: 800; color: var(--red); }

@media (min-width: 1000px) {
  .feature { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 0; align-items: center; }
  .feature-media figcaption { padding: 10px 0 12px 18px; }
  .feature-body { padding: 32px clamp(28px, 3vw, 48px); }
}

/* ---------- Places: numbered list ---------- */
.stop-list { margin-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); }
.stop-list > li { border-bottom: 1px solid var(--line); }
.stop {
  display: grid;
  grid-template-columns: 34px 88px minmax(0, 1fr);
  grid-template-areas:
    "num thumb name"
    "text text text";
  column-gap: 14px; row-gap: 12px;
  align-items: center;
  padding-block: 18px;
}
.stop-num { grid-area: num; font-size: 1.375rem; font-weight: 800; color: var(--red); letter-spacing: -0.02em; }
.stop-thumb { grid-area: thumb; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.stop-name { grid-area: name; }
.stop-name h3 { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); }
.stop-meta { margin-top: 3px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft); }
.stop-text { grid-area: text; }
.stop-text .plan { margin-top: 4px; }

@media (min-width: 768px) {
  .stop {
    grid-template-columns: 64px 120px minmax(0, 0.9fr) minmax(0, 1.25fr);
    grid-template-areas: "num thumb name text";
    column-gap: 24px;
    padding-block: 16px;
  }
}

.next-step {
  margin-top: clamp(28px, 4vw, 40px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding: 20px 22px; border: 1px solid var(--line); background: var(--white);
}
.next-title { margin-top: 4px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.next-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 599px) { .next-actions, .next-actions .btn { width: 100%; } }

/* ---------- Itinerary ---------- */
.days { display: grid; gap: 20px; }
.day { border: 1px solid var(--line); background: var(--white); padding: 22px 22px 8px; }
.day-num { font-size: 2.75rem; font-weight: 800; line-height: 1; color: var(--red); letter-spacing: -0.04em; }
.day h3 { margin-top: 10px; font-size: 1.5rem; letter-spacing: -0.025em; }
.slots { margin-top: 16px; }
.slots li {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); column-gap: 14px;
  padding-block: 14px; border-top: 1px solid var(--line-soft);
}
.slot-time { font-weight: 800; }
@media (max-width: 599px) {
  .slots li { grid-template-columns: 1fr; row-gap: 2px; }
  .slot-time { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
}
.slots strong { font-weight: 700; }
.after-note { margin-top: 20px; font-size: 0.9375rem; color: var(--ink-soft); }

@media (min-width: 900px) {
  .days { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .day { padding: 28px 30px 10px; }
}

/* ---------- Experiences ---------- */
.disclosure { margin: -8px 0 24px; font-size: 0.875rem; color: var(--ink-soft); }
.cards { display: grid; gap: 16px; }
.card { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); background: var(--white); }
.card-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px dashed rgba(17, 17, 17, 0.3);
}
.card-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  background: var(--red-tint); color: var(--red);
}
.card-label {
  display: flex; flex-direction: column; align-items: flex-end;
  font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.card-label b { font-size: 0.8125rem; color: var(--red); }
.card p { margin-top: 8px; color: var(--ink-soft); }
.card-action { margin-top: auto; padding-top: 20px; text-align: center; }
.card-action .via { display: block; margin-top: 8px; font-size: 0.75rem; color: var(--muted); }
.card-action:not(:has(a:not([hidden]))) { display: none; }

@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

/* ---------- Where to stay ---------- */
.areas { display: grid; gap: 28px; }
.area { padding-top: 16px; border-top: 1px solid var(--line); }
.area h3 { margin-top: 6px; font-size: 1.3125rem; }
.area h3 + p { margin-top: 6px; color: var(--ink-soft); }
.tradeoff { margin-top: 10px; font-size: 0.875rem; color: var(--ink-soft); }
.tradeoff b { color: var(--ink); font-weight: 800; }
@media (min-width: 768px) { .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }

.hotel-search {
  margin-top: clamp(32px, 4vw, 44px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding: 20px 22px; background: var(--paper); border: 1px solid var(--line);
}
.hotel-title { font-size: 1.1875rem; font-weight: 800; letter-spacing: -0.02em; }
.hotel-sub { margin-top: 2px; font-size: 0.875rem; color: var(--ink-soft); }
.hotel-search:not(:has(a:not([hidden]))) { display: none; }
@media (max-width: 599px) { .hotel-search .btn { width: 100%; } }

/* ---------- Closing band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--cream); isolation: isolate; }
.cta-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 40%; }
.cta-content { position: relative; z-index: 2; padding-block: 36px 48px; }
.cta-content h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); letter-spacing: -0.035em; line-height: 1.08; max-width: 18ch; }
.cta-content p:not(.cta-actions) { margin-top: 12px; font-size: 1.0625rem; color: var(--ink-soft); }
.cta-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 599px) { .cta-actions .btn { width: 100%; } }

@media (min-width: 900px) {
  .cta-band { min-height: 420px; display: flex; align-items: center; }
  .cta-img {
    position: absolute; top: 0; right: 0; bottom: 0; width: 62%; height: 100%; aspect-ratio: auto;
  }
  .cta-band::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, var(--cream) 0%, var(--cream) 38%, rgba(241, 230, 204, 0.75) 48%, rgba(241, 230, 204, 0) 70%);
  }
  .cta-content { padding-block: 72px; }
  .cta-content > * { max-width: 34rem; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--footer-text); font-size: 0.9375rem; line-height: 1.55; padding-top: clamp(48px, 6vw, 72px); }
.site-footer a { color: var(--footer-text); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--white); }
.site-footer .btn { color: var(--white); }
.site-footer .btn:hover { text-decoration: none; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; }
.footer-brand .brand { padding: 0; margin-bottom: 14px; color: var(--white); }
.footer-brand .brand-tag { color: var(--footer-text); }
.footer-brand > p:nth-child(2) { max-width: 22rem; }
.footer-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.footer-title { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin-bottom: 12px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 34px; }
.credits { font-size: 0.8125rem; }
.credits li { padding-block: 3px; }
.credits a { text-decoration: underline; text-underline-offset: 2px; }
.credits-note { margin-top: 8px; font-size: 0.8125rem; }
.footer-grid > div:last-child { grid-column: 1 / -1; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: clamp(36px, 5vw, 56px); padding-block: 18px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.8125rem;
}
.footer-base a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; }

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 1.3fr); column-gap: 40px; }
  .footer-brand, .footer-grid > div:last-child { grid-column: auto; }
}
