:root {
  font-family:
    "Avenir Next", "Gill Sans", "Trebuchet MS", ui-sans-serif, system-ui,
    sans-serif;
  color: #171a14;
  background: #f4f0e6;
  --ink: #171a14;
  --muted: #686a60;
  --paper: #fffaf0;
  --paper-deep: #eee3cf;
  --line: #d7c9af;
  --green: #164f3a;
  --green-soft: #d8e6db;
  --red: #b04432;
  --red-soft: #f3d8ce;
  --blue: #263f6f;
  --gold: #dfb758;
  --shadow: 0 22px 70px rgba(57, 47, 28, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

button,
textarea,
input,
select {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(rgba(23, 26, 20, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 26, 20, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 12% 8%, rgba(223, 183, 88, 0.2), transparent 28%),
    #f4f0e6;
  background-size:
    38px 38px,
    38px 38px,
    auto,
    auto;
}

.landing-page {
  min-height: 100vh;
  padding: 24px;
}

.composer,
.workspace,
.supporting-grid,
.site-nav,
.hero,
.proof-strip,
.landing-section {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 6px 0 44px;
}

.brand-mark,
.nav-links,
.hero-actions,
.pressure-list li,
.board-header,
.board-result,
.artifact-item,
.sheet-footer {
  display: flex;
  align-items: center;
}

.brand-mark {
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.brand-symbol {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1;
}

.nav-links {
  gap: 20px;
}

.nav-links a,
.secondary-action {
  color: #3d4038;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover,
.secondary-action:hover {
  color: var(--red);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  padding: 4px 0 42px;
}

.hero-copy {
  padding: 24px 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  max-width: 820px;
  font-family: "Iowan Old Style", "Apple Garamond", Georgia, serif;
  font-size: clamp(3.4rem, 7vw, 6.9rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-family: "Iowan Old Style", "Apple Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

h4 {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.hero-lede,
.composer-intro p,
.dossier-copy p {
  color: #44483f;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.6;
}

.hero-lede {
  max-width: 620px;
}

.pressure-list {
  display: grid;
  gap: 10px;
  max-width: 620px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.pressure-list li {
  gap: 10px;
  padding: 11px 12px;
  border-left: 4px solid var(--red);
  background: rgba(255, 250, 240, 0.72);
  color: #383b34;
  font-weight: 800;
  line-height: 1.35;
}

.pressure-list svg {
  flex: 0 0 auto;
  color: var(--red);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.composer-box,
.panel,
.lane,
.feature-tile,
.dossier-sheet {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.composer-box,
.panel {
  padding: 20px;
}

.method-card,
.ballot-card {
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fff8e8;
}

.decision-board {
  position: relative;
  isolation: isolate;
  min-height: 520px;
  padding: clamp(18px, 3vw, 30px);
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.94), rgba(238, 227, 207, 0.96)),
    var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(1.3deg);
}

.decision-board::before,
.decision-board::after {
  position: absolute;
  z-index: -1;
  content: "";
}

.decision-board::before {
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--red);
  border-radius: 8px;
  background: var(--red-soft);
}

.decision-board::after {
  right: 34px;
  bottom: -30px;
  width: 120px;
  height: 120px;
  border: 2px solid var(--ink);
  background:
    linear-gradient(45deg, rgba(23, 26, 20, 0.12) 25%, transparent 25% 50%, rgba(23, 26, 20, 0.12) 50% 75%, transparent 75%),
    var(--gold);
  background-size: 18px 18px;
}

.board-header {
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
  font-weight: 900;
}

.board-header strong {
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.8rem;
}

.board-question {
  display: grid;
  gap: 8px;
  padding: 22px 0;
}

.board-question span {
  font-family: "Iowan Old Style", "Apple Garamond", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.board-question small {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

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

.preview-card {
  min-height: 128px;
  padding: 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.72);
}

.preview-card h3,
.feature-tile h3,
.dossier-sheet h3 {
  margin-bottom: 8px;
}

.preview-card ul,
.dossier-sheet ul {
  display: grid;
  gap: 7px;
}

.board-result {
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-weight: 800;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
}

.proof-strip div {
  display: grid;
  gap: 8px;
  min-height: 126px;
  padding: 22px;
  background: #fff6e4;
}

.proof-strip strong {
  font-family: "Iowan Old Style", "Apple Garamond", Georgia, serif;
  font-size: 1.35rem;
}

.proof-strip span,
.feature-tile p,
.dossier-sheet li {
  color: #4c5047;
  line-height: 1.45;
}

.landing-section {
  padding: 86px 0 0;
}

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

.section-heading > p:not(.eyebrow) {
  margin-bottom: 0;
  color: #44483f;
  font-size: 1.05rem;
  line-height: 1.55;
}

.method-router {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.method-card {
  min-height: 260px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.92), rgba(247, 235, 209, 0.96)),
    #fff8e8;
}

.method-card svg {
  margin-bottom: 42px;
  color: var(--blue);
}

.method-card p,
.ballot-card p,
.artifact-item {
  color: #4c5047;
  line-height: 1.45;
}

.lane-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.feature-tile {
  min-height: 230px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(57, 47, 28, 0.08);
}

.feature-tile svg {
  margin-bottom: 36px;
  color: var(--red);
}

.voting-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 56px);
  align-items: start;
}

.ballot-stack {
  display: grid;
  gap: 10px;
}

.ballot-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  min-height: 126px;
  padding: 18px;
  box-shadow: 8px 8px 0 rgba(38, 63, 111, 0.14);
}

.ballot-card > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-family: "Iowan Old Style", "Apple Garamond", Georgia, serif;
  font-weight: 900;
}

.dossier-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
}

.artifact-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.artifact-item {
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.artifact-item svg {
  flex: 0 0 auto;
  color: var(--green);
}

.dossier-sheet {
  position: relative;
  padding: 30px;
  box-shadow: var(--shadow);
}

.sheet-rule {
  height: 8px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green), var(--blue));
}

.dossier-sheet strong {
  display: block;
  margin-bottom: 18px;
  font-family: "Iowan Old Style", "Apple Garamond", Georgia, serif;
  font-size: 2.2rem;
  line-height: 1;
}

.sheet-footer {
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--green);
  font-weight: 900;
}

.landing-composer {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 90px 0 72px;
}

.composer-intro {
  position: sticky;
  top: 24px;
}

textarea {
  display: block;
  width: 100%;
  min-height: 190px;
  padding: 18px;
  border: 1px solid #bdae8f;
  border-radius: 8px;
  resize: vertical;
  background: #fffdf8;
  color: var(--ink);
  line-height: 1.5;
}

textarea:focus {
  outline: 3px solid rgba(223, 183, 88, 0.55);
  outline-offset: 2px;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.primary-action:hover {
  background: #0e3b2b;
}

.hero-action {
  min-height: 48px;
  margin-top: 0;
  padding: 0 20px;
}

.secondary-action {
  min-height: 48px;
  padding: 13px 2px;
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.template-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #f8efd9;
  color: #332d22;
  font-weight: 700;
}

.chip:hover {
  border-color: var(--red);
  background: #fff5e2;
}

.workspace {
  display: grid;
  gap: 18px;
  padding: 32px;
}

.workspace-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.status-pill {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
}

.map-grid,
.lane-grid,
.supporting-grid,
.pricing-grid {
  display: grid;
  gap: 12px;
}

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

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

.lane {
  min-height: 138px;
  padding: 18px;
}

ul {
  margin: 0;
  padding-left: 18px;
}

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

.compact-panel {
  margin-top: 18px;
}

@media (max-width: 760px) {
  .landing-page,
  .workspace {
    padding: 20px;
  }

  .site-nav {
    align-items: flex-start;
    padding-bottom: 28px;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .proof-strip,
  .method-router,
  .lane-feature-grid,
  .voting-panel,
  .dossier-section,
  .landing-composer {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 20px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.7rem);
  }

  .decision-board {
    min-height: auto;
    transform: none;
  }

  .decision-board::before {
    inset: 12px -10px -10px 12px;
  }

  .decision-board::after {
    display: none;
  }

  .board-grid {
    grid-template-columns: 1fr;
  }

  .proof-strip {
    gap: 1px;
  }

  .landing-section {
    padding-top: 58px;
  }

  .feature-tile {
    min-height: 180px;
  }

  .method-card {
    min-height: 190px;
  }

  .method-card svg {
    margin-bottom: 18px;
  }

  .feature-tile svg {
    margin-bottom: 18px;
  }

  .ballot-card {
    grid-template-columns: 48px minmax(0, 1fr);
    box-shadow: 5px 5px 0 rgba(38, 63, 111, 0.14);
  }

  .composer-intro {
    position: static;
  }

  .workspace-header,
  .map-grid,
  .lane-grid,
  .supporting-grid {
    grid-template-columns: 1fr;
  }

  .workspace-header {
    display: grid;
  }

  .status-pill {
    width: max-content;
  }
}
