:root {
  --paper: #f4efe6;
  --ink: #1c1915;
  --muted: #5e574d;
  --line: #d8d0c3;
  --accent: #8c3b22;
  --field: #fffdf8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
}

header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2rem;
}

.mark {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.25rem;
}

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

nav a {
  text-decoration: none;
}

nav a:hover,
.mark:hover {
  text-decoration: underline;
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 10vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

h2 {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

figure {
  margin: 1.25rem 0 0;
}

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

section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

p {
  margin: 0 0 1rem;
}

footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

footer p {
  margin: 0;
}

.field {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.35rem;
}

input,
textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--field);
  color: inherit;
  font: inherit;
}

textarea {
  resize: vertical;
}

button {
  margin-top: 0.25rem;
  padding: 0.65rem 1.15rem;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  cursor: pointer;
}

button:hover {
  background: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.status {
  margin-top: 1.5rem;
}

.status p {
  font-size: 1.35rem;
}

@media (min-width: 700px) {
  .page {
    padding: 2.75rem 1.5rem 5rem;
  }
}
