:root {
  color-scheme: light;
  --ink: #252420;
  --muted: #524d45;
  --paper: #fbf8f1;
  --line: #d8cdbf;
  --accent: #a03c23;
  --light: #f2e7d6;
  font-family: system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.65; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid #246472; outline-offset: 4px; }
.wrap { width: min(72rem, calc(100% - 2.5rem)); margin-inline: auto; }
header { border-bottom: 1px solid var(--line); }
header .wrap, footer .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap; padding-block: 1rem;
}
.brand { font-size: 1.2rem; font-weight: 800; text-decoration: none; }
nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
nav a { font-weight: 650; }
.hero, .section, .page { padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero { background: var(--light); }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.5rem, 5vw, 4rem); }
h1, h2 { font-family: Georgia, serif; line-height: 1.02; letter-spacing: -.045em; }
h1 { margin: 0 0 1.1rem; font-size: clamp(2.55rem, 5.5vw, 5.1rem); }
h2 { margin: 0 0 .85rem; font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { margin: 0 0 .45rem; line-height: 1.22; }
.intro { max-width: 44rem; color: var(--muted); font-size: 1.12rem; }
figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; border-radius: .4rem; }
figcaption { margin-top: .45rem; font-size: .875rem; color: var(--muted); }
.button {
  display: inline-block; background: var(--accent); color: white; font: inherit;
  font-weight: 750; text-decoration: none; padding: .7rem 1.15rem;
  border-radius: .3rem; border: 1px solid transparent; cursor: pointer;
}
.button:hover { background: #87331f; }
.button:disabled { opacity: .65; cursor: default; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card, form { border: 1px solid var(--line); padding: 1.25rem; background: white; border-radius: .4rem; }
.card p { margin: 0; color: var(--muted); }
.band { background: var(--light); }
.article { max-width: 48rem; }
.article h2, .library h2 { margin-top: 2rem; }
.quote { align-items: start; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.wide { grid-column: 1 / -1; }
label { display: block; font-weight: 700; }
input, select, textarea {
  display: block; width: 100%; margin-top: .25rem; padding: .58rem;
  color: inherit; background: white; border: 1px solid #887d70;
  border-radius: .25rem; font: inherit;
}
textarea { resize: vertical; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 450; }
.check input { height: 1.2rem; width: 1.2rem; flex: none; }
.trap { position: absolute; left: -10000px; }
form .button { margin-top: .9rem; }
footer { border-top: 1px solid var(--line); }
footer p { margin: 0; }
@media (max-width: 48rem) { .split { grid-template-columns: 1fr; } .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .grid, .fields { grid-template-columns: 1fr; } nav { gap: .7rem; } }

.call-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: .55rem .9rem;
  border: 1px solid transparent;
  border-radius: .4rem;
  background: #a03c23;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.call-button:hover { filter: brightness(.88); text-decoration: underline; }
.call-button--footer { background: transparent; color: #a03c23; border-color: currentColor; }
.hero-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }
.hero-actions .call-button { padding: .75rem 1.15rem; }
.hero-actions .button--outline { color: inherit; background: transparent; border-color: currentColor; }
.hero-actions .button--outline:hover { text-decoration: underline; }

header .wrap > nav { margin-left: auto; }
@media (max-width: 48rem) {
  header .wrap { column-gap: .65rem; row-gap: .7rem; }
  header .wrap > nav { flex-basis: 100%; margin-left: 0; }
  .call-button--header { margin-left: auto; }
}
@media (max-width: 25rem) {
  header .wrap > .call-button--header { margin-left: 0; }
}
