/* Eibit — static homepage
   Palette and typography are defined as custom properties:
   adjust the values below to rebrand the whole page. */

:root {
  --bg: #fafaf7;
  --ink: #201f1b;
  --muted: #6c6a63;
  --hairline: #e4e2da;
  --accent: #274156;

  --serif: "Spectral", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

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

/* Visually hidden until focused */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  text-decoration: none;
  z-index: 10;
}

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

.wrap {
  max-width: 62rem;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 3rem);
}

.wrap.narrow {
  max-width: 46rem;
}

/* ---------- header ---------- */

.site-header {
  padding-block: 1.75rem;
}

.header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.site-header nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
}

.site-header nav a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 120ms ease;
}

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

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(4rem, 12vw, 8rem) clamp(3rem, 8vw, 5rem);
}

.eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 20ch;
}

.lede {
  margin-top: 1.75rem;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* ---------- sections ---------- */

#services,
#about,
#contact {
  padding-block: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--hairline);
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
}

/* ---------- services ---------- */

.services {
  list-style: none;
  padding: 0;
}

.services li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 0.75rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--hairline);
}

.services li:first-child {
  border-top: 0;
}

.services h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.4;
}

.services p {
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 46ch;
}

/* ---------- about ---------- */

.about-body {
  font-family: var(--serif);
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  line-height: 1.7;
  max-width: 56ch;
}

/* ---------- contact ---------- */

.mailto {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--serif);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease;
}

.mailto:hover,
.mailto:focus-visible {
  border-bottom-color: var(--accent);
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-block: 1.75rem;
  border-top: 1px solid var(--hairline);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 120ms ease;
}

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

/* ---------- responsive ---------- */

@media (max-width: 44rem) {
  .services li {
    grid-template-columns: 1fr;
    gap: 0.375rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
