/* Local Report — Worcester Daily News
   Modern, mobile-first stylesheet */

:root {
  --bg: #f7f8fa;
  --bg-elev: #ffffff;
  --ink: #0b1220;
  --ink-2: #1f2937;
  --muted: #5b6776;
  --muted-2: #8a93a3;
  --line: #e7eaef;
  --line-strong: #d6dbe3;
  --accent: #d92d20;
  --accent-ink: #b42318;
  --accent-soft: #fef0ef;
  --navy: #0b1f44;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.05);
  --shadow-md: 0 4px 14px rgba(11, 18, 32, 0.08);
  --shadow-lg: 0 18px 40px -16px rgba(11, 18, 32, 0.18);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --max: 1180px;
  --gutter: clamp(1rem, 4vw, 1.75rem);
  --t: 200ms cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }
*::selection { background: var(--accent); color: #fff; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "ss01", "cv11";
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg, video {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--accent-ink);
  text-decoration: none;
  transition: color var(--t);
}
a:hover { color: var(--accent); }

button { font: inherit; }

h1, h2, h3, h4 {
  font-family: "Fraunces", "Source Serif Pro", Georgia, serif;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
}

p { margin: 0 0 1rem; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.kicker {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.kicker.muted { color: var(--muted); }

.byline {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 248, 250, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand .dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.12);
}
.brand .name { line-height: 1; }
.brand .name small {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}
.nav a {
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.35rem 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  appearance: none;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
}

/* ---------- Hero / featured ---------- */
.hero {
  margin: 1.75rem 0 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
}

.feature-card {
  position: relative;
  background: linear-gradient(135deg, #0b1f44 0%, #142f63 60%, #1d3e85 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
  isolation: isolate;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-lg);
  transition: transform var(--t), box-shadow var(--t);
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 300px at 90% -10%, rgba(217, 45, 32, .35), transparent 60%),
    radial-gradient(500px 250px at -10% 110%, rgba(255, 255, 255, .12), transparent 65%);
  z-index: -1;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -18px rgba(11, 18, 32, .35); }
.feature-card .kicker { color: #ffb4ad; }
.feature-card h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin: 0.5rem 0 0.75rem;
}
.feature-card .deck {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin: 0 0 1rem;
  max-width: 60ch;
}
.feature-card a.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  align-self: flex-start;
  transition: background var(--t), border-color var(--t);
}
.feature-card a.cta:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* Hero side stack */
.hero-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 600px) {
  .hero-side { grid-template-rows: auto auto; }
}

.side-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  box-shadow: var(--shadow-sm);
}
.side-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.side-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0.4rem 0 0.5rem;
}
.side-card h3 a { color: var(--ink); }
.side-card h3 a:hover { color: var(--accent-ink); }
.side-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

/* ---------- Section heading ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.5rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-head .meta-link {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Card grid ---------- */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.25rem 0 0;
}
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent-ink); }
.card p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.card .byline { margin-top: auto; padding-top: 0.5rem; }

.card .thumb {
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-soft), #fff5e6);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-ink);
  letter-spacing: -0.02em;
}
.card .thumb.navy { background: linear-gradient(135deg, #0b1f44, #1d3e85); color: #fff; }
.card .thumb.green { background: linear-gradient(135deg, #d4f4dd, #a7e6c0); color: #0b3d24; }
.card .thumb.amber { background: linear-gradient(135deg, #fff3c2, #ffd984); color: #5a3a00; }
.card .thumb.slate { background: linear-gradient(135deg, #e1e7f0, #b6c2d6); color: #1d2a44; }

/* ---------- Article (story page) ---------- */
.story-wrap {
  margin: 2rem 0 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2.25rem;
}
@media (max-width: 960px) {
  .story-wrap { grid-template-columns: 1fr; }
}

article.story {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-sm);
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}
article.story h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.8rem);
  font-weight: 800;
  margin: 0.5rem 0 0.75rem;
  letter-spacing: -0.02em;
}
article.story .deck {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}
article.story .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  margin-bottom: 2rem;
}
article.story .meta strong { color: var(--ink); font-weight: 600; }

article.story h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.25rem 0 0.75rem;
}
article.story h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.75rem 0 0.5rem;
}
article.story p,
article.story li { font-size: 1.05rem; line-height: 1.75; color: var(--ink-2); }
article.story ul, article.story ol { padding-left: 1.25rem; margin: 0 0 1.25rem; }
article.story li { margin-bottom: 0.4rem; }

article.story blockquote {
  margin: 1.75rem 0;
  padding: 0.5rem 0 0.5rem 1.25rem;
  border-left: 4px solid var(--accent);
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink);
}

.dropcap > p:first-of-type::first-letter {
  font-family: "Fraunces", Georgia, serif;
  font-size: 4.25rem;
  font-weight: 800;
  float: left;
  line-height: 0.9;
  padding: 0.4rem 0.6rem 0 0;
  color: var(--accent);
}

/* Story sidebar */
.story-sidebar { position: sticky; top: 96px; align-self: start; }
.story-sidebar h4 {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
}
.story-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: grid;
  gap: 0.85rem;
}
.story-sidebar li {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: border-color var(--t), transform var(--t);
}
.story-sidebar li:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.story-sidebar li a { color: var(--ink); font-weight: 600; font-size: 0.96rem; line-height: 1.3; display: block; }
.story-sidebar li a:hover { color: var(--accent-ink); }
.story-sidebar li .small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}

.weather-widget {
  background: linear-gradient(135deg, #e9f1ff, #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.weather-widget .label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.weather-widget .temp {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  margin-top: 0.35rem;
}
.weather-widget .cond { color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; }

/* Tags + share */
.tag-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
}

/* Read next */
.read-next {
  margin: 3rem auto 0;
  max-width: 760px;
}
.read-next h4 {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
}
.read-next-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.read-next-grid a {
  display: block;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.read-next-grid a:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  color: var(--accent-ink);
}
.read-next-grid .k {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

/* ---------- Footer ---------- */
footer.site {
  margin-top: 4rem;
  background: #0b1220;
  color: #d6dbe3;
}
footer.site .inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.5rem;
  padding: 2.25rem var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
@media (max-width: 760px) {
  footer.site .inner { grid-template-columns: 1fr; }
}
footer.site .brand {
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 800;
}
footer.site .brand small {
  color: #8a93a3;
}
footer.site h5 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a93a3;
  margin: 0 0 0.75rem;
  font-weight: 700;
}
footer.site a { color: #d6dbe3; display: block; padding: 0.25rem 0; font-size: 0.92rem; }
footer.site a:hover { color: #fff; }
footer.site .legal {
  border-top: 1px solid #1a2332;
  padding: 1rem var(--gutter);
  font-size: 0.78rem;
  color: #6e7888;
  text-align: center;
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
