/* ==========================================================================
   Wenonah Echelard — wenonahechelard.com
   Palette, type and layout follow the approved design.
   Three colour values are darkened from the comp to clear WCAG AA; each is
   marked "AA" below with the ratio it now meets.
   ========================================================================== */

/* ---- Fonts -------------------------------------------------------------- */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/archivo-black-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/space-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens ------------------------------------------------------------- */

:root {
  --loden: #2f3b34;
  --brass: #b8a06a;
  --brass-deep: #7c6631; /* AA 5.3:1 — brass-as-text on cream; comp brass is 2.4:1 */
  --cream: #fbfaf7;
  --ink: #141414;

  --ink-body: #2c2c28;
  --ink-bullet: #44443f;
  --muted: #6b6b65;
  --muted-soft: #6e6e68; /* AA 4.9:1 — comp used #8f8f89 at 3.1:1 */
  --row-open: #f3f2ec;
  --hairline: #e4e2da;
  --slash: #928f82; /* 3.1:1 — comp used #c9c7bd at 1.6:1, invisible on many screens */

  --on-dark: #fbfaf7;
  --on-dark-strong: rgba(251, 250, 247, 0.92);
  --on-dark-soft: rgba(251, 250, 247, 0.62);
  --on-dark-faint: rgba(251, 250, 247, 0.68); /* AA 6.2:1 — comp used 0.5 at 4.1:1 */
  --rule-dark: rgba(251, 250, 247, 0.25);

  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --display: 'Archivo Black', 'Archivo Bold', system-ui, -apple-system, 'Segoe UI',
    Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(56px, 8vw, 96px);
}

/* ---- Base --------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

h1, h2, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--loden);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 10;
  padding: 12px 18px;
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip:focus { top: 12px; }

/* ---- Dark band: masthead + hero ---------------------------------------- */

.band {
  background: var(--loden);
  color: var(--on-dark);
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--gutter);
  border-bottom: 1px solid var(--rule-dark);
}

.wordmark {
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: clamp(16px, 3vw, 26px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav a {
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--brass); border-bottom-color: var(--brass); }
.band :focus-visible { outline-color: var(--on-dark); }

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(48px, 7vw, 84px) var(--gutter) clamp(40px, 6vw, 72px);
}

.hero-copy { flex: 1 1 480px; min-width: min(100%, 320px); }

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: 0.97;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}
h1 .dot { color: var(--brass); }

.lede {
  margin-top: 36px;
  max-width: 46ch;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--on-dark-strong);
}

.hero-figure {
  position: relative;
  flex: 0 1 320px;
  min-width: 240px;
}
.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.chip {
  position: absolute;
  bottom: -14px;
  left: -16px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transform: rotate(-4deg);
}

/* ---- Signature element: the city marquee -------------------------------- */

.marquee {
  overflow: hidden;
  padding: 15px 0;
  background: var(--ink);
  color: var(--cream);
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-run {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.marquee-run i { font-style: normal; color: var(--brass); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- Shared section furniture ------------------------------------------ */

.rule-head {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 14px;
}

section { scroll-margin-top: 24px; }

/* ---- About -------------------------------------------------------------- */

.about {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
  align-items: flex-start;
  padding: var(--section-y) var(--gutter);
}

.about-aside {
  flex: 0 1 320px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border: 2.5px solid var(--loden);
  border-radius: 999px;
  color: var(--loden);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.about-body { flex: 1 1 480px; min-width: min(100%, 320px); }
.about-body .rule-head { margin-bottom: 28px; }
.about-body p {
  max-width: 66ch;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-body);
}
.about-body p + p { margin-top: 20px; }

/* ---- Experience accordion ---------------------------------------------- */

.experience { padding: 0 var(--gutter) var(--section-y); }
.experience .rule-head { margin-bottom: 0; }

.role { border-bottom: 1px solid var(--hairline); }
.role[open] { background: var(--row-open); }

.role summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1.2fr) minmax(0, 1fr) 24px;
  column-gap: 20px;
  align-items: baseline;
  padding: 19px clamp(4px, 1vw, 12px);
  cursor: pointer;
  list-style: none;
}
.role summary::-webkit-details-marker { display: none; }
.role summary:hover { background: var(--row-open); }
.role summary:focus-visible { outline: 3px solid var(--loden); outline-offset: -3px; }

/* Drawn rather than typed, so the state dot is decorative geometry, not text. */
.bead {
  font-style: normal;
  line-height: 1;
  padding-left: 6px;
}
.bead::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.28);
}
.role[open] .bead::before { background: var(--brass); }

.role-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.badge {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--brass-deep);
  white-space: nowrap;
}
.role-org { font-size: 14px; color: var(--muted); }

.sym {
  font-style: normal;
  font-size: 18px;
  font-weight: 700;
  text-align: right;
  color: var(--loden);
}
.sym::before { content: '+'; }
.role[open] .sym::before { content: '\2212'; } /* − */

.role-body {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  padding: 0 clamp(4px, 1vw, 12px) 24px;
}

.bullets {
  flex: 1 1 420px;
  min-width: min(100%, 300px);
  max-width: 78ch;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding-left: 58px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-bullet);
}
.bullets li {
  border-left: 2.5px solid var(--brass);
  padding-left: 14px;
}

.plates {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  padding-left: 58px;
}
.plates img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 3px solid var(--ink);
}
.plates figcaption {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted-soft);
}

/* ---- Strengths ---------------------------------------------------------- */

.strengths { padding: 0 var(--gutter) var(--section-y); }
.strengths-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: baseline;
  border-top: 1px solid var(--hairline);
  padding-top: 32px;
}

.tagset {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}
.tagset dt {
  margin-right: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-soft);
}
.tagset dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--loden);
}
.tagset dd:not(:last-child)::after {
  content: '/';
  margin-left: 10px;
  font-weight: 400;
  color: var(--slash);
}

/* ---- Contact ------------------------------------------------------------ */

.contact {
  background: var(--loden);
  color: var(--on-dark);
  padding: var(--section-y) var(--gutter);
  scroll-margin-top: 24px;
}
.contact :focus-visible { outline-color: var(--on-dark); outline-offset: 6px; }

.eyebrow {
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}

.linkedin {
  display: inline-block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 5px solid var(--brass);
  padding-bottom: 8px;
}
.linkedin:hover { color: var(--brass); }

.colophon {
  margin-top: 48px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}

/* ---- Narrow screens ----------------------------------------------------- */

@media (max-width: 700px) {
  .role summary {
    grid-template-columns: 26px minmax(0, 1fr) 24px;
    row-gap: 4px;
  }
  .role-title { grid-column: 2; }
  .role-org { grid-column: 2; }
  .sym { grid-column: 3; grid-row: 1; }
  .bullets, .plates { padding-left: 26px; }
  .strengths-inner { gap: 28px; }
  .chip { left: 0; }
}

/* ---- Reduced motion ----------------------------------------------------- */

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

/* ---- Print -------------------------------------------------------------- */

@media print {
  .marquee, .skip, .nav { display: none; }
  .band, .contact { background: #fff; color: #000; }
  .role-body { display: block !important; }
  .role summary { cursor: default; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 10px; }
}
