:root {
  --bg: #f4efe5;
  --bg-strong: #e8dcc4;
  --surface: rgba(255, 250, 242, 0.78);
  --surface-strong: #fffdf8;
  --ink: #1d2b2a;
  --muted: #4f615e;
  --line: rgba(29, 43, 42, 0.14);
  --accent: #c85c3a;
  --accent-soft: rgba(200, 92, 58, 0.14);
  --shadow: 0 24px 80px rgba(53, 45, 31, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(200, 92, 58, 0.18), transparent 24%),
    radial-gradient(circle at bottom right, rgba(84, 110, 99, 0.18), transparent 20%),
    linear-gradient(180deg, var(--bg) 0%, #efe5d4 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(29, 43, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 43, 42, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.topbar,
.hero,
.panel,
.workspace-card,
.module-card {
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 18px 24px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(250, 241, 226, 0.82)),
    var(--surface);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-subtitle,
.muted {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
}

.topnav a:hover,
.link-button:hover {
  color: var(--ink);
}

.inline-form {
  margin: 0;
}

.link-button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.main-content,
.stack,
.flow-shell {
  display: grid;
  gap: 24px;
}

.hero,
.flow-grid,
.panel-grid,
.workspace-grid,
.module-grid,
.split {
  display: grid;
  gap: 18px;
}

.hero {
  padding: 28px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(250, 241, 226, 0.82)),
    var(--surface);
}

.hero,
.flow-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
}

.hero-copy h1,
.section-header h1,
.section-heading h2,
.panel h2,
.workspace-card h2,
.module-card h3,
.outcome-panel h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 5.8rem);
  line-height: 0.95;
}

.section-header h1,
.section-heading h2,
.outcome-panel h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1;
}

.eyebrow,
.panel-kicker,
.section-kicker,
.meta-label,
.module-index,
.panel-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  color: var(--muted);
}

.lede {
  max-width: 58ch;
  margin: 16px 0 0;
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--muted);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.hero-meta div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.meta-label {
  display: block;
  margin-bottom: 6px;
}

.panel-grid,
.workspace-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.panel,
.workspace-card,
.module-card {
  padding: 24px;
  border-radius: 24px;
  background: var(--surface);
}

.panel h2,
.workspace-card h2,
.module-card h3 {
  margin: 0 0 10px;
  font-size: 1.7rem;
}

.panel p,
.workspace-card p,
.module-card p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

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

.button-secondary {
  background: rgba(255, 253, 248, 0.96);
  border-color: var(--line);
  color: var(--ink);
}

.field,
.checkbox {
  display: grid;
  gap: 8px;
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  padding: 14px 16px;
  color: var(--ink);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(200, 92, 58, 0.24);
  outline-offset: 1px;
}

.checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.checkbox input {
  margin-top: 5px;
}

.validation-summary,
.field-error {
  color: #a64424;
  font-size: 0.92rem;
}

.meta-list {
  display: grid;
  gap: 12px;
}

.meta-list div,
.app-row,
.workspace-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.meta-list span,
.workspace-env,
.workspace-slug {
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.pill.subtle {
  background: rgba(29, 43, 42, 0.06);
  color: var(--ink);
}

.app-list {
  display: grid;
  gap: 14px;
}

.app-row {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.app-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.section-header {
  margin-bottom: 4px;
  max-width: 760px;
}

.section,
.section-heading {
  display: grid;
  gap: 16px;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.demo-grid {
  margin-top: 8px;
}

.demo-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(234, 225, 210, 0.88)),
    var(--surface-strong);
}

.demo-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.session-card {
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(234, 225, 210, 0.88)),
    var(--surface-strong);
  padding: 20px;
}

.panel-title {
  font-size: 1.4rem;
  color: var(--ink);
}

.small-text {
  word-break: break-word;
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 20px;
  }

  .topbar,
  .hero,
  .panel,
  .workspace-card,
  .module-card {
    padding: 20px;
    border-radius: 22px;
  }
}

@media (max-width: 880px) {
  .hero,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .meta-list div,
  .workspace-card-head,
  .app-row,
  .demo-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-meta {
    justify-content: flex-start;
  }
}
