:root {
  --paper: #f8eedb;
  --paper-deep: #edddc3;
  --paper-card: #fff4d9;
  --ink: #28201d;
  --ink-soft: #6b5646;
  --wood: #684c2e;
  --rule: #c7ad86;
  --coral: #c94e39;
  --coral-dark: #8d3328;
  --teal: #17655d;
  --teal-deep: #0e4843;
  --mustard: #eaa93c;
  --white: #fffaf0;
  --shadow: 0 16px 35px rgba(62, 39, 24, 0.17);
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-meta: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 255, 255, 0.8), transparent 24rem),
    linear-gradient(128deg, #f8eedb, #f2e2c8 52%, #f8eedb);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-170%);
  transition: transform 150ms ease;
}

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

/* ---- Header ---- */

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(86, 59, 39, 0.26);
  background: rgba(255, 249, 237, 0.94);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: min(1220px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
}

/* ---- Brand ---- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  margin-right: 0.55rem;
  background: var(--teal);
  color: var(--paper);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-suffix {
  color: var(--coral-dark);
  font-family: var(--font-meta);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* ---- Nav ---- */

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2.2vw, 1.65rem);
  margin-left: auto;
}

.primary-nav a {
  position: relative;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-nav a:hover {
  border-color: var(--coral);
  color: var(--coral-dark);
}

.nav-search {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(40, 32, 29, 0.5);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-search span {
  color: var(--coral);
  font-size: 1.05rem;
  line-height: 1;
}

.nav-search:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.mobile-nav {
  display: none;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 520px;
  overflow: hidden;
  background-color: #edcf9a;
  background-image: url("./assets/hero.png");
  background-position: 18% 14%;
  background-size: 150% auto;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(248, 238, 219, 0.97) 0%, rgba(248, 238, 219, 0.93) 28%, rgba(248, 238, 219, 0.42) 52%, rgba(248, 238, 219, 0.04) 72%),
    linear-gradient(0deg, rgba(248, 238, 219, 0.6), rgba(248, 238, 219, 0.14) 42%, transparent 64%);
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--coral) 0 35%, var(--mustard) 35% 64%, var(--teal) 64% 100%);
}

.hero__inner {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 79px 0 76px;
}

.hero__copy {
  max-width: 34rem;
  animation: rise-in 260ms ease both;
}

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: var(--coral-dark);
  font-family: var(--font-meta);
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow-rule {
  display: inline-block;
  width: 1.4rem;
  height: 2px;
  background: var(--coral);
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(3.4rem, 6vw, 5.8rem);
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.hero__lede {
  max-width: 28rem;
  margin-bottom: 1.65rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.55;
}

/* ---- Hero actions ---- */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(40, 32, 29, 0.55);
  background: rgba(255, 250, 240, 0.82);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

.hero-action:hover {
  background: var(--white);
}

.hero-action--primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.hero-action--primary:hover {
  background: var(--teal-deep);
}

/* Legacy search styles remain available for a future functional search. */

.hero-search {
  display: flex;
  max-width: 26rem;
  border: 1px solid rgba(40, 32, 29, 0.55);
  background: rgba(255, 250, 240, 0.85);
  box-shadow: 0 6px 16px rgba(40, 32, 29, 0.08);
}

.hero-search__input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.88rem;
}

.hero-search__input::placeholder {
  color: var(--ink-soft);
  opacity: 0.7;
}

.hero-search__input:focus {
  outline: none;
}

.hero-search:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px var(--teal);
}

.hero-search__button {
  flex: 0 0 auto;
  padding: 0.75rem 1.1rem;
  border: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 150ms ease;
}

.hero-search__button:hover {
  background: var(--teal-deep);
}

.hero-search__button span {
  margin-left: 0.4rem;
}

.hero__note {
  margin: 1.1rem 0 0;
  color: var(--wood);
  font-family: var(--font-meta);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

/* ---- Ticker ---- */

.ticker {
  background: var(--coral);
  color: #fff4dc;
}

.ticker__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: min(1220px, calc(100% - 48px));
  min-height: 46px;
  margin: 0 auto;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.ticker__remaining {
  opacity: 0.82;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.ticker__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.ticker__dot--pending {
  background: var(--mustard);
}

.ticker__dot--live {
  background: #7ee8b0;
}

.ticker__sep {
  opacity: 0.5;
  font-size: 0.55rem;
}

.ticker__link {
  margin-left: auto;
  color: inherit;
  text-underline-offset: 3px;
}

/* ---- Section layout ---- */

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

/* ---- Shelf ---- */

.shelf {
  padding: 80px 0 72px;
}

.shelf__heading {
  margin-bottom: 1.8rem;
}

.shelf__heading h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.shelf__intro {
  max-width: 41rem;
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.shelf-card {
  display: flex;
  flex-direction: column;
  min-height: 237px;
  padding: 1.4rem;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.shelf-card:hover {
  transform: translateY(-4px);
  box-shadow: 5px 6px 0 var(--ink);
}

.shelf-card--peach {
  background: #f5cec3;
}

.shelf-card--mint {
  background: #c9e4de;
}

.shelf-card--butter {
  background: #f7dda0;
}

.shelf-card small {
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shelf-card h3 {
  margin: 1.6rem 0 0.5rem;
  font-size: clamp(1.5rem, 2.5vw, 1.75rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.shelf-card p {
  margin: 0;
  color: #344245;
  font-size: 0.82rem;
  line-height: 1.45;
}

.shelf-card b {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
}

/* ---- Operations ---- */

.operations {
  padding: 68px 0 72px;
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
}

.ops__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.ops__heading h2 {
  max-width: 16ch;
  margin: 0.35rem 0 0;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.ops__intro {
  max-width: 260px;
  margin: 0 0 0.2rem;
  color: var(--ink-soft);
  font-size: 0.83rem;
  font-weight: 650;
  text-align: right;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.ops-card {
  position: relative;
  min-height: 244px;
  padding: 1.25rem 1.35rem 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(49, 31, 20, 0.45);
  box-shadow: var(--shadow);
}

.ops-card::after {
  position: absolute;
  right: -1.2rem;
  bottom: -3.2rem;
  z-index: 0;
  color: rgba(255, 250, 235, 0.16);
  font-family: var(--font-display);
  font-size: 12rem;
  font-weight: 700;
  letter-spacing: -0.16em;
  line-height: 1;
}

.ops-card--assault {
  background: linear-gradient(140deg, #c94e39, #a33b31);
  color: #fff8e9;
}

.ops-card--assault::after {
  content: "A";
}

.ops-card--defense {
  background: linear-gradient(140deg, #1a6d65, #11524c);
  color: #fff8e9;
}

.ops-card--defense::after {
  content: "S";
}

.ops-card__topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ops-stamp {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 250, 235, 0.7);
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.ops-card__kind {
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-align: right;
  text-transform: uppercase;
}

.ops-card h3 {
  position: relative;
  z-index: 1;
  margin: 2.5rem 0 0.5rem;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.ops-card p {
  position: relative;
  z-index: 1;
  max-width: 390px;
  margin-bottom: 1rem;
  font-size: 0.86rem;
  font-weight: 590;
  line-height: 1.5;
}

.operation-status {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.18rem;
  padding: 0.7rem 0;
  margin: 0 0 0.8rem;
  border-block: 1px solid rgba(255, 248, 233, 0.34);
  font-size: 0.65rem;
  line-height: 1.4;
}

.operation-status strong {
  font-size: 0.69rem;
  letter-spacing: 0.025em;
}

.operation-status span {
  color: rgba(255, 248, 233, 0.8);
}

.operation-status--live strong::before,
.operation-status--pending strong::before {
  display: inline-block;
  width: 0.46rem;
  height: 0.46rem;
  margin-right: 0.42rem;
  border-radius: 50%;
  content: "";
  vertical-align: 0.04rem;
}

.operation-status--live strong::before {
  background: #8de0b3;
}

.operation-status--pending strong::before {
  background: var(--mustard);
}

.card-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 0.65rem;
  color: inherit;
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

/* ---- Sources ---- */

.sources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto 64px;
  border: 1px solid #907858;
  background: #e8d5b6;
}

.source-panel {
  padding: 2.25rem;
  background: #2c3836;
  color: #fff8e9;
}

.section-kicker--light {
  color: #f1b14a;
}

.source-panel h2 {
  max-width: 390px;
  margin: 0.45rem 0 0.85rem;
  font-size: clamp(1.85rem, 3vw, 2.8rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.source-panel > p:last-child {
  max-width: 450px;
  margin-bottom: 0;
  color: #e8d8bc;
  font-size: 0.88rem;
  line-height: 1.55;
}

.source-defs {
  display: grid;
  align-content: center;
  gap: 0;
  margin: 0;
  padding: 1.25rem 2.25rem;
}

.source-defs div {
  padding: 0.85rem 0;
  border-bottom: 1px solid #b39770;
}

.source-defs div:last-child {
  border-bottom: 0;
}

.source-defs dt {
  margin-bottom: 0.22rem;
  color: var(--coral-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-defs dd {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 610;
  line-height: 1.45;
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.footer__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 2rem clamp(0, 2vw, 1rem) 2.5rem;
}

.brand--footer {
  color: var(--paper);
}

.brand-mark--footer {
  background: var(--coral);
}

.brand-suffix--footer {
  color: var(--mustard);
}

.footer__tagline {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer__disclaimer {
  max-width: 28rem;
  margin: 0;
  color: rgba(250, 234, 198, 0.6);
  font-size: 0.62rem;
  line-height: 1.55;
  text-align: right;
}

/* ---- Animation ---- */

@keyframes rise-in {
  from { transform: translateY(8px); }
  to { transform: translateY(0); }
}

/* ---- Mobile ---- */

@media (max-width: 760px) {
  .header-bar {
    width: min(100% - 32px, 550px);
    min-height: 65px;
    gap: 1rem;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-mark {
    width: 25px;
    height: 25px;
    margin-right: 0.4rem;
    font-size: 15px;
  }

  .brand-suffix {
    font-size: 0.62rem;
  }

  .primary-nav,
  .nav-search {
    display: none;
  }

  .mobile-nav {
    position: relative;
    display: block;
    margin-left: auto;
  }

  .mobile-nav summary {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.3rem;
    padding: 0.4rem 0.15rem 0.4rem 0.65rem;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav__label {
    font-family: var(--font-meta);
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-nav__icon {
    display: grid;
    gap: 0.28rem;
    width: 1.3rem;
  }

  .mobile-nav__icon i {
    display: block;
    height: 1px;
    background: var(--ink);
  }

  .mobile-nav nav {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.55rem);
    right: 0;
    display: grid;
    width: min(16rem, calc(100vw - 2.5rem));
    padding: 0.45rem;
    border: 1px solid var(--ink);
    background: var(--paper-card);
    box-shadow: 0 0.8rem 1.6rem rgba(40, 32, 29, 0.14);
  }

  .mobile-nav nav a {
    padding: 0.8rem 0.75rem;
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-nav nav a:hover,
  .mobile-nav nav a:focus-visible {
    background: var(--paper-deep);
  }

  .hero {
    min-height: 530px;
    background-position: 63% 8%;
    background-size: auto 185%;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(248, 238, 219, 0.95), rgba(248, 238, 219, 0.78) 57%, rgba(248, 238, 219, 0.28) 100%),
      linear-gradient(0deg, rgba(248, 238, 219, 0.76), rgba(248, 238, 219, 0.2) 46%, transparent 70%);
  }

  .hero__inner {
    width: min(100% - 32px, 550px);
    padding: 54px 0 60px;
  }

  .eyebrow {
    font-size: 0.59rem;
  }

  h1 {
    margin-bottom: 0.85rem;
    font-size: clamp(3rem, 14vw, 4.2rem);
  }

  .hero__lede {
    max-width: 22rem;
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
  }

  .hero-search {
    max-width: none;
  }

  .hero__note {
    color: #3f352c;
    font-size: 0.68rem;
    line-height: 1.45;
  }

  .ticker__inner {
    width: min(100% - 32px, 550px);
    min-height: 48px;
    gap: 0.65rem;
    font-size: 0.55rem;
    line-height: 1.35;
  }

  .ticker__link {
    display: none;
  }

  .section-wrap {
    width: min(100% - 32px, 550px);
  }

  .shelf {
    padding: 56px 0 52px;
  }

  .shelf__heading h2 {
    font-size: 2.6rem;
  }

  .shelf-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .shelf-card {
    min-height: 190px;
  }

  .shelf-card h3 {
    margin-top: 1rem;
  }

  .operations {
    padding: 52px 0 56px;
  }

  .ops__heading {
    display: block;
    margin-bottom: 1.2rem;
  }

  .ops__heading h2 {
    font-size: 2.4rem;
  }

  .ops__intro {
    margin-top: 0.7rem;
    font-size: 0.78rem;
    text-align: left;
  }

  .ops-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .ops-card {
    min-height: 200px;
    padding: 1rem 1.05rem 1.15rem;
  }

  .ops-card h3 {
    margin-top: 1.8rem;
    font-size: 2.3rem;
  }

  .ops-card p {
    max-width: 300px;
    font-size: 0.78rem;
  }

  .sources {
    grid-template-columns: 1fr;
    width: min(100% - 32px, 550px);
    margin-bottom: 40px;
  }

  .source-panel {
    padding: 1.6rem;
  }

  .source-panel h2 {
    font-size: 2rem;
  }

  .source-defs {
    padding: 0.7rem 1.6rem;
  }

  .footer__inner {
    display: block;
    width: min(100% - 32px, 550px);
    padding: 1.8rem 0 2.2rem;
  }

  .footer__disclaimer {
    margin-top: 1.2rem;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-contrast: more) {
  .site-header {
    background: var(--paper);
  }

  .hero-search,
  .ops-card,
  .shelf-card {
    border-width: 2px;
  }
}
