:root {
  --paper: #f3efe6;
  --ink: #1b1a17;
  --muted: #5d5a52;
  --teal: #0f5c5a;
  --mustard: #e0a526;
  --rule: #d6d0c2;
  --radius: 6px;
  color-scheme: light;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: var(--teal); }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }

.site-header, main, .site-footer {
  width: min(44rem, 92vw);
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.mark {
  font: 700 1.25rem Georgia, "Times New Roman", serif;
  color: var(--ink);
  text-decoration: none;
}

nav a {
  margin-left: 1.25rem;
  color: var(--muted);
  text-decoration: none;
}
nav a:hover { color: var(--teal); }

.hero { padding: 4rem 0 3rem; }

.lede {
  margin: 0 0 0.5rem;
  color: var(--teal);
  font-weight: 600;
}

h1 {
  font: 700 clamp(2.4rem, 6vw, 3.6rem)/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.intro {
  max-width: 36rem;
  font-size: 1.15rem;
  color: var(--muted);
}

h2 {
  font: 700 1.6rem Georgia, "Times New Roman", serif;
  margin: 0 0 1rem;
}

section { padding: 2rem 0; border-top: 1px solid var(--rule); }

.projects {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}
.projects h3 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.projects p { margin: 0; color: var(--muted); }

.card {
  background: #fbf9f4;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem;
}

button {
  font: inherit;
  background: var(--teal);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  margin: 0 0.5rem 0.5rem 0;
  cursor: pointer;
}
button:hover { background: #0b4645; }

pre {
  background: var(--ink);
  color: var(--paper);
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  white-space: pre-wrap;
  min-height: 3rem;
}

form { display: grid; gap: 1rem; }
label { display: grid; gap: 0.35rem; font-weight: 600; }
input, textarea {
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
#form-status { margin: 0; color: var(--muted); }

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
