:root {
  --paper: #f5f7f2;
  --surface: #ffffff;
  --ink: #172126;
  --muted: #66736b;
  --line: #dce2d7;
  --teal: #0b6f72;
  --coral: #d45f45;
  --blue: #315d86;
  --moss: #596f3a;
  --sun: #f1bf4e;
  --dark: #111c22;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--dark);
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
  border-radius: 6px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px max(24px, calc((100% - 1180px) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--teal);
  color: #fff;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  text-underline-offset: 6px;
}

.nav-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.hero {
  position: relative;
  display: grid;
  height: 78svh;
  min-height: 620px;
  max-height: 840px;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  z-index: -1;
  background: rgba(12, 19, 23, 0.45);
}

.hero-content {
  align-self: center;
  width: min(600px, calc(100% - 48px));
  margin-left: max(24px, calc((100% - 1180px) / 2));
  padding: 72px 0 86px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.36);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-weight: 800;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: var(--sun);
}

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

h1 {
  margin-bottom: 18px;
  font-size: 6rem;
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: 2.6rem;
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 560px;
  margin-bottom: 28px;
  font-size: 1.18rem;
  line-height: 1.62;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--sun);
  color: #1f1a0c;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

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

.ticker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0 max(24px, calc((100% - 1180px) / 2));
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.ticker div {
  min-height: 96px;
  padding: 22px 24px;
  background: var(--surface);
}

.ticker span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 800;
}

.ticker strong {
  display: block;
  font-size: 1.05rem;
}

.video-band {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(360px, 0.58fr);
  gap: 48px;
  align-items: center;
  padding: 78px max(24px, calc((100% - 1180px) / 2));
  background: var(--dark);
  color: #fff;
}

.video-copy {
  max-width: 450px;
}

.video-copy .eyebrow {
  color: var(--sun);
}

.video-copy p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.68;
}

.video-copy .button {
  margin-top: 12px;
  text-shadow: none;
}

.video-frame {
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  background: #060b0e;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #060b0e;
}

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 82px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.65fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading p:last-child,
.author-copy p,
.letter-band p {
  color: var(--muted);
  line-height: 1.68;
}

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

.post-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.post-shell {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.post-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.post-card.featured {
  grid-column: span 2;
}

.post-card.featured .post-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.post-card.featured img {
  height: 100%;
  min-height: 438px;
}

.post-body {
  display: flex;
  min-height: 258px;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.post-body time {
  margin-bottom: 14px;
  color: var(--moss);
  font-size: 0.9rem;
  font-weight: 800;
}

.post-body p {
  color: var(--muted);
  line-height: 1.62;
}

.read-more {
  margin-top: auto;
  color: var(--teal);
  font-weight: 800;
}

.post-card:hover {
  border-color: rgba(11, 111, 114, 0.42);
  box-shadow: 0 16px 38px rgba(23, 33, 38, 0.1);
  transform: translateY(-2px);
}

.author-band {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 82px max(24px, calc((100% - 1180px) / 2));
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  gap: 56px;
  align-items: start;
  background: var(--dark);
  color: #fff;
}

.author-band .eyebrow {
  color: var(--sun);
}

.author-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.profile-list {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.profile-list div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.profile-list dt {
  color: var(--sun);
  font-weight: 800;
}

.profile-list dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.gallery-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 170px;
  gap: 14px;
}

.gallery-button {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 0;
  cursor: pointer;
  color: #fff;
  background: var(--dark);
  border: 0;
  border-radius: 8px;
}

.gallery-button.wide {
  grid-column: span 2;
}

.gallery-button.tall {
  grid-row: span 2;
}

.gallery-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.gallery-button span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 48px;
  padding: 14px;
  background: rgba(17, 28, 34, 0.78);
  font-weight: 800;
  text-align: left;
}

.gallery-button:hover img {
  transform: scale(1.04);
}

.letter-band {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 76px max(24px, calc((100% - 1180px) / 2));
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  gap: 48px;
  align-items: center;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.letter-form {
  display: grid;
  gap: 10px;
}

.letter-form label {
  color: var(--ink);
  font-weight: 800;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 10px;
}

.letter-form input {
  min-height: 48px;
  width: 100%;
  padding: 0 14px;
  color: var(--ink);
  background: #f9fbf6;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.letter-form button {
  min-height: 48px;
  cursor: pointer;
  color: #fff;
  background: var(--teal);
  border: 0;
  border-radius: 6px;
  font-weight: 800;
}

.letter-form button:hover {
  background: var(--blue);
}

.form-note {
  min-height: 24px;
  margin: 2px 0 0;
  color: var(--moss);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px max(24px, calc((100% - 1180px) / 2));
  color: rgba(255, 255, 255, 0.78);
  background: var(--dark);
}

.site-footer span:first-child {
  color: #fff;
  font-weight: 800;
}

.lightbox {
  width: min(980px, calc(100% - 40px));
  padding: 0;
  color: #fff;
  background: var(--dark);
  border: 0;
  border-radius: 8px;
}

.lightbox::backdrop {
  background: rgba(10, 13, 16, 0.78);
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #050708;
}

.lightbox p {
  margin: 0;
  padding: 16px 20px 20px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.lightbox-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  min-height: 40px;
  padding: 8px 12px;
  cursor: pointer;
  color: #fff;
  background: rgba(17, 28, 34, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  font-weight: 800;
}

@media (max-width: 960px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 14px 18px;
  }

  .hero {
    height: 76svh;
    min-height: 620px;
    max-height: 780px;
  }

  h1 {
    font-size: 4.6rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .ticker,
  .video-band,
  .section-heading,
  .author-band,
  .letter-band {
    grid-template-columns: 1fr;
  }

  .ticker div {
    padding-left: 24px;
    padding-right: 24px;
  }

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

  .post-card.featured {
    grid-column: span 2;
  }

  .post-card.featured .post-shell {
    grid-template-columns: 1fr;
  }

  .post-card.featured img {
    min-height: 320px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 190px;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
  }

  .nav-links {
    font-size: 0.92rem;
  }

  .hero-content {
    width: calc(100% - 36px);
    margin-left: 18px;
    padding: 48px 0 56px;
  }

  h1 {
    font-size: 3.8rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .ticker,
  .video-band,
  .post-grid,
  .gallery-grid,
  .form-row,
  .profile-list div,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .section {
    width: calc(100% - 36px);
    padding: 58px 0;
  }

  .post-card.featured {
    grid-column: auto;
  }

  .post-card img,
  .post-card.featured img {
    height: 240px;
    min-height: 0;
  }

  .gallery-button,
  .gallery-button.wide,
  .gallery-button.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .letter-band,
  .author-band,
  .video-band {
    padding-left: 18px;
    padding-right: 18px;
  }
}
