:root {
  --cream: #f6f0e8;
  --paper: #fbf7f2;
  --ink: #2a211c;
  --muted: #6b5e54;
  --terra: #9a5b45;
  --line: #e4d9cc;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
  --max: 64rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--terra);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.brand strong {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
}

.back {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.back:hover {
  color: var(--terra);
}

.hero {
  display: grid;
  justify-items: start;
  padding: 2.2rem 0 3rem;
}

.hero img {
  width: 112px;
  height: 112px;
  margin-bottom: 1.4rem;
  border-radius: 28px;
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--terra);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.lead {
  margin: 1.1rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.section {
  padding: 0 0 3.4rem;
}

.section h2 {
  margin: 0 0 0.8rem;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 500;
}

.section p {
  margin: 0 0 0.85rem;
  max-width: 38rem;
  color: var(--muted);
}

.panel {
  padding: 1.3rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  max-width: 40rem;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.2rem;
  padding: 1.5rem 0 2.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.foot nav {
  display: flex;
  gap: 1rem;
}

.foot a {
  color: inherit;
  text-decoration: none;
}

.foot a:hover {
  color: var(--terra);
}

@media (max-width: 640px) {
  .top {
    align-items: flex-start;
    flex-direction: column;
  }
}
