:root {
  color-scheme: light;
  --ink: #182422;
  --muted: #5d6a66;
  --paper: #fffdf8;
  --panel: #f6f2e9;
  --line: #ded5c6;
  --red: #c83f32;
  --green: #0f766e;
  --gold: #d7a941;
  --navy: #16324f;
  --shadow: 0 18px 50px rgba(24, 36, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: 0;
}

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

a {
  color: var(--green);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--red);
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(24, 36, 34, 0.11);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(1160px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--panel);
  color: var(--red);
}

.main {
  min-height: calc(100vh - 260px);
}

.band {
  padding: 64px 0;
}

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

.container {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  width: min(760px, calc(100% - 32px));
}

.hero {
  min-height: clamp(420px, 72vh, 720px);
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--navy);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(13, 25, 36, 0.84), rgba(13, 25, 36, 0.44) 55%, rgba(13, 25, 36, 0.2)),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}

.hero-inner {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 72px;
  color: #fff;
}

.kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.lede {
  max-width: 720px;
  margin: 0 0 28px;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
}

.hero .lede {
  color: rgba(255, 255, 255, 0.9);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  background: var(--red);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: inherit;
}

.hero .button.secondary {
  color: #fff;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

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

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

.card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 36, 34, 0.07);
}

.card-media {
  aspect-ratio: 4 / 3;
  background: #e9e1d3;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 18px;
  overflow-wrap: anywhere;
}

.meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.card h3 {
  font-size: 1.28rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card a {
  color: var(--ink);
  text-decoration: none;
}

.card a:hover {
  color: var(--red);
}

.article-header {
  padding: 72px 0 34px;
  background: var(--panel);
}

.article-header .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.article-meta {
  color: var(--muted);
  font-weight: 700;
}

.article {
  padding: 48px 0 72px;
}

.article-body > * + * {
  margin-top: 22px;
}

.article-body p {
  margin: 0;
}

.lede,
.article-body,
.article-body p,
.article-body li {
  overflow-wrap: anywhere;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin-top: 42px;
}

.article-body ul,
.article-body ol {
  padding-left: 1.4rem;
}

.article-body figure {
  margin: 34px 0;
}

.article-body figure img,
.standalone-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-body figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.gallery figure {
  margin: 0;
}

.app-section {
  min-height: 70vh;
  padding: 28px 0 0;
}

.app-embed {
  min-height: 75vh;
  border-top: 1px solid var(--line);
  background: #fff;
}

.notice {
  border-left: 4px solid var(--gold);
  padding: 16px 18px;
  background: #fff;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
}

.footer-inner {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-inner a {
  color: #fff;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-140%);
  z-index: 20;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
}

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

@media (max-width: 820px) {
  body {
    font-size: 16px;
  }

  .nav-shell {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero {
    min-height: 620px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid,
  .grid.two,
  .gallery {
    grid-template-columns: 1fr;
  }

  .band {
    padding: 46px 0;
  }
}
