:root {
  --background: #f5f1e8;
  --surface: #ffffff;
  --text: #27212b;
  --muted: #746f76;
  --border: #ded8ce;
  --accent: #d85f55;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: system-ui, sans-serif;
  margin: 0;
}

a {
  color: inherit;
}

.header,
.footer,
.page {
  margin: 0 auto;
  max-width: 1120px;
  padding-left: 24px;
  padding-right: 24px;
}

.header {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  align-items: center;
  display: flex;
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  gap: 9px;
  text-decoration: none;
}

.brand span {
  background: var(--text);
  border-radius: 50%;
  color: #f4b64d;
  display: grid;
  font-size: 10px;
  height: 30px;
  place-items: center;
  width: 30px;
}

.header nav {
  display: flex;
  gap: 24px;
}

.header nav a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.page {
  min-height: calc(100vh - 142px);
}

.hero {
  align-items: center;
  display: grid;
  gap: 60px;
  grid-template-columns: 1.2fr 0.8fr;
  padding: 96px 0;
}

.eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

h1 {
  font-family: Georgia, serif;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  margin-bottom: 24px;
}

.lead {
  color: var(--muted);
  line-height: 1.7;
  max-width: 650px;
}

.button {
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 18px;
  text-decoration: none;
}

.button-secondary {
  background: transparent;
  color: var(--accent);
}

.placeholder {
  align-items: center;
  background: #ebe5dc;
  border: 1px dashed #b8b0a5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
  padding: 30px;
  text-align: center;
}

.placeholder span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}

.section,
.content {
  padding: 70px 0;
}

.section > h2,
.story-list h2 {
  font-family: Georgia, serif;
}

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.cards article,
.story-list article,
.story-form {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
}

.cards small,
.story-list small {
  color: var(--muted);
}

.cards h3 {
  margin: 18px 0 10px;
}

.cards p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.page-heading {
  margin-bottom: 36px;
}

.page-heading h1 {
  font-size: clamp(38px, 5vw, 58px);
}

.row-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
}

.story-form {
  max-width: 820px;
}

fieldset {
  border: 0;
  border-bottom: 1px solid var(--border);
  margin: 0 0 28px;
  padding: 0 0 10px;
}

legend {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 22px;
}

.form-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  background: #fff;
  border: 1px solid #cfc8bd;
  border-radius: 4px;
  font: inherit;
  padding: 12px;
  width: 100%;
}

.field input[type="checkbox"] {
  margin-right: 8px;
  width: auto;
}

.story-list img,
.content > section img {
  height: auto;
  max-width: 100%;
}

.error {
  color: #a42f28;
  display: block;
  margin-top: 5px;
}

.form-note {
  color: var(--muted);
  font-size: 11px;
  margin: 14px 0 0;
}

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

.story-list article {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.story-list h2 {
  margin: 7px 0 0;
}

.messages {
  margin: 18px auto 0;
  max-width: 1072px;
}

.message {
  background: #fff4d6;
  border: 1px solid #e5cf8c;
  margin: 0;
  padding: 12px 16px;
}

.footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  font-size: 11px;
  justify-content: space-between;
  padding-bottom: 28px;
  padding-top: 28px;
}

@media (max-width: 720px) {
  .header nav {
    gap: 12px;
  }

  .hero,
  .cards,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 30px;
    padding: 60px 0;
  }

  .row-heading {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }
}
