:root {
  --bg: #faf9f6;
  --bg-alt: #f3f1ec;
  --text: #1a1a1c;
  --muted: #6b6b6e;
  --rule: #e2dfd8;
  --rule-strong: #c9c5bb;
  --accent: #1d3461;
  --accent-soft: #1d346114;

  /* Domain accents — sourced from CliftonStrengths categories. Used in hero mark + strengths section. */
  --c-relationship: #1d3461;  /* deep ink blue */
  --c-executing:    #5b3563;  /* muted plum */
  --c-strategic:    #1f5230;  /* forest green */
  --c-influencing:  #8a4a1f;  /* burnt amber */
  /* Vivid versions — for small graphic elements (dots, squares) that need to read as colour at tiny sizes. */
  --c-relationship-vivid: #2d54a8;
  --c-executing-vivid:    #7d3d8f;
  --c-strategic-vivid:    #2a7c47;
  --c-influencing-vivid:  #b86029;
  --max: 44rem;
  --pad: clamp(1.25rem, 4vw, 2rem);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Archivo", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem var(--pad) 6rem;
}

.page.home {
  max-width: 60rem;
}
.page.home > .hero,
.page.home > section,
.page.home > .site-footer {
  display: grid;
  grid-template-columns: 9rem 1fr;
  column-gap: 2.5rem;
  align-items: start;
}
.page.home > .hero > *,
.page.home > .site-footer > * {
  grid-column: 2;
}
.page.home > section > h2 {
  grid-column: 1;
  margin-top: 0.4rem;
  position: sticky;
  top: 2.5rem;
  align-self: start;
}
.page.home > section > *:not(h2) {
  grid-column: 2;
  min-width: 0;
}
@media (max-width: 760px) {
  .page.home > .hero,
  .page.home > section,
  .page.home > .site-footer {
    display: block;
  }
  .page.home > section > h2 {
    margin-top: 0;
    margin-bottom: 1.6rem;
  }
}

.page-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--pad) 0;
}
.page-header .brand {
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.page-header .brand:hover {
  color: var(--accent);
}

.hero {
  margin-bottom: 4rem;
  padding-bottom: 0;
  position: relative;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  line-height: 1.05;
}
.hero .lede {
  font-size: clamp(1.15rem, 2.4vw, 1.3rem);
  margin: 0 0 1.5rem;
  color: var(--text);
  max-width: 36ch;
  line-height: 1.4;
}
.hero .meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.hero .meta.location {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

section {
  margin: 4.5rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

section h2 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
section h2::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}
.page.home > section > h2 {
  flex-direction: row;
  margin-bottom: 0;
  line-height: 1.5;
}
.page.home > section > h2::before {
  width: 1rem;
}

.track-record ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.track-record li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1.05rem;
}
.track-record li:last-child { border-bottom: 0; }

.principles { counter-reset: p; }
.principles ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.principles li {
  counter-increment: p;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  position: relative;
}
.principles li:first-child { border-top: 0; padding-top: 0; }
.principles li::before {
  content: counter(p, decimal-leading-zero);
  position: absolute;
  left: -2rem;
  top: 1.6rem;
  font-size: 0.8rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-family: var(--font-display);
}
@media (max-width: 760px) {
  .principles li::before {
    position: static;
    display: block;
    margin-bottom: 0.4rem;
  }
  .principles li:first-child::before { padding-top: 0; }
}
.principles h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.principles p {
  margin: 0;
  color: var(--text);
}

.strengths .lede {
  margin: 0 0 2rem;
  color: var(--text);
  font-size: 1rem;
}
.strengths .lede .meta {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.4rem;
}
.strengths dl {
  margin: 0;
}
.strengths dt {
  font-family: var(--font-display);
  font-weight: 600;
  margin-top: 1.6rem;
  letter-spacing: -0.005em;
  font-size: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.strengths dt:first-of-type {
  margin-top: 0;
}
.strengths dt {
  --dom: var(--muted);
  --dom-vivid: var(--muted);
}
.strengths dt.dom-relationship { --dom: var(--c-relationship); --dom-vivid: var(--c-relationship-vivid); }
.strengths dt.dom-executing    { --dom: var(--c-executing);    --dom-vivid: var(--c-executing-vivid); }
.strengths dt.dom-strategic    { --dom: var(--c-strategic);    --dom-vivid: var(--c-strategic-vivid); }
.strengths dt.dom-influencing  { --dom: var(--c-influencing);  --dom-vivid: var(--c-influencing-vivid); }
.strengths dt::before {
  content: "";
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--dom-vivid);
  border-radius: 50%;
  margin-right: 0.1rem;
  flex-shrink: 0;
}
.strengths dt .cat {
  font-weight: 600;
  color: var(--dom);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.strengths dd {
  margin: 0.3rem 0 0;
  padding-left: 0;
  color: var(--text);
}

.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}
.cards li {
  border-top: 1px solid var(--rule);
  --card-color: var(--muted);
}
.cards li:nth-child(1) { --card-color: var(--c-relationship-vivid); }
.cards li:nth-child(2) { --card-color: var(--c-strategic-vivid); }
.cards li:nth-child(3) { --card-color: var(--c-influencing-vivid); }
.cards li:last-child {
  border-bottom: 1px solid var(--rule);
}
.cards a {
  display: block;
  padding: 1.5rem 0;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.18s ease, padding 0.18s ease, margin 0.18s ease;
}
.cards a:hover {
  background: var(--accent-soft);
  margin: 0 calc(-1 * var(--pad));
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.cards h3 {
  font-family: var(--font-display);
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.cards h3::before {
  content: "";
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--card-color);
  flex-shrink: 0;
}
.cards h3 .arrow {
  margin-left: auto;
}
.cards .arrow {
  margin-left: 0.4rem;
  color: var(--muted);
  transition: transform 0.18s ease, color 0.18s ease;
  display: inline-block;
}
.cards a:hover h3 {
  color: var(--accent);
}
.cards a:hover .arrow {
  transform: translateX(4px);
  color: var(--accent);
}
.cards p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.site-footer {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer a { color: var(--text); }
.site-footer .links a + a { margin-left: 1rem; }

.article h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 1rem 0 0.5rem;
  line-height: 1.1;
}
.article .tagline {
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.article h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2.8rem 0 0.7rem;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--text);
}
.article p {
  margin: 0 0 1rem;
}
.article p + p {
  margin-top: -0.2rem;
}
.article .draft {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px dashed var(--rule);
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-radius: 3px;
  margin-bottom: 1rem;
}
.article .back {
  display: inline-block;
  margin-top: 3rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.article h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin: 1.8rem 0 0.4rem;
  letter-spacing: -0.005em;
  color: var(--text);
}

.project-meta {
  margin: 1.5rem 0 2.5rem;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.project-meta dt {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  align-self: baseline;
  padding-top: 0.15rem;
}
.project-meta dd {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.flow {
  background: var(--bg-alt);
  padding: 1rem 1.25rem;
  font-size: 0.78rem;
  line-height: 1.5;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color: var(--text);
}

.article figure {
  margin: 2rem 0 2.5rem;
}
.article figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--rule);
}
.article figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
}

.article ul.bullets {
  margin: 0.5rem 0 1.2rem;
  padding-left: 1.25rem;
}
.article ul.bullets li {
  margin: 0.4rem 0;
}

.article code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.85em;
  background: var(--bg-alt);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}
