:root {
  --paper: #f6f0df;
  --paper-light: #fffaf0;
  --ink: #17130d;
  --muted: #5f5848;
  --line: #2e2a22;
  --green: #173f35;
  --red: #9b241f;
  --blue: #1e4f68;
  --gold: #b8862b;
  --shadow: rgba(23, 19, 13, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(23, 63, 53, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(155, 36, 31, 0.06) 0 1px, transparent 1px 100%),
    #e8dfc8;
  background-size: 42px 42px, 42px 42px, auto;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.45;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration-color: rgba(155, 36, 31, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--red);
}

.paper-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 18px auto 32px;
  padding: 22px clamp(14px, 3vw, 34px) 26px;
  background:
    radial-gradient(circle at 12% 20%, rgba(184, 134, 43, 0.1), transparent 32%),
    linear-gradient(180deg, var(--paper-light), var(--paper));
  border: 1px solid rgba(46, 42, 34, 0.58);
  box-shadow: 0 18px 40px var(--shadow);
}

.masthead {
  border-top: 5px double var(--line);
  border-bottom: 5px double var(--line);
  padding: 8px 0 12px;
  text-align: center;
}

.edition-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 2px 0 8px;
  border-bottom: 1px solid rgba(46, 42, 34, 0.6);
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  padding: 10px 0 4px;
  color: var(--ink);
  font-size: clamp(3rem, 8vw, 6.6rem);
  font-weight: 900;
  line-height: 0.94;
  text-decoration: none;
}

.brand img {
  width: clamp(78px, 12vw, 138px);
  height: auto;
  flex: 0 0 auto;
}

.brand span {
  min-width: 0;
}

.tagline {
  width: min(720px, 100%);
  margin: 0 auto 12px;
  color: var(--green);
  font-size: 1rem;
  font-style: italic;
}

.kicker {
  margin: 0 0 8px;
  color: var(--red);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5.6vw, 5rem);
  line-height: 0.98;
}

h1 a,
h2 a,
h3 a {
  text-decoration: none;
  overflow-wrap: anywhere;
}

.standfirst {
  margin: 18px 0 0;
  color: var(--green);
  font-size: 1.22rem;
  line-height: 1.42;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
}

.story-meta span {
  padding-right: 10px;
  border-right: 1px solid rgba(95, 88, 72, 0.45);
}

.story-meta span:last-child {
  border-right: 0;
}

.story-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 26px 0 8px;
}

.news-block {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 20px 20px 18px;
  border: 2px solid rgba(46, 42, 34, 0.78);
  background: rgba(255, 250, 240, 0.48);
}

.news-block h2 {
  margin: 0;
  font-size: clamp(1.75rem, 2.7vw, 2.35rem);
  line-height: 1.04;
}

.news-block p:not(.kicker) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.38;
}

.news-block .story-meta {
  margin-top: auto;
  padding-top: 18px;
}

.weather-block {
  border-color: rgba(30, 79, 104, 0.8);
  background:
    linear-gradient(180deg, rgba(30, 79, 104, 0.1), transparent 62%),
    rgba(255, 250, 240, 0.55);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding-top: 16px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
}

.article-body {
  width: min(760px, 100%);
  margin: 30px auto 0;
  padding-bottom: 26px;
}

.article-body h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.article-body .standfirst {
  font-size: 1.18rem;
}

.article-content {
  margin-top: 24px;
  border-top: 2px solid var(--line);
  padding-top: 20px;
  font-size: 1.08rem;
}

.article-content p {
  margin: 0 0 16px;
}

.source-box {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(46, 42, 34, 0.52);
  background: rgba(23, 63, 53, 0.06);
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
}

.back-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--green);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .paper-shell {
    width: auto;
    max-width: none;
    margin: 8px;
  }

  .edition-bar,
  .story-board,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .edition-bar {
    gap: 4px;
  }

  .news-block {
    min-height: 260px;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 2.32rem;
    line-height: 1.02;
    gap: 8px;
  }

  .brand img {
    width: 58px;
  }

  h1 {
    font-size: 1.72rem;
    line-height: 1.04;
  }

  .story-card h3,
  .agenda-main h3 {
    font-size: 1.35rem;
  }

  .section-heading h2 {
    font-size: 1.72rem;
  }

  .news-block h2 {
    font-size: 1.55rem;
  }

  .news-block p:not(.kicker) {
    font-size: 1rem;
  }
}
