:root {
  color-scheme: light;
  font: 1rem/1.7 system-ui, sans-serif;
  background: #faf6ef;
  color: #252e2b;
}

body { margin: 0; }

main {
  box-sizing: border-box;
  max-width: 50rem;
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 2.5rem);
}

header, footer {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center;
}

header { justify-content: space-between; }
footer { margin-top: 2rem; }

h1 {
  margin: 2rem 0 .5rem;
  font-size: clamp(1.8rem, 6vw, 3rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

h2 { margin: 0 0 .75rem; font-size: 1.35rem; }
p { max-width: 42rem; }

section {
  margin-top: 2rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: #fffdf8;
  border: 1px solid #d7cbbd;
  border-radius: 1rem;
}

figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; border-radius: .5rem; }
figcaption { color: #4c5853; font-size: .875rem; }

a { color: #71402c; text-underline-offset: .2em; }
header a, footer a, .button { display: inline-flex; align-items: center; min-height: 44px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid #71402c; outline-offset: 4px; }
.wordmark { font-family: Georgia, serif; font-size: 1.45rem; font-weight: 700; }
.skip { position: absolute; inset-block-start: -5rem; inset-inline-start: 1rem; }
.skip:focus { inset-block-start: .5rem; padding: .5rem; background: #fffdf8; }

.button {
  box-sizing: border-box;
  padding: .375rem 1rem;
  border-radius: .5rem;
  background: #71402c;
  color: #fff;
  font-weight: 650;
}

.button:hover { background: #542d1e; }
