/* ==========================================================================
   THE COLDWATER MILE — site styles
   Cold, oceanic, literary. Dark steel / deep-water palette. Self-contained.
   ========================================================================== */

:root {
  /* deep-water palette */
  --abyss:      #06090d;
  --hull:       #0b1118;
  --steel:      #121b25;
  --steel-2:    #18242f;
  --rib:        #243441;
  --fog:        #c7d2da;
  --fog-dim:    #8b9aa6;
  --fog-faint:  #5d6e7b;
  --ice:        #9cc6d8;
  --ice-bright: #cfe7f0;
  --signal:     #d98c5f;   /* the single warm tone — a distant flare */
  --line:       rgba(156, 198, 216, 0.14);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  --measure: 34rem;          /* readable long-form column */
  --pad: clamp(1.25rem, 5vw, 3rem);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--abyss);
  color: var(--fog);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--ice); text-decoration: none; }
a:hover { color: var(--ice-bright); text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--steel);
  color: var(--ice-bright);
  padding: 0.6rem 1rem;
  z-index: 50;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

hr.section-break {
  border: 0;
  height: 2.5rem;
  margin: 1.5rem auto;
  position: relative;
}
hr.section-break::after {
  content: "\2767";        /* floral heart bullet — a quiet glyph */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--fog-faint);
  font-size: 1rem;
  letter-spacing: 0.4em;
}

/* ==========================================================================
   LANDING PAGE
   ========================================================================== */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(156,198,216,0.10), transparent 60%),
    linear-gradient(180deg, var(--hull) 0%, var(--abyss) 70%);
  border-bottom: 1px solid var(--line);
}

/* faint horizon / water bands */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 46px,
      rgba(156,198,216,0.025) 47px,
      transparent 48px
    );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 52rem;
}

.hero-kicker {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 0.72rem;
  color: var(--ice);
  margin: 0 0 1.6rem;
  padding-left: 0.42em;
}

.hero h1 {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 0.95;
  font-size: clamp(2.7rem, 11vw, 6.5rem);
  margin: 0;
  color: var(--fog);
  text-shadow: 0 1px 0 #000, 0 0 40px rgba(156,198,216,0.08);
}
.hero h1 .the {
  display: block;
  font-size: 0.32em;
  letter-spacing: 0.5em;
  color: var(--fog-dim);
  margin-bottom: 0.4em;
  padding-left: 0.5em;
}

.hero-logline {
  font-style: italic;
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  color: var(--fog);
  max-width: 40rem;
  margin: 2rem auto 0;
  line-height: 1.6;
}

.hero-meta {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fog-faint);
  margin: 2.2rem 0 0;
}
.hero-meta span { white-space: nowrap; }
.hero-meta .dot { color: var(--rib); margin: 0 0.6rem; }

.hero-cta {
  margin-top: 2.6rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.95rem 1.8rem;
  border: 1px solid var(--rib);
  border-radius: 2px;
  color: var(--fog);
  background: rgba(18,27,37,0.6);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  border-color: var(--ice);
  color: var(--ice-bright);
  background: linear-gradient(180deg, rgba(156,198,216,0.14), rgba(18,27,37,0.6));
}
.btn-primary:hover {
  border-color: var(--ice-bright);
  background: linear-gradient(180deg, rgba(156,198,216,0.22), rgba(18,27,37,0.7));
  color: #fff;
}
.btn-ghost:hover { border-color: var(--fog-dim); color: var(--ice-bright); }

/* ---- generic content sections ---- */

.section {
  padding: clamp(3.5rem, 9vw, 6.5rem) var(--pad);
  border-bottom: 1px solid var(--line);
}
.section:nth-of-type(even) { background: var(--hull); }
.section-inner { max-width: 60rem; margin: 0 auto; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.7rem;
  color: var(--ice);
  margin: 0 0 1.2rem;
}

.section h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  color: var(--fog);
}

.section p {
  max-width: var(--measure);
  margin: 0 0 1.2rem;
}
.section p.lead {
  font-size: 1.2rem;
  color: var(--ice-bright);
  max-width: 42rem;
}

.blurb p {
  font-size: 1.1rem;
  max-width: 42rem;
}
.blurb .pull {
  font-style: italic;
  color: var(--ice-bright);
  font-size: 1.25rem;
  border-left: 2px solid var(--signal);
  padding-left: 1.2rem;
  margin: 2rem 0;
}

/* comps grid */
.comps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}
.comp {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.4rem 1.4rem 1.5rem;
  background: rgba(18,27,37,0.45);
}
.comp h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
  color: var(--ice-bright);
}
.comp p { font-size: 0.95rem; color: var(--fog-dim); margin: 0; }

/* facts row */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1.5rem 1rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.fact .num {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--ice);
  display: block;
  line-height: 1;
}
.fact .lbl {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.66rem;
  color: var(--fog-faint);
  margin-top: 0.5rem;
  display: block;
}

/* sample call-to-action band */
.sample-band {
  text-align: center;
  background:
    radial-gradient(100% 120% at 50% 0%, rgba(156,198,216,0.08), transparent 60%),
    var(--steel);
}
.sample-band .section-inner { max-width: 44rem; }
.sample-band p { margin-left: auto; margin-right: auto; }
.sample-band .btn { margin-top: 1.4rem; }

/* footer */
.site-foot {
  padding: 3rem var(--pad);
  text-align: center;
  color: var(--fog-faint);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.site-foot .title {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fog-dim);
  display: block;
  margin-bottom: 0.6rem;
}
.content-note {
  max-width: 40rem;
  margin: 1.5rem auto 0;
  font-size: 0.74rem;
  color: var(--fog-faint);
  line-height: 1.6;
}

/* ==========================================================================
   READER (manuscript.html)
   ========================================================================== */

body.reader {
  background: var(--hull);
}

.reader-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6,9,13,0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.reader-bar-inner {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0.85rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.reader-back {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--fog);
}
.reader-tag {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.66rem;
  color: var(--ice);
}

.reader-main {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) var(--pad) 6rem;
}

.reader-head {
  text-align: center;
  margin-bottom: 4rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.reader-kicker {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.68rem;
  color: var(--ice);
  margin: 0 0 1rem;
}
.reader-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 3.2rem);
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0;
  color: var(--fog);
}
.reader-sub {
  font-style: italic;
  color: var(--fog-dim);
  margin: 1rem 0 0;
}

.chapter { margin: 0 0 4.5rem; }

.chapter-title {
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.92rem;
  color: var(--ice);
  text-align: center;
  margin: 3.5rem 0 0.3rem;
}
.chapter:first-of-type .chapter-title { margin-top: 0; }

.chapter-subtitle {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  letter-spacing: 0.01em;
  color: var(--fog);
  text-align: center;
  margin: 0.2rem 0 1.6rem;
}

.chapter-meta {
  text-align: center;
  font-size: 0.82rem;
  color: var(--fog-faint);
  margin: 0.2rem 0 0.4rem;
}

.chapter p {
  margin: 0 0 1.35rem;
  hyphens: auto;
}
/* drop-the-indent on first para after a heading or break, indent the rest */
.chapter p + p {
  text-indent: 1.4em;
  margin-top: -0.35rem;
}
.chapter em { color: var(--ice-bright); font-style: italic; }

.reader-end {
  margin-top: 3rem;
  text-align: center;
}
.end-note {
  color: var(--fog-dim);
  font-style: italic;
  max-width: 28rem;
  margin: 1.5rem auto;
}
.end-note strong { color: var(--ice-bright); font-style: normal; }
.end-back {
  font-family: var(--sans);
  font-size: 0.85rem;
  margin-top: 2rem;
}

/* ==========================================================================
   RESPONSIVE / MOTION
   ========================================================================== */

@media (max-width: 520px) {
  body { font-size: 17px; }
  .hero-meta .dot { display: block; height: 0; visibility: hidden; }
  .hero-meta span { display: inline-block; margin: 0.15rem 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
