:root {
  --bg: #ffffff;
  --text: #152421;
  --muted: #5f6f6b;
  --line: #dce7e4;
  --soft: #f3f8f6;
  --teal: #006d68;
  --teal-dark: #024944;
  --yellow: #f5c84c;
  --yellow-soft: #fff3c2;
  --shadow: 0 18px 50px rgba(13, 55, 51, 0.12);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 10;
  transform: translateY(-160%);
  background: var(--text);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  position: sticky;
  top: 0;
  z-index: 4;
  backdrop-filter: blur(12px);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.top-nav a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--teal-dark);
  text-decoration: none;
}

.top-nav a:hover {
  background: var(--soft);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 42px;
  align-items: end;
  padding: 58px 0 44px;
}

.intro-copy {
  min-width: 0;
}

.intro h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 5.8vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.intro h1 span {
  display: block;
}

.intro p {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 20px;
  overflow-wrap: anywhere;
}

.intro p span {
  display: block;
}

.search-panel {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.search-panel label {
  display: block;
  margin-bottom: 9px;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 800;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
}

.search-row input {
  min-width: 0;
  width: 100%;
  border: 1px solid #c9d9d6;
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--text);
  font: inherit;
  background: #fff;
}

.search-row button {
  position: relative;
  border: 0;
  border-radius: var(--radius);
  background: var(--teal);
  color: #fff;
  cursor: pointer;
}

.search-row button::before,
.search-row button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transform-origin: center;
}

.search-row button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.search-row button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.archive-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding-bottom: 72px;
}

.year-panel {
  position: sticky;
  top: 102px;
  border-top: 4px solid var(--yellow);
  padding-top: 18px;
}

.year-panel h2 {
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--muted);
  text-transform: uppercase;
}

.year-nav {
  display: grid;
  gap: 7px;
}

.year-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  background: #fff;
}

.year-link:hover {
  border-color: var(--teal);
}

.year-link.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.year-link strong {
  font-size: 13px;
  font-weight: 800;
  color: inherit;
}

.news-panel {
  min-width: 0;
}

.result-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.section-label {
  margin: 0 0 4px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.result-head h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
}

.result-count {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.news-list {
  display: grid;
  gap: 0;
}

.year-heading {
  margin: 34px 0 4px;
  padding: 9px 0;
  color: var(--teal-dark);
  font-size: 28px;
  line-height: 1;
}

.news-item {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.thumb {
  display: block;
  width: 172px;
  aspect-ratio: 1.14;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.thumb:hover img {
  transform: scale(1.035);
}

.image-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--teal-dark);
  background: linear-gradient(135deg, var(--soft), var(--yellow-soft));
  font-size: 26px;
  font-weight: 800;
}

.news-body {
  min-width: 0;
}

.news-body time {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 5px;
}

.news-body h4 {
  margin: 0;
  font-size: 23px;
  line-height: 1.23;
}

.news-body h4 a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.news-body p {
  margin: 9px 0 13px;
  color: var(--muted);
  font-size: 16px;
}

.read-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--yellow-soft);
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.read-link:hover {
  background: var(--yellow);
}

.empty-state {
  margin: 34px 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.empty-state h3 {
  margin: 0 0 6px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.footer-inner {
  min-height: 88px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--teal-dark);
  font-weight: 800;
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 28px, 1160px);
  }

  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }

  .top-nav {
    flex-wrap: wrap;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 38px 0 30px;
  }

  .intro h1 {
    font-size: 44px;
  }

  .intro p {
    font-size: 18px;
  }

  .archive-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .year-panel {
    position: static;
  }

  .year-nav {
    max-width: 100%;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .year-link {
    flex: 0 0 auto;
    min-width: 112px;
  }

  .result-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .news-item {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 0;
  }

  .thumb {
    width: 96px;
  }

  .news-body h4 {
    font-size: 19px;
  }

  .news-body p {
    font-size: 15px;
  }
}

@media (max-width: 520px) {
  .intro h1 {
    font-size: 34px;
    line-height: 1.04;
  }

  .intro p {
    max-width: 30ch;
    font-size: 17px;
  }

  .search-row {
    grid-template-columns: 1fr 40px;
  }

  .news-item {
    grid-template-columns: 1fr;
  }

  .thumb {
    width: 100%;
    max-height: 220px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
