/* Tacentia. One stylesheet for every page. No JavaScript anywhere. */

@font-face {
  font-family: "Source Serif 4";
  src: url(/fonts/SourceSerif4-Regular.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url(/fonts/SourceSerif4-Semibold.woff2) format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url(/fonts/SourceSans3VF-Upright.woff2) format("woff2-variations");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #12151C;
  --ink: #EDE8DF;
  --ink-soft: rgba(237, 232, 223, 0.65);
  --copper: #C98B5E;                 /* the lighter copper: the only copper on the dark ground */
  --accent: var(--copper);
  --rule: rgba(201, 139, 94, 0.3);
  --serif: "Source Serif 4", Charter, Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 68ch;
  --wrap: 1120px;
  --gap: 3rem;
}

html {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
@media (max-width: 600px) {
  html { font-size: 17px; }
}

body { margin: 0; padding: 0 1.5rem; }

.wrap { max-width: var(--wrap); margin-inline: auto; }
.prose { max-width: var(--measure); }

/* Type scale: h1 64 to 72, h2 32, h3 22, body 18, pull lines 32 to 40 */
h1, h2, h3, .pull, .stage, .cta { font-family: var(--serif); font-weight: 400; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
h1 { font-size: clamp(2.65rem, 5vw, 4rem); letter-spacing: -0.012em; }
h2 { font-size: 1.78rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.22rem; margin: 0 0 0.6rem; }
h2 a, h3 a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.12em; text-decoration-color: var(--rule); }
h2 a:hover, h3 a:hover, h2 a:focus-visible, h3 a:focus-visible { text-decoration-color: var(--accent); }

p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: 0.5em; }
strong { font-weight: 600; }

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
/* A link inside running text needs more than color to be identifiable (WCAG 1.4.1). */
p a:not(.cta), li a { text-decoration: underline; text-underline-offset: 0.18em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Identity: the mark is inline SVG, the wordmark is type. One lockup, three sizes. */
.lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55em;
  color: var(--ink);
  line-height: 1;
}
a.lockup:hover, a.lockup:focus-visible { text-decoration: none; }
.lockup .mark { height: 0.62em; width: 2.48em; flex: none; }
.lockup .wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1em;
  letter-spacing: -0.012em;
  line-height: 1;
}
.lockup-header { font-size: 28px; }
.lockup-cover { font-size: 64px; }
.lockup-print { font-size: 22px; }

/* Header: the lockup and three links */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 1.75rem 0 0;
}
.site-header nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.site-header nav a { color: var(--ink-soft); }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--ink); }

/* Hero: the claim, two lines, one action, and the mark set large */
.hero {
  min-height: calc(100vh - 7rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  gap: 3rem 4rem;
  align-items: center;
  padding: 3rem 0 4rem;
}
.hero h1 { margin-bottom: 1.75rem; max-width: 12ch; }
.hero .line { font-size: 1.22rem; line-height: 1.5; max-width: 32em; margin-bottom: 1.25rem; }
.hero .cta { margin-top: 1rem; }
.hero .tagline { color: var(--ink-soft); font-size: 0.95rem; margin: 2.5rem 0 0; }
.hero-mark { width: 100%; max-width: 480px; height: auto; color: var(--ink); justify-self: center; }

/* The single call to action */
.cta {
  display: inline-block;
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.85em 1.8em;
}

/* Pull lines: full width, large, with air */
.pull {
  font-size: clamp(1.9rem, 2.8vw, 2.25rem);
  line-height: 1.25;
  margin: 5.5rem 0;
}

/* Sections: a copper hairline and generous space; text at the measure, groups at full width */
.section {
  border-top: 1px solid var(--rule);
  margin-top: 6rem;
  padding-top: 3.5rem;
}
.section.plain { border-top: 0; }

/* Column rhythm: no boxes, no borders */
.cols-3, .cols-2 {
  display: grid;
  gap: 2.5rem var(--gap);
  margin: 2.5rem 0 1rem;
}
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 p:last-child, .cols-2 p:last-child { margin-bottom: 0; }
.cols-3 + .prose, .cols-2 + .prose { margin-top: 3.5rem; }

/* The one diagram: three stages on a horizontal line, durations beneath. Once per page. */
.timeline {
  list-style: none;
  margin: 3rem 0 3rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  right: calc(33.333% - 8px);
  top: 8px;
  height: 1px;
  background: var(--accent);
}
.timeline li { position: relative; margin: 0; padding: 2.25rem 1.5rem 0 0; }
.timeline li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--ground);
}
.timeline .stage { display: block; font-size: 1.78rem; line-height: 1.1; }
.timeline .duration { display: block; color: var(--ink-soft); margin-top: 0.4rem; }

/* People: a reserved place for each portrait, then the words */
.person {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
  align-items: start;
}
/* The portrait column is reserved but does not stretch the row while it is empty; a supplied
   photograph fills it as a square. */
.person .portrait:not(:empty) { aspect-ratio: 1; }
.person .portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.person p:last-child { margin-bottom: 0; }

/* Proof: a strip of three, more space between than around */
.proof { gap: 2rem 4rem; margin-top: 2rem; }
.proof p { margin: 0; }
.proof h3 { font-size: 1.1rem; }
.proof-head { margin-top: 4rem; }

/* Closing: the one action, set apart */
.closing {
  border-top: 1px solid var(--accent);
  margin-top: 9rem;
  padding: 5.5rem 0 3rem;
}
.closing h2 { font-size: 2.4rem; margin-bottom: 1.25rem; }
.closing .line { font-size: 1.2rem; margin-bottom: 2rem; max-width: 34em; }
.closing .contact { margin-top: 3rem; color: var(--ink-soft); }
.closing .contact a { color: var(--ink); }

footer {
  margin-top: 5rem;
  padding: 2rem 0 3rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
footer span + span { margin-left: 1.5rem; }

/* Inner pages: a title, then text at the measure */
.page-title { padding: 6rem 0 1rem; }
.page-title h1 { font-size: clamp(2.4rem, 4vw, 3.2rem); max-width: 16ch; }
.page-title .lede { font-size: 1.22rem; line-height: 1.5; max-width: 32em; margin-top: 1.5rem; }
.page { max-width: var(--measure); margin-inline: auto; }
.masthead-small { padding-top: 5rem; padding-bottom: 2rem; }
.masthead-small h1 { font-size: 2.25rem; }

/* Narrow screens: one column, the line turns vertical, the mark sits beneath the claim */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-mark { max-width: 480px; justify-self: start; margin-top: 1rem; }
}
@media (max-width: 760px) {
  .cols-3, .cols-2 { grid-template-columns: 1fr; gap: 2rem; }
  .pull { margin: 3.5rem 0; }
  .section { margin-top: 4.5rem; padding-top: 2.5rem; }
  .closing { margin-top: 6rem; padding-top: 4rem; }
  .timeline { grid-template-columns: 1fr; gap: 2rem; }
  .timeline::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .timeline li { padding: 0 0 0 2.25rem; }
  .timeline li::before { top: 8px; }
  .person { grid-template-columns: 1fr; gap: 1rem; }
  .person .portrait:empty { display: none; }
  .person .portrait { max-width: 120px; }
  .page-title { padding-top: 3.5rem; }
}

/* Print: drop the dark ground. The leave-behind PDF adds a dark cover. */
@page { margin: 22mm 20mm; }
@media print {
  :root { --copper: #B87333; --accent: #B87333; --ink: #12151C; --ink-soft: rgba(18, 21, 28, 0.65); --rule: rgba(184, 115, 51, 0.3); }
  html { background: #fff; color: #12151C; font-size: 11pt; line-height: 1.5; }
  body { padding: 0; }
  a { color: #12151C; }
  .site-header nav { display: none; }
  .lockup-header { font-size: 22px; }
  .hero { min-height: 0; grid-template-columns: 1fr; padding-top: 1rem; }
  .hero-mark { max-width: 60mm; justify-self: start; }
  .hero .cta, .closing .cta { color: var(--copper); border-color: var(--copper); }
  /* Positioned boxes paint after in-flow text and scramble the PDF's reading order: draw the line
     and the dots without positioning in print. */
  .timeline { position: static; border-top: 1px solid var(--accent); padding-top: 0; }
  .timeline::before { display: none; }
  .timeline li { position: static; padding-top: 0; }
  .timeline li::before { position: static; display: block; margin: -8px 0 1.25rem; background: #fff; }
  h2, h3 { break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  .timeline, .closing, .person { break-inside: avoid; }

  /* The leave-behind: a dark cover page, then the pages */
  .cover {
    --ink: #EDE8DF;
    --copper: #C98B5E;
    background: #12151C;
    color: #EDE8DF;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    box-sizing: border-box;
    height: 100vh;
    margin: 0;
    padding: 0 20mm;
    display: flex;
    flex-direction: column;
    justify-content: center;
    break-after: page;
    page-break-after: always;
  }
  .cover .tagline { color: rgba(237, 232, 223, 0.65); margin-top: 1rem; }
  .leave-behind .site-header { display: none; }
  .leave-behind main + main { border-top: 1px solid var(--rule); margin-top: 3rem; padding-top: 2rem; }
}
@media print { @page :first { margin: 0; } }
