/* Trillium Foundry — site styles */

@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }

:root {
  --forest: #023928;
  --forest-deep: #012a1d;
  --cream: #F0E3C3;
  --paper: #FBFAF7;
  --sage: #E3EAE4;
  --moss: #4F7A64;
  --ink: #17241E;
  --muted: #56655D;
  --rule: #D5DDD7;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img, svg { display: block; max-width: 100%; }
a { color: var(--forest); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; border-radius: 2px; }
.on-green :focus-visible, .site-header :focus-visible { outline-color: var(--cream); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--cream); color: var(--forest); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 12px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--forest); margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.15; max-width: 26ch; }
h3 { font-size: 1.35rem; line-height: 1.25; }
p { margin: 0 0 1em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--forest);
  border-bottom: 1px solid rgba(240, 227, 195, 0.14);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand img { width: 200px; height: auto; }
.nav { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--cream); text-decoration: none; font-size: 0.95rem; opacity: 0.85; }
.nav a:hover { opacity: 1; text-decoration: underline; }
.nav .nav-cta a { opacity: 1; border: 1px solid rgba(240, 227, 195, 0.5); padding: 7px 14px; border-radius: 3px; }
.nav .nav-cta a:hover { background: var(--cream); color: var(--forest); text-decoration: none; }
@media (max-width: 720px) {
  .nav li:not(.nav-cta) { display: none; }
  .brand img { width: 168px; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--forest);
  color: var(--cream);
  padding: clamp(72px, 12vw, 148px) 0 clamp(80px, 11vw, 136px);
}
.hero-mark {
  position: absolute;
  right: -9vw; top: 50%;
  width: min(62vw, 760px);
  transform: translateY(-46%);
  opacity: 0.11;
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 {
  color: var(--cream);
  font-weight: 400;
  font-size: clamp(2.4rem, 6.2vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 15ch;
}
.roles {
  margin: 32px 0 0;
  font-family: "Jost", var(--sans);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.8;
  max-width: 76ch;
  line-height: 1.9;
}
.hero-lede { margin: 28px 0 0; max-width: 52ch; font-size: 1.15rem; color: rgba(240, 227, 195, 0.88); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.btn {
  display: inline-block; text-decoration: none;
  font-weight: 500; font-size: 1rem;
  padding: 13px 22px; border-radius: 3px;
  border: 1px solid transparent;
}
.btn-cream { background: var(--cream); color: var(--forest); }
.btn-cream:hover { background: #fff6df; text-decoration: none; }
.btn-line { color: var(--cream); border-color: rgba(240, 227, 195, 0.5); }
.btn-line:hover { border-color: var(--cream); text-decoration: none; }

/* Sections */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.intro { color: var(--muted); max-width: 58ch; margin-top: 20px; font-size: 1.1rem; }

/* Who */
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: 56px; }
.who-grid h3 { font-size: 1.2rem; margin-bottom: 10px; }
.who-grid p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .who-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Services */
.service-list { list-style: none; margin: 56px 0 0; padding: 0; border-top: 1px solid var(--forest); }
.service {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px clamp(24px, 5vw, 72px);
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
}
.service p { margin: 0; color: var(--ink); max-width: 60ch; }
.service .when { display: block; margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; padding: 24px 0; } }
.also { margin-top: 32px; color: var(--muted); max-width: 70ch; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about picture { min-width: 0; }
.portrait { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; background: var(--sage); }
.about-body { min-width: 0; }
.about-body p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.65; max-width: 60ch; }
.about-body h2 { margin-bottom: 28px; }
.facts { grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--forest); display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 48px); }
.facts li { padding: 24px 0 0; }
.facts strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 2.1rem; line-height: 1.1; color: var(--forest); }
.facts span { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about picture { max-width: 380px; }
  .facts { grid-template-columns: 1fr; }
  .facts li { padding: 20px 0; border-bottom: 1px solid var(--rule); }
}

/* Contact */
.contact { background: var(--forest); color: var(--cream); padding: clamp(80px, 11vw, 132px) 0; }
.contact h2 { color: var(--cream); font-weight: 400; font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 18ch; }
.contact .intro { color: rgba(240, 227, 195, 0.85); }
.contact-lines { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-lines a { color: var(--cream); font-size: 1.25rem; text-decoration: none; border-bottom: 1px solid rgba(240, 227, 195, 0.35); }
.contact-lines a:hover { border-bottom-color: var(--cream); }
.contact-lines .where { color: rgba(240, 227, 195, 0.7); font-size: 1rem; }

/* Footer */
.site-footer { background: var(--forest-deep); color: rgba(240, 227, 195, 0.65); font-size: 0.9rem; padding: 32px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
.site-footer img { width: 34px; height: auto; opacity: 0.8; }
.site-footer p { margin: 0; }

/* 404 */
.notfound { min-height: 70vh; display: flex; align-items: center; }
