/* Tenebris — site styles. No third-party fonts or scripts by design. */

:root {
  --ink: #0f2a3a;        /* deep petrol — primary dark */
  --ink-2: #163a4e;      /* lighter band of the same ink */
  --paper: #f6f7f5;      /* cool off-white page */
  --text: #1c262e;
  --muted: #5a6872;
  --rule: #d6dbdd;
  --brass: #a8781f;      /* accent: links, one rule */
  --brass-ink: #8a6219;  /* accent on hover / on light bg text */
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 62ch;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brass-ink); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.35rem; margin-bottom: .4rem; }
p  { margin: 0 0 1rem; max-width: var(--measure); }

.wrap { width: min(100% - 2 * var(--gutter), 68rem); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 10;
}
.skip:focus { left: var(--gutter); }

/* Header */
.site-header { background: var(--ink); color: #fff; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4.25rem; flex-wrap: wrap;
}
.brand {
  font-family: var(--serif); font-size: 1.5rem; color: #fff; text-decoration: none;
  letter-spacing: .02em;
}
.brand img { display: block; height: 2.4rem; width: auto; }
.site-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-nav a { color: #e6ebee; text-decoration: none; font-size: .95rem; }
.site-nav a:hover { color: #fff; text-decoration: underline; }

/* Hero */
.hero {
  background: var(--ink-2) url("../img/hero.webp") center / cover no-repeat;
  color: #fff; position: relative; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(15,42,58,.94) 35%, rgba(15,42,58,.55));
}
.hero .wrap { padding-block: clamp(3.5rem, 10vw, 7.5rem); }
.hero h1 { max-width: 20ch; }
.hero .lede { font-size: 1.2rem; margin-top: 1.25rem; max-width: 52ch; color: #e6ebee; }
.hero .since {
  display: inline-block; margin-top: 1.75rem; padding-top: .75rem;
  border-top: 1px solid var(--brass); color: #e6ebee; font-size: .95rem;
}
.hero .since a { color: #fff; }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--rule); }

/* What we do */
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 3rem; }
@media (min-width: 46rem) { .services { grid-template-columns: 1fr 1fr; } }
.services li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; }
.services .icon { width: 2.75rem; height: 2.75rem; margin-top: .2rem; }
.services h3 a { color: inherit; text-decoration: none; }
.services h3 a:hover { color: var(--brass-ink); }
.services p { margin-bottom: 0; }

/* Approach */
.approach { display: grid; gap: 2rem 3rem; }
@media (min-width: 46rem) { .approach { grid-template-columns: 1fr 1fr; } }
.approach h3 { color: var(--ink); }
.approach p { margin-bottom: 0; }
.approach > p { grid-column: 1 / -1; font-size: 1.15rem; color: var(--muted); max-width: 52ch; }

/* Contact */
.contact { display: grid; gap: 2rem 3rem; align-items: start; }
@media (min-width: 46rem) { .contact { grid-template-columns: 1.2fr 1fr; } }
.contact address { font-style: normal; line-height: 1.7; }
.contact address a { font-size: 1.15rem; }
.contact .map-note { color: var(--muted); font-size: .95rem; margin-top: .5rem; }

/* Footer */
.site-footer { background: var(--ink); color: #c9d2d8; font-size: .9rem; }
.site-footer .wrap {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-block: 1.5rem;
}
.site-footer a { color: #e6ebee; }

/* Simple pages (privacy, 404) */
.page .wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page h1 { margin-bottom: 1.5rem; }
.page h2 { font-size: 1.5rem; margin: 2.25rem 0 .75rem; }
.page h3 { font-size: 1.15rem; margin: 1.5rem 0 .4rem; font-family: var(--sans); font-weight: 600; }
.page address { font-style: normal; line-height: 1.6; margin-bottom: 1rem; }
.page .updated { color: var(--muted); font-size: .95rem; }
