:root {
  --ink: #231f1b;
  --muted: #645c52;
  --line: #ded4c8;
  --paper: #fbf8f3;
  --panel: #fffdf9;
  --cedar: #744b2f;
  --moss: #4d6040;
  --gold: #b88735;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: var(--cedar);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: #2d281f;
  color: #fff8ef;
}

.brand {
  color: inherit;
  display: grid;
  text-decoration: none;
}

.brand-title {
  font-weight: 700;
}

.brand-subtitle,
.eyebrow,
.meta,
.privacy-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-header .brand-subtitle {
  color: #d8c8b6;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-nav a,
.site-nav button {
  color: #fff8ef;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.page {
  width: min(1100px, calc(100% - 2rem));
  margin: 2rem auto;
}

.hero {
  min-height: 55vh;
  display: grid;
  align-content: center;
  padding: clamp(2rem, 6vw, 5rem) 0;
}

.hero h1,
.panel h1 {
  max-width: 760px;
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
}

.panel h1 {
  font-size: 2rem;
}

.hero p {
  max-width: 650px;
}

.actions,
.section-header,
.choice-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-header {
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--cedar);
  border-radius: 6px;
  background: var(--cedar);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

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

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1rem, 4vw, 2rem);
}

.panel.narrow {
  max-width: 680px;
}

.resource-list {
  display: grid;
  gap: 1rem;
}

.resource-item,
.choice {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
}

.choice {
  flex: 1 1 240px;
  color: inherit;
  text-decoration: none;
}

.stacked-form p {
  display: grid;
  gap: 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  font: inherit;
}

textarea {
  resize: vertical;
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.acknowledgement-form {
  margin-top: 1rem;
}

.meta-list div {
  display: flex;
  gap: 0.75rem;
}

.meta-list dt {
  font-weight: 700;
}

.reply-code {
  padding: 0.75rem;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: #fff7e8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .site-header,
  .section-header,
  .search-form {
    align-items: stretch;
    flex-direction: column;
  }
}
