/* ==========================================================
   main.css — design tokens, reset, layout, nav, footer
   ========================================================== */

/* --- Design tokens --------------------------------------- */
:root {
  --color-navy:   #1B3A6B;
  --color-dark:   #0F1F3D;
  --color-accent: #E05C1A;
  --color-gold:   #C49A2A;
  --color-bg:     #F7F4EE;
  --color-white:  #FFFFFF;
  --color-ink:    #1A1A1A;
  --color-muted:  #6B6560;
  --color-border: #DDD8CE;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --max-width:  1200px;
  --nav-height: 64px;
  --radius:     4px;
  --shadow-sm:  0 1px 3px rgba(27, 58, 107, 0.10);
  --shadow-md:  0 4px 16px rgba(27, 58, 107, 0.14);
}

/* --- Reset ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img        { max-width: 100%; height: auto; display: block; }
a          { color: inherit; text-decoration: none; }
ul, ol     { list-style: none; }
button     { cursor: pointer; border: none; background: none; font: inherit; }
fieldset   { border: none; padding: 0; }

/* --- Container ------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px)  { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

/* --- Typography ------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.25;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem);  font-weight: 700; }
h2 { font-size: clamp(1.4rem,  3vw, 2rem);     font-weight: 600; }
h3 { font-size: clamp(1.1rem,  2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

p             { margin-block-end: 1rem; }
p:last-child  { margin-block-end: 0; }
.text-muted   { color: var(--color-muted); }
.text-mono    { font-family: var(--font-mono); font-size: 0.875rem; }
.text-center  { text-align: center; }

/* --- Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border: 1.5px solid var(--color-accent);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: #c4511a;
  border-color: #c4511a;
  box-shadow: 0 2px 8px rgba(224, 92, 26, 0.30);
  outline: none;
}
.btn-outline {
  border: 1.5px solid var(--color-navy);
  color: var(--color-navy);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--color-navy);
  color: var(--color-white);
  outline: none;
}

/* --- Site Header / Nav ----------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  height: var(--nav-height);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  position: relative;
}
.site-logo {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.site-logo .logo-text   { color: var(--color-navy); }
.site-logo .logo-accent { color: var(--color-accent); }

/* Nav links — hidden on mobile, shown on desktop */
.nav-links {
  display: none;
  flex: 1;
  gap: 1.5rem;
}
.nav-links li a {
  font-size: 0.9375rem;
  color: var(--color-ink);
  padding-block: 0.25rem;
  transition: color 0.15s;
}
.nav-links li a:hover,
.nav-links li a:focus-visible {
  color: var(--color-accent);
  outline: none;
}
.nav-cta { margin-inline-start: auto; }

/* Hamburger button */
.nav-toggle {
  margin-inline-start: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger          { position: relative; }
.hamburger::before  { content: ''; position: absolute; top: -6px; }
.hamburger::after   { content: ''; position: absolute; top:  6px; }

.nav-toggle[aria-expanded="true"] .hamburger            { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before    { transform: rotate(45deg)  translate(4px, 4px); }
.nav-toggle[aria-expanded="true"] .hamburger::after     { transform: rotate(-45deg) translate(4px, -4px); }

/* Mobile nav overlay */
body.nav-open .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-md);
  z-index: 99;
}
body.nav-open .nav-cta { display: none; }

@media (min-width: 768px) {
  .nav-toggle          { display: none; }
  .nav-links           { display: flex; }
  .nav-cta             { display: inline-flex; margin-inline-start: auto; }
  body.nav-open .nav-cta { display: inline-flex; }
}

/* --- Site Footer ----------------------------------------- */
.site-footer {
  background: var(--color-dark);
  color: var(--color-white);
  margin-top: 4rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-block: 3rem;
}
@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 2fr;
    align-items: start;
  }
}
.footer-brand .site-logo {
  color: var(--color-white);
  margin-block-end: 0.75rem;
}
.footer-brand .logo-text   { color: var(--color-white); }
.footer-brand .logo-accent { color: var(--color-accent); }
.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.60);
  max-width: 30ch;
  line-height: 1.5;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.footer-nav a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.15s;
}
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--color-accent);
  outline: none;
}
.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  margin-block-end: 0.5rem;
}
.footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.30);
  line-height: 1.55;
}

/* --- Site Main ------------------------------------------- */
.site-main {
  min-height: 60vh;
  padding-block: 2rem;
}
.entry {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.entry-title a:hover { color: var(--color-accent); }
