:root {
  --bg: #110f0d;
  --ink: #f6f1e7;
  --muted: #b7b0a4;
  --line: rgba(246, 241, 231, 0.16);
  --accent: #ff4d2e;
  --accent-ink: #1c0704;
  --max: 72rem;
  --read: 40rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a:hover { color: #ffb4a6; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.4rem 0.7rem;
}

.skip:focus { top: 0.75rem; }

.site-header,
.site-footer,
main {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem 0 1rem;
  border-bottom: 1px solid var(--line);
}

.wordmark,
.nav,
.site-footer,
h1, h2, h3, h4,
button,
label,
main > a {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.wordmark {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.nav, .site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.nav a, .site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover, .site-footer a:hover { color: var(--ink); }

main { padding: 2.5rem 0 4rem; }

main > :not(.message-form) { max-width: var(--read); }

main > a {
  display: inline-block;
  margin: 0.4rem 0.6rem 0.4rem 0;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

main > a:hover { border-color: var(--accent); color: var(--ink); }

h1 {
  max-width: 18ch;
  margin: 0 0 0.6rem;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h2 {
  margin: 2.2rem 0 0.6rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

h3 { margin: 1.4rem 0 0.4rem; font-size: 1.05rem; }

p { margin: 0.8rem 0; }

ul, ol { padding-left: 1.2rem; }

li + li { margin-top: 0.35rem; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p { margin: 0; }

.message-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
  max-width: 32rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}

input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #1a1714;
  color: var(--ink);
  border-radius: 0;
  padding: 0.7rem 0.75rem;
  font: 1rem "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

button {
  justify-self: start;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 0.75rem 1.2rem;
  cursor: pointer;
}

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

.form-status {
  min-height: 1.4em;
  color: var(--muted);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.paypal-static { margin: 1.5rem 0; }

@media (max-width: 640px) {
  body { font-size: 1.05rem; }
  .site-header, .site-footer, main { width: min(100% - 1.5rem, var(--max)); }
  main { padding-top: 1.75rem; }
}
