@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --bg: #f4efe7;
  --paper: rgba(255, 251, 245, 0.92);
  --paper-strong: #fff9f1;
  --ink: #172024;
  --muted: #58656c;
  --line: rgba(23, 32, 36, 0.12);
  --accent: #de5f2a;
  --accent-strong: #b7481a;
  --accent-soft: rgba(222, 95, 42, 0.14);
  --moss: #2e5f4d;
  --gold: #c28e2f;
  --danger: #b74034;
  --shadow: 0 24px 60px rgba(23, 32, 36, 0.12);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: 'Space Grotesk', 'Trebuchet MS', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(194, 142, 47, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(46, 95, 77, 0.16), transparent 30%),
    linear-gradient(160deg, #f7f1e7 0%, #efe3d3 46%, #f3ebe2 100%);
}

body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(12px);
  opacity: 0.5;
}

body::before {
  width: 18rem;
  height: 18rem;
  top: -5rem;
  right: -4rem;
  background: rgba(222, 95, 42, 0.2);
}

body::after {
  width: 14rem;
  height: 14rem;
  left: -2rem;
  bottom: 6rem;
  background: rgba(46, 95, 77, 0.18);
}

.app-shell {
  padding: 2rem 1.25rem 3rem;
}

.shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.center-shell {
  min-height: calc(100vh - 5rem);
  display: grid;
  place-items: center;
}

.split-shell {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1.1fr);
  align-items: start;
}

.hero-panel,
.surface-card {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-panel {
  border-radius: var(--radius-xl);
  padding: 2rem;
  overflow: hidden;
}

.compact-panel {
  max-width: 44rem;
}

.surface-card {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 400;
}

h2 {
  font-size: 1.35rem;
}

h3 {
  font-size: 1rem;
}

.lede,
.muted-text,
.summary-list,
label,
input,
select,
button,
.status-banner,
.step-label,
.step-caption,
.preview-card,
.card-list,
.inline-note,
.pill,
.dashboard-grid,
.meta-grid,
.stat-block,
.info-row {
  line-height: 1.45;
}

.lede {
  max-width: 36rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.pill-row,
.cta-row,
.button-row,
.stepper,
.meta-grid,
.dashboard-grid,
.card-list,
.info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  font-size: 0.9rem;
}

.stepper {
  margin: 1rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.step-chip {
  min-width: 6.2rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.step-chip[data-active='true'] {
  background: var(--accent-soft);
  border-color: rgba(222, 95, 42, 0.32);
}

.step-chip[data-complete='true'] {
  background: rgba(46, 95, 77, 0.12);
  border-color: rgba(46, 95, 77, 0.24);
}

.step-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.step-caption {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

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

.field-grid.single-column,
.field-grid .full-width {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 500;
}

input,
select,
button,
a.button {
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(23, 32, 36, 0.16);
  border-radius: var(--radius-md);
  padding: 0.92rem 1rem;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

input:focus,
select:focus {
  outline: 2px solid rgba(222, 95, 42, 0.22);
  outline-offset: 2px;
  border-color: rgba(222, 95, 42, 0.36);
}

.button,
button {
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.2rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
}

.button:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.primary-button {
  background: var(--accent);
  color: #fff8f2;
  box-shadow: 0 10px 28px rgba(222, 95, 42, 0.25);
}

.secondary-button {
  background: var(--ink);
  color: #f8f1e6;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  border: 1px solid var(--line);
}

.button-row {
  margin-top: 1.2rem;
  justify-content: space-between;
}

.button-row .spacer {
  flex: 1 1 auto;
}

.status-banner,
.preview-card,
.stat-block {
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.status-banner {
  margin-top: 1rem;
}

.status-banner[data-tone='success'] {
  background: rgba(46, 95, 77, 0.12);
  border-color: rgba(46, 95, 77, 0.22);
}

.status-banner[data-tone='error'] {
  background: rgba(183, 64, 52, 0.11);
  border-color: rgba(183, 64, 52, 0.18);
}

.status-banner[data-tone='pending'] {
  background: rgba(194, 142, 47, 0.13);
  border-color: rgba(194, 142, 47, 0.2);
}

.preview-card {
  margin-top: 0.9rem;
}

.preview-url {
  display: block;
  margin-top: 0.2rem;
  color: var(--accent-strong);
  font-weight: 700;
}

.inline-note {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.inline-note[data-tone='error'] {
  color: var(--danger);
}

.inline-note[data-tone='success'] {
  color: var(--moss);
}

.summary-list,
.card-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.card-list {
  display: grid;
  gap: 0.45rem;
}

.card-list strong,
.summary-list strong {
  color: var(--ink);
}

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

.dashboard-grid {
  margin-top: 1rem;
}

.stat-block strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.15rem;
}

.section-divider {
  height: 1px;
  margin: 1.25rem 0;
  background: linear-gradient(90deg, transparent, rgba(23, 32, 36, 0.14), transparent);
}

.footer-note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.86rem;
}

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

  .hero-panel {
    padding: 1.5rem;
  }
}

@media (max-width: 680px) {
  .app-shell {
    padding-inline: 0.9rem;
  }

  .field-grid,
  .meta-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .button-row {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .button-row .spacer {
    display: none;
  }

  .button,
  button {
    width: 100%;
  }
}
