:root {
  --bg: #efe8db;
  --bg-alt: #f7f0e6;
  --surface: rgba(251, 248, 241, 0.86);
  --surface-strong: rgba(253, 250, 245, 0.94);
  --surface-deep: #1f2e2d;
  --text: #172321;
  --muted: #5d675f;
  --line: rgba(29, 52, 47, 0.16);
  --line-strong: rgba(29, 52, 47, 0.28);
  --accent: #8c4d31;
  --accent-soft: rgba(140, 77, 49, 0.1);
  --shadow: 0 18px 50px rgba(39, 34, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 0% -10%, #ddd2bf 0%, transparent 62%),
    radial-gradient(900px 580px at 100% 0%, #ece3d5 0%, transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-alt));
  line-height: 1.55;
  overflow-x: hidden;
}

.bg-graph {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: multiply;
}

.bg-graph svg {
  width: 100%;
  height: 100%;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.2rem 1.2rem 3rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  padding: 0.18rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

nav a {
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

nav a:hover {
  background: var(--accent-soft);
  border-color: rgba(140, 77, 49, 0.24);
  color: var(--text);
}

nav a.active {
  background: rgba(140, 77, 49, 0.12);
  border-color: rgba(140, 77, 49, 0.34);
  color: var(--text);
}

.sheet,
.panel,
.manifesto-card,
.essay-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.35rem;
  box-shadow: var(--shadow);
  min-width: 0;
}

h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

p,
ul,
ol {
  margin: 0;
}

p,
li {
  max-width: 68ch;
}

ul,
ol {
  padding-left: 1rem;
}

.sheet ul,
.sheet ol {
  display: grid;
  gap: 0.55rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.stack {
  display: grid;
  gap: 1rem;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.post-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 1rem;
}

.post-item {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.05rem;
}

.post-date {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.post-title {
  margin: 0.18rem 0 0.38rem;
  font-size: 1.55rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}

.sheet {
  gap: 1.4rem;
  max-width: 920px;
  margin: 0 auto;
}

.sheet-header {
  display: grid;
  gap: 0.55rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 56ch;
}

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

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

.hero-copy {
  background: linear-gradient(
    155deg,
    rgba(253, 248, 240, 0.92),
    rgba(245, 235, 223, 0.82)
  );
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 1.55rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.hero-copy h1 {
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.98;
  max-width: 10ch;
}

.hero-copy p:not(.eyebrow) {
  font-size: 1.02rem;
  color: rgba(23, 35, 33, 0.9);
}

.hero-aside {
  display: grid;
  min-width: 0;
}

.manifesto-card {
  background: linear-gradient(
    180deg,
    rgba(31, 46, 45, 0.97),
    rgba(40, 58, 57, 0.95)
  );
  color: #f5efe5;
  min-height: 100%;
}

.manifesto-card .eyebrow {
  color: rgba(245, 239, 229, 0.68);
}

.manifesto-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.8rem;
}

.manifesto-list li {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(245, 239, 229, 0.14);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

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

.panel {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
}

.panel h2 {
  font-size: clamp(1.35rem, 2.1vw, 2rem);
}

.panel-wide {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.55),
      rgba(255, 255, 255, 0.3)
    ),
    linear-gradient(135deg, rgba(140, 77, 49, 0.08), rgba(140, 77, 49, 0));
}

.statement-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.statement-block {
  padding: 1.25rem 0 1.25rem 1.1rem;
  border-left: 2px solid rgba(140, 77, 49, 0.38);
  min-width: 0;
}

.statement-block h2 {
  margin-top: 0.18rem;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  max-width: 14ch;
}

.split-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.essay-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.essay-card {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.essay-card h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: 1.45rem;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.sheet p + p,
.sheet p + ul,
.sheet p + ol,
.sheet ul + p,
.sheet ol + p {
  margin-top: 0.85rem;
}

.sheet p,
.sheet li {
  font-size: 1.05rem;
}

footer {
  margin-top: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

@media (max-width: 960px) {
  .hero,
  .home-grid,
  .statement-band,
  .essay-grid,
  .home-grid-bottom,
  .split-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  nav a {
    text-align: center;
    padding: 0.48rem 0.3rem;
  }

  .page {
    padding: 1rem 0.9rem 2.4rem;
    overflow-x: clip;
  }

  .page > *,
  .hero,
  .hero-copy,
  .hero-aside,
  .manifesto-card,
  .home-grid,
  .home-grid-bottom,
  .panel,
  .statement-band,
  .statement-block,
  .sheet,
  .essay-grid,
  .essay-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-copy,
  .sheet,
  .panel,
  .manifesto-card,
  .essay-card {
    padding: 1.1rem;
    border-radius: 20px;
  }

  .lead,
  .sheet p,
  .sheet li,
  .hero-copy p:not(.eyebrow),
  p,
  li {
    font-size: 0.98rem;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .bg-graph {
    opacity: 0.28;
  }
}
