/* USS Bon Homme Richard CV-31 - shared styles
   page-specific styles live in each file's own <style> block

   1. tokens
   2. reset & base
   3. type utilities
   4. nav
   5. footer
   6. shared components
   7. responsive */


/* 1. tokens */
:root {
  /* palette */
  --white:       #fafaf8;
  --off:         #f2f2ef;
  --off-dark:    #0b1d30;   /* footer bg */
  --border:      #e4e4e0;
  --border-mid:  #ccccc6;

  --navy:        #0b1d30;
  --navy-mid:    #132840;
  --navy-pale:   #e8eef5;

  --text:        #0a0a09;
  --text-2:      #2e2e28;
  --text-3:      #72726a;   /* muted */

  /* typography */
  --sans:  'DM Sans', sans-serif;
  --serif: 'DM Serif Display', serif;

  /* spacing */
  --gap-xs:  0.5rem;
  --gap-sm:  1rem;
  --gap-md:  2rem;
  --gap-lg:  3.5rem;
  --gap-xl:  5.5rem;

  /* layout */
  --max-w:   1140px;
  --nav-h:   56px;
}


/* 2. reset & base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }


/* 3. type utilities */
.label {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.75rem;
}
.label--navy { color: var(--navy); }

.h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1.1;
  color: var(--text);
}
.h2 em { font-style: italic; }

.lead {
  font-size: 1.06rem;
  color: var(--text-2);
  line-height: 1.8;
  max-width: 620px;
}

.rule { border: none; border-top: 1px solid var(--border); margin: 0; }

.rule--navy {
  border-top: 2px solid var(--navy);
  width: 32px;
  margin-bottom: 1.25rem;
}

.tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--border-mid);
  color: var(--text-3);
  border-radius: 2px;
}
.tag--navy { border-color: var(--navy); color: var(--navy); }

.accession {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
}
.arrow-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.arrow-link::after { content: '→'; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-3);
  margin-bottom: 0.5rem;
}
.breadcrumb a { color: var(--text-3); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--navy); }

.divider-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: var(--gap-lg) 0;
}
.divider-label::before,
.divider-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider-label span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}


/* 4. nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 30px;
  height: 30px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-mark span {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: #fff;
}

.nav-logo-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-logo-hull {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover { background: var(--off); color: var(--text); }
.nav-links a.nav-active { color: var(--navy); font-weight: 600; }

.nav-archive {
  margin-left: 0.4rem;
  background: var(--navy) !important;
  color: #fff !important;
  border-radius: 4px;
  font-weight: 600 !important;
  padding: 0.4rem 0.9rem !important;
}
.nav-archive:hover { background: var(--navy-mid) !important; }


/* 5. footer */
.footer {
  background: var(--off-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--gap-md) 2rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.25rem;
}

.footer-links a {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.5);
}
.footer-links a:hover { color: #fff; }

.footer-copy {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
  line-height: 1.6;
}


/* 6. shared components */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.78rem 1.6rem;
  border-radius: 4px;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-mid); }

.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-ghost-dark {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.2); }

.btn-sm { font-size: 0.72rem; padding: 0.55rem 1.1rem; }

/* Section layout */
.section { padding: var(--gap-xl) 2rem; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section--off { background: var(--off); }
.section--border-top { border-top: 1px solid var(--border); }
.section--border-bottom { border-bottom: 1px solid var(--border); }
.section-header { margin-bottom: 3rem; }

/* Card */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.card:hover { border-color: var(--border-mid); }

/* Page hero (interior pages) */
.page-hero {
  margin-top: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 2.75rem 2rem 2.25rem;
}

.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-hero-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-3);
  margin-bottom: 0.5rem;
}
.page-hero-label a { color: var(--text-3); text-decoration: none; }
.page-hero-label a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

.page-hero-h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.page-hero-h1 em { font-style: italic; }

.page-hero-desc {
  font-size: 0.95rem;
  color: var(--text-2);
  max-width: 520px;
  line-height: 1.65;
}

/* full-bleed hero (used on history, air-wings, posts) */
.full-hero {
  margin-top: var(--nav-h);
  position: relative;
  height: 580px;
  overflow: hidden;
  background: var(--navy);
}

.full-hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.45;
}

.full-hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,   rgba(6,15,26,0.95) 0%, rgba(6,15,26,0.2) 60%, transparent 100%),
    linear-gradient(to right, rgba(6,15,26,0.5)  0%, transparent 55%);
}

.full-hero-body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 3.5rem 4rem;
  max-width: 860px;
}

.full-hero-kicker {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.full-hero-kicker::before {
  content: '';
  width: 18px; height: 1px;
  background: rgba(255,255,255,0.3);
  display: block;
  flex-shrink: 0;
}

.full-hero-h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.0;
  color: #fff;
  margin-bottom: 1.2rem;
}
.full-hero-h1 em { font-style: italic; }

.full-hero-desc {
  font-size: 1rem;
  color: rgba(192,192,192,0.55);
  max-width: 500px;
  line-height: 1.75;
}


/* Form elements */
.form-field { display: flex; flex-direction: column; gap: 0.3rem; }

.form-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.form-input,
.form-textarea,
.form-select {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus { border-color: var(--navy); }
.form-textarea { resize: vertical; min-height: 130px; }


/* 7. responsive */

/* hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  height: 1.5px;
  width: 22px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.5rem 1.5rem 1rem;
    z-index: 99;
  }
  .nav-links.nav-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.7rem 0.85rem; font-size: 0.9rem; }
  .nav-archive { margin-left: 0 !important; margin-top: 0.25rem; }
}

@media (max-width: 600px) {
  .section { padding: var(--gap-lg) 1.25rem; }
  .page-hero { padding: 2.25rem 1.25rem 1.75rem; }
  .full-hero { height: 460px; }
  .full-hero-body { padding: 0 1.5rem 2.5rem; }
}
