/* =========================================================
   CRUISE WITH CON — Shared Design System
   Blueprint blue + brass/gold nautical accents
   ========================================================= */

:root {
  --ink: #0a1930;
  --ink-deep: #061020;
  --line: #3d6b9e;
  --line-pale: rgba(168, 197, 224, 0.16);
  --line-pale-strong: rgba(168, 197, 224, 0.28);
  --gold: #c9a24b;
  --gold-bright: #e8c874;
  --paper: #f4efe4;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Spectral', serif;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

a { color: inherit; }

/* ---------------------------------------------------------
   NAV — shared across every page
   --------------------------------------------------------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 5vw;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  mix-blend-mode: difference;
}
nav .wordmark {
  font-family: 'Fraunces', serif;
  font-size: 30px;              /* doubled per request */
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 500;
  text-decoration: none;
}
nav ul { list-style: none; display: flex; gap: 32px; }
nav a.navlink { color: inherit; text-decoration: none; opacity: 0.75; transition: opacity 0.25s ease; }
nav a.navlink:hover, nav a.navlink:focus-visible { opacity: 1; }
nav a.navlink[aria-current="page"] { opacity: 1; border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
nav a.navlink.nav-btn {
  opacity: 1;
  border: 1px solid var(--gold);
  padding: 8px 18px;
  border-radius: 3px;
  transition: background 0.2s ease, color 0.2s ease;
}
nav a.navlink.nav-btn:hover, nav a.navlink.nav-btn:focus-visible {
  background: var(--gold);
  color: var(--ink-deep);
}
nav a.navlink.nav-btn[aria-current="page"] { background: var(--gold); color: var(--ink-deep); border-bottom: 1px solid var(--gold); }

/* ---------------------------------------------------------
   PAGE HEADER — used on every interior page (not the hero)
   --------------------------------------------------------- */
.page-header {
  position: relative;
  padding: 180px 8vw 90px;
  border-bottom: 1px solid var(--line-pale-strong);
  background-image:
    linear-gradient(var(--line-pale) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-pale) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-header::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 70% at 30% 20%, transparent 30%, var(--ink) 100%);
  pointer-events: none;
}
.page-header .eyebrow {
  position: relative; z-index: 2;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 18px;
  display: block;
}
.page-header h1 {
  position: relative; z-index: 2;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1;
}
.page-header h1 em { font-style: italic; font-weight: 300; color: var(--gold-bright); }
.page-header .dek {
  position: relative; z-index: 2;
  max-width: 560px;
  margin-top: 22px;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(244,239,228,0.82);
}

main { position: relative; z-index: 1; }

/* ---------------------------------------------------------
   PLACEHOLDER MARKER — visual map of what's incomplete
   --------------------------------------------------------- */
.placeholder {
  position: relative;
  border: 1px dashed rgba(201, 162, 75, 0.55);
  background: rgba(201, 162, 75, 0.05);
  border-radius: 2px;
}
.placeholder::before {
  content: attr(data-placeholder);
  position: absolute;
  top: -11px; left: 14px;
  background: var(--ink);
  padding: 0 8px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

/* ---------------------------------------------------------
   SECTION LABELS
   --------------------------------------------------------- */
.label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
}

/* ---------------------------------------------------------
   HOME — latest log teaser
   --------------------------------------------------------- */
.latest-log {
  padding: 10vh 8vw 14vh;
  border-top: 1px solid var(--line-pale-strong);
  text-align: center;
}
.latest-log .label { margin-bottom: 22px; }
#latest-post-slot {
  max-width: 560px;
  margin: 0 auto;
}
#latest-post-slot a {
  text-decoration: none;
  display: block;
}
#latest-post-slot .post-date {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--line);
  margin-bottom: 10px;
}
#latest-post-slot .post-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  transition: color 0.25s ease;
}
#latest-post-slot a:hover .post-title,
#latest-post-slot a:focus-visible .post-title { color: var(--gold-bright); }

.about-line {
  max-width: 620px;
  margin: 0 auto;
  padding: 8vh 8vw 0;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(244,239,228,0.85);
}

/* ---------------------------------------------------------
   LOG — list of entries
   --------------------------------------------------------- */
.log-list {
  max-width: 780px;
  margin: 0 auto;
  padding: 8vh 8vw 16vh;
}
.log-entry {
  padding: 40px 0;
  border-bottom: 1px solid var(--line-pale-strong);
}
.log-entry:first-child { padding-top: 0; }
.log-entry .post-date {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--line);
  margin-bottom: 10px;
}
.log-entry h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  margin-bottom: 12px;
}
.log-entry h2 a { text-decoration: none; }
.log-entry h2 a:hover, .log-entry h2 a:focus-visible { color: var(--gold-bright); }
.log-entry .excerpt {
  font-weight: 300;
  line-height: 1.75;
  color: rgba(244,239,228,0.85);
  max-width: 640px;
}
.log-entry .prayer-note {
  margin-top: 18px;
  padding: 16px 20px;
  border-left: 2px solid var(--gold);
  font-size: 0.92rem;
  font-style: italic;
  color: rgba(232,200,116,0.9);
  background: rgba(201,162,75,0.06);
}
.log-entry .photo-count {
  margin-top: 14px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-decoration: none;
  display: inline-block;
}
.log-entry .photo-count:hover { color: var(--gold-bright); }

/* ---------------------------------------------------------
   PHOTOGRAPHS — grid
   --------------------------------------------------------- */
.photo-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8vh 6vw 16vh;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 42px 32px;
}
.photo-card figure {
  border: 1px solid var(--line-pale-strong);
  padding: 10px;
}
.photo-card img {
  width: 100%;
  display: block;
  filter: sepia(8%) saturate(85%);
}
.photo-card figcaption {
  padding: 14px 4px 4px;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(244,239,228,0.85);
}
.photo-card .from-post {
  display: inline-block;
  margin-top: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}
.photo-card .from-post:hover { color: var(--gold-bright); }

/* ---------------------------------------------------------
   SUPPORT
   --------------------------------------------------------- */
.support-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 8vh 8vw 16vh;
}
.support-body .intro {
  font-weight: 300;
  line-height: 1.8;
  font-size: 1.05rem;
  color: rgba(244,239,228,0.88);
  margin-bottom: 48px;
}
.give-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}
.give-method {
  border: 1px solid var(--line-pale-strong);
  padding: 26px;
}
.give-method .label { margin-bottom: 12px; }
.give-method .value {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
}
.support-divider {
  border: none;
  border-top: 1px solid var(--line-pale-strong);
  margin: 48px 0;
}
.substack-pointer {
  font-weight: 300;
  line-height: 1.75;
  color: rgba(244,239,228,0.82);
}
.substack-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 13px 26px;
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-bright) !important;
  text-decoration: none !important;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}
.substack-btn:hover, .substack-btn:focus-visible {
  background: var(--gold);
  color: var(--ink-deep) !important;
}
.prayer-general {
  border: 1px solid var(--line-pale-strong);
  border-left: 2px solid var(--gold);
  padding: 26px;
  margin-top: 12px;
}
.prayer-general .label { margin-bottom: 12px; }

/* ---------------------------------------------------------
   STORY
   --------------------------------------------------------- */
.story-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 8vh 8vw 16vh;
  font-weight: 300;
  line-height: 1.85;
  font-size: 1.08rem;
  color: rgba(244,239,228,0.88);
}
.story-body h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--gold-bright);
  margin: 44px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201, 162, 75, 0.35);
}
.story-body p { border-left: 2px solid rgba(201, 162, 75, 0.4); padding-left: 20px; }
.story-body .placeholder { padding: 28px 24px; margin: 10px 0 30px; border-left: none; }
.story-body em { color: var(--gold-bright); font-style: italic; }

/* ---------------------------------------------------------
   FLOATING SIGNUP BUTTON — persistent, bottom right
   --------------------------------------------------------- */
.signup-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 40px;
  background: var(--gold);
  color: var(--ink-deep);
  border: none;
  border-radius: 999px;
  font-family: 'Space Mono', monospace;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}
.signup-btn:hover, .signup-btn:focus-visible {
  background: var(--gold-bright);
  transform: translateY(-2px);
}

.signup-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 16, 32, 0.82);
  padding: 24px;
}
.signup-modal.open { display: flex; }
.signup-modal .modal-card {
  width: 100%;
  max-width: 420px;
  background: var(--ink-deep);
  border: 1px solid var(--line-pale-strong);
  padding: 40px 32px;
  position: relative;
}
.signup-modal h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.signup-modal p {
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(244,239,228,0.8);
  margin-bottom: 24px;
}
.signup-modal form { display: flex; flex-direction: column; gap: 14px; }
.signup-modal input[type="email"] {
  background: transparent;
  border: 1px solid var(--line-pale-strong);
  color: var(--paper);
  padding: 12px 14px;
  font-family: 'Spectral', serif;
  font-size: 1rem;
}
.signup-modal input[type="email"]::placeholder { color: rgba(244,239,228,0.4); }
.signup-modal button[type="submit"] {
  background: var(--gold);
  color: var(--ink-deep);
  border: none;
  padding: 12px 14px;
  font-family: 'Space Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
}
.signup-modal .close-modal {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 20px;
  cursor: pointer;
  opacity: 0.6;
}
.signup-modal .close-modal:hover { opacity: 1; }
.hp-field { position: absolute; left: -9999px; }
.form-success, .form-error {
  display: none;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.6;
}
.form-success.show, .form-error.show { display: block; }
.form-success { color: var(--gold-bright); }
.form-error { color: #e8a874; margin-top: 10px; }

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
footer {
  padding: 40px 8vw;
  border-top: 1px solid var(--line-pale-strong);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--line);
  text-transform: uppercase;
}

/* ---------------------------------------------------------
   MOBILE — phones and small tablets
   --------------------------------------------------------- */
@media (max-width: 700px) {
  nav {
    flex-wrap: wrap;
    row-gap: 12px;
    padding: 16px 6vw;
  }
  nav .wordmark { flex: 1 0 100%; font-size: 19px; }
  nav ul { gap: 14px 20px; flex-wrap: wrap; font-size: 10.5px; }
  nav a.navlink.nav-btn { padding: 6px 14px; }

  .page-header { padding: 150px 6vw 60px; }
  .page-header h1 { font-size: clamp(1.9rem, 8vw, 3rem); }

  .coord { font-size: 9.5px; }
  .coord-1 { top: 22%; }
  .coord-2 { top: 27%; }
  .coord-3 { bottom: 22%; }
  .coord-4 { bottom: 27%; }

  .signup-btn {
    bottom: 18px;
    right: 18px;
    padding: 16px 22px;
    font-size: 12px;
    gap: 8px;
  }

  .signup-modal .modal-card { padding: 30px 22px; }

  .photo-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 6vh 6vw 10vh;
  }

  .give-methods { grid-template-columns: 1fr; }

  .story-body, .support-body, .log-list { padding-left: 6vw; padding-right: 6vw; }
  .story-body p { padding-left: 14px; }

  footer { padding: 30px 6vw; font-size: 10px; }
}
