/* Corona Muralis / Shepherd's Field — military + American static shell */

:root {
  --ink: #0f1210;
  --ink-soft: #1a1f1c;
  --panel: #141916;
  --panel-2: #1c2320;
  --bone: #e8e2d4;
  --bone-dim: #c4bcab;
  --muted: #9a9386;
  --gold: #c9a227;
  --gold-soft: #d4b84a;
  --bronze: #8a6f3a;
  --olive: #3d4a35;
  --olive-deep: #2a3326;
  --white: #f7f4ec;
  --line: rgba(201, 162, 39, 0.35);
  --line-soft: rgba(232, 226, 212, 0.12);
  --max: 1100px;
  --header-h: 4.25rem;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--bone);
  background: var(--ink);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--gold-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--white);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 1000;
  font-weight: 700;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 18, 16, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--bone);
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--gold);
  color: var(--white);
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem 1.35rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--bone-dim);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-soft);
}

.site-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.15rem;
}

/* —— Layout —— */
main {
  flex: 1;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
}

.section--tight {
  padding: 2.5rem 0;
}

.section--panel {
  background: var(--panel);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section--olive {
  background: linear-gradient(180deg, var(--olive-deep) 0%, var(--ink-soft) 100%);
  border-top: 1px solid var(--line-soft);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section h2 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.12rem;
  color: var(--bone-dim);
  max-width: 42rem;
}

.prose p + p {
  margin-top: 1rem;
}

.prose ul {
  margin: 1rem 0 0 1.15rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.gold-rule {
  width: 3.5rem;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1rem 0 1.25rem;
  border: 0;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  background: var(--ink) center / cover no-repeat;
  border-bottom: 3px solid var(--gold);
}

.hero--home {
  background-image:
    linear-gradient(
      180deg,
      rgba(15, 18, 16, 0.35) 0%,
      rgba(15, 18, 16, 0.55) 40%,
      rgba(15, 18, 16, 0.92) 100%
    ),
    url("../assets/brand/hero-sunset-overlook.jpg");
  background-position: center 30%;
}

.hero-inner {
  width: 100%;
  /* horizontal padding must stay — this rule used to zero it out on mobile */
  padding: 3.5rem 1.25rem 3rem;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 7vw, 3.15rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  letter-spacing: 0.01em;
  max-width: 16ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-tag {
  margin-top: 0.85rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--gold-soft);
  font-weight: 600;
  letter-spacing: 0.04em;
  max-width: 36rem;
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-soft);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--white);
  background: rgba(201, 162, 39, 0.08);
}

/* —— Values strip —— */
.values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0;
  list-style: none;
  padding: 1.1rem 1rem;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line-soft);
}

.values li {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  padding: 0.35rem 0.9rem;
}

.values li:not(:last-child)::after {
  content: "·";
  margin-left: 0.9rem;
  color: var(--gold);
}

/* —— Quote —— */
.principle {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.principle blockquote {
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--white);
  font-style: normal;
}

.principle cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* —— Mission cards / list —— */
.mission-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

@media (min-width: 720px) {
  .mission-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.dedicate-list {
  list-style: none;
  margin-top: 1.25rem;
  display: grid;
  gap: 0.55rem;
}

.dedicate-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--bone-dim);
  font-size: 0.98rem;
}

.dedicate-list li::before {
  content: "";
  flex: 0 0 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.3);
}

.plate-frame {
  border: 1px solid var(--line);
  background: var(--ink);
  padding: 0.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.plate-frame img {
  width: 100%;
}

.plate-caption {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.04em;
}

/* —— Split (about) —— */
.page-hero {
  padding: 2.75rem 0 2rem;
  background:
    linear-gradient(180deg, var(--panel) 0%, var(--ink) 100%);
  border-bottom: 1px solid var(--line-soft);
}

.page-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
}

.page-hero .lead {
  margin-top: 0.75rem;
}

.two-col {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  padding: 1.5rem 1.35rem;
  height: 100%;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold-soft);
  margin-bottom: 0.65rem;
  letter-spacing: 0.02em;
}

.card p {
  color: var(--bone-dim);
  font-size: 0.98rem;
}

.card .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* —— Contact —— */
.contact-list {
  list-style: none;
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
  max-width: 28rem;
}

.contact-list li {
  margin: 0;
}

.contact-list a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--bone);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.contact-list a:hover {
  color: var(--gold-soft);
}

.contact-list a:hover .contact-addr {
  color: var(--gold-soft);
}

.contact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-addr {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: inherit;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 36rem;
}

/* —— Footer —— */
.site-footer {
  margin-top: auto;
  background: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding: 2rem 0 1.5rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 1.25rem;
}

.footer-brand {
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--white);
}

.footer-tag {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 32rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.footer-meta a {
  color: var(--bone-dim);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--gold-soft);
}

.stars {
  color: var(--gold);
  letter-spacing: 0.35em;
  font-size: 0.7rem;
  margin-bottom: 0.5rem;
}

/* —— Mobile nav —— */
@media (max-width: 720px) {
  body {
    font-size: 1rem;
  }

  .hero {
    min-height: min(72vh, 560px);
  }

  .hero-inner {
    padding-top: 2.5rem;
    padding-bottom: 2.25rem;
    padding-left: max(1.35rem, env(safe-area-inset-left));
    padding-right: max(1.35rem, env(safe-area-inset-right));
  }

  .hero-tag {
    max-width: 100%;
  }

  .section {
    padding: 2.5rem 0;
  }

  .wrap {
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
  }

  .brand-mark {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .header-inner {
    position: relative;
  }

  .values li:not(:last-child)::after {
    display: none;
  }

  .values {
    justify-content: flex-start;
  }

  .values li {
    border: 1px solid var(--line-soft);
    margin: 0.2rem;
  }
}
