:root {
  color-scheme: dark;
  --ink: #071321;
  --ink-raised: #0c2034;
  --ink-soft: #102a42;
  --paper: #f4f7fb;
  --muted: #b1c1d1;
  --muted-dark: #7f95aa;
  --accent: #45c6f2;
  --accent-soft: rgba(69, 198, 242, 0.15);
  --line: rgba(180, 207, 230, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--ink);
  color: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 10%, rgba(69, 198, 242, 0.13), transparent 28rem),
    linear-gradient(145deg, #071321 0%, #0b1d31 58%, #091827 100%);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.4rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-150%);
}

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

.site-header,
main,
footer {
  width: min(100% - 3rem, 74rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 5.5rem;
  border-bottom: 1px solid var(--line);
}

nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.2rem);
}

nav a {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--paper);
}


nav .journal-nav-link {
  padding: 0.52rem 0.78rem;
  border: 1px solid rgba(69, 198, 242, 0.72);
  border-radius: 0.42rem;
  background: var(--accent-soft);
  color: var(--paper);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 0 0 1px rgba(69, 198, 242, 0.06);
}

nav .journal-nav-link:hover,
nav .journal-nav-link:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}


.identity-banner {
  width: min(calc(100vw - 2rem), 96rem);
  margin: clamp(1.5rem, 4vw, 3rem) 0 0 50%;
  transform: translateX(-50%);
  overflow: hidden;
  border: 1px solid rgba(69, 198, 242, 0.28);
  border-radius: 0.9rem;
  background: var(--ink-raised);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.22);
}

.identity-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(47rem, calc(100vh - 6.5rem));
  padding: clamp(4rem, 6vw, 5rem) 0 clamp(5rem, 11vw, 9rem);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 calc(50% - 50vw);
  background: url("hero-us-flag.webp") center bottom / cover no-repeat;
  opacity: 0.82;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 58rem;
}

.eyebrow {
  margin: 0 0 1.35rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

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

h1 {
  max-width: 14ch;
  margin-bottom: 1.8rem;
  font-size: clamp(3.1rem, 8vw, 7rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

h1 span {
  color: var(--muted);
}

.hero-intro {
  max-width: 43rem;
  margin-bottom: 2.2rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3.15rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #04121d;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.025);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0.65rem 1.5rem rgba(0, 0, 0, 0.22);
}

.section {
  padding: clamp(5rem, 10vw, 8.5rem) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2.25fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

h2 {
  max-width: 20ch;
  margin-bottom: 1.4rem;
  font-size: clamp(2.1rem, 4.5vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--line);
}

.principles article {
  min-height: 20rem;
  padding: clamp(1.5rem, 3vw, 2.3rem);
  background: rgba(7, 19, 33, 0.88);
}

.principle-number {
  display: block;
  margin-bottom: 5.5rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h3 {
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
}

.principles p,
.flagship-copy p,
.contact > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.flagship-card {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 4.8rem);
  border: 1px solid rgba(69, 198, 242, 0.38);
  border-radius: 0.9rem;
  background:
    linear-gradient(135deg, rgba(69, 198, 242, 0.11), transparent 48%),
    var(--ink-raised);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.18);
}

.flagship-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0.3rem var(--accent-soft);
}

.vc-overview {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: end;
}

.vc-overview h2 {
  max-width: 14ch;
  margin-bottom: 0;
  font-size: clamp(2.45rem, 5vw, 4.6rem);
}

.veteran-origin {
  margin: 1.5rem 0 0;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.vc-lede {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.vc-lede p:last-child {
  margin-bottom: 0;
}

.vc-boundary {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted-dark);
  font-size: 0.9rem;
}

.vc-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.vc-pillar {
  padding: clamp(2rem, 4vw, 3.25rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 19, 33, 0.34);
}

.vc-step {
  margin-bottom: 2.5rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.vc-pillar h3,
.vc-section-heading h3,
.vc-continuity h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.vc-pillar > p:not(.vc-step),
.vc-section-heading > p:not(.eyebrow),
.vc-level p,
.vc-framework-note,
.vc-continuity article > p:not(.eyebrow):not(.vc-closing) {
  color: var(--muted);
  line-height: 1.75;
}

.vc-pillar p:last-child {
  margin-bottom: 0;
}

.vc-emphasis {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--paper) !important;
  font-weight: 650;
}

.vc-framework {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-bottom: 1px solid var(--line);
}

.vc-section-heading {
  max-width: 50rem;
  margin-bottom: 2.5rem;
}

.vc-section-heading h3 {
  max-width: 22ch;
}

.vc-levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--line);
}

.vc-level {
  padding: clamp(1.7rem, 3vw, 2.4rem);
  background: rgba(7, 19, 33, 0.88);
}

.vc-level-critical {
  background:
    linear-gradient(145deg, rgba(69, 198, 242, 0.1), transparent 70%),
    rgba(7, 19, 33, 0.9);
}

.vc-level-number {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(69, 198, 242, 0.45);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.vc-level h4 {
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
}

.vc-level p {
  margin-bottom: 0;
  font-size: 0.93rem;
}

.vc-framework-note {
  max-width: 52rem;
  margin: 1.5rem 0 0;
  color: var(--muted-dark);
  font-size: 0.9rem;
}

.vc-continuity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 7vw, 6rem);
  padding-top: clamp(4rem, 8vw, 7rem);
}

.vc-continuity article > p:last-child {
  margin-bottom: 0;
}

.vc-success {
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(69, 198, 242, 0.28);
  border-radius: 0.7rem;
  background: rgba(69, 198, 242, 0.06);
}

.vc-closing {
  margin: 1.5rem 0 0;
  color: var(--paper);
  font-size: 1.05rem;
  font-weight: 800;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2rem, 7vw, 6rem);
}

.about-grid h2 {
  margin-bottom: 0;
}

.about-copy {
  align-self: end;
}

.about-copy p {
  color: var(--muted);
  line-height: 1.75;
}

.about-copy p:last-child {
  margin-bottom: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.contact {
  max-width: 55rem;
  margin-left: 0;
}

.contact > p:not(.eyebrow) {
  max-width: 45rem;
  font-size: 1.08rem;
}

.text-link {
  display: inline-flex;
  gap: 0.6rem;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 750;
  text-underline-offset: 0.3rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted-dark);
  font-size: 0.82rem;
  line-height: 1.7;
}

footer div,
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}

footer strong {
  color: var(--paper);
}

@media (max-width: 48rem) {
  nav {
    align-items: center;
    gap: 0.55rem;
  }

  nav a {
    font-size: 0.8rem;
  }

  nav .journal-nav-link {
    padding: 0.48rem 0.62rem;
    font-size: 0.84rem;
  }

  .site-header,
  main,
  footer {
    width: min(100% - 2rem, 74rem);
  }

  .site-header {
    min-height: 4.75rem;
  }

  nav a:nth-child(1),
  nav a:nth-child(2) {
    display: none;
  }

  .identity-banner {
    width: calc(100vw - 1rem);
    border-radius: 0.5rem;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background-position: 68% bottom;
    opacity: 0.58;
  }

  .section-heading,
  .vc-overview,
  .vc-continuity,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .principles,
  .vc-pillars,
  .vc-levels {
    grid-template-columns: 1fr;
  }

  .vc-pillars {
    border-top: 1px solid var(--line);
  }

  .vc-pillar {
    padding-inline: 1.4rem;
  }

  .principles article {
    min-height: auto;
  }

  .principle-number {
    margin-bottom: 3rem;
  }

  footer {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* Journal */
.journal-main {
  min-height: calc(100vh - 12rem);
}

.journal-intro {
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
}

.journal-intro h1 {
  max-width: 12ch;
  margin-bottom: 1.8rem;
}

.journal-lede {
  max-width: 46rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.75;
}

.journal-placeholder {
  margin-bottom: clamp(5rem, 10vw, 8rem);
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid rgba(69, 198, 242, 0.32);
  border-radius: 0.9rem;
  background:
    linear-gradient(135deg, rgba(69, 198, 242, 0.09), transparent 52%),
    var(--ink-raised);
}

.journal-placeholder h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.journal-placeholder p {
  max-width: 44rem;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

nav a[aria-current="page"] {
  color: var(--paper);
}

.journal-entries {
  margin-bottom: clamp(5rem, 10vw, 8rem);
  border-top: 1px solid var(--line);
}

.journal-entries-heading {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.journal-entries-heading h2 {
  margin-bottom: 1rem;
}

.journal-entries-heading > p:not(.eyebrow) {
  max-width: 46rem;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.journal-entry {
  display: grid;
  grid-template-columns: minmax(10rem, 0.7fr) 2fr;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
}

.journal-entry-meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.journal-entry-meta time {
  color: var(--paper);
  font-weight: 750;
}

.journal-entry-meta span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.journal-entry h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  letter-spacing: -0.025em;
}

.journal-entry p {
  max-width: 48rem;
  color: var(--muted);
  line-height: 1.75;
}

.journal-entry .journal-significance {
  margin-bottom: 0;
  color: var(--muted-dark);
}

@media (max-width: 48rem) {
  .journal-entry {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}


/* Veteran’s Companion product identity */
.vc-brand {
  max-width: 34rem;
  margin: 0 0 clamp(2rem, 4vw, 3.25rem);
  padding: clamp(0.35rem, 1vw, 0.75rem);
  border-radius: 0.75rem;
  background: #000;
}

.vc-brand img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 48rem) {
  .vc-brand {
    width: min(100%, 28rem);
    margin-inline: auto;
  }
}
