@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@700;800&display=swap');
:root {
  --ink: #202b2c;
  --muted: #667672;
  --paper: #fbf8f1;
  --panel: #fff;
  --line: #dedfd9;
  --green: #174f45;
  --mint: #54ad7b;
  --yellow: #efbd48;
  --red: #e65e54;
  --blue: #4386c8;
  --shadow: 0 16px 45px rgba(35, 54, 50, 0.09);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 96% 5%, rgba(84, 173, 123, 0.11), transparent 28rem),
    radial-gradient(circle at 4% 42%, rgba(239, 189, 72, 0.09), transparent 24rem), var(--paper);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.7;
}
a {
  color: #146a5a;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: #0c463c;
}
.site-header {
  height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 241, 0.94);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header-inner {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.article-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font:
    800 18px Manrope,
    sans-serif;
}
.article-brand img {
  width: 39px;
  height: 39px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-nav a {
  padding: 8px 13px;
  border-radius: 20px;
  color: #53625e;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  background: #e9f3ed;
  color: var(--green);
}
.play-link {
  background: var(--green) !important;
  color: #fff !important;
}
.page {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto 60px;
}
.article-hero {
  max-width: 900px;
  margin: 64px auto 34px;
  text-align: center;
}
.kicker {
  margin: 0 0 12px;
  color: #2d806f;
  font:
    800 12px Manrope,
    sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.article-hero h1 {
  font:
    800 clamp(36px, 6vw, 66px) / 1.03 Manrope,
    sans-serif;
  letter-spacing: -0.045em;
  margin: 0;
}
.puzzle-landing-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.puzzle-preview {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}
.puzzle-summary {
  padding: 34px;
}
.puzzle-summary dl {
  margin: 0;
}
.puzzle-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.puzzle-summary dt {
  color: var(--muted);
}
.puzzle-summary dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}
.puzzle-rule-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 24px 0;
}
.puzzle-rule-list span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #e9f3ed;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}
.puzzle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.puzzle-play-button,
.puzzle-share-button {
  padding: 11px 17px;
  border: 1px solid var(--green);
  border-radius: 22px;
  font:
    800 14px 'DM Sans',
    system-ui,
    sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.puzzle-play-button {
  background: var(--green);
  color: #fff;
}
.puzzle-share-button {
  background: #fff;
  color: var(--green);
}
.puzzle-share-status {
  min-height: 1.7em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.puzzle-about {
  max-width: 780px;
  margin: 42px auto;
}
@media (max-width: 800px) {
  .puzzle-landing-card {
    grid-template-columns: 1fr;
  }
  .puzzle-preview {
    min-height: 0;
  }
}
.dek {
  max-width: 760px;
  margin: 22px auto 0;
  color: #53625e;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) 280px;
  gap: 42px;
  align-items: start;
  justify-content: center;
}
.article-card,
.index-card,
.landing-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.article-card {
  padding: clamp(24px, 5vw, 58px);
}
.lead {
  font-size: 20px;
  line-height: 1.65;
  color: #374642;
}
.article-card h2 {
  font:
    800 30px/1.2 Manrope,
    sans-serif;
  letter-spacing: -0.025em;
  margin: 48px 0 14px;
}
.article-card h3 {
  font:
    800 21px/1.3 Manrope,
    sans-serif;
  margin: 30px 0 10px;
}
.article-card p {
  margin: 0 0 20px;
}
.article-card ul,
.article-card ol {
  padding-left: 24px;
}
.article-card li {
  margin: 8px 0;
}
.article-figure {
  margin: 32px 0;
}
.article-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid #d7dfda;
  background: #f7faf8;
}
.article-figure figcaption {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 9px;
}
.callout {
  padding: 20px 22px;
  margin: 28px 0;
  border-left: 5px solid var(--yellow);
  border-radius: 4px 14px 14px 4px;
  background: #fff8dc;
}
.callout.green {
  border-color: var(--mint);
  background: #edf7f1;
}
.references {
  font-size: 14px;
}
.references li {
  margin: 12px 0;
}
.index-card {
  position: sticky;
  top: 94px;
  padding: 22px;
}
.index-card h2 {
  font:
    800 16px Manrope,
    sans-serif;
  margin: 0 0 12px;
}
.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.article-list li {
  margin: 2px 0;
}
.article-list a {
  display: block;
  padding: 7px 9px;
  border-radius: 8px;
  text-decoration: none;
  color: #53625e;
  font-size: 13px;
  line-height: 1.3;
}
.article-list a:hover,
.article-list a[aria-current='page'] {
  background: #e9f3ed;
  color: var(--green);
  font-weight: 700;
}
.article-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0;
}
.article-pagination a {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
}
.article-pagination a:last-child {
  text-align: right;
}
.article-pagination small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.article-pagination strong {
  color: var(--green);
  font:
    800 17px Manrope,
    sans-serif;
}
.landing-hero {
  padding: 70px 0 32px;
  text-align: center;
}
.landing-hero h1 {
  font:
    800 clamp(42px, 7vw, 76px) / 1 Manrope,
    sans-serif;
  letter-spacing: -0.05em;
  margin: 0;
}
.landing-hero p {
  max-width: 700px;
  margin: 22px auto;
  color: #53625e;
  font-size: 20px;
}
.landing-figure {
  max-width: 820px;
  margin: 15px auto 45px;
}
.landing-figure img {
  display: block;
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.landing-card {
  padding: 25px;
  text-decoration: none;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease;
}
.landing-card:hover {
  transform: translateY(-3px);
  border-color: #91a99f;
}
.landing-card span {
  font-size: 12px;
  color: #2d806f;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}
.landing-card h2 {
  font:
    800 24px/1.2 Manrope,
    sans-serif;
  color: var(--ink);
  margin: 7px 0;
}
.landing-card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.site-footer a {
  margin: 0 8px;
}
@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .index-card {
    position: static;
  }
  .article-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .article-hero {
    margin-top: 42px;
  }
}
@media (max-width: 620px) {
  .page,
  .site-header-inner {
    width: min(100% - 24px, 1160px);
  }
  .site-header {
    height: 64px;
  }
  .article-brand span {
    display: none;
  }
  .site-nav a {
    padding: 7px 9px;
    font-size: 12px;
  }
  .article-grid,
  .article-pagination {
    grid-template-columns: 1fr;
  }
  .article-list {
    grid-template-columns: 1fr;
  }
  .article-pagination a:last-child {
    text-align: left;
  }
  .article-card {
    border-radius: 16px;
  }
  .article-hero h1 {
    font-size: 38px;
  }
}
