:root {
  --grt-header-height: 76px;
  --grt-content-width: 1180px;
  --grt-green-950: #06170f;
  --grt-green-900: #0b281a;
  --grt-green-800: #173a27;
  --grt-gold: #dfb44e;
  --grt-gold-dark: #946919;
  --grt-cream: #f4f0e6;
  --grt-white: #ffffff;
  --grt-ink: #172019;
  --grt-muted: #5d665e;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--grt-header-height);
}

.grt-page,
.grt-page * {
  box-sizing: border-box;
}

body.grt-page {
  margin: 0;
  overflow-x: hidden;
  background: var(--grt-cream);
  color: var(--grt-ink);
  font-family: Arial, Helvetica, sans-serif;
}

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

.grt-page a {
  color: inherit;
}

.grt-page a:focus-visible {
  outline: 3px solid var(--grt-gold);
  outline-offset: 4px;
}

.grt-shell {
  width: min(var(--grt-content-width), calc(100% - 48px));
  margin: 0 auto;
}

/* Sticky archive header */

.grt-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  height: var(--grt-header-height);
  min-height: var(--grt-header-height);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 max(28px, calc((100% - var(--grt-content-width)) / 2));
  background: rgba(6, 23, 15, 0.98);
  color: var(--grt-white);
}

.grt-brand {
  flex: 0 0 auto;
  text-decoration: none;
}

.grt-brand span,
.grt-brand strong {
  display: block;
}

.grt-brand span {
  color: var(--grt-gold);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.grt-brand strong {
  margin-top: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.34rem;
  font-weight: 500;
}

.grt-header__nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.grt-header__nav a {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

.grt-header__nav a:hover,
.grt-header__nav a:focus-visible {
  color: var(--grt-white);
}

.grt-header__nav .grt-header__button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  background: var(--grt-gold);
  color: var(--grt-green-950);
}

/* Intro snap frame */

.grt-intro {
  display: flex;
  min-height: calc(100vh - var(--grt-header-height));
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(223, 180, 78, 0.16),
      transparent 31%
    ),
    linear-gradient(135deg, var(--grt-green-900), var(--grt-green-950));
  color: var(--grt-white);
}

.grt-intro__content {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 56px 0;
}

.grt-intro__copy {
  min-width: 0;
}

.grt-eyebrow {
  margin: 0 0 15px;
  color: var(--grt-gold);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.17em;
}

.grt-intro h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 5vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-wrap: balance;
}

.grt-intro__purpose,
.grt-intro__supporting {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.grt-intro__purpose {
  margin: 27px 0 0;
  font-size: 1.08rem;
}

.grt-intro__supporting {
  margin: 15px 0 0;
  font-size: 0.96rem;
}

.grt-intro__link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 0 21px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: var(--grt-white);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.grt-intro__link:hover,
.grt-intro__link:focus-visible {
  background: var(--grt-white);
  color: var(--grt-green-950);
}

.grt-intro__figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
}

.grt-intro__image {
  display: block;
  width: 100%;
  height: auto;
}

.grt-intro__figure figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(6, 23, 15, 0.82);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Generated archive frames */

.grt-archive-frame {
  display: flex;
  min-height: calc(100vh - var(--grt-header-height));
  flex-direction: column;
  background: var(--grt-cream);
}

.grt-archive-frame:nth-child(even) {
  background: var(--grt-white);
}

.grt-archive-frame__body {
  min-height: 0;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  padding: 24px 0;
}

.grt-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 2.1vw, 30px);
  align-items: start;
}

.grt-card-grid--single {
  grid-template-columns: minmax(0, 575px);
  justify-content: center;
}

.grt-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 58, 39, 0.14);
  border-radius: 22px;
  background: var(--grt-white);
  box-shadow: 0 18px 42px rgba(6, 23, 15, 0.13);
}

.grt-archive-frame:nth-child(even) .grt-card {
  background: var(--grt-cream);
}

.grt-card__image {
  width: min(100%, 457px);
  height: auto;
  margin-right: auto;
  margin-left: auto;
}

.grt-card__body {
  padding: 20px 22px 22px;
}

.grt-card__meta {
  margin: 0;
  color: var(--grt-gold-dark);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.grt-card h2 {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 2.2vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.grt-card__partner {
  margin: 7px 0 0;
  color: var(--grt-green-800);
  font-size: 0.78rem;
  font-weight: 800;
}

.grt-card__summary {
  margin: 13px 0 0;
  color: var(--grt-muted);
  font-size: 0.84rem;
  line-height: 1.48;
}

.grt-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 14px 0 0;
}

.grt-card__facts div {
  min-width: 0;
}

.grt-card__facts dt,
.grt-card__subjects h3 {
  margin: 0;
  color: var(--grt-green-800);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  line-height: 1.35;
  text-transform: uppercase;
}

.grt-card__facts dd {
  margin: 4px 0 0;
  color: var(--grt-muted);
  font-size: 0.78rem;
  line-height: 1.42;
}

.grt-card__subjects {
  margin-top: 14px;
}

.grt-card__subjects ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 22px;
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--grt-muted);
  font-size: 0.76rem;
  line-height: 1.38;
}

.grt-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.grt-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--grt-green-800);
  font-size: 0.72rem;
  font-weight: 850;
  text-decoration: none;
}

.grt-button--primary {
  border-color: var(--grt-gold);
  background: var(--grt-gold);
  color: var(--grt-green-950);
}

.grt-button--secondary,
.grt-button--detail {
  color: var(--grt-green-800);
}

.grt-button:hover,
.grt-button:focus-visible {
  border-color: var(--grt-green-950);
  background: var(--grt-green-950);
  color: var(--grt-white);
}

/* Compact footer inside the final archive frame */

.grt-footer {
  flex: 0 0 64px;
  height: 64px;
  background: var(--grt-green-950);
  color: var(--grt-white);
}

.grt-footer__inner {
  width: min(var(--grt-content-width), calc(100% - 48px));
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

.grt-footer strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 500;
}

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

.grt-footer a {
  color: var(--grt-gold);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

.grt-footer a:hover,
.grt-footer a:focus-visible {
  color: var(--grt-white);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* Desktop snap behavior */

@media (min-width: 1000px) {
  html {
    scroll-snap-type: y mandatory;
  }

  .grt-intro__content {
    max-width: calc(100% - 48px);
  }

  .grt-intro,
  .grt-archive-frame {
    height: calc(100vh - var(--grt-header-height));
    min-height: calc(100vh - var(--grt-header-height));
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .grt-archive-frame,
  .grt-archive-frame:nth-child(even) {
    background: var(--grt-cream);
  }

  .grt-archive-frame .grt-card-grid--single {
    grid-template-columns: minmax(0, 1140px);
    justify-content: center;
  }

  .grt-archive-frame .grt-card {
    display: grid;
    grid-template-columns: 510px minmax(0, 1fr);
    gap: 52px;
    align-items: center;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .grt-archive-frame:nth-child(even) .grt-card {
    background: transparent;
  }

  .grt-archive-frame .grt-card__image {
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(6, 23, 15, 0.14);
  }

  .grt-archive-frame .grt-card__body {
    min-width: 0;
    padding: 0;
  }

  .grt-archive-frame .grt-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .grt-archive-frame .grt-button--detail {
    grid-column: 1 / -1;
    border-color: var(--grt-gold);
    background: var(--grt-gold);
    color: var(--grt-green-950);
  }

  .grt-archive-frame .grt-card__actions .grt-button--primary {
    border-color: var(--grt-green-800);
    background: transparent;
    color: var(--grt-green-800);
  }

  .grt-archive-frame .grt-card__actions .grt-button--secondary {
    border-color: var(--grt-gold);
    background: var(--grt-gold);
    color: var(--grt-green-950);
  }

  .grt-archive-frame .grt-card__actions .grt-button:hover,
  .grt-archive-frame .grt-card__actions .grt-button:focus-visible {
    border-color: var(--grt-green-950);
    background: var(--grt-green-950);
    color: var(--grt-white);
  }
}

@media (min-width: 1200px) {
  .grt-intro__content {
    width: clamp(1140px, calc(27vw + 771px), 1200px);
    grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
  }
}

@media (min-width: 1000px) and (max-height: 780px) {
  .grt-intro__content {
    padding: 30px 0;
  }

  .grt-intro h1 {
    font-size: clamp(3.5rem, 4.6vw, 4.35rem);
  }

  .grt-intro__purpose {
    margin-top: 20px;
    font-size: 0.98rem;
  }

  .grt-intro__supporting {
    margin-top: 11px;
    font-size: 0.88rem;
  }

  .grt-intro__link {
    min-height: 44px;
    margin-top: 20px;
  }

  .grt-archive-frame__body {
    padding: 14px 0;
  }

  .grt-card__summary {
    margin-top: 9px;
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .grt-card__facts,
  .grt-card__subjects {
    margin-top: 10px;
  }

  .grt-card__actions {
    margin-top: 11px;
  }

  .grt-button {
    min-height: 38px;
  }

  .grt-footer {
    flex-basis: 60px;
    height: 60px;
  }
}

@media (min-width: 1000px) and (max-height: 825px) {
  .grt-archive-frame__body {
    padding: 14px 0;
  }

  .grt-archive-frame .grt-card-grid--single {
    grid-template-columns: minmax(0, 1100px);
  }

  .grt-archive-frame .grt-card {
    grid-template-columns: 500px minmax(0, 1fr);
    gap: 48px;
  }

  .grt-archive-frame .grt-card__summary {
    margin-top: 9px;
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .grt-archive-frame .grt-card__facts,
  .grt-archive-frame .grt-card__subjects {
    margin-top: 10px;
  }

  .grt-archive-frame .grt-card__actions {
    margin-top: 11px;
  }

  .grt-archive-frame .grt-button {
    min-height: 38px;
  }

  .grt-archive-frame .grt-footer {
    flex-basis: 60px;
    height: 60px;
  }
}

@media (min-width: 1000px) and (max-height: 700px) {
  .grt-archive-frame .grt-card-grid--single {
    grid-template-columns: minmax(0, 1100px);
  }

  .grt-archive-frame .grt-card {
    grid-template-columns: 500px minmax(0, 1fr);
    gap: 48px;
  }

  .grt-archive-frame .grt-card__image {
    width: 100%;
    height: auto;
  }

  .grt-archive-frame .grt-card__body {
    padding: 0;
  }

  .grt-archive-frame .grt-card h2 {
    margin-top: 6px;
    font-size: 1.75rem;
    line-height: 1;
  }

  .grt-archive-frame .grt-card__partner {
    margin-top: 5px;
  }

  .grt-archive-frame .grt-card__summary {
    margin-top: 7px;
    line-height: 1.35;
  }

  .grt-archive-frame .grt-card__facts,
  .grt-archive-frame .grt-card__subjects {
    margin-top: 7px;
  }

  .grt-archive-frame .grt-card__facts dd {
    margin-top: 3px;
  }

  .grt-archive-frame .grt-card__subjects ul {
    gap: 2px 22px;
    margin-top: 4px;
  }

  .grt-archive-frame .grt-card__actions {
    gap: 8px;
    margin-top: 8px;
  }

  .grt-archive-frame .grt-button--detail {
    grid-column: 1 / -1;
  }

  .grt-archive-frame .grt-button {
    min-height: 36px;
  }
}

/* Natural tablet and mobile flow */

@media (max-width: 999px) {
  html {
    scroll-snap-type: none;
  }

  .grt-header {
    height: auto;
    min-height: 76px;
    flex-wrap: wrap;
    padding: 12px 24px;
  }

  .grt-intro,
  .grt-archive-frame {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .grt-intro__content {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 76px 0;
  }

  .grt-intro__figure {
    width: 100%;
  }

  .grt-archive-frame__body {
    padding: 62px 0;
  }

  .grt-card-grid,
  .grt-card-grid--single {
    grid-template-columns: minmax(0, 1fr);
  }

  .grt-card__subjects ul {
    grid-template-columns: 1fr;
  }

  .grt-card__image {
    width: 100%;
    height: auto;
  }

  .grt-footer {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 26px 24px;
  }

  .grt-footer__inner {
    width: min(var(--grt-content-width), 100%);
    height: auto;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 20px;
    margin: 0 auto;
  }

  .grt-footer strong {
    display: block;
  }

  .grt-footer nav {
    width: 100%;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 12px;
    margin: 0;
    padding: 0;
  }

  .grt-footer a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
  }
}

@media (max-width: 620px) {
  .grt-shell {
    width: calc(100% - 38px);
  }

  .grt-header {
    gap: 12px;
    padding: 11px 19px;
  }

  .grt-brand strong {
    font-size: 1.18rem;
  }

  .grt-header__nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .grt-header__nav a {
    font-size: 0.7rem;
  }

  .grt-header__nav .grt-header__button {
    min-height: 36px;
    padding: 0 13px;
  }

  .grt-intro__content {
    padding: 60px 0 66px;
  }

  .grt-intro h1 {
    font-size: clamp(3.1rem, 15vw, 4.4rem);
  }

  .grt-intro__purpose {
    font-size: 1rem;
  }

  .grt-intro__link {
    width: 100%;
  }

  .grt-archive-frame__body {
    padding: 46px 0;
  }

  .grt-card__body {
    padding: 20px 22px 23px;
  }

  .grt-card__facts {
    grid-template-columns: 1fr;
  }

  .grt-card__actions {
    display: grid;
  }

  .grt-button {
    width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }
}
