/* dustincreek.com — shared styles
   Palette: bluebonnet navy (from the cover lettering), limestone, live oak, sunset gold, creek water. */

:root {
  --ink: #1E3350;        /* bluebonnet navy: text, headings */
  --ink-soft: #46566B;   /* secondary text */
  --paper: #F5F5F1;      /* page */
  --limestone: #DAD5C8;  /* bands, rules */
  --oak: #3E4E33;        /* live oak green */
  --gold: #D29A33;       /* sunset gold: primary action */
  --creek: #5B8C8E;      /* creek water: the timeline line */
  --night: #182A42;      /* newsletter band */

  --display: "Zilla Slab", "Rockwell", "Roboto Slab", Georgia, serif;
  --body: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;

  --measure: 36rem;
  --wrap: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--oak); }

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

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.75rem, 8vw, 5.75rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1em; max-width: var(--measure); }

/* ---------- header ---------- */
.site-header { padding: 1.5rem 0; }
.site-header .wrap {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem 2rem;
}
.wordmark {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  text-decoration: none; color: var(--ink);
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.site-nav a { text-decoration: none; padding: 0.5rem 0; display: inline-block; }
.site-nav a:hover, .site-nav a[aria-current="page"] {
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px;
}

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn {
  display: inline-block; font-family: var(--display); font-weight: 600; font-size: 1.125rem;
  padding: 0.8rem 1.4rem; text-decoration: none; border: 2px solid var(--ink);
  border-radius: 3px; color: var(--ink); background: transparent; cursor: pointer;
  line-height: 1.2;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-primary { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- hero ---------- */
.hero { padding: 3rem 0 2.5rem; }
.hero h1 { max-width: 11ch; }
.hero .lede { font-size: clamp(1.2rem, 2.2vw, 1.45rem); color: var(--ink-soft); max-width: 30rem; }

/* ---------- the creek: books along a timeline ---------- */
.creek { padding: 1rem 0 4rem; }
.creek ol { list-style: none; margin: 0; padding: 0; position: relative; }

/* the water line itself */
.creek ol::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 8.5rem; width: 24px;
  transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='120' viewBox='0 0 24 120'%3E%3Cpath d='M12 0 C 22 20, 22 40, 12 60 S 2 100, 12 120' fill='none' stroke='%235B8C8E' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") repeat-y center top / 24px 120px;
}

.stop {
  display: grid;
  grid-template-columns: 5.5rem 3.5rem minmax(0, 1fr) 11rem;
  gap: 0 1.25rem;
  align-items: start;
  padding: 2.5rem 0;
}
.stop .years {
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  text-align: right; padding-top: 0.35rem; color: var(--ink-soft);
  font-variant-numeric: lining-nums;
}
.stop .stone {
  width: 22px; height: 22px; margin: 0.45rem auto 0; border-radius: 50%;
  background: var(--paper); border: 4px solid var(--creek); position: relative; z-index: 1;
}
.stop.ahead .stone { border-style: dashed; }
.stop .order { font-family: var(--display); color: var(--oak); font-weight: 600; margin: 0 0 0.2rem; }
.stop h3 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); margin-bottom: 0.4rem; }
.stop h3 a { text-decoration: none; }
.stop h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.stop .status { font-style: italic; color: var(--ink-soft); margin-bottom: 0.6rem; }
.stop .cover { width: 100%; box-shadow: 0 10px 24px -14px rgba(30, 51, 80, 0.55); }

/* cover stand-ins until real art is dropped in */
.cover-stand-in {
  aspect-ratio: 2 / 3; width: 100%; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1rem 0.9rem; font-family: var(--display); text-align: center;
}
.cover-stand-in .t { font-size: 1.35rem; font-weight: 700; line-height: 1.05; margin-top: 1.2rem; }
.cover-stand-in .s { font-size: 0.85rem; color: var(--limestone); }
.cover-stand-in .a { font-size: 0.85rem; letter-spacing: 0.08em; }
.cover-stand-in.soon { background: transparent; color: var(--ink); border: 2px dashed var(--creek); }
.cover-stand-in.soon .s { color: var(--ink-soft); }

/* ---------- quote band ---------- */
.band { background: var(--limestone); padding: 4rem 0; }
.band blockquote { margin: 0; }
.band blockquote p {
  font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.2; max-width: 26ch; margin-bottom: 0.75rem;
}
.band cite { font-style: normal; color: var(--ink-soft); }

/* ---------- two-column info ---------- */
.split { padding-top: 4.5rem; padding-bottom: 4.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2.5rem 3.5rem; }
.split h2 { font-size: 1.75rem; }
.split p { font-size: 1.05rem; }

/* ---------- newsletter ---------- */
.letter { background: var(--night); color: #F1EEE6; padding: 4.5rem 0; }
.letter h2 { color: #fff; }
.letter p { color: #D8DCE3; }
.letter a { color: #fff; }
.signup { margin-top: 1.75rem; max-width: 34rem; }
.signup label { display: block; font-family: var(--display); font-weight: 600; margin-bottom: 0.4rem; color: #fff; }
.signup .row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.signup input[type="email"] {
  flex: 1 1 15rem; min-height: 3.2rem; padding: 0.6rem 0.9rem;
  font: inherit; color: var(--ink); background: #fff;
  border: 2px solid #fff; border-radius: 3px;
}
.signup .btn-primary:hover { background: #fff; border-color: #fff; color: var(--ink); }
.signup .fine { font-size: 0.95rem; margin-top: 0.75rem; color: #B9C1CC; }

/* ---------- book pages ---------- */
.page-head { padding-top: 2.5rem; padding-bottom: 1rem; }
.page-head p { color: var(--ink-soft); font-size: 1.25rem; }

.book {
  display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  gap: 2rem 3.5rem; padding: 3.5rem 0; border-top: 2px solid var(--limestone);
  scroll-margin-top: 1rem;
}
.book:first-of-type { border-top: 0; }
.book .order { font-family: var(--display); color: var(--oak); font-weight: 600; margin: 0 0 0.25rem; }
.book h2 { font-size: clamp(2.2rem, 5vw, 3.25rem); margin-bottom: 0.3rem; }
.book .years { font-family: var(--display); color: var(--ink-soft); font-size: 1.15rem; margin-bottom: 1.5rem; }
.book .cover { box-shadow: 0 14px 30px -16px rgba(30, 51, 80, 0.6); }
.book dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; margin: 1.5rem 0 0; font-size: 1rem; }
.book dt { font-family: var(--display); font-weight: 600; }
.book dd { margin: 0; color: var(--ink-soft); }

.review-ask { background: var(--limestone); padding: 2.5rem 0; }
.review-ask p { margin: 0; }

/* ---------- about ---------- */
.about-body { padding: 1rem 0 3rem; }
.about-body .bio p:first-child { font-size: 1.35rem; line-height: 1.5; }
.excerpt {
  margin: 3rem 0 0; padding: 0 0 0 1.5rem; border-left: 4px solid var(--creek);
}
.excerpt blockquote { margin: 0 0 0.75rem; }
.excerpt p { font-size: 1.1rem; }
.excerpt figcaption { color: var(--ink-soft); font-size: 1rem; }

/* ---------- footer ---------- */
.site-footer { padding: 2.5rem 0 3rem; font-size: 0.98rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-footer p { margin: 0; }

/* ---------- small screens ---------- */
@media (max-width: 52rem) {
  .creek ol::before { left: 1.25rem; }
  .stop {
    grid-template-columns: 2.5rem minmax(0, 1fr) 7.5rem;
    grid-template-areas: "stone years cover" "stone text cover";
    gap: 0 1rem; padding: 2rem 0;
  }
  .stop .stone { grid-area: stone; margin-top: 0.2rem; }
  .stop .years { grid-area: years; text-align: left; padding-top: 0; }
  .stop .text { grid-area: text; }
  .stop .cover-slot { grid-area: cover; }
}
@media (max-width: 34rem) {
  body { font-size: 1.0625rem; }
  .stop { grid-template-columns: 2.5rem minmax(0, 1fr); grid-template-areas: "stone years" "stone text" "stone cover"; }
  .stop .cover-slot { max-width: 9rem; margin-top: 1rem; }
  .book { grid-template-columns: 1fr; }
  .book .cover-slot { max-width: 13rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
