/* ------------------------------------------------------------------
   Sammy's Shawtys — shared styles
   Two inks on newsprint. All the weight sits in the nameplate;
   everything below it stays quiet so the stories can be read.
   ------------------------------------------------------------------ */

:root {
  --paper:  #f4f2ed;
  --ink:    #15181d;
  --blue:   #17418c;
  --pink:   #c21463;
  --muted:  #6b6f78;
  --rule:   #d8d4ca;

  --measure: 34rem;          /* ~66 characters of Literata */
  --gutter: clamp(1.25rem, 5vw, 3.5rem);

  --display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --body: "Literata", Georgia, "Times New Roman", serif;
}

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

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

body {
  margin: 0;
  padding: 0 var(--gutter) 5rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.72;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--pink); }

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

/* ---------- Masthead (home page hero) ---------- */

.masthead {
  max-width: 60rem;
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2.5rem, 7vw, 4.5rem);
}

.nameplate {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3.25rem, 15vw, 10rem);
  line-height: 0.84;
  letter-spacing: -0.035em;
  color: var(--blue);
  text-transform: uppercase;
}

.tagline {
  margin: 1.5rem 0 0;
  max-width: 30rem;
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--muted);
}

/* ---------- Story index ---------- */

.index {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.entry {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.entry-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.entry-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--blue);
}

.entry-link:hover .entry-title,
.entry-link:focus-visible .entry-title {
  color: var(--pink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.entry-teaser {
  margin: 0.6rem 0 0;
  max-width: var(--measure);
  color: var(--ink);
}

.entry-date {
  margin: 0.75rem 0 0;
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ---------- Story pages ---------- */

.topbar {
  max-width: var(--measure);
  margin: 0 auto;
  padding-top: 2.5rem;
}

.wordmark {
  display: inline-block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--blue);
}
.wordmark:hover { color: var(--pink); }

.story {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 4.5rem) 0 0;
}

.story-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.story-date {
  margin: 1rem 0 0;
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.story-body {
  margin-top: 2.75rem;
  font-size: 1.1875rem;
  line-height: 1.78;
}

.story-body p { margin: 0 0 1.5em; }

/* First line of the story gets small caps instead of an indent or drop cap. */
.story-body > p:first-of-type::first-line {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.06em;
}

.story-body em { font-style: italic; }

/* A blank-line scene break, centred. */
.story-body hr {
  width: 100%;
  border: 0;
  margin: 2.5rem 0;
  text-align: center;
}
.story-body hr::before {
  content: "\2022\00a0\00a0\00a0\2022\00a0\00a0\00a0\2022";
  font-size: 0.8em;
  color: var(--pink);
}

/* ---------- Footer ---------- */

.back {
  max-width: var(--measure);
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 600;
}

.site-footer {
  max-width: 60rem;
  margin: 4rem auto 0;
  font-family: var(--display);
  font-size: 0.8125rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
