/* Nicole Brennan, site styles. Fonts: Bricolage Grotesque + Newsreader (SIL OFL). */

/* ---------- Palette ----------
   Switch the whole site between the two finalists by changing
   data-palette on <html> in each page: "magenta" or "orange". */
:root {
  --ground: #F7F4EE;
  --ground-2: #ECE5DA;
  --ink: #211A17;
  --body: #3A302B;
  --muted: #5E534C;
  --cream: #FFFBF5;

  --magenta: #C8237A;
  --orange: #E8603A;
  --teal: #1F6F8B;
  --inkblue: #23497A;
  --marigold: #F0A030;
  --butter: #F2CF63;

  /* the lead color: full stops, AI character, featured cards */
  --accent: var(--magenta);
  --on-accent: var(--cream);
  --accent-on-dark: #E04A96;
  /* the second warm color */
  --second: var(--orange);
  --on-second: var(--ink);

  --sans: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --gutter: clamp(16px, 5vw, 56px);
  --max: 1280px;
  --r: 12px;
}
html[data-palette="orange"] {
  --accent: var(--orange);
  --on-accent: var(--ink);
  --accent-on-dark: var(--orange);
  --second: var(--magenta);
  --on-second: var(--cream);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--inkblue); outline-offset: 3px; border-radius: 4px; }
.dark a:focus-visible, .dark button:focus-visible { outline-color: var(--butter); }
::selection { background: var(--butter); color: var(--ink); }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 10; background: var(--ink); color: var(--ground); padding: 12px 18px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 16px; }

.shell { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.dot { color: var(--accent); }
.dark .dot { color: var(--accent-on-dark); }
.cap { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--muted); }
.italic { font-family: var(--serif); font-style: italic; font-weight: 400; }
.display { font-weight: 800; letter-spacing: -0.05em; line-height: 0.88; }
.h-xl { font-size: clamp(56px, 9vw, 120px); }
.h-lg { font-size: clamp(40px, 5vw, 64px); line-height: 0.95; letter-spacing: -0.04em; font-weight: 800; }
.lede { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; }
.prose { max-width: 64ch; font-family: var(--serif); font-size: 20px; line-height: 1.6; }
.body { font-size: 19px; line-height: 1.55; color: var(--body); max-width: 560px; }

/* ---------- Header ---------- */
.site-header { padding-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.wordmark { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 16px; font-weight: 500; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font-size: 18px; font-weight: 700; text-decoration: none; border: 2px solid var(--ink); }
.btn-solid { background: var(--ink); color: var(--ground); }
.btn-solid:hover { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--ground); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-strong { font-weight: 700; text-underline-offset: 5px; }

/* ---------- Hero ---------- */
.hero { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.hero-text { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero-art { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* ---------- Radar ---------- */
.radar { width: 100%; max-width: 560px; height: auto; overflow: visible; }
.radar .ring { fill: none; stroke: var(--ink); stroke-opacity: .08; }
.radar .ring-outer { stroke-opacity: .22; }
.radar .spoke { stroke: var(--ink); stroke-opacity: .14; }
.radar .glaze { mix-blend-mode: multiply; }
.radar .work { fill: var(--orange); fill-opacity: .8; stroke: var(--orange); stroke-opacity: .6; stroke-width: 3; stroke-linejoin: round; }
.radar .off { fill: var(--teal); fill-opacity: .72; stroke: var(--teal); stroke-opacity: .6; stroke-width: 3; stroke-linejoin: round; }
.radar .label { font: 700 14px var(--sans); letter-spacing: .08em; fill: var(--ink); }
.breathe { transform-box: view-box; transform-origin: 280px 260px; animation: breathe 7s ease-in-out infinite; }
.breathe.late { animation-delay: -2.6s; }
@keyframes breathe { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.04) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) { .breathe { animation: none; } }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; font-size: 15px; font-weight: 700; }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.caption { max-width: 420px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.4; color: var(--muted); }

/* ---------- Deckled edge ---------- */
.deckle { display: block; width: 100%; height: 28px; }
.deckle-top { margin-bottom: -1px; }
.deckle-bottom { margin-top: -1px; }
.deckle path { fill: currentColor; transition: color .5s ease; }

/* ---------- Facets ---------- */
.facet-bar { padding-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.facet-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ground); color: var(--ink); font: 700 15px var(--sans); cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.pill:hover { background: var(--ink); color: var(--ground); }
.pill[aria-pressed="true"] { background: var(--fc); color: var(--ffg); border-color: var(--fc); }
.pill-dashed { border-style: dashed; }
.facet-band { background: var(--fc); color: var(--ffg); transition: background-color .5s ease, color .5s ease; }
.facet-edge { color: var(--fc); }
.facet-panel { padding-top: 64px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.facet-panel[hidden] { display: none; }
.facet-head { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.facet-head h3 { font-size: clamp(48px, 7vw, 88px); line-height: .9; font-weight: 800; letter-spacing: -0.045em; }
.facet-head p.lede { max-width: 460px; }
.facet-list { flex: 1 1 460px; min-width: 0; }
.facet-list li { padding: 18px 0; border-top: 2px solid currentColor; display: flex; flex-direction: column; gap: 6px; }
.facet-list a { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.facet-list span { font-size: 17px; }
.no-js .facet-panel + .facet-panel { border-top: 2px solid currentColor; }

/* facet colors */
[data-facet="civic"] { --fc: var(--inkblue); --ffg: var(--cream); }
[data-facet="identity"] { --fc: var(--teal); --ffg: var(--cream); }
[data-facet="access"] { --fc: var(--marigold); --ffg: var(--ink); }
[data-facet="ai"] { --fc: var(--accent); --ffg: var(--on-accent); }
[data-facet="experiences"] { --fc: var(--second); --ffg: var(--on-second); }

/* ---------- Tiles ---------- */
.section { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 36px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.tile { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.tile-block { aspect-ratio: 1 / 1; border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; background: var(--fc); color: var(--ffg); }
.tile-big { font-size: clamp(56px, 6vw, 72px); line-height: .9; font-weight: 800; letter-spacing: -0.05em; }
.tile-title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.tile:hover .tile-title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.tile-line { font-size: 17px; color: var(--body); }

/* ---------- Off the clock ---------- */
.offclock { display: flex; flex-direction: column; gap: 28px; padding-bottom: 88px; }
.offclock-link { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; text-decoration: none; padding-top: 28px; border-top: 2px solid var(--ink); }
.offclock-link img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.offclock-link .italic { flex: 1 1 360px; font-size: 28px; line-height: 1.3; }
.offclock-link b { font-family: var(--sans); font-style: normal; font-size: 18px; text-decoration: underline; text-underline-offset: 5px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.photos img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; }
.row-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }

/* ---------- Bands ---------- */
.band { color: var(--fc); }
.band-body { background: var(--fc); color: var(--ffg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--ground); }
.footer-edge { color: var(--ink); }
.footer-inner { padding-top: 64px; padding-bottom: 72px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.footer-inner .cap { color: var(--butter); }
.footer-line { font-size: clamp(36px, 5vw, 60px); line-height: .95; font-weight: 800; letter-spacing: -0.04em; max-width: 680px; margin-top: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 19px; font-weight: 700; }

/* ---------- Case study ---------- */
.chip-accent { display: inline-flex; padding: 8px 14px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 2px solid var(--ink); }
.facts div { padding: 18px 20px 0 0; display: flex; flex-direction: column; gap: 6px; }
.facts dd { font-size: 20px; font-weight: 700; line-height: 1.3; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.steps li { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--r); background: var(--fc); color: var(--ffg); }
.steps .num { font-size: 64px; line-height: .9; font-weight: 800; letter-spacing: -0.05em; }
.steps .name { font-size: 24px; font-weight: 800; }
.steps .txt { font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 16px; border-radius: 999px; font-size: 16px; font-weight: 700; background: var(--fc, var(--ground)); color: var(--ffg, var(--ink)); }
.chips li.outline { border: 2px solid var(--ink); }
.bigquote { padding: 40px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); font-size: clamp(44px, 7vw, 96px); line-height: .92; font-weight: 800; letter-spacing: -0.05em; }
.placeholder { aspect-ratio: 4 / 3; border-radius: var(--r); background: var(--ground-2); display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); }
.next-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 32px; border-radius: var(--r); background: var(--fc); color: var(--ffg); text-decoration: none; }
.next-card .h { font-size: clamp(40px, 6vw, 72px); line-height: .92; font-weight: 800; letter-spacing: -0.045em; }
.note { padding-left: 16px; border-left: 4px solid var(--butter); font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.45; color: var(--body); }
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > * { flex: 1 1 420px; min-width: 0; }

/* ---------- About ---------- */
.portrait-card { width: 100%; max-width: 480px; padding: 20px; border-radius: var(--r); background: var(--ground); }
.scores { width: 100%; border-collapse: collapse; font-size: 18px; }
.scores caption { text-align: left; padding-bottom: 8px; font-family: var(--serif); font-style: italic; font-size: 17px; }
.scores th, .scores td { padding: 12px 0; border-bottom: 1px solid rgba(255, 251, 245, .35); }
.scores thead th { border-bottom: 2px solid var(--cream); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.scores td, .scores thead th + th { text-align: right; font-variant-numeric: tabular-nums; }
.scores tbody th { text-align: left; font-size: 22px; font-weight: 800; }
.scores td { font-size: 22px; font-weight: 700; }
.timeline li { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 20px 0; border-top: 1px solid rgba(33, 26, 23, .25); }
.timeline li:first-child { border-top: 2px solid var(--ink); }
.timeline li:last-child { border-bottom: 1px solid rgba(33, 26, 23, .25); }
.timeline .cap { flex: 0 0 120px; padding-top: 6px; color: var(--muted); }
.timeline .what { flex: 1 1 320px; display: flex; flex-direction: column; gap: 4px; }
.timeline b { font-size: 24px; font-weight: 800; letter-spacing: -0.015em; }
.creds { display: flex; flex-direction: column; gap: 12px; }
.creds li { padding: 16px; border-radius: var(--r); display: flex; flex-direction: column; gap: 4px; }
.creds b { font-size: 18px; }
.creds span { font-size: 15px; }

/* ---------- Writing ---------- */
.feature { display: flex; flex-wrap: wrap; gap: 32px; padding: 32px; border-radius: 16px; background: var(--accent); color: var(--on-accent); text-decoration: none; }
.feature .h { font-size: clamp(36px, 5vw, 60px); line-height: .95; font-weight: 800; letter-spacing: -0.04em; }
.feature:hover .h, .entry:hover .h { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.entries li { border-top: 2px solid var(--ink); }
.entry { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; padding: 24px 0; text-decoration: none; }
.entry .h { flex: 1 1 360px; font-size: 30px; font-weight: 800; letter-spacing: -0.025em; }
.tag { flex: none; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--fc); color: var(--ffg); }

/* ---------- Archive ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters .pill[aria-pressed="true"] { background: var(--fc, var(--ink)); color: var(--ffg, var(--ground)); border-color: var(--fc, var(--ink)); }
[data-kind="brand"] { --fc: var(--inkblue); --ffg: var(--cream); }
[data-kind="print"] { --fc: var(--marigold); --ffg: var(--ink); }
[data-kind="digital"] { --fc: var(--teal); --ffg: var(--cream); }
[data-kind="dataviz"] { --fc: var(--orange); --ffg: var(--ink); }
[data-kind="illustration"] { --fc: var(--magenta); --ffg: var(--cream); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 20px; }
.gallery li { display: flex; flex-direction: column; gap: 10px; }
.gallery li[hidden] { display: none; }
.frame { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; background: var(--ground-2); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--muted); overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame .tag { position: absolute; left: 10px; top: 10px; font-family: var(--sans); font-style: normal; font-size: 12px; padding: 6px 10px; }
.g-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.g-title b { font-size: 19px; font-weight: 800; line-height: 1.2; }
.g-title span { flex: none; font-size: 14px; font-weight: 700; color: var(--muted); }
.gallery p { font-size: 16px; line-height: 1.45; color: var(--body); }

/* ---------- Unfinished content marker ----------
   Search the HTML for class="todo" before launch. */
.todo { background: var(--butter); color: var(--ink); border-radius: 3px; padding: 0 3px; }
.dark .todo, .facet-band .todo, .feature .todo { background: var(--butter); color: var(--ink); }
