/* ============================================================
   Winkleman Travel — Shared Stylesheet
   ============================================================
   This stylesheet is loaded by all four pages:
     - index.html    (The Plates)
     - ads.html      (Print Ads)
     - eulogy.html   (Eulogy)
     - memories.html (Share a Memory)

   It contains everything that is visually consistent across the
   site: the color system, typography base, masthead, page nav,
   footer, and modal. Page-specific styles (the plate grid, the
   corkboard, the eulogy body, the memory form) live inline in
   each page's <style> block.

   To change a site-wide thing — a color, a font, footer behavior
   — change it here once and all four pages update.
   ============================================================ */


/* ============ COLOR SYSTEM + DESIGN TOKENS ================= */

:root {
  /* Ink — primary dark color. Matches logo icon #1b1464. */
  --ink:           #1b1464;
  --ink-soft:      #2d248a;       /* slightly lighter ink for secondary text */

  /* Paper — warm off-white backgrounds */
  --paper:         #F6F2E9;
  --paper-pure:    #FFFFFF;

  /* Gold — warm accent. gold-deep is the on-paper accent (drop caps,
     dots, kickers), gold is the brighter on-dark version (used in
     the colophon footer against the ink background). */
  --gold:          #E8B920;
  --gold-deep:     #9a6f09;

  /* Sky — matches logo background #b7e4f7. Used at full strength
     only in small doses. sky-wash is a very soft tint for alternating
     section backgrounds. */
  --sky:           #b7e4f7;
  --sky-wash:      #e6eeec;

  /* Rules — semi-transparent ink for dividers and hairlines */
  --rule:          rgba(27, 20, 100, 0.18);
  --rule-strong:   rgba(27, 20, 100, 0.55);
}


/* ============ RESET + BASE ================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Fraunces', Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  font-feature-settings: "ss01", "ss02";
  line-height: 1.5;
}

/* Subtle paper texture behind everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(27,20,100,0.015) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(27,20,100,0.015) 0%, transparent 40%);
  z-index: 1;
}


/* ============ ACCESSIBILITY BASE =========================== */

/* Keyboard-only focus rings. :focus-visible avoids cluttering mouse UX. */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link: hidden until focused, jumps keyboard users past the masthead */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* Visually-hidden class for screen-reader-only text */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ============ MASTHEAD ===================================== */

.masthead {
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  position: relative;
  z-index: 10;
}

.masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
  border-bottom: 1px solid var(--rule);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.masthead-top span { display: inline-flex; align-items: center; gap: 8px; }

.masthead-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 36px 40px 32px;
  gap: 40px;
}

.masthead-flank {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.7;
}

.masthead-flank.left { text-align: right; }
.masthead-flank.right { text-align: left; }
.masthead-flank em {
  font-style: normal;
  color: var(--ink);
  font-weight: 600;
}

.logo-block {
  text-align: center;
  position: relative;
}

/* The logo icon sits in a sky-blue chip above the wordmark.
   If you don't have a logo asset yet the placeholder keeps the
   space reserved so the layout doesn't jump when you add one. */
.logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  margin-bottom: 8px;
  background: var(--sky);
  border: 1.5px dashed var(--ink-soft);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.wordmark {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(52px, 7vw, 96px);
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--ink);
}
.wordmark em {
  font-style: italic;
  font-weight: 300;
}

.subtitle {
  margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.subtitle::before,
.subtitle::after {
  content: '—';
  margin: 0 14px;
  color: var(--gold-deep);
}


/* ============ PAGE NAV ===================================== */

.page-nav {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: relative;
  z-index: 9;
}

.page-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 0 40px;
  flex-wrap: wrap;
}

.page-nav a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 16px 22px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  position: relative;
}
.page-nav a + a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  background: var(--rule-strong);
  border-radius: 50%;
}
.page-nav a:hover { color: var(--ink); }
.page-nav a.current {
  color: var(--ink);
  border-bottom-color: var(--gold-deep);
}


/* ============ INTRO — the pale-blue reading strip ==========
   The intro section on every page sits in a soft sky-wash panel.
   This is where the logo's blue shows up site-wide, quietly, as
   an alternate section background. */

.intro-section {
  background: var(--sky-wash);
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 2;
}

.intro-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 40px 56px;
  text-align: center;
}

.intro-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 20px 0;
  line-height: 1;
}

.intro-inner h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(40px, 5.5vw, 56px);
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin-bottom: 22px;
  color: var(--ink);
}
.intro-inner h1 em {
  font-style: italic;
  color: var(--gold-deep);
}

.intro-inner p {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 300;
  font-variation-settings: "opsz" 36;
  color: var(--ink);
}
.intro-inner p em {
  font-style: italic;
  color: var(--ink);
}

/* Drop cap on any intro paragraph tagged with .drop-cap */
.drop-cap::first-letter {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 56px;
  float: left;
  line-height: 0.85;
  margin: 6px 10px 0 0;
  color: var(--gold-deep);
}


/* ============ COLOPHON FOOTER ============================== */

.colophon {
  border-top: 1px solid var(--ink);
  padding: 56px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  background: var(--ink);
  color: var(--paper);
}

.colophon h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 500;
}

.colophon p {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
  font-variation-settings: "opsz" 36;
}

.colophon .mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 2;
  letter-spacing: 0.05em;
}

.colophon-mark {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 26px;
  margin-bottom: 14px;
  color: var(--gold);
}

.foot-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.foot-nav a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 2px 0;
  display: inline-block;
  width: fit-content;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.foot-nav a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.foot-nav a.current { color: var(--gold); }
.foot-nav a.current::before { content: '→ '; }


/* ============ RESPONSIVE — shared ========================== */

@media (max-width: 780px) {
  .masthead-main { grid-template-columns: 1fr; text-align: center; }
  .masthead-flank { display: none; }
  .masthead-top { flex-direction: column; gap: 6px; text-align: center; }
  .page-nav-inner { padding: 0 12px; }
  .page-nav a { padding: 14px 12px; font-size: 9.5px; letter-spacing: 0.15em; }
  .page-nav a + a::before { display: none; }
  .intro-inner { padding: 48px 24px 32px; }
  .colophon { grid-template-columns: 1fr; padding: 40px 24px; gap: 32px; }
}
