:root {
  --news-red: #b80000;
  --news-red-dark: #8f0000;
  --ink: #141414;
  --muted: #5c5c5c;
  --line: #d8d8d8;
  --soft: #f5f5f5;
  --paper: #ffffff;
  --max: 1180px;
  font-family: Arial, Helvetica, sans-serif;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  background: var(--news-red);
  color: #fff;
}

.brand-bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 18px 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: .95;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-bar time {
  font-size: .95rem;
  font-weight: 700;
  white-space: nowrap;
}

.section-nav {
  border-top: 1px solid rgba(255, 255, 255, .32);
  background: var(--news-red-dark);
  display: flex;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
}

.section-nav a {
  padding: 10px 18px;
  border-left: 1px solid rgba(255, 255, 255, .2);
  font-size: .95rem;
  font-weight: 700;
}

.section-nav a:last-child {
  border-right: 1px solid rgba(255, 255, 255, .2);
}

.page-shell,
.article-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.headline-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr);
  gap: 28px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}

.lead-story {
  border-bottom: 6px solid var(--news-red);
  padding-bottom: 22px;
}

.lead-image,
.article-image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--soft);
}

.lead-image {
  aspect-ratio: 16 / 10;
  margin-bottom: 16px;
}

.article-image {
  margin-top: 24px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--news-red);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.lead-story h1,
.article-page h1,
.notice h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: .98;
  letter-spacing: -0.03em;
}

.standfirst,
.article-standfirst {
  margin: 18px 0 0;
  color: #333;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.35;
  font-weight: 700;
}

.story-meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: .92rem;
}

.story-meta span + span::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 13px;
  margin-right: 14px;
  vertical-align: -2px;
  background: var(--line);
}

.top-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.story-card {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.story-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--soft);
  margin-bottom: 10px;
}

.story-card h2,
.latest-item h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.story-card h2 {
  font-size: 1.35rem;
}

.story-card p:not(.kicker),
.latest-item p:not(.kicker),
.source-panel p,
.notice p {
  margin: 8px 0 0;
  color: var(--muted);
}

.camera-section,
.latest-section {
  margin-top: 30px;
}

.section-heading {
  border-top: 3px solid var(--ink);
  padding-top: 10px;
  margin-bottom: 4px;
}

.section-heading h2,
.source-panel h2 {
  margin: 0;
  font-size: 1.45rem;
}

.latest-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.camera-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.camera-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.18;
}

.camera-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--soft);
}

.camera-card span {
  font-size: .88rem;
}

.latest-item {
  min-height: 190px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.latest-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--soft);
}

.latest-item:nth-child(3n) {
  border-right: 0;
}

.latest-item h3 {
  font-size: 1.2rem;
}

.read-link,
.back-link {
  color: var(--news-red);
  font-weight: 800;
}

.source-panel,
.notice {
  margin-top: 28px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}

.article-shell {
  max-width: 850px;
}

.admin-shell {
  width: min(940px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
  display: grid;
  gap: 28px;
}

.admin-panel {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.admin-panel h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.02;
}

.admin-note {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
}

.camera-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.camera-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.camera-form input {
  width: 100%;
  border: 1px solid var(--line);
  padding: 11px 12px;
  font: inherit;
}

.camera-form button {
  justify-self: start;
  border: 0;
  background: var(--news-red);
  color: #fff;
  padding: 11px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.form-message {
  padding: 11px 12px;
  font-weight: 800;
}

.form-message.success {
  background: #e9f7ef;
  color: #126333;
}

.form-message.error {
  background: #fdecec;
  color: #8f0000;
}

.admin-camera-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.article-page {
  padding-top: 8px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
}

.article-body {
  margin-top: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.72;
}

.article-body p {
  margin: 0 0 1.15em;
}

.source-cta {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 3px solid var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
}

.source-cta a {
  color: var(--news-red);
}

@media (max-width: 880px) {
  .brand-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .headline-grid,
  .latest-list,
  .camera-grid,
  .admin-camera-grid {
    grid-template-columns: 1fr;
  }

  .latest-item,
  .latest-item:nth-child(3n) {
    border-right: 0;
  }
}

@media (max-width: 560px) {
  .page-shell,
  .article-shell {
    width: min(100% - 24px, var(--max));
    padding-top: 22px;
  }

  .section-nav {
    justify-content: flex-start;
  }

  .lead-story h1,
  .article-page h1,
  .notice h1 {
    font-size: 2.15rem;
  }
}
