:root {
  color-scheme: light;
  --ink: #181611;
  --muted: #625f57;
  --paper: #f4efe3;
  --paper-deep: #e2d5bd;
  --rule: #2b2923;
  --accent-red: #9b2f27;
  --accent-blue: #315d73;
  --accent-green: #586a3e;
  --accent-gold: #a7772b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #d3c7ad;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.45;
}

a {
  color: var(--accent-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.newspaper {
  width: min(1180px, calc(100% - 24px));
  margin: 18px auto;
  padding: clamp(18px, 3vw, 42px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05)),
    var(--paper);
  border: 1px solid #95876b;
  box-shadow: 0 18px 50px rgba(54, 43, 24, 0.22);
}

.masthead {
  text-align: center;
  border-top: 6px double var(--rule);
  border-bottom: 6px double var(--rule);
  padding: 14px 0 12px;
}

.kicker,
.section-label,
.day {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.masthead h1 {
  margin: 0;
  font-size: clamp(3.2rem, 11vw, 8rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dateline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.lead-photo {
  margin: 22px 0;
  border-top: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  padding: 10px 0;
}

.lead-photo img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  filter: grayscale(0.85) contrast(1.08);
}

figcaption,
.note,
.movie-note,
.rubric {
  color: var(--muted);
  font-size: 0.92rem;
}

figcaption {
  margin-top: 8px;
  font-style: italic;
}

.front-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 3px solid var(--rule);
}

.lead-story {
  column-count: 2;
  column-gap: 28px;
}

.lead-story h2,
.section-heading h2,
.scoreboard h2 {
  margin: 4px 0 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead-story h2,
.lead-story .section-label,
.briefs {
  break-inside: avoid;
}

.briefs {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.briefs div {
  border-top: 1px solid var(--rule);
  padding-top: 8px;
}

.briefs dt {
  float: left;
  margin-right: 8px;
  color: var(--accent-red);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.briefs dd {
  margin: 0;
}

.briefs a {
  color: inherit;
  text-decoration: none;
}

.briefs dt a:hover,
.briefs a:focus-visible {
  color: var(--accent-blue);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.happening-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 2px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.happening-grid article {
  min-height: 250px;
  padding: 14px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.11);
}

.happening-grid h3 {
  font-size: 1.15rem;
}

.happening-grid a {
  display: inline-block;
  margin-top: 4px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.anglers-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
}

.anglers-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

.anglers-links a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.scoreboard {
  align-self: start;
  border: 2px solid var(--rule);
  padding: 14px;
}

.scoreboard h2 {
  font-size: 1.45rem;
  text-transform: uppercase;
}

.tomorrow-title {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 3px double var(--rule);
}

.score-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  font-family: Arial, Helvetica, sans-serif;
}

.score-line span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.score-line strong {
  text-align: right;
}

.score-line.tomorrow strong {
  color: var(--accent-blue);
}

.section-block {
  padding: 22px 0;
  border-bottom: 2px solid var(--rule);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 14px;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
}

.section-label {
  color: var(--accent-red);
}

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

th,
td {
  padding: 9px 8px;
  border-bottom: 1px solid rgba(43, 41, 35, 0.34);
  text-align: left;
  vertical-align: top;
}

th {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boogie-note {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--rule);
  background: rgba(49, 93, 115, 0.08);
}

.boogie-note h3 {
  font-size: 1.05rem;
}

.boogie-note p {
  margin-bottom: 0;
}

.forecast-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.surf-days,
.paddle-days {
  margin-top: 18px;
}

.forecast-day {
  min-height: 190px;
  padding: 14px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.14);
}

.forecast-day h3 {
  font-size: 1.15rem;
}

.extended-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 2px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.extended-grid article {
  min-height: 250px;
  padding: 14px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.1);
}

.extended-grid h3 {
  font-size: 1.2rem;
}

.excellent h3 {
  color: var(--accent-green);
}

.playable h3,
.ok {
  color: var(--accent-gold);
}

.rough h3,
.ugh {
  color: var(--accent-red);
}

.run-ledger {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 2px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.run-ledger > div {
  min-height: 155px;
  padding: 14px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.rating {
  display: inline-block;
  margin-bottom: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rating.good {
  color: var(--accent-green);
}

.run-ledger strong {
  display: block;
  font-size: 1.25rem;
}

.ferry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.ferry-grid article {
  border-top: 2px solid var(--rule);
  padding-top: 12px;
}

.drive-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.drive-layout img {
  width: 100%;
  height: auto;
  filter: grayscale(0.6) contrast(1.05);
}

.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
}

.sources h2 {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .dateline,
  .front-grid,
  .columns,
  .ferry-grid,
  .anglers-layout,
  .extended-grid,
  .happening-grid,
  .forecast-strip,
  .run-ledger,
  .drive-layout {
    grid-template-columns: 1fr;
  }

  .dateline {
    display: grid;
    text-align: center;
  }

  .lead-story {
    column-count: 1;
  }

  .section-heading {
    display: block;
  }

  .forecast-day,
  .run-ledger > div {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .newspaper {
    width: 100%;
    margin: 0;
    border-left: 0;
    border-right: 0;
  }

  .masthead h1 {
    font-size: clamp(2.7rem, 18vw, 4.4rem);
  }

  th,
  td {
    padding: 8px 5px;
    font-size: 0.9rem;
  }
}
