/* Hallmark · genre: editorial · macrostructure: Split Narrative · tone: civic warmth · anchor hue: evergreen */
@import "./tokens.css";

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--color-paper);
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--color-ink);
  background:
    radial-gradient(circle at 12% 8%, oklch(74% 0.08 87 / 0.35), transparent 26%),
    radial-gradient(circle at 88% 10%, oklch(55% 0.1 151 / 0.18), transparent 22%),
    radial-gradient(circle at 78% 80%, oklch(53% 0.11 28 / 0.16), transparent 22%),
    linear-gradient(180deg, var(--color-paper) 0%, var(--color-paper-2) 100%);
  font-family: var(--font-body);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page {
  position: relative;
  isolation: isolate;
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--space-lg) clamp(16px, 3vw, 34px) clamp(32px, 4vw, 46px);
}

.page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, transparent 0 98%, oklch(50% 0.02 170 / 0.04) 98% 100%),
    linear-gradient(to bottom, transparent 0 98%, oklch(50% 0.02 170 / 0.03) 98% 100%);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, black, transparent 92%);
  opacity: 0.45;
  z-index: -2;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(16px);
  pointer-events: none;
  opacity: 0.65;
  z-index: -1;
}

.ambient.one {
  top: -110px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, oklch(56% 0.11 151 / 0.22), transparent 66%);
}

.ambient.two {
  top: 120px;
  left: -120px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, oklch(66% 0.11 67 / 0.2), transparent 68%);
}

.ambient.three {
  bottom: 24px;
  right: 20%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, oklch(54% 0.11 30 / 0.18), transparent 70%);
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
  border: var(--rule-thin) solid var(--color-rule);
  border-radius: var(--radius-xl);
  background: color-mix(in oklab, var(--color-surface) 88%, white 12%);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-width: 0;
}

.brand-logo {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  border: var(--rule-thin) solid color-mix(in oklab, var(--color-ink) 14%, transparent);
  object-fit: cover;
  box-shadow: 0 12px 26px oklch(18% 0.02 170 / 0.12);
  background: white;
  flex: 0 0 auto;
}

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

.brand {
  margin: 0;
  color: var(--color-accent-2);
  font-size: var(--text-sm);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 800;
}

.tagline {
  margin: 8px 0 0;
  max-width: 56ch;
  color: var(--color-ink-2);
  font-size: var(--text-sm);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: var(--rule-thin) solid color-mix(in oklab, var(--color-ink) 14%, transparent);
  background: oklch(100% 0 0 / 0.55);
  color: var(--color-ink);
  font-size: 0.92rem;
  white-space: nowrap;
  transition:
    transform var(--dur-short) var(--ease-out),
    background-color var(--dur-short) var(--ease-out),
    border-color var(--dur-short) var(--ease-out),
    box-shadow var(--dur-short) var(--ease-out);
}

.nav a:hover {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--color-accent) 28%, transparent);
  box-shadow: 0 12px 28px oklch(25% 0.03 170 / 0.1);
}

.nav a[aria-current="page"] {
  background: color-mix(in oklab, var(--color-accent-soft) 66%, white 34%);
  border-color: color-mix(in oklab, var(--color-accent) 24%, transparent);
  color: var(--color-accent);
  font-weight: 700;
}

.hero,
.metrics,
.grid,
.split,
.news-grid,
.footer,
.article-shell,
.contact-list,
.quote,
.back-link {
  position: relative;
  z-index: 1;
}

.hero {
  overflow: hidden;
  border: var(--rule-thin) solid var(--color-rule);
  border-radius: 38px;
  background:
    linear-gradient(135deg, oklch(100% 0 0 / 0.76), oklch(97% 0.01 92 / 0.9)),
    linear-gradient(135deg, var(--color-surface), var(--color-paper-2));
  box-shadow: var(--shadow-strong);
  padding: clamp(22px, 4.5vw, 54px);
  margin-bottom: var(--space-lg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -18% auto;
  width: 38%;
  aspect-ratio: 1;
  background: radial-gradient(circle, oklch(53% 0.12 30 / 0.16), transparent 64%);
  pointer-events: none;
}

.eyebrow,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 14px;
  border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--color-accent-soft) 72%, white 28%);
  color: var(--color-accent);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
.metric strong,
.article-body h1 {
  font-family: var(--font-display);
  font-style: normal;
  letter-spacing: -0.045em;
}

h1 {
  margin-bottom: 0;
  max-width: 13ch;
  font-size: var(--text-display);
  line-height: 0.92;
}

.hero-copy {
  margin: 18px 0 0;
  max-width: 66ch;
  color: var(--color-ink-2);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.78;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: stretch;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(18px, 2.5vw, 30px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: var(--rule-thin) solid transparent;
  font-weight: 700;
  transition:
    transform var(--dur-short) var(--ease-out),
    box-shadow var(--dur-short) var(--ease-out),
    background-color var(--dur-short) var(--ease-out),
    border-color var(--dur-short) var(--ease-out);
}

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

.button.solid {
  color: white;
  background: linear-gradient(135deg, var(--color-accent), oklch(43% 0.1 24));
  box-shadow: 0 16px 28px oklch(43% 0.12 28 / 0.24);
}

.button.ghost {
  border-color: color-mix(in oklab, var(--color-ink) 16%, transparent);
  background: oklch(100% 0 0 / 0.72);
  color: var(--color-ink);
}

.hero-visual {
  position: relative;
  min-width: 0;
  padding: 14px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  border: 1px solid color-mix(in oklab, var(--color-accent) 18%, transparent);
  background:
    linear-gradient(180deg, oklch(100% 0 0 / 0.32), transparent 38%),
    radial-gradient(circle at 20% 20%, oklch(53% 0.13 30 / 0.16), transparent 40%);
  transform: translate(8px, 8px);
  z-index: 0;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  min-height: 340px;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid color-mix(in oklab, var(--color-ink) 12%, transparent);
  box-shadow: 0 18px 34px oklch(22% 0.03 170 / 0.16);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: var(--space-lg);
}

.metric,
.card,
.photo-card,
.news-card,
.split,
.quote,
.contact-list,
.article-shell {
  border: var(--rule-thin) solid var(--color-rule);
  background: color-mix(in oklab, var(--color-surface) 82%, white 18%);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.metric {
  border-radius: 24px;
  padding: 20px;
}

.metric strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(1.18rem, 2vw, 1.65rem);
  line-height: 1.04;
}

.metric span {
  color: var(--color-ink-2);
}

.section-title {
  margin-bottom: 16px;
}

.section-title h2 {
  margin-bottom: 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.8rem);
  line-height: 1.02;
  font-style: normal;
}

.section-title p {
  margin-top: 12px;
  max-width: 62ch;
  color: var(--color-ink-2);
  line-height: 1.75;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: var(--space-lg);
}

.stack {
  display: grid;
  gap: 14px;
}

.card {
  border-radius: 26px;
  padding: 22px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.02rem;
  line-height: 1.35;
}

.card p {
  margin-bottom: 0;
  color: var(--color-ink-2);
  line-height: 1.78;
}

.news-grid {
  display: grid;
  gap: 18px;
}

.news-grid.featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: var(--space-lg);
}

.news-grid.full {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.photo-card,
.news-card {
  overflow: hidden;
  border-radius: 28px;
}

.photo-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.photo-card img,
.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.photo-card .body,
.news-card .body,
.news-card .text {
  padding: 18px 18px 20px;
}

.photo-card h3,
.news-card h3 {
  margin-bottom: 8px;
}

.photo-card p,
.news-card p {
  margin-bottom: 0;
  color: var(--color-ink-2);
  line-height: 1.72;
}

.news-card .meta,
.news-article .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--color-accent);
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 800;
}

.news-card .meta span,
.news-article .meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--color-accent-soft) 72%, white 28%);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 22px;
  border-radius: 32px;
  padding: clamp(20px, 3vw, 30px);
  margin-bottom: var(--space-lg);
}

.split img {
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  border-radius: 24px;
}

.quote {
  border-radius: 32px;
  padding: 26px;
  margin-bottom: var(--space-lg);
}

.quote p {
  margin-bottom: 0;
  max-width: 60ch;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.1vw, 1.9rem);
  line-height: 1.22;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--color-accent);
  font-size: 0.92rem;
  font-weight: 700;
}

.back-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-shell {
  overflow: hidden;
  max-width: 980px;
  margin: 0 auto var(--space-lg);
  border-radius: 34px;
}

.article-cover img {
  height: min(46vw, 420px);
  object-fit: cover;
}

.article-body {
  padding: clamp(22px, 3vw, 34px);
}

.article-body h1 {
  margin-bottom: 12px;
  max-width: 15ch;
  font-size: var(--text-display-s);
  line-height: 0.98;
}

.article-body p {
  margin-bottom: 16px;
  color: var(--color-ink-2);
  line-height: 1.85;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
  border-radius: 30px;
  margin-bottom: var(--space-lg);
}

.contact-item {
  padding: 18px;
  border-radius: 22px;
  border: var(--rule-thin) solid color-mix(in oklab, var(--color-ink) 10%, transparent);
  background: oklch(100% 0 0 / 0.54);
}

.contact-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
}

.contact-item span {
  color: var(--color-ink-2);
  line-height: 1.7;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(0, 1.05fr);
  gap: clamp(16px, 2.8vw, 30px);
  padding: clamp(24px, 4vw, 36px);
  margin-top: clamp(20px, 3vw, 30px);
  border: 1px solid color-mix(in oklab, var(--color-rule) 72%, transparent);
  border-radius: 28px;
  background:
    linear-gradient(135deg, oklch(99% 0.01 95 / 0.96), oklch(96% 0.01 100 / 0.9)),
    var(--color-surface);
  box-shadow: var(--shadow-soft);
  color: var(--color-ink-2);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  grid-column: 1 / -1;
  height: 1px;
  margin-bottom: 6px;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--color-accent) 42%, transparent), transparent);
}

.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 10% 0%, color-mix(in oklab, var(--color-accent-soft) 40%, transparent), transparent 28%),
    radial-gradient(circle at 92% 18%, color-mix(in oklab, var(--color-accent) 14%, transparent), transparent 24%);
  opacity: 0.9;
}

.footer > * {
  position: relative;
  z-index: 1;
}

.footer-brand,
.footer-links,
.footer-meta {
  min-width: 0;
}

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

.footer-kicker {
  margin: 0;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-lead {
  margin: 0;
  max-width: 28ch;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  align-content: start;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid color-mix(in oklab, var(--color-rule) 68%, transparent);
  border-radius: 999px;
  background: color-mix(in oklab, white 82%, var(--color-accent-soft));
  color: var(--color-ink);
  font-weight: 700;
  text-decoration: none;
  transition:
    transform var(--dur-short) var(--ease-out),
    border-color var(--dur-short) var(--ease-out),
    background-color var(--dur-short) var(--ease-out);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--color-accent) 34%, var(--color-rule));
  background: color-mix(in oklab, white 76%, var(--color-accent-soft));
}

.footer-meta {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-meta p {
  margin: 0;
  line-height: 1.55;
}

.footer-meta strong {
  color: var(--color-ink);
}

.footer-meta a {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-meta a:hover,
.footer-meta a:focus-visible {
  text-decoration: underline;
}

.footer-note {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid color-mix(in oklab, var(--color-rule) 52%, transparent);
  color: var(--color-ink-2);
  font-size: 0.86rem;
}

.footer-note span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-note a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 700;
}

.footer-note a:hover,
.footer-note a:focus-visible {
  text-decoration: underline;
}

section {
  margin-bottom: var(--space-lg);
}

.button:focus-visible,
.nav a:focus-visible,
.back-link:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.button:active,
.nav a:active {
  transform: translateY(0);
}

.photo-card,
.news-card,
.metric,
.card,
.split,
.quote,
.contact-item,
.article-shell {
  transition:
    transform var(--dur-short) var(--ease-out),
    box-shadow var(--dur-short) var(--ease-out),
    border-color var(--dur-short) var(--ease-out);
}

.photo-card:hover,
.news-card:hover,
.metric:hover,
.card:hover,
.split:hover,
.quote:hover,
.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
  border-color: color-mix(in oklab, var(--color-accent) 18%, var(--color-rule));
}

.photo-card img,
.news-card img,
.hero-visual img,
.split img,
.article-cover img {
  transition: transform var(--dur-long) var(--ease-out);
}

.photo-card:hover img,
.news-card:hover img,
.hero-visual:hover img,
.split:hover img,
.article-shell:hover .article-cover img {
  transform: scale(1.02);
}

@media (max-width: 1120px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero-layout,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-visual img,
  .split img {
    min-height: 300px;
  }

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

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

@media (max-width: 780px) {
  .page {
    padding-inline: 14px;
  }

  .hero,
  .split,
  .quote,
  .article-shell,
  .contact-list {
    border-radius: 26px;
  }

  .metrics,
  .grid,
  .news-grid.featured,
  .news-grid.full,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .topbar {
    top: 8px;
    padding: 14px;
    gap: 14px;
  }

  .brand-wrap {
    align-items: flex-start;
  }

  .nav a {
    min-height: 40px;
    padding-inline: 12px;
    font-size: 0.88rem;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2.4rem, 10vw, 3.7rem);
  }

  .hero-visual img,
  .split img {
    min-height: 250px;
  }

  .article-body h1 {
    font-size: clamp(2.1rem, 8vw, 3rem);
  }

  .footer {
    padding: 20px;
  }

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

  .footer-note {
    justify-content: flex-start;
  }
}

@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;
  }

  .photo-card:hover,
  .news-card:hover,
  .metric:hover,
  .card:hover,
  .split:hover,
  .quote:hover,
  .contact-item:hover,
  .hero-visual:hover img,
  .split:hover img,
  .news-card:hover img,
  .photo-card:hover img {
    transform: none;
  }
}
