/* The Shoreline Weekly — magazine styles.
   Edited here in src/; copied to dist/style.css by src/site.js. */

:root {
  --ink: #1a1714;
  --ink-soft: #4a443d;
  --muted: #857c70;
  --paper: #f7f3ec;
  --paper-2: #fffdf8;
  --rule: #d8cfc0;
  --accent: #c25a1c;       /* basketball leather */
  --accent-dark: #9c4514;
  --maxw: 44rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

main { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem 3rem; }

/* ---- masthead ---- */
.masthead {
  border-bottom: 3px double var(--ink);
  margin-bottom: 2rem;
  background: var(--paper-2);
}
.masthead-link {
  display: block;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 1.1rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.masthead-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(2rem, 7vw, 3.4rem);
  letter-spacing: 0.02em;
  line-height: 1;
}
.masthead-tagline {
  margin-top: 0.5rem;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--muted);
}

/* ---- shared bits ---- */
.dateline {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: var(--accent-dark);
  margin: 0 0 0.6rem;
}
.muted { color: var(--muted); }

.record-rule {
  text-align: center;
  border-top: 1px solid var(--rule);
  margin: 2.75rem 0 1.5rem;
}
.record-rule span {
  display: inline-block;
  transform: translateY(-50%);
  background: var(--paper);
  padding: 0 1rem;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ---- cover / index ---- */
.cover .lead {
  display: block;
  text-decoration: none;
  color: inherit;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.lead-headline {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.07;
  margin: 0 0 0.8rem;
  transition: color 0.15s;
}
.cover .lead:hover .lead-headline { color: var(--accent-dark); }
.lead-dek {
  font-size: 1.2rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 1rem;
}
.read-link {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--accent);
}

.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-list li { border-bottom: 1px solid var(--rule); }
.archive-list a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 0;
  text-decoration: none;
  color: inherit;
}
.archive-list a:hover .archive-title { color: var(--accent-dark); }
.archive-date {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  color: var(--muted);
}
.archive-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.15;
}

.empty { text-align: center; color: var(--muted); padding: 3rem 0; }

/* ---- issue page ---- */
.headline {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(2.1rem, 6.5vw, 3.2rem);
  line-height: 1.05;
  margin: 0 0 0.9rem;
}
.dek {
  font-size: 1.28rem;
  line-height: 1.4;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 1.2rem;
}
.byline {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--muted);
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.6rem;
}

/* feature column typography */
.prose h2 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  color: var(--accent-dark);
  margin: 2.2rem 0 0.4rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--ink);
}
.prose h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin: 1.6rem 0 0.3rem;
}
.prose p { margin: 0 0 1.05rem; }
.prose a { color: var(--accent-dark); }

/* drop cap on the feature's opening paragraph */
.feature.prose > p:first-of-type::first-letter {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  float: left;
  font-size: 3.6rem;
  line-height: 0.78;
  padding: 0.18rem 0.55rem 0 0;
  color: var(--accent-dark);
}

.prose blockquote {
  margin: 1.2rem 0;
  padding: 0.4rem 0 0.4rem 1.1rem;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  font-style: italic;
}

/* tables (standings / box) */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.6rem;
  font-family: "Oswald", sans-serif;
  font-size: 0.92rem;
}
.prose thead th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: var(--paper-2);
  background: var(--ink);
  padding: 0.45rem 0.6rem;
  font-weight: 600;
}
.prose tbody td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--rule);
}
.prose tbody tr:nth-child(odd) td { background: rgba(0,0,0,0.025); }
.prose td:first-child, .prose th:first-child { font-weight: 700; }

.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1rem; }
.prose li { margin: 0.25rem 0; }
.prose hr { border: none; border-top: 1px solid var(--rule); margin: 1.6rem 0; }
.prose sub, .prose sup { color: var(--muted); font-size: 0.78rem; }

/* "The Record" section sits in a tinted panel */
.record .prose { background: var(--paper-2); }
.record {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.5rem 1.4rem 1.4rem;
  margin-top: 2.5rem;
}
.record .record-rule { margin-top: 1rem; }
.record .record-rule span { background: var(--paper-2); }

.back { margin-top: 2.5rem; }
.back a, .read-link { text-decoration: none; }
.back a {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--accent-dark);
}

/* ---- footer ---- */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.6rem 1.25rem 3rem;
  border-top: 3px double var(--ink);
  text-align: center;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
}
.site-footer .muted { letter-spacing: 0.04em; text-transform: none; margin-top: 0.4rem; font-size: 0.78rem; }
