/* Dominion Digital Services. One stylesheet, no webfonts, no framework.
   The look comes from the 2012 brand: the charcoal and orange DOMINION
   wordmark, Century Gothic, and the business card's angled orange and
   charcoal band. See AGENTS.md before changing it. */

:root {
  --orange: #f58634;      /* the power O, sampled from the wordmark */
  --paper: #ffffff;
  --ink: #2a2a2c;
  --ink-2: #5d5d60;
  --rule: #e2e0dc;
  --link: #b4540f;        /* orange darkened to pass AA on white */
  --on-orange: #1f1f21;
  --slate: #333335;       /* the charcoal of the card's band */
  --brand: "Century Gothic", CenturyGothic, Futura, "Avenir Next", "URW Gothic", "Gill Sans", sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 38rem;
  --wide: 66rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #232324;
    --ink: #ecebe8;
    --ink-2: #b1b0ad;
    --rule: #3a3a3c;
    --link: #f58634;
    --slate: #2c2c2e;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }

.wrap { width: min(100% - 2rem, var(--wide)); margin-inline: auto; }
.prose > * { max-width: var(--measure); }
.prose > h1 { max-width: 52rem; }

a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--paper); padding: 0.5rem 0.75rem; }
.skip:focus { top: 1rem; }

h1, h2, h3 { font-family: var(--brand); font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(2rem, 1.25rem + 3.4vw, 3.5rem); margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2rem); margin: 0 0 1rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }
p { margin: 0 0 1rem; text-wrap: pretty; }
.lede { font-size: clamp(1.12rem, 1.02rem + 0.4vw, 1.3rem); color: var(--ink-2); }
.hl { color: var(--orange); }

/* The business card's band: orange, an angled cut, then charcoal. */
.band { height: 0.6rem; background: linear-gradient(115deg, var(--orange) 0 46%, #333335 calc(46% + 1px)); }

/* Header */
.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem; padding-block: 1.5rem;
}
.brand { display: block; line-height: 0; }
.brand img { height: 2.6rem; width: auto; max-width: 100%; }
.site-nav ul { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.site-nav a {
  font-family: var(--brand); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none; padding-block: 0.35rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--orange); }

/* Sections */
.hero { padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) clamp(2.5rem, 2rem + 3vw, 4rem); }
.section { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.section + .section { border-top: 1px solid var(--rule); }

/* Services: a spec sheet, not cards. Each column hangs from an orange rule. */
.offer { display: grid; gap: 2rem 2.5rem; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 0; list-style: none; }
@media (max-width: 52rem) { .offer { grid-template-columns: 1fr; } }
.offer > li { border-top: 4px solid var(--orange); padding-top: 1rem; }
.offer > li > p { color: var(--ink-2); }

/* The at-a-glance row under the hero: three facts, big numbers in the brand face. */
.proof { border-block: 1px solid var(--rule); }
.proof-row { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.proof-row > div { padding: 1.5rem 1.5rem 1.5rem 0; }
.proof-row > div + div { border-left: 1px solid var(--rule); padding-left: 1.5rem; }
.proof dt { font-family: var(--brand); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.proof dd { margin: 0.3rem 0 0; font: 700 clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem)/1 var(--brand); color: var(--ink); }
@media (max-width: 40rem) {
  .proof-row { grid-template-columns: 1fr; }
  .proof-row > div { padding: 1rem 0; }
  .proof-row > div + div { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
}

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 1.4rem; margin-bottom: 0.4rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.6rem; height: 0.6rem; background: var(--orange); }
.also { margin-top: 2.5rem; color: var(--ink-2); max-width: var(--measure); }

/* A heading on the left, prose on the right, on wide screens. */
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem 3rem; align-items: start; }
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; } }

/* The principal: text, and a photo once James supplies one. */
.principal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 3.5rem; align-items: center; }
/* A circle with an orange ring, after the power O in the wordmark. */
.principal-photo {
  display: block; width: clamp(9rem, 6rem + 10vw, 13rem); height: auto; aspect-ratio: 1;
  border-radius: 50%; object-fit: cover;
  border: 6px solid var(--orange); outline: 6px solid var(--paper); outline-offset: -12px;
}
@media (max-width: 40rem) { .principal { grid-template-columns: 1fr; } .principal picture { order: -1; } }

/* Our people on the home page: two side by side, photo beside the words. */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3.5rem; }
@media (max-width: 60rem) { .people { grid-template-columns: 1fr; max-width: var(--measure); } }
.person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 1.75rem; align-items: start; }
.person .principal-photo { width: clamp(6.5rem, 5rem + 4vw, 8.5rem); border-width: 5px; outline-width: 5px; outline-offset: -10px; }
.person h3 small { display: block; font-family: var(--text); font-weight: 400; font-size: 0.95rem; color: var(--ink-2); margin-top: 0.25rem; letter-spacing: 0; }
.person p { color: var(--ink-2); }
@media (max-width: 30rem) { .person { grid-template-columns: 1fr; } }

/* A full-width charcoal panel, for the one thing a returning visitor needs. */
.panel { background: var(--slate); color: #e6e5e2; }
.panel h2 { color: #fff; }
.panel a:not(.button) { color: var(--orange); }
.panel .lede { color: #c9c8c5; }
.section.panel + .section { border-top: 0; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.75rem; margin: 0 0 1rem; }
.facts dt { font-family: var(--brand); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); padding-top: 0.2rem; }
.facts dd { margin: 0; }
@media (max-width: 30rem) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 0.6rem; } }

.button {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--orange); color: var(--on-orange); text-decoration: none;
  font: 700 0.95rem/1 var(--brand); letter-spacing: 0.04em;
  padding: 0.9rem 1.25rem; border: 0; border-radius: 2px; cursor: pointer;
}
.button:hover { background: #ff9447; }
.button.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--rule); }
.button.quiet:hover { box-shadow: inset 0 0 0 2px var(--orange); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.75rem; }
.copied { color: var(--ink-2); font-size: 0.9rem; }

/* History. A rail with a ring per year; the last ring, today, is filled. */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 44rem; border-left: 3px solid var(--rule); }
.timeline li { position: relative; padding: 0 0 2.25rem 2rem; }
.timeline li:last-child { padding-bottom: 0.25rem; }
.timeline li::before {
  content: ""; position: absolute; left: -0.72rem; top: 0.3rem;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--orange);
}
.timeline li:last-child::before { background: var(--orange); }
.timeline .year { display: block; font: 700 1.6rem/1 var(--brand); color: var(--orange); margin-bottom: 0.4rem; }
.timeline h3 { margin-bottom: 0.3rem; }
.timeline p { color: var(--ink-2); margin: 0; }

/* Contact, laid out like the 2012 business card: name in orange on the left,
   phone, email and web with orange marks on the right. */
.card-contact { display: grid; gap: 1.5rem 3rem; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
@media (max-width: 44rem) { .card-contact { grid-template-columns: 1fr; } }
.card-name { font-family: var(--brand); font-weight: 700; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); color: var(--orange); margin: 0; line-height: 1.1; }
.card-name small { display: block; font-size: 1rem; font-weight: 400; color: var(--ink-2); margin-top: 0.5rem; letter-spacing: 0; }
.card-lines { list-style: none; margin: 0; padding: 0; font-family: var(--brand); font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); }
.card-lines li { display: flex; align-items: center; gap: 0.75rem; padding-block: 0.2rem; flex-wrap: wrap; }
.card-lines svg { width: 1.1rem; height: 1.1rem; flex: none; fill: var(--orange); }
.card-lines a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.card-lines a:hover { color: var(--link); text-decoration: underline; }
.card-lines .copy { font: inherit; font-size: 0.8rem; background: none; border: 0; color: var(--link); cursor: pointer; padding: 0.2rem; text-decoration: underline; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Footer */
.site-foot { color: var(--ink-2); font-size: 0.9rem; margin-top: 2rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 1.5rem 1.75rem; }
.site-foot p { margin: 0; }
.site-foot a { color: var(--ink-2); }

@media (prefers-reduced-motion: no-preference) {
  a, .button { transition: color 0.15s, background 0.15s, box-shadow 0.15s; }
}

@media print {
  .site-nav, .skip, .actions, .band { display: none; }
}
