:root {
  --bg: #0c1014;
  --bg-alt: #11171d;
  --panel: #121a22;
  --panel-strong: #0f151c;
  --line: rgba(220, 232, 245, 0.12);
  --line-strong: rgba(220, 232, 245, 0.2);
  --text: #e7edf4;
  --muted: #98a6b5;
  --soft: #b9c5d2;
  --accent: #8fb3d9;
  --max: 1160px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: linear-gradient(180deg, #0a0e12 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(10, 14, 18, 0.92);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.site-id,
.section-index,
.meta,
.footer-mark {
  font-family: "Consolas", "SFMono-Regular", "Liberation Mono", monospace;
  letter-spacing: 0.04em;
}

.site-id {
  margin: 0;
  color: var(--soft);
  font-size: 0.88rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

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

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

main {
  padding-bottom: 0;
}

.hero {
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.section-index {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  max-width: 13ch;
  font-size: clamp(2.8rem, 6.8vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.hero-side {
  padding-top: 0.3rem;
}

.hero-side p {
  margin-bottom: 1.25rem;
  max-width: 34rem;
  color: var(--soft);
  font-size: 1rem;
}

.hero-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
}

.hero-list li + li {
  margin-top: 0.45rem;
}

.section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.case-grid,
.theme-grid {
  display: grid;
  gap: 1rem;
}

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

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

.case-card,
.theme-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-strong) 100%);
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.08rem;
  line-height: 1.3;
  font-weight: 600;
}

.case-card p,
.theme-card p,
.framing-text p,
.footer-text {
  color: var(--soft);
}

.case-card p:last-child,
.theme-card p:last-child,
.framing-text p:last-child,
.footer-text:last-child {
  margin-bottom: 0;
}

.meta {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.framing-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 2rem;
}

.framing h2 {
  max-width: 10ch;
}

.framing-text {
  max-width: 52rem;
}

.site-footer {
  padding: 1.25rem 0 2.75rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.footer-mark,
.footer-text {
  margin-bottom: 0;
}

.footer-mark {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.footer-text {
  font-size: 0.94rem;
  text-align: right;
}

@media (max-width: 900px) {
  .hero-grid,
  .framing-grid,
  .case-grid,
  .theme-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    display: grid;
  }

  h1 {
    max-width: 12ch;
  }
}

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

  .site-nav {
    gap: 0.9rem;
  }

  .hero {
    padding-top: 3.25rem;
  }

  .section {
    padding: 2rem 0;
  }

  .case-card,
  .theme-card {
    padding: 1rem;
  }

  .footer-text {
    text-align: left;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.3rem, 12vw, 4rem);
  }
}
