/* ==========================================================================
   Design tokens — source of truth: /design.md (extracted from
   datathroughdesign.com). Edit tokens here, not in component rules.
   ========================================================================== */

:root {
  /* Color */
  --color-bg: #D6C192;        /* warm tan page background */
  --color-text: #000000;      /* primary text, headings */
  --color-accent: #4A7C6F;    /* sage green — links, primary CTAs */
  --color-surface: #F9F2DC;   /* warm cream — cards, alternating bands */
  --color-on-accent: #000000; /* text on accent buttons */
  --color-inverse: #FFFFFF;   /* text on black */

  /* Typography */
  --font-base: "Titillium Web", "Segoe UI", system-ui, -apple-system, sans-serif;
  --text-h1: clamp(2.5rem, 7vw, 5rem);
  --text-h2: clamp(1.75rem, 4vw, 2.875rem);
  --text-h3: 1.5rem;
  --text-body: 1.25rem;
  --text-small: 1rem;

  /* Spacing (4px base unit) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-section: clamp(4rem, 10vw, 8rem);

  /* Shape — flat and sharp, always */
  --radius: 0;
  --border: 2px solid var(--color-text);

  /* Layout */
  --content-max: 1100px;
  --measure: 70ch;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: var(--text-body);
  line-height: 1.55;
}

h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0 0 var(--space-6);
}

h1 {
  font-size: var(--text-h1);
  font-weight: 700;
}

h2 {
  font-size: var(--text-h2);
  font-weight: 700;
}

h3 {
  font-size: var(--text-h3);
  font-weight: 700;
}

p {
  margin: 0 0 var(--space-4);
  max-width: var(--measure);
}

img {
  max-width: 100%;
  display: block;
}

/* Inline links: black text with sage underline (accessibility — sage on tan
   is ~2.7:1, below AA for small text; see design.md translation notes) */
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  background: var(--color-accent);
  text-decoration-color: var(--color-text);
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.container--right > * {
  width: min(var(--measure), 100%);
}

.section {
  padding-block: var(--space-section);
}

/* White band for long-form pages — keeps tan as the identity without
   fatiguing on multi-paragraph reads */
.band--surface {
  background: var(--color-surface);
}

/* ==========================================================================
   Header / nav — wordmark left, plain text nav right, wraps on mobile.
   No hamburger, no JS.
   ========================================================================== */

.site-header {
  padding-block: var(--space-6);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4) var(--space-8);
}

.wordmark {
  font-size: var(--text-h3);
  font-weight: 700;
  text-decoration: none;
}

.wordmark:hover,
.wordmark:focus-visible {
  background: var(--color-accent);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
}

.site-nav a {
  font-size: var(--text-small);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--color-accent);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

/* ==========================================================================
   Buttons — flat fills, sharp corners, no shadows
   ========================================================================== */

.btn {
  display: inline-block;
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-base);
  font-size: var(--text-body);
  font-weight: 700;
  text-decoration: none;
  border: var(--border);
  border-radius: var(--radius);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-color: var(--color-accent);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-text);
  color: var(--color-inverse);
  border-color: var(--color-text);
}

.btn--secondary {
  background: var(--color-text);
  color: var(--color-inverse);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-color: var(--color-accent);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-block: var(--space-8);
}

/* ==========================================================================
   Hero — big left-aligned h1, poster-like
   ========================================================================== */

.hero {
  padding-block: var(--space-section);
}

.hero h1 {
  max-width: 18ch;
}

.hero .kicker {
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

/* ==========================================================================
   Lead-in list — the DxD "bold label + regular text" row pattern.
   Used for proof points (Home) and anywhere cards would be too heavy.
   ========================================================================== */

.lead-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--measure);
}

.lead-list li {
  padding-block: var(--space-4);
  border-top: var(--border);
}

.lead-list li:last-child {
  border-bottom: var(--border);
}

.lead-list strong {
  font-weight: 700;
}

.lead-list + p {
  margin-top: var(--space-6);
}

/* ==========================================================================
   Cards — white plates on the tan field. Sharp corners, solid black
   border, no shadow (adaptation per design.md: source site has no cards).
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  padding: 0;
  margin: 0;
  list-style: none;
}

.card {
  background: var(--color-surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin-bottom: var(--space-4);
}

.card p {
  margin-bottom: var(--space-4);
}

.card .card-links {
  margin-top: auto;
  font-weight: 600;
}

/* Status tag — sage at bold weight on cream passes large-text contrast */
.tag {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: var(--text-small);
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  margin-bottom: var(--space-4);
}

/* ==========================================================================
   Pull-quote — third-party quote on About. Flat left rule in accent,
   no italics, in keeping with the no-ornament language.
   ========================================================================== */

.pull-quote {
  margin: var(--space-8) 0 0;
  max-width: var(--measure);
  border-left: 4px solid var(--color-accent);
  padding-left: var(--space-6);
}

.pull-quote p {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.35;
}

.pull-quote cite {
  font-style: normal;
  font-size: var(--text-small);
  font-weight: 600;
}

/* ==========================================================================
   Services — numbered offerings as full-width blocks, not a grid.
   Three offerings deserve room to breathe.
   ========================================================================== */

.offering {
  border-top: var(--border);
  padding-block: var(--space-12);
}

.offering:last-of-type {
  border-bottom: var(--border);
}

.offering .btn {
  margin-top: var(--space-6);
}

.offering .offering-number {
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-accent);
  /* Large + bold, so sage-on-tan contrast is acceptable per design.md */
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-list {
  list-style: none;
  margin: 0 0 var(--space-8);
  padding: 0;
  font-size: var(--text-h3);
  font-weight: 600;
}

.contact-list li {
  margin-bottom: var(--space-4);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding-block: var(--space-12);
  font-size: var(--text-small);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4) var(--space-8);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
}
