/* tristanscroggins.com
   Colors: olive #2f4a2a, mustard #edc93b, rust #b4471f, cream #f3ead7, teal #1e5b5e, black.
   Every text/background pair used here meets WCAG AA. */

@font-face { font-family: "Bowlby One"; src: url("/fonts/bowlby-one-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Arvo"; src: url("/fonts/arvo-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Arvo"; src: url("/fonts/arvo-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Arvo"; src: url("/fonts/arvo-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo Narrow"; src: url("/fonts/archivo-narrow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo Narrow"; src: url("/fonts/archivo-narrow-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --olive: #2f4a2a; --olive-2: #5d6b3a; --mustard: #edc93b; --rust: #b4471f;
  --cream: #f3ead7; --teal: #1e5b5e; --ink: #000;
  --display: "Bowlby One", "Arial Black", sans-serif;
  --serif: "Arvo", Rockwell, Georgia, serif;
  --sans: "Archivo Narrow", "Arial Narrow", Arial, sans-serif;
  --wrap: 1200px; --gutter: 24px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 19px; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-weight: 700; }
p { margin: 0; }

a { color: var(--ink); text-decoration-color: var(--rust); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--mustard); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--mustard); color: var(--ink); padding: 12px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.measure { max-width: 46ch; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-block; background: var(--ink); color: var(--mustard); text-decoration: none; font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; padding: 14px 22px; min-height: 44px; border: 0; cursor: pointer; line-height: 1.1; max-width: 100%; overflow-wrap: anywhere; }
.btn:hover { background: var(--rust); color: #fff; }
.btn.alt { background: var(--mustard); color: var(--ink); }
.btn.alt:hover { background: var(--cream); }

/* Dark areas (olive, teal) */
.dark { background: var(--olive); color: var(--cream); }
.dark a:not(.btn) { color: var(--cream); text-decoration-color: var(--mustard); }

/* Header */
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; padding-top: 4px; padding-bottom: 4px; font-weight: 700; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; }
.site-nav a:not(.btn) { text-decoration: none; padding: 12px 0; display: inline-block; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--mustard); text-decoration-thickness: 3px; }
.site-nav .home-link { font-family: var(--display); font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 21px; color: var(--mustard) !important; margin-right: 6px; }
.site-nav .btn { margin-left: auto; }

/* The outlined name */
.mark { font-family: var(--display); font-weight: 400; color: var(--mustard); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink); }

/* Home hero */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; align-items: start; padding-top: 40px; padding-bottom: 72px; }
.hero .name { margin: 0; grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 2; display: flex; flex-direction: column; line-height: .88; pointer-events: none; }
.hero .name .first { font-size: min(7.2vw, 84px); }
.hero .name .last { font-size: min(12vw, 148px); white-space: nowrap; }
.hero .intro { grid-column: 1 / 7; grid-row: 2; display: flex; flex-direction: column; gap: 24px; }
.hero.no-photo .intro { grid-column: 1 / 9; }
.hero .photo { margin: 96px 0 0; grid-column: 8 / -1; grid-row: 1 / span 2; position: relative; z-index: 1; }
.lede { font-family: var(--serif); font-size: clamp(22px, 2.3vw, 28px); line-height: 1.35; max-width: 30ch; }
.framed { border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.item-list .side:has(.btn) { max-width: none; }
.item-list .side .btn { white-space: nowrap; }
.item-list.projects > li { align-items: start; }
.ph { margin: 0; }
.ph img { width: 100%; height: auto; }
.ph figcaption { margin-top: 18px; font-size: 15px; }
.ph.art img { width: auto; height: 220px; max-width: 100%; }
.ph.art.small img { height: 150px; }
.ph.art.small img:not(.framed) { height: 96px; }
.ph.art.small.sm img:not(.framed) { height: 52px; }
.ph.art { margin-bottom: 8px; }
.ph.wide { margin-top: 16px; max-width: 640px; }
.ph.aside-photo { margin-bottom: 48px; max-width: 420px; }
.photo-strip { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 40px; align-items: start; padding-top: 64px; }
.photo-strip .ph:nth-child(2) { margin-top: 72px; }
.photo-strip .ph:nth-child(3) { margin-top: 144px; }
@media (max-width: 900px) {
  .photo-strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding-top: 40px; }
  .photo-strip .ph:first-child { grid-column: 1 / -1; max-width: 520px; }
  .photo-strip .ph:nth-child(2), .photo-strip .ph:nth-child(3) { margin-top: 0; }
  .ph.art img { height: 170px; }
  .item-list .side .btn { white-space: normal; overflow-wrap: anywhere; }
}
figcaption { font-size: 14px; margin-top: 16px; }

/* Inner page header */
.page-head { padding-top: 40px; padding-bottom: 56px; }
.page-head h1 { margin: 0 0 16px; }
.page-title { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 7vw, 96px); line-height: .95; color: var(--mustard); -webkit-text-stroke: 2.5px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); }

/* Sections */
.section { padding-top: 64px; padding-bottom: 56px; }
.section-title { margin: 0 0 28px; font-family: var(--serif); font-weight: 700; font-size: 22px; border-bottom: 3px solid var(--ink); padding-bottom: 10px; }
.h-big { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; }
.h-mid { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 26px; line-height: 1.2; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) 3px minmax(0, 1fr); gap: 44px; }
.pair > .rule { background: var(--ink); }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }

/* Link rows */
.routes { border-top: 3px solid var(--ink); }
.route { display: block; padding: 18px 0; border-bottom: 1px solid var(--ink); text-decoration: none; }
.route .v { font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1.2; display: block; }
.route:hover .v { text-decoration: underline; text-decoration-color: var(--rust); text-decoration-thickness: 3px; }

/* Panels */
.panel { background: var(--teal); color: var(--cream); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.panel a:not(.btn) { color: var(--cream); text-decoration-color: var(--mustard); }
.panel.green { background: #779d3c; color: var(--ink); }
.panel.green a:not(.btn) { color: var(--ink); text-decoration-color: var(--ink); }
.panel-text { font-family: var(--serif); font-size: 24px; line-height: 1.35; }

/* Lists */
.item-list { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.item-list > li { padding: 20px 0; border-bottom: 1px solid var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: baseline; }
.item-list .meta { font-size: 16px; }
.item-list .title { font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.25; }
.item-list .side { text-align: right; max-width: 36ch; }
.sub { font-family: var(--sans); font-style: normal; font-weight: 400; font-size: .72em; letter-spacing: 0; }
.tag { display: inline-block; font-size: 15px; font-weight: 700; color: var(--rust); }
.cols { columns: 3 240px; column-gap: 32px; list-style: none; margin: 0; padding: 0; }
.cols li { break-inside: avoid; padding: 6px 0 10px; }
.cols .where { display: block; font-size: 16px; }

/* Offer list (Work With Me) */
.offers { margin: 0; border-top: 3px solid var(--ink); }
.offer { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--ink); }
.offer dt { font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1.2; }
.offer dd { margin: 0; max-width: 58ch; }

/* Credits table */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--sans); font-weight: 700; font-size: 16px; min-height: 44px; padding: 8px 18px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.chip:hover { background: var(--mustard); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--mustard); }
.table-box { overflow-x: auto; }
.credits { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 18px; }
.credits th, .credits td { padding: 12px 16px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ink); }
.credits th { font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; border-bottom: 3px solid var(--ink); }
.credits td:first-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.credits .artist { font-weight: 700; }
.credits .grammy { display: block; font-size: 15px; font-weight: 700; color: var(--rust); }
.credits tr[hidden] { display: none; }
.watch { display: block; width: fit-content; margin-top: 4px; font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.item-list .side .watch { margin-left: auto; }
@media (max-width: 900px) { .item-list .side .watch { margin-left: 0; } }

/* Bios */
.bio-block { border: 3px solid var(--ink); background: #fff8e8; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.bio-block h3 { margin: 0; font-family: var(--serif); font-size: 22px; }
.copy-status { font-size: 15px; min-height: 1.5em; }

/* Video */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.video button { display: block; width: 100%; padding: 0; border: 4px solid var(--ink); background: var(--ink); cursor: pointer; position: relative; aspect-ratio: 16 / 9; }
.video img { width: 100%; height: 100%; object-fit: cover; }
.video .play { position: absolute; left: 12px; bottom: 12px; background: var(--mustard); color: var(--ink); font-weight: 700; padding: 8px 14px; letter-spacing: .1em; text-transform: uppercase; font-size: 14px; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 4px solid var(--ink); display: block; }
.video p { margin-top: 10px; font-size: 17px; }

/* Footer */
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 32px; padding-top: 48px; padding-bottom: 40px; }
.site-footer .mark { font-size: 32px; line-height: 1; -webkit-text-stroke: 2px var(--ink); text-shadow: 3px 3px 0 var(--ink); margin-bottom: 10px; }
.site-footer nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; align-content: start; }
.site-footer .small { font-size: 15px; align-self: end; }

@media (max-width: 900px) {
  .pair, .split, .offer, .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .pair > .rule { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero .name { grid-row: 1; }
  .hero .photo { grid-column: 1 / -1; grid-row: 2; margin: -36px 0 0; max-width: 520px; }
  .hero .intro, .hero.no-photo .intro { grid-column: 1 / -1; grid-row: 3; }
  .item-list > li { grid-template-columns: minmax(0, 1fr); }
  .item-list .side { text-align: left; max-width: none; }
  .offer { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-nav, .site-footer nav, .btn { display: none; } body { background: #fff; } }
