:root {
  --ink:      #0a0a0b;
  --panel:    #121214;
  --line:     #26262b;
  --text:     #f2f0ec;
  --muted:    #9a968f;
  --accent:   #c8a86b;
  --accent-hi:#e3c98f;
  --wrap:     1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--text);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", "Iowan Old Style", serif;
  line-height: 1.05;
  margin: 0 0 0.5em;
  color: var(--text);
}

p { margin: 0 0 1em; }

a {
  color: var(--accent);
  text-decoration: none;
}

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

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

.muted { color: var(--muted); }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.wrap--prose { max-width: 720px; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--accent);
  color: var(--ink);
  padding: 0.5em 1em;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.brand {
  font-family: Georgia, "Times New Roman", "Iowan Old Style", serif;
  font-size: calc(1.25rem + 2px);
  color: var(--accent);
  letter-spacing: 0.02em;
}

.brand:hover { color: var(--accent-hi); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 3px 0;
}

#site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

#site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

#site-nav a:hover,
#site-nav a.on {
  color: var(--accent);
}

/* Hero */
.hero {
  border-bottom: 1px solid var(--accent);
  border-top: 1px solid var(--accent);
  position: relative;
  aspect-ratio: 2.39 / 1;
  min-height: 320px;
  display: flex;
  align-items: center;
  background: var(--panel);
  background-image: radial-gradient(ellipse at 50% 40%, transparent 40%, rgba(0, 0, 0, 0.65) 100%);
}

.hero__inner {
  width: 100%;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.75em;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  margin-bottom: 0.3em;
}

.hero__lede {
  color: var(--muted);
  max-width: 40ch;
  font-size: 1.1rem;
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  border-radius: 2px;
  font-size: 0.95rem;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent-hi);
  color: var(--ink);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sections */
.section {
  padding-block: 3rem;
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 1.5em 0;
}

.plain-list li {
  padding: 0.75em 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.plain-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.plain-list strong {
  color: var(--text);
}

.tile-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.tile {
  aspect-ratio: 16 / 9;
  background: var(--panel);
  border: 1px solid var(--line);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__nav {
  display: flex;
  gap: 1rem;
}

.site-footer__nav a {
  color: var(--muted);
}

.site-footer__nav a:hover {
  color: var(--accent);
}

/* Mobile nav collapse — only once JS has added .js to <html> */
html.js .nav-toggle {
  display: inline-block;
}

html.js #site-nav {
  display: none;
  flex-direction: column;
  width: 100%;
}

html.js #site-nav.open {
  display: flex;
}

@media (min-width: 760px) {
  html.js .nav-toggle {
    display: none;
  }

  html.js #site-nav {
    display: flex;
    flex-direction: row;
    width: auto;
  }

  .tile-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Contact form */
.contact-form {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form label {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.75em 0.9em;
  font: inherit;
  line-height: 1.45;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form button.btn {
  border: none;
  cursor: pointer;
  font: inherit;
}

.contact-form .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.flash-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.flash {
  padding: 0.85em 1em;
  border: 1px solid var(--line);
  border-radius: 2px;
  margin-bottom: 0.5rem;
  background: var(--panel);
}

.flash--success {
  border-color: var(--accent);
  color: var(--accent-hi);
}

.flash--error {
  border-color: #8a3a3a;
  color: #f0c4c4;
}

.contact-note {
  margin-top: 1.75rem;
  font-size: 0.9rem;
}

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