:root {
  --bg: #edf0ef;
  --ink: #0f2327;
  --muted: #46595d;
  --rule: #c3cdcc;
  --panel: #0f2f33;
  --panel-ink: #e8f0ee;
  --brass: #a87c1e;
  --scale: #2c6a6a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a181b;
    --ink: #e6eeec;
    --muted: #9fb3b3;
    --rule: #23393d;
    --panel: #102a2e;
    --brass: #d4a84b;
    --scale: #2f7676;
  }
}

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

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--panel);
  color: var(--panel-ink);
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
}

/* Header */
.bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1.5rem;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
}
.bar nav { display: flex; gap: 1.5rem; }
.bar nav a { text-decoration: none; color: var(--muted); }
.bar nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 8vw, 6.5rem);
}
.hero h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.9rem);
  line-height: 1.06;
  max-width: 17ch;
}
.lede {
  max-width: 56ch;
  margin: 1.5rem 0 2rem;
  font-size: 1.15rem;
  color: var(--muted);
}
.cta {
  display: inline-block;
  padding: 0.85rem 1.3rem;
  background: var(--panel);
  color: var(--panel-ink);
  border: 2px solid var(--brass);
  border-radius: 2px;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.cta:hover { background: var(--brass); color: #0a181b; }

.shield {
  width: 100%;
  max-width: 21rem;
  height: auto;
  justify-self: center;
}

/* Content blocks */
.block {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) 2fr;
  gap: 1rem 2rem;
  padding-block: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--rule);
}
.block h2 { font-size: 1.8rem; line-height: 1.15; }
.plain { margin: 0; max-width: 58ch; font-size: 1.15rem; }

.services { margin: 0; }
.row {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) 2fr;
  gap: 0.5rem 2rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--rule);
}
.row:first-child { border-top: 0; padding-top: 0; }
.services dt {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25;
}
.services dd { margin: 0; max-width: 56ch; }

/* The services list sits in the right-hand column of its block */
#services { grid-template-columns: minmax(10rem, 1fr) 2fr; }
#services .services { grid-column: 2; }
#services .row { grid-template-columns: minmax(9rem, 1fr) 2fr; }

/* Contact */
.contact {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  background: var(--panel);
  color: var(--panel-ink);
  padding-block: clamp(3rem, 8vw, 5.5rem);
}
.contact h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.contact p { margin: 0.75rem 0 1.75rem; color: #b7c9c7; max-width: 48ch; }
.mail {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.4rem, 4.6vw, 2.5rem);
  color: var(--panel-ink);
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
  overflow-wrap: anywhere;
}
.mail:hover { text-decoration-color: var(--panel-ink); }

.foot { padding-block: 2rem; color: var(--muted); font-size: 0.9rem; }
.foot p { margin: 0; }

/* Mobile */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .shield { max-width: 14rem; justify-self: start; }
  .block, #services { grid-template-columns: 1fr; }
  #services .services { grid-column: 1; }
  .row, #services .row { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .wordmark { white-space: nowrap; font-size: 1.05rem; }
  .bar nav { gap: 1rem; }
}
