:root {
  color-scheme: light;
  --bg: #f5efe6;
  --panel: #fffdf9;
  --panel-soft: #f8f2ea;
  --text: #1f2933;
  --muted: #5d6872;
  --accent: #8f5c31;
  --accent-dark: #704621;
  --line: #d8ccbd;
  --shadow: 0 16px 40px rgba(31, 41, 51, 0.08);
  --radius: 20px;
  --max: 880px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(143, 92, 49, 0.1), transparent 30%),
    linear-gradient(180deg, #f8f4ed 0%, var(--bg) 100%);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}

body.shell-page {
  display: grid;
  place-items: center;
}

a {
  color: inherit;
}

.shell {
  width: min(calc(100% - 1.5rem), var(--max));
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.hero,
.panel + .panel {
  margin-top: 1rem;
}

.flow > * + * {
  margin-top: 1rem;
}

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

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

h1 {
  font-size: clamp(2.15rem, 6vw, 3.8rem);
}

h2 {
  font-size: 1.15rem;
}

p {
  margin: 0;
}

.lede,
.note,
.muted {
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 0.9rem;
}

.card {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}

.card > * + * {
  margin-top: 0.5rem;
}

.section-head > * + * {
  margin-top: 0.6rem;
}

.form-grid {
  display: grid;
  gap: 0.95rem;
}

.split {
  display: grid;
  gap: 0.95rem;
}

.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

input,
select,
textarea,
button {
  width: 100%;
  font: inherit;
}

input,
select,
textarea {
  border: 1px solid #ccbeaf;
  border-radius: 14px;
  background: #fffdfa;
  color: var(--text);
  padding: 0.88rem 0.95rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(143, 92, 49, 0.22);
  outline-offset: 1px;
  border-color: var(--accent);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 220px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  padding: 0.95rem 1.25rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-dark);
}

@media (min-width: 760px) {
  .shell {
    padding-top: 2rem;
  }

  .panel {
    padding: 1.8rem;
  }

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

  .three-up .card:first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 940px) {
  .three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .three-up .card:first-child {
    grid-column: auto;
  }
}
