:root {
  color-scheme: light;
  --paper: #f8f8f1;
  --surface: #fffef9;
  --forest: #132f26;
  --ink: #182f26;
  --muted: #455d50;
  --lime: #d7ee9f;
  --line: #d8dfd0;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --section-spacing: clamp(2.5rem, 6vw, 5rem);
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid #176a78; outline-offset: 4px; }

.shell {
  width: min(100% - 2 * var(--gutter), 75rem);
  margin-inline: auto;
}

.site-header {
  border-top: 4px solid var(--forest);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.header-content, .identity {
  display: flex;
  align-items: center;
  gap: clamp(.65rem, 2vw, 1.25rem);
}

.header-content {
  justify-content: space-between;
  min-height: 4.8rem;
  padding-block: .65rem;
}

.identity span {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.3;
  font-weight: 650;
}

.login, .poster-link, .footer-content a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  text-decoration: none;
}

.login {
  flex: none;
  padding-inline: 1.1rem;
  border-radius: .45rem;
  background: var(--forest);
  color: #fff;
  white-space: nowrap;
}

.login:hover { background: #285141; }

.welcome { margin-top: clamp(1rem, 3vw, 2.5rem); }

.welcome-banner {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: .85rem;
  background: var(--forest);
  color: var(--surface);
}

.welcome-copy {
  align-self: center;
  padding: clamp(1.5rem, 4.4vw, 3.75rem);
}

.welcome h1 {
  font-size: clamp(2.65rem, 4.9vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.058em;
}

.welcome h1 span {
  display: block;
  margin-top: .12em;
  color: var(--lime);
}

.welcome p {
  max-width: 27rem;
  margin-top: clamp(1rem, 2.5vw, 1.6rem);
  color: #e1ebdc;
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.55;
}

.carousel-photos {
  display: grid;
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--forest);
  cursor: pointer;
  -webkit-touch-callout: none;
  touch-action: pan-y pinch-zoom;
}

.carousel-photos:disabled { cursor: default; }
.carousel-photos:focus-visible { outline-color: var(--lime); outline-offset: -4px; z-index: 1; }

.welcome-image {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  max-height: 28rem;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0;
  transition: opacity .55s ease-in-out;
  user-select: none;
}

.welcome-image.is-current { opacity: 1; }

.carousel-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.carousel-dot {
  display: grid;
  width: 1.5rem;
  height: 2.25rem;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.carousel-dot::before {
  content: "";
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #879387;
}

.carousel-dot[aria-current="true"]::before {
  width: .72rem;
  height: .72rem;
  background: #316745;
}

.carousel-dot:hover::before { background: var(--forest); }
.carousel-dot:focus-visible { outline-offset: -2px; }

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

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  margin-block: .85rem var(--section-spacing);
}

.quick-links a {
  display: flex;
  min-height: 3.6rem;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  padding: .65rem clamp(.65rem, 1.5vw, 1.1rem);
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: var(--surface);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.quick-links a:first-child { border-color: #cbdab4; background: #e8efda; }
.quick-links a:hover, .quick-links a:focus-visible { background: var(--lime); }
.quick-links span { color: var(--muted); font-size: 1.25em; }

section[id] { scroll-margin-top: 1rem; }
.section-title {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: .95rem;
  font-size: clamp(1.7rem, 3.2vw, 2.65rem);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.section-title::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--line);
}

.video-feature {
  display: grid;
  grid-template-columns: minmax(0, 69fr) minmax(0, 31fr);
  align-items: center;
  overflow: hidden;
  border-radius: .8rem;
  background: var(--forest);
  color: var(--surface);
}

.video-frame { position: relative; min-width: 0; background: #0a2119; }
.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a2119;
  object-fit: contain;
}

.video-frame video:focus-visible { outline: 3px solid var(--lime); outline-offset: -4px; }
.video-frame .play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-height: 2.75rem;
  padding: .5rem 1rem;
  border: 1px solid var(--forest);
  border-radius: .45rem;
  background: var(--surface);
  color: var(--forest);
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.video-frame .play:hover { background: var(--lime); }
.video-feedback, .video-frame noscript a { display: block; padding: .65rem 1rem; }

.video-copy { padding: clamp(1.4rem, 3.8vw, 2.9rem); }
.video-copy h3 {
  font-size: clamp(1.55rem, 3vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -.04em;
}
.video-copy p { margin-top: .85rem; color: #e1ebdc; }

.resource-layout {
  display: grid;
  grid-template-columns: minmax(0, 63fr) minmax(0, 37fr);
  gap: clamp(1.35rem, 4vw, 3.25rem);
  margin-block: var(--section-spacing);
}

.poster {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--surface);
}

.poster-image { display: block; }
.poster-image img { width: 100%; }
.poster-image:focus-visible { outline-offset: -4px; }
.poster-copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  column-gap: 1rem;
  padding: .8rem clamp(1rem, 2vw, 1.4rem);
}

.poster-copy h3 { font-size: clamp(1.13rem, 1.85vw, 1.4rem); line-height: 1.25; }
.poster-copy p { margin-top: .3rem; color: var(--muted); font-size: .9rem; }
.poster-link { font-size: .93rem; }
.poster-link:hover, .footer-content a:hover { text-decoration: underline; text-underline-offset: .2em; }

.notice {
  padding: .9rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 3px solid #759057;
  border-radius: .4rem;
  background: #edf1e5;
  color: var(--muted);
}

.site-footer { background: var(--forest); color: var(--surface); }
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 1rem;
  padding-block: .9rem;
  font-size: .9rem;
}
.footer-content a { color: var(--lime); }
.footer-content a:focus-visible { outline-color: var(--lime); }

@media (max-width: 48rem) {
  .welcome-banner, .video-feature, .resource-layout { grid-template-columns: minmax(0, 1fr); }
  .welcome h1 { font-size: clamp(2.3rem, 9.25vw, 3.85rem); }
  .welcome-image { height: auto; aspect-ratio: 2 / 1; }
  .briefing-photo { object-position: center 70%; }
  .video-copy h3 { font-size: clamp(1.4rem, 5vw, 2rem); }
  .video-copy p { margin-top: .4rem; }
}

@media (max-width: 33rem) {
  .header-content { min-height: 4.4rem; }
  .identity { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .identity img { width: 5.55rem; }
  .identity span { font-size: .725rem; }
  .login { padding-inline: .78rem; font-size: .9rem; }
  .quick-links { gap: .35rem; margin-top: .55rem; }
  .quick-links a { min-height: 3.15rem; padding-inline: .45rem; font-size: .8rem; }
  .quick-links span { display: none; }
}
