@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Newsreader:opsz,wght@6..72,400;6..72,500&display=swap");

:root {
  --paper: #f8f5ed;
  --paper-deep: #eee9dc;
  --ink: #191919;
  --muted: #6f6b63;
  --blue: #082c72;
  --blue-bright: #12489b;
  --amber: #c56c00;
  --line: #ccc5b6;
  --sans: "Inter", "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --content: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgb(255 255 255 / 70%), transparent 36rem),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.5;
}

a {
  color: inherit;
}

button {
  color: inherit;
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--blue);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
  background: rgb(248 245 237 / 94%);
  backdrop-filter: blur(12px);
}

.wordmark {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  text-decoration: none;
}

.primary-navigation {
  display: flex;
  align-self: stretch;
  gap: clamp(1rem, 2vw, 2rem);
}

.primary-navigation a {
  position: relative;
  display: grid;
  place-items: center;
  color: #333;
  font-size: 0.9rem;
  text-decoration: none;
}

.primary-navigation a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--blue);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: 180ms ease;
}

.primary-navigation a:hover,
.primary-navigation a:focus-visible,
.primary-navigation a.is-active {
  color: var(--blue);
}

.primary-navigation a:hover::after,
.primary-navigation a:focus-visible::after,
.primary-navigation a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu-button {
  display: none;
}

.home-intro,
.english-intro {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(6rem, 12vw, 10rem) 5vw;
  text-align: center;
}

.home-intro {
  padding-top: clamp(3rem, 6vw, 5rem);
}

.not-found > p {
  margin: 0 0 1.2rem;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--blue);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
}

.home-intro h1 {
  position: relative;
  left: 50%;
  width: max-content;
  font-size: clamp(2.2rem, 6.9vw, 6.2rem);
  text-align: center;
  transform: translateX(-50%);
  white-space: nowrap;
}

.short-rule {
  width: 50px;
  height: 2px;
  margin: 2rem auto;
  background: var(--amber);
}

.intro-visual {
  width: min(880px, 70.4vw);
  margin: 2.75rem 50% 3.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  transform: translateX(-50%);
}

.intro-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.lead,
.english-intro > p:last-child {
  max-width: 700px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.45;
}

.claim {
  margin: 3.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  color: var(--blue);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.archive-index {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 5vw;
}

.section-heading {
  display: none;
}

.section-heading h2,
.english-intro h2 {
  font-size: clamp(3rem, 6vw, 5.5rem);
}

.english-intro h2 {
  position: relative;
  left: 50%;
  width: max-content;
  font-size: clamp(2.5rem, 5.7vw, 5.2rem);
  transform: translateX(-50%);
  white-space: nowrap;
}

.category-list,
.story-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-list li,
.story-list li {
  border-top: 1px solid var(--line);
}

.category-list li:last-child,
.story-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.category-list a,
.story-list a {
  display: grid;
  grid-template-columns: 3.8rem 1fr 2rem;
  align-items: center;
  gap: 1rem;
  min-height: 108px;
  text-decoration: none;
  transition: color 160ms ease, padding 160ms ease, background 160ms ease;
}

.category-list a:hover,
.category-list a:focus-visible,
.story-list a:hover,
.story-list a:focus-visible {
  padding-right: 1rem;
  padding-left: 1rem;
  color: var(--blue);
  background: rgb(255 255 255 / 45%);
}

.list-number {
  color: var(--blue);
  font-family: var(--serif);
  font-size: 2rem;
}

.category-list strong,
.story-list strong {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 400;
}

.category-list svg,
.story-list svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.english-intro {
  padding-top: clamp(7rem, 14vw, 12rem);
  padding-bottom: clamp(7rem, 14vw, 12rem);
}

.category-page {
  max-width: 980px;
  min-height: 70vh;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 7rem) 5vw clamp(6rem, 10vw, 10rem);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: clamp(4rem, 8vw, 7rem);
  color: var(--muted);
  font-size: 0.75rem;
}

.breadcrumbs a {
  color: var(--blue);
  text-underline-offset: 0.25rem;
}

.page-title,
.article-header {
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.page-title h1,
.article-header h1 {
  max-width: 980px;
  font-size: clamp(4.2rem, 10vw, 8.5rem);
}

.article-header h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.02;
}

.page-title .short-rule,
.article-header .short-rule {
  margin-right: 0;
  margin-left: 0;
}

.story-list a {
  min-height: 126px;
}

.article-page {
  padding: clamp(3rem, 7vw, 7rem) 5vw clamp(6rem, 10vw, 10rem);
}

.article-page article {
  max-width: 1100px;
  margin: 0 auto;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.65;
}

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

.article-body p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.1em 0 0;
  color: var(--blue);
  font-size: 4.5em;
  line-height: 0.72;
}

.story-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: clamp(5rem, 10vw, 9rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.story-navigation a {
  color: var(--blue);
  text-decoration: none;
}

.story-navigation span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-navigation strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
}

.story-navigation .next {
  text-align: right;
}

.site-footer {
  max-width: var(--content);
  margin: 0 auto;
  padding: 3rem 5vw 4rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
}

.site-footer nav a {
  color: var(--muted);
  font-size: 0.72rem;
  text-decoration: none;
}

.legal-navigation {
  margin-top: 2.5rem;
}

.site-footer .legal-navigation a {
  color: var(--blue);
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.not-found {
  max-width: 800px;
  min-height: 65vh;
  margin: 0 auto;
  padding: 10rem 5vw;
  text-align: center;
}

.not-found h1 {
  margin-bottom: 3rem;
  font-size: clamp(3rem, 8vw, 6rem);
}

.not-found a {
  color: var(--blue);
}

.legal-page {
  max-width: 900px;
  min-height: 70vh;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 7rem) 5vw clamp(6rem, 10vw, 10rem);
}

.legal-page article {
  max-width: 720px;
}

.legal-page .page-title h1 {
  font-size: clamp(4rem, 10vw, 7.5rem);
}

.legal-page section {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.legal-page section h2 {
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.legal-page section p {
  margin: 0.6rem 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.6;
}

.legal-page section a {
  color: var(--blue);
  text-underline-offset: 0.25rem;
}

.operator-details {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.operator-details div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 0.65rem 0;
}

.operator-details dt {
  color: var(--muted);
}

.operator-details dd {
  margin: 0;
}

@media (max-width: 600px) {
  .operator-details div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

@media (max-width: 900px) {
  .site-header {
    min-height: 72px;
  }

  .menu-button {
    display: grid;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 12px 10px;
    border: 0;
    background: transparent;
  }

  .menu-button span:not(.sr-only) {
    display: block;
    height: 1px;
    background: currentColor;
  }

  .primary-navigation {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    align-self: auto;
    padding: 1rem 4vw 2rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .primary-navigation.is-open {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .primary-navigation a {
    display: block;
    padding: 0.8rem 0;
    font-size: 0.9rem;
  }

  .primary-navigation a::after {
    display: none;
  }

}

@media (max-width: 600px) {
  .home-intro,
  .english-intro {
    padding-right: 6vw;
    padding-left: 6vw;
  }

  .home-intro h1 {
    font-size: clamp(1.75rem, 8.2vw, 2.2rem);
  }

  .lead,
  .english-intro > p:last-child {
    font-size: 1.25rem;
  }

  .english-intro h2 {
    font-size: clamp(1.9rem, 9vw, 2.35rem);
  }

  .intro-visual {
    width: 70.4vw;
    margin-top: 2rem;
    margin-bottom: 2.25rem;
  }

  .category-list a,
  .story-list a {
    grid-template-columns: 2.8rem 1fr 1.5rem;
    gap: 0.55rem;
    min-height: 96px;
  }

  .list-number {
    font-size: 1.5rem;
  }

  .category-list strong,
  .story-list strong {
    font-size: 1.3rem;
  }

  .page-title h1,
  .article-header h1 {
    font-size: clamp(3.5rem, 17vw, 5.8rem);
  }

  .article-header h1 {
    font-size: clamp(2.8rem, 13vw, 4.4rem);
  }

  .breadcrumbs {
    margin-bottom: 3.5rem;
  }

  .article-body {
    font-size: 1.25rem;
  }

  .story-navigation {
    grid-template-columns: 1fr;
  }

  .story-navigation .next {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
