/* Ayomitan Adesua, portfolio site
   Palette carried over from the Case 2 Power BI theme so the site and the
   dashboards read as one body of work. */

:root {
  --ink:        #15242E;
  --ink-80:     #15242ECC;
  --ink-60:     #15242E99;
  --ink-40:     #15242E66;
  --rule:       #15242E1F;
  --rule-soft:  #15242E0F;
  --rust:       #C0442B;
  --teal:       #1E6F68;
  --gold:       #B8860B;
  --paper:      #F6F7F4;
  --paper-warm: #EFF0EB;

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 68ch;
  --wide: 1080px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- layout ---------- */

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--measure); }

section { padding: clamp(48px, 7vw, 88px) 0; }
section + section { border-top: 1px solid var(--rule); }

/* ---------- type ---------- */

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; margin: 0; }

h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); line-height: 1.04; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.15; }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.25; }

/* headings that introduce body copy need breathing room; .body-copy overrides below */
.prose h2 { margin-bottom: 16px; }
.prose h3 { margin-bottom: 10px; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rust); }

strong { font-weight: 600; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 14px;
}

.lede { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--ink-80); }
.note { font-size: 0.86rem; color: var(--ink-60); }

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 10;
}
.site-head .wrap {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px;
}
.wordmark {
  font-family: var(--serif); font-size: 1.05rem; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.wordmark:hover { color: var(--rust); }
.site-nav { display: flex; gap: 22px; font-size: 0.9rem; }
.site-nav a { color: var(--ink-80); text-decoration: none; }
.site-nav a:hover { color: var(--rust); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- hero ---------- */

.hero { padding-top: clamp(44px, 7vw, 84px); padding-bottom: clamp(36px, 5vw, 56px); }
.hero h1 { margin-bottom: 18px; }
.hero .role {
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.02em; color: var(--rust); margin: 0 0 22px;
}
.hero .lede { margin-bottom: 26px; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.btn {
  display: inline-block; padding: 11px 20px; font-size: 0.92rem; font-weight: 600;
  text-decoration: none; border: 1px solid var(--ink); border-radius: 2px;
  background: var(--ink); color: var(--paper); transition: background .15s, color .15s;
}
.btn:hover { background: var(--rust); border-color: var(--rust); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- result blocks ---------- */

.results { display: grid; grid-template-columns: 1fr; gap: 0; }
.result {
  display: block; text-decoration: none; color: inherit;
  padding: 26px 0; border-top: 1px solid var(--rule);
}
.result:last-child { border-bottom: 1px solid var(--rule); }
.result .figure {
  font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1; color: var(--rust); display: block; margin-bottom: 8px;
}
.result .what { display: block; font-size: 0.97rem; color: var(--ink-80); max-width: 46ch; }
.result .where {
  display: block; margin-top: 10px; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal);
}
.result:hover .figure { color: var(--teal); }
.result:hover .where { color: var(--rust); }

@media (min-width: 760px) {
  .results { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .result { border-top: 2px solid var(--ink); padding: 20px 0 0; }
  .result:last-child { border-bottom: 0; }
}

/* ---------- method flow ---------- */

.flow { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 32px; }
.step {
  position: relative; padding: 18px 0 18px 46px;
  border-top: 1px solid var(--rule-soft);
}
.step:first-child { border-top: 0; }
.step .n {
  position: absolute; left: 0; top: 18px;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--teal); color: var(--teal);
  font-size: 0.8rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-family: var(--sans); font-size: 0.97rem; font-weight: 600; letter-spacing: 0; margin-bottom: 4px; }
.step p { font-size: 0.9rem; color: var(--ink-60); margin: 0; }

@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
  .step { border-top: 1px solid var(--rule); padding: 20px 0 0 0; }
  .step:first-child { border-top: 1px solid var(--rule); }
  .step .n { position: static; margin-bottom: 12px; }
}

/* ---------- case bands ---------- */

.case { border-top: 1px solid var(--rule); padding: clamp(40px, 5vw, 60px) 0; }
.case:first-of-type { border-top: 0; }
.case-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }

.case h2 { margin-bottom: 14px; }
.case h2 a { color: var(--ink); text-decoration: none; }
.case h2 a:hover { color: var(--rust); }
.case .decision {
  font-family: var(--serif); font-style: italic; font-size: 1.05rem;
  color: var(--ink-80); border-left: 2px solid var(--gold);
  padding-left: 16px; margin: 0 0 18px;
}
.case .result-line { font-size: 0.97rem; margin-bottom: 18px; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 20px; padding: 0; list-style: none; }
.tags li {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-60); border: 1px solid var(--rule); border-radius: 2px; padding: 4px 9px;
}

.shot { margin: 0; }
.shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--rule); border-radius: 2px; background: #fff;
}
.shot figcaption { font-size: 0.8rem; color: var(--ink-60); margin-top: 9px; }

@media (min-width: 880px) {
  .case-grid { grid-template-columns: 0.92fr 1.08fr; gap: 44px; }
  .case.flip .case-grid > .case-text { order: 2; }
  .case.flip .case-grid > .shot { order: 1; }
}

/* ---------- case page ---------- */

.case-head { padding-bottom: clamp(28px, 4vw, 44px); }
.case-head h1 { margin-bottom: 16px; }

.keyfacts {
  display: grid; grid-template-columns: 1fr; gap: 0;
  margin: 28px 0 0; padding: 0; list-style: none;
}
.keyfacts li { padding: 12px 0; border-top: 1px solid var(--rule); font-size: 0.92rem; }
.keyfacts li:last-child { border-bottom: 1px solid var(--rule); }
.keyfacts .k {
  display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 3px;
}
@media (min-width: 760px) {
  .keyfacts { grid-template-columns: repeat(2, 1fr); gap: 0 36px; }
}

.body-copy h2 { margin: 44px 0 14px; }
.body-copy h2:first-child { margin-top: 0; }
.body-copy ol, .body-copy ul { padding-left: 1.3em; margin: 0 0 1.1em; }
.body-copy li { margin-bottom: 0.5em; }
.body-copy .shot { margin: 32px 0; }

.pull {
  font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.4rem); line-height: 1.4;
  border-left: 2px solid var(--rust); padding: 4px 0 4px 20px; margin: 32px 0; color: var(--ink);
}

.backlink { font-size: 0.88rem; margin-bottom: 22px; }

/* ---------- about & contact ---------- */

.about-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 880px) { .about-grid { grid-template-columns: 1.2fr 0.8fr; gap: 56px; } }

.linklist { list-style: none; padding: 0; margin: 0; }
.linklist li { padding: 10px 0; border-top: 1px solid var(--rule); font-size: 0.93rem; }
.linklist li:last-child { border-bottom: 1px solid var(--rule); }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--rule); padding: 32px 0 44px;
  font-size: 0.85rem; color: var(--ink-60);
}
.site-foot .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-foot a { color: var(--ink-80); }

/* ---------- chart ---------- */

.chart { margin: 0; }
.chart svg { display: block; width: 100%; height: auto; }
.chart figcaption { font-size: 0.8rem; color: var(--ink-60); margin-top: 10px; }

/* ---------- a11y ---------- */

a:focus-visible, .btn:focus-visible, .result:focus-visible {
  outline: 2px solid var(--rust); outline-offset: 3px;
}
.skip {
  position: absolute; left: -9999px;
}
.skip:focus {
  position: static; display: inline-block; margin: 10px 24px; padding: 8px 14px;
  background: var(--ink); color: var(--paper);
}
