/* ============================================================
   Moonlight Hawk Media — Phase 1 stylesheet
   Light editorial base, Midnight Navy / Muted Gold / Parchment,
   with restrained nocturnal (dark navy) accent sections.
   ============================================================ */

/* ---- Design tokens ---------------------------------------- */
:root {
  /* Palette (sampled to harmonize with the logo art) */
  --parchment:      #f5efe2;   /* page base */
  --parchment-soft: #efe7d5;   /* alt sections, cards */
  --parchment-deep: #e7dcc5;   /* hairlines on light */
  --navy:           #16293a;   /* primary text + dark sections */
  --navy-soft:      #22404f;   /* logo-matched mid navy */
  --gold:           #b48a45;   /* accent on light (decorative/hover) */
  --gold-text:      #856527;   /* accent that meets contrast as text on parchment */
  --gold-on-dark:   #c9a961;   /* accent on navy sections */
  --ink:            #1e2c38;   /* body copy */
  --ink-muted:      #55606b;   /* secondary copy */
  --parchment-on-dark: #f1ead9;
  --muted-on-dark:  #b9c2cb;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Layout */
  --measure: 42rem;         /* comfortable reading width */
  --container: 68rem;       /* max page width */
  --container-wide: 76rem;
  --space: clamp(1rem, 0.6rem + 1.6vw, 1.6rem);
  --radius: 4px;
}

/* ---- Reset / base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
  line-height: 1.7;
  font-weight: 380;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); }
p { margin: 0 0 1.1em; }

/* ---- Layout helpers --------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space); }
.container--wide { max-width: var(--container-wide); }
.measure { max-width: var(--measure); }
.section { padding-block: clamp(3rem, 2rem + 5vw, 6rem); }
.section--tight { padding-block: clamp(2.2rem, 1.6rem + 3vw, 3.6rem); }
.center { text-align: center; }
.stack > * + * { margin-top: 1.1rem; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--gold-text);
  margin: 0 0 0.9rem;
}
.section--dark .eyebrow { color: var(--gold-on-dark); }
.lead { font-size: 1.18em; color: var(--ink); }
.muted { color: var(--ink-muted); }
.rule {
  border: 0; height: 1px; background: var(--parchment-deep);
  max-width: 4rem; margin: 1.6rem 0;
}
.center .rule { margin-inline: auto; }

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.72em 1.5em;
  border-radius: var(--radius);
  border: 1px solid var(--navy);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--primary { background: var(--navy); color: var(--parchment-on-dark); }
.btn--primary:hover { background: var(--navy-soft); border-color: var(--navy-soft); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--parchment-on-dark); }
.section--dark .btn--primary { background: var(--gold-on-dark); border-color: var(--gold-on-dark); color: var(--navy); }
.section--dark .btn--primary:hover { background: #d8bd7e; border-color: #d8bd7e; }
.section--dark .btn--ghost { color: var(--parchment-on-dark); border-color: var(--parchment-on-dark); }
.section--dark .btn--ghost:hover { background: var(--parchment-on-dark); color: var(--navy); }

/* ---- Header / nav ----------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--parchment) 90%, transparent);
  backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 1px solid var(--parchment-deep);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand__mark { height: 40px; width: auto; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 560; color: var(--navy);
  font-size: 1.16rem; letter-spacing: 0.01em; line-height: 1;
  white-space: nowrap;
}
.brand__name small {
  display: block; font-family: var(--font-body); font-weight: 600;
  font-size: 0.6rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-text); margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.13em;
  font-weight: 600; color: var(--navy); text-decoration: none;
  padding: 0.4rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--gold); }
.nav a[aria-current="page"] { border-bottom-color: var(--navy); }

.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--parchment-deep);
  border-radius: var(--radius); padding: 0.5rem 0.6rem; cursor: pointer;
  color: var(--navy); font-size: 1rem; line-height: 1;
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav {
    position: absolute; inset: 68px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--parchment); border-bottom: 1px solid var(--parchment-deep);
    padding: 0.5rem var(--space) 1rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { width: 100%; padding: 0.75rem 0; border-bottom: 1px solid var(--parchment-deep); }
  .nav a:hover { border-bottom-color: var(--parchment-deep); color: var(--gold-text); }
}

/* ---- Hero ------------------------------------------------- */
.hero { padding-block: clamp(2.6rem, 1.6rem + 5vw, 5.5rem); text-align: center; }
.hero__logo {
  width: min(300px, 62vw); margin: 0 auto 1.6rem;
}
.hero h1 { max-width: 18ch; margin-inline: auto; }
.hero .lead { max-width: 40ch; margin-inline: auto; }
.hero__actions {
  display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap;
  margin-top: 1.8rem;
}

/* Restrained, non-looping entrance for the hawk emblem.
   JS adds .is-ready after load; reduced-motion users never animate. */
.hero__logo { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero__logo { opacity: 0; transform: translateY(14px) scale(0.985); }
  .js .hero__logo.is-ready {
    opacity: 1; transform: none;
    transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.6,.2,1);
  }
}

/* ---- Credibility / feature strips ------------------------- */
.creds {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
  border-top: 1px solid var(--parchment-deep);
  border-bottom: 1px solid var(--parchment-deep);
  padding-block: 1.8rem;
}
.creds__item { text-align: center; }
.creds__num { font-family: var(--font-display); font-size: 1.9rem; color: var(--navy); line-height: 1; }
.creds__label { font-size: 0.86rem; color: var(--ink-muted); margin-top: 0.35rem; }
@media (max-width: 620px) { .creds { grid-template-columns: 1fr; gap: 1rem; } }

/* Split (about strip) */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.6rem, 1rem + 3vw, 3.2rem); align-items: center; }
.split__media { text-align: center; }
.split__media img { width: min(260px, 70%); margin-inline: auto; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* ---- Cards / lists ---------------------------------------- */
.card {
  background: var(--parchment-soft);
  border: 1px solid var(--parchment-deep);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 1rem + 1.5vw, 2rem);
}
.topic-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.6rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.topic-list li { padding-left: 1.4rem; position: relative; color: var(--ink); }
.topic-list li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 8px; height: 8px; border: 1.5px solid var(--gold); border-radius: 50%;
}
@media (max-width: 560px) { .topic-list { grid-template-columns: 1fr; } }

.notice {
  background: var(--parchment-soft);
  border: 1px solid var(--parchment-deep);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}

/* ---- Dark (nocturnal) accent sections --------------------- */
.section--dark {
  background-color: var(--navy);
  background-image: radial-gradient(130% 100% at 82% -20%, #21384a 0, rgba(33,56,74,0) 58%);
  color: var(--parchment-on-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--parchment-on-dark); }
.section--dark p { color: var(--muted-on-dark); }
.section--dark a { color: var(--gold-on-dark); text-decoration-color: var(--gold-on-dark); }

/* ---- Newsletter block ------------------------------------- */
.signup { max-width: 34rem; margin-inline: auto; text-align: center; }
.signup__form {
  display: flex; gap: 0.6rem; margin-top: 1.3rem; flex-wrap: wrap; justify-content: center;
}
.signup__form input[type="email"] {
  flex: 1 1 15rem; min-width: 0;
  padding: 0.75em 1em; font-family: var(--font-body); font-size: 1rem;
  border-radius: var(--radius); border: 1px solid #3a5262;
  background: #10202e; color: var(--parchment-on-dark);
}
.signup__form input::placeholder { color: #8a99a5; }
.signup__note { font-size: 0.8rem; color: var(--muted-on-dark); margin-top: 0.9rem; }

/* Light-context form (contact) */
.form { max-width: 36rem; }
.form label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--navy); margin: 1rem 0 0.35rem; letter-spacing: 0.02em; }
.form input, .form textarea {
  width: 100%; padding: 0.7em 0.85em; font-family: var(--font-body); font-size: 1rem;
  border: 1px solid var(--parchment-deep); border-radius: var(--radius);
  background: #fffdf8; color: var(--ink);
}
.form input:focus, .form textarea:focus, .signup__form input:focus {
  outline: 2px solid var(--gold); outline-offset: 1px;
}
.form textarea { min-height: 8rem; resize: vertical; }
.form .btn { margin-top: 1.4rem; }

/* ---- Page header (interior pages) ------------------------- */
.page-head { padding-block: clamp(2.4rem, 1.6rem + 3vw, 4rem); border-bottom: 1px solid var(--parchment-deep); text-align: center; }
.page-head p { max-width: 46ch; margin-inline: auto; }

/* ---- Prose (bio / long text) ------------------------------ */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }

/* ---- Footer ----------------------------------------------- */
.site-footer { background: var(--navy); color: var(--muted-on-dark); padding-block: 3rem 2rem; }
.site-footer__top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 0.8rem; }
.footer-brand img { height: 54px; width: auto; }
.footer-brand__name { font-family: var(--font-display); color: var(--parchment-on-dark); font-size: 1.15rem; line-height: 1.1; }
.footer-brand__name small { display: block; font-family: var(--font-body); font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-on-dark); margin-top: 4px; }
.footer-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-nav a { color: var(--parchment-on-dark); text-decoration: none; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; }
.footer-nav a:hover { color: var(--gold-on-dark); }
.site-footer__bottom {
  margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid #2b4150;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--muted-on-dark);
}
.site-footer__bottom p { margin: 0; }

/* ---- Utilities -------------------------------------------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 0.75rem; top: -3rem; background: var(--navy); color: #fff;
  padding: 0.5rem 0.9rem; border-radius: var(--radius); z-index: 100; transition: top .15s ease;
}
.skip-link:focus { top: 0.75rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
