:root {
  color-scheme: light;
  --bg: #f4f0e8;
  --ink: #151515;
  --muted: #626159;
  --line: #d7d0c3;
  --panel: #fffaf0;
  --panel-strong: #1d1b18;
  --accent: #b8ff38;
  --accent-2: #ff5b2e;
  --accent-3: #25cad3;
  --shadow: 0 24px 80px rgba(27, 24, 18, 0.16);
  --radius: 8px;
  font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10100e;
  --ink: #f4f0e8;
  --muted: #b8b0a2;
  --line: #39352d;
  --panel: #191812;
  --panel-strong: #f4f0e8;
  --accent: #b8ff38;
  --accent-2: #ff714d;
  --accent-3: #4dd5dc;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(21, 21, 21, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 12% 8%, rgba(184, 255, 56, 0.26), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(37, 202, 211, 0.2), transparent 24rem),
    var(--bg);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  background: var(--accent);
  color: #111;
  padding: 10px 14px;
}

.skip-link:focus {
  top: 16px;
}

.site-header,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}

.brand,
.nav,
.actions,
.site-footer,
.metric-list,
.tags {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
}

.nav {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a,
.theme-toggle,
.button,
.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  color: var(--ink);
  text-decoration: none;
}

.nav a,
.theme-toggle {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 0.94rem;
}

.theme-toggle {
  width: 40px;
  cursor: pointer;
}

.section,
.section-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 76px 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  min-height: calc(100vh - 96px);
  padding: 30px 0 70px;
}

.eyebrow,
.card-kicker,
.status,
.tag,
.post-row em {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 880px;
  margin-top: 14px;
  font-size: clamp(3.5rem, 10vw, 8.8rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  font-weight: 500;
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--muted);
}

.hero-lede {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--ink);
  font-size: clamp(1.08rem, 2vw, 1.36rem);
}

.hero-lede.en {
  color: var(--muted);
}

.actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  min-height: 46px;
  padding: 11px 18px;
  font-weight: 800;
}

.button.primary {
  background: var(--accent);
  border-color: #111;
  color: #111;
}

.hero-panel {
  position: relative;
  padding: 14px;
  background: var(--panel-strong);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(1.4deg);
}

.signal-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.signal-card h2 {
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.signal-card p {
  margin: 0;
}

.status.live {
  flex: 0 0 auto;
  background: var(--accent);
  color: #111;
  border: 1px solid #111;
  border-radius: 999px;
  padding: 5px 9px;
}

.product-shot {
  width: 100%;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  object-fit: cover;
}

.section-heading {
  display: grid;
  gap: 14px;
  max-width: 900px;
  margin-bottom: 28px;
}

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

.feature,
.project-card,
.content-card,
.notice,
.article-shell {
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature,
.project-card,
.content-card,
.notice {
  padding: 22px;
}

.feature-index {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--accent-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 28px;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split p {
  max-width: 650px;
}

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

.metric-list div {
  min-height: 132px;
  padding: 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
}

.metric-list strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

.metric-list span {
  display: block;
  margin-top: 10px;
  color: color-mix(in srgb, var(--bg) 74%, transparent);
}

.post-list {
  display: grid;
  gap: 10px;
}

.post-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.post-row:last-child {
  border-bottom: 1px solid var(--line);
}

.post-row span {
  color: var(--accent-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.page-hero {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0 52px;
}

.page-hero p {
  max-width: 760px;
  font-size: 1.16rem;
}

.project-card {
  display: grid;
  gap: 16px;
  text-decoration: none;
}

.project-card img {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.tags {
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 5px 9px;
}

.article-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto 80px;
  padding: clamp(22px, 4vw, 46px);
}

.article-shell h2,
.article-shell h3 {
  margin-top: 38px;
  margin-bottom: 10px;
}

.article-shell h2 {
  font-size: clamp(1.7rem, 4vw, 3rem);
}

.article-shell h3 {
  font-size: 1.28rem;
}

.article-shell li + li {
  margin-top: 8px;
}

.article-image {
  margin: 28px 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.notice {
  border-color: color-mix(in srgb, var(--accent-2) 60%, var(--line));
}

.notice strong {
  color: var(--accent-2);
}

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

.content-card {
  display: grid;
  gap: 8px;
}

.content-card p,
.content-card h3 {
  margin: 0;
}

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

  .section-grid,
  .split,
  .feature-grid,
  .project-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    transform: none;
  }

  .post-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .post-row em {
    grid-column: 2;
  }
}

@media (max-width: 540px) {
  .nav a,
  .theme-toggle {
    min-height: 44px;
  }

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

  .signal-card {
    flex-direction: column;
  }
}
