:root {
  --paper: #f7f1e8;
  --paper-soft: #fbf8f2;
  --ink: #201a16;
  --muted: #766a60;
  --line: rgba(32, 26, 22, 0.14);
  --accent: #6a3f34;
  --accent-strong: #4930a3;
  --olive: #53624b;
  --blue: #315d78;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(45, 34, 24, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(32, 26, 22, 0.08);
  background: rgba(247, 241, 232, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
  color: var(--accent);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
}

nav a {
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--muted);
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  outline: none;
}

.hero {
  position: relative;
  min-height: clamp(420px, 56vh, 620px);
  overflow: hidden;
  isolation: isolate;
}

.hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 14, 11, 0.78), rgba(18, 14, 11, 0.34) 52%, rgba(18, 14, 11, 0.08)),
    linear-gradient(0deg, rgba(247, 241, 232, 1), rgba(247, 241, 232, 0) 28%);
}

.hero-content {
  display: flex;
  min-height: inherit;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) clamp(18px, 4vw, 48px) 96px;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.6rem);
  font-weight: 780;
  line-height: 0.92;
}

.hero-content > p:not(.eyebrow) {
  max-width: 600px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-meta span {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
}

.news-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  max-width: 1180px;
  margin: -48px auto 0;
  padding: 0 clamp(18px, 4vw, 48px) 76px;
}

.controls {
  align-self: start;
  position: sticky;
  top: 96px;
  display: grid;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(251, 248, 242, 0.94);
  box-shadow: var(--shadow);
}

.search-field,
.filter-group,
.source-block {
  display: grid;
  gap: 9px;
}

.search-field span,
.filter-group > span {
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 700;
  text-transform: uppercase;
}

input[type="search"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

input[type="search"]:focus {
  border-color: rgba(73, 48, 163, 0.5);
  outline: 3px solid rgba(73, 48, 163, 0.12);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.segmented button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}

.segmented button:hover,
.segmented button:focus-visible {
  border-color: rgba(83, 98, 75, 0.42);
  color: var(--ink);
  outline: none;
}

.segmented button.active {
  border-color: transparent;
  background: var(--olive);
  color: var(--white);
}

.source-block {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.source-block a {
  color: var(--blue);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.news-content {
  display: grid;
  gap: 18px;
}

.latest-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.84fr) minmax(0, 1.16fr);
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
  box-shadow: var(--shadow);
}

.latest-card:empty {
  display: none;
}

.latest-media {
  min-height: 280px;
  background: #ddd1c4;
}

.latest-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.latest-body {
  display: flex;
  min-width: 0;
  padding: clamp(22px, 4vw, 36px);
  flex-direction: column;
  justify-content: center;
}

.date-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  border-radius: 8px;
  padding: 5px 9px;
  background: rgba(106, 63, 52, 0.1);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.latest-body h2,
.news-card h2 {
  margin: 14px 0 0;
  line-height: 1.08;
}

.latest-body h2 {
  font-size: clamp(2rem, 4vw, 3.75rem);
}

.latest-body p,
.news-card p {
  color: var(--muted);
}

.latest-body p {
  margin: 18px 0 0;
  max-width: 55ch;
  font-size: 1.05rem;
}

.read-link {
  width: fit-content;
  margin-top: 20px;
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--accent-strong);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.read-link:hover,
.read-link:focus-visible {
  background: #36217d;
  outline: none;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.news-card {
  display: flex;
  min-height: 265px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
  flex-direction: column;
}

.news-card-media {
  height: 132px;
  background: #ddd1c4;
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-body {
  display: flex;
  min-width: 0;
  padding: 16px;
  flex: 1;
  flex-direction: column;
}

.news-card h2 {
  font-size: 1.1rem;
}

.news-card p {
  display: -webkit-box;
  margin: 10px 0 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 0.92rem;
}

.news-card .read-link {
  margin-top: auto;
  padding: 8px 10px;
  background: transparent;
  color: var(--accent-strong);
}

.empty-state {
  border: 1px dashed rgba(32, 26, 22, 0.28);
  border-radius: 8px;
  padding: 28px;
  background: rgba(251, 248, 242, 0.7);
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px clamp(18px, 4vw, 48px) 34px;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer p {
  max-width: 1180px;
  margin: 0 auto;
}

@media (max-width: 980px) {
  .news-shell {
    grid-template-columns: 1fr;
    margin-top: -34px;
  }

  .controls {
    position: relative;
    top: auto;
  }

  .news-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 520px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 88px;
  }

  .latest-card {
    grid-template-columns: 1fr;
  }

  .latest-media {
    min-height: 220px;
  }

  .news-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .brand {
    width: 100%;
  }

  .segmented {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.75rem, 18vw, 4.25rem);
  }
}
