:root {
  color-scheme: light;
  background: #faf9f6;
  color: #45443e;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: clamp(48px, 10vh, 112px) clamp(24px, 6vw, 96px);
}

main {
  width: 100%;
}

h1 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #24241f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1 img {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.site-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px 40px;
  margin-bottom: 56px;
}

.site-header nav {
  display: flex;
  gap: 24px;
  font-size: 16px;
}

.site-header nav a[aria-current="page"] {
  color: #24241f;
  text-decoration-thickness: 2px;
}

p {
  margin: 0 0 1em;
}

.headline {
  margin-bottom: 20px;
  color: #24241f;
  font-size: clamp(28px, 6vw, 36px);
  line-height: 1.25;
}

main > p {
  max-width: 44rem;
}

section {
  margin-top: 56px;
}

section p {
  max-width: 48rem;
}

section > :last-child {
  margin-bottom: 0;
}

h2 {
  margin: 0 0 12px;
  color: #24241f;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.example {
  margin-top: 28px;
}

h3 {
  margin: 0;
  color: #24241f;
  font-size: 1em;
  font-weight: 400;
}

.example p {
  margin: 0;
}

.note {
  margin-top: 28px;
}

form {
  display: grid;
  gap: 16px;
  max-width: 32rem;
  margin-top: 24px;
}

label {
  display: grid;
  gap: 6px;
  color: #24241f;
  font-size: 16px;
}

.optional {
  color: #68655d;
}

input,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfcbc0;
  border-radius: 4px;
  background: #fff;
  color: #24241f;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid #24241f;
  outline-offset: 1px;
}

textarea {
  resize: vertical;
}

button {
  justify-self: start;
  padding: 10px 20px;
  border: 0;
  border-radius: 4px;
  background: #24241f;
  color: #faf9f6;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

button:hover {
  background: #45443e;
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

button:focus-visible {
  outline: 2px solid #24241f;
  outline-offset: 3px;
}

form .status {
  margin: 0;
  font-size: 16px;
}

form .status:empty {
  display: none;
}

footer {
  margin-top: 56px;
  color: #68655d;
  font-size: 15px;
}

footer p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-color: #aaa69d;
  text-underline-offset: 4px;
}

a:hover {
  color: #24241f;
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}
