:root {
  --ink: #111;
  --paper: #fff; /* matches the logo's white background so it blends in */
  --muted: #666;
  --line: #d6d6d6;
  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  background: var(--paper);
}
/* The home page already shows the big logo; keep the header to just the links */
.home .site-header { background: none; justify-content: flex-end; }
.home .wordmark { display: none; }

.wordmark { display: block; line-height: 0; }
.wordmark img { height: 56px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 1.8rem; font-size: 0.95rem; letter-spacing: 0.04em; }
.site-nav a {
  text-decoration: none;
  text-underline-offset: 6px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 0;
}

/* ---------- Home splash ---------- */
.splash {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 16px;
}
.splash h1 { margin: 0; line-height: 0; }
/* The logo file is 362px wide, so it will look a little soft this large;
   swap in a high-resolution version when you have one */
.splash-logo { display: block; width: min(820px, 90vw); height: auto; }

/* ---------- Inner pages ---------- */
.page-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 150px 24px 80px;
  font-size: 0.98rem;
}
.page-body.narrow { max-width: 420px; }
.page-body h1 { font-size: 2rem; font-weight: 700; margin: 0 0 1.6rem; line-height: 1.2; }
.page-body p { margin: 0 0 1.4em; }
.page-body a { text-underline-offset: 3px; }

.site-footer {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 30px 24px 40px;
}

/* Contact form */
.contact-form { margin-top: 3rem; }
.form-intro { font-weight: 700; margin-bottom: 1.5rem !important; }
.contact-form fieldset { border: 0; margin: 0 0 1.2rem; padding: 0; }
.contact-form legend { padding: 0; font-size: 0.9rem; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.contact-form label { display: block; font-size: 0.82rem; margin-bottom: 1.2rem; }
.contact-form .row label { margin-bottom: 0; }
.req { color: var(--muted); font-size: 0.75rem; }
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 2px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.submit {
  margin-top: 0.5rem;
  padding: 14px 34px;
  background: var(--ink);
  color: #fff;
  border: 0;
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}
.submit:hover { background: #333; }

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
  .site-header { padding: 18px 16px; }
  .wordmark img { height: 44px; }
  .menu-toggle { display: block; }

  .site-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    background: var(--paper);
    font-size: 1.4rem;
  }
  .nav-open .site-nav { display: flex; }

  .page-body { padding: 110px 16px 60px; }
  .contact-form .row { grid-template-columns: 1fr; gap: 1.2rem; }
}
