/* Shared reading layout for Garrett Collier's static personal website. */
:root {
  --gc-heading: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --gc-font: "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gc-content: 48rem;
  --gc-blue: #315f9f;
  --gc-red: #b73950;
  --gc-dark: #343a40;
  --gc-ink: #20242a;
  --gc-muted: #626d7a;
  --gc-line: #e2e6eb;
  --gc-soft: #f6f8fb;
}
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { font-family: var(--gc-font); font-size: 1.0625rem; line-height: 1.75; color: var(--gc-ink); background: #fff; }
p { font: inherit; color: inherit; opacity: 1; margin: 0 0 1.25rem; }
li, dt, dd, label, input, textarea, button, legend { font-family: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--gc-heading); font-weight: 800; line-height: 1.15; color: var(--gc-dark); }
h1 { font-size: clamp(2.6rem, 5vw, 4.3rem); font-weight: 900; letter-spacing: -.025em; margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.9rem, 3.3vw, 2.65rem); margin: 2.75rem 0 1rem; }
h3 { font-size: 1.4rem; margin: 2rem 0 .85rem; }
h4 { font-size: 1.3rem; margin: 1.75rem 0 .75rem; }
a { color: var(--gc-blue); }
a:hover { color: #244979; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--gc-blue); outline-offset: 4px; }
[hidden] { display: none !important; }
.container, .article-header, .article-body {
  width: 100%; max-width: 72rem;
  margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem;
}
.narrow, .article-header, .article-body, .page-body:has(#background) > .container { max-width: calc(var(--gc-content) + 3rem); }
.page-hero .container { max-width: 60rem; }
.lead, .article-deck { font-family: inherit; font-size: 1.125rem; font-weight: 400; line-height: 1.75; color: inherit; }
.eyebrow, .section-kicker, .card-label, .feature-meta, .article-kicker {
  font-size: .8125rem; font-weight: 700; line-height: 1.5; letter-spacing: .1em;
  color: var(--gc-red); text-transform: uppercase; margin: 0 0 .75rem;
}
.meta-row, .article-byline { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; font-size: .875rem; line-height: 1.6; color: var(--gc-muted); margin: 1rem 0; }
.section { padding: 3rem 0; }
.page-body { padding: 3rem 0; }
.page-body > .container > div > section + section,
.page-body > .container > section + section { margin-top: 3rem; }
.page-body .section { padding: 0; }
.page-hero { background: linear-gradient(180deg, #fff, #f7f9fc); border-bottom: 1px solid var(--gc-line); padding: 4rem 0 3rem; }
.page-hero h1, .article-header h1 { font-size: clamp(2.6rem, 5vw, 4.3rem); line-height: 1.02; font-weight: 900; }
.section-heading { margin-bottom: 1.75rem; }
.section-heading h2, section > h2:first-child, .section-kicker + h2 { margin-top: 0; }
.section-heading .text-link { display: inline-block; margin-top: .25rem; }
.bg-light-soft, .split-section { background: #fff; }
.section-kicker.light { color: var(--gc-red); }
.text-link, .read-more { font-weight: 600; }
.flow-list, .section-copy, .speaking-intro, .about-preview, .split-grid { display: block; }
.flow-entry {
  min-width: 0; padding: 1.75rem; background: #fff; border: 1px solid var(--gc-line);
  border-radius: 6px; box-shadow: 0 12px 30px rgba(26,36,48,.06);
}

.flow-entry h2, .flow-entry h3, .flow-entry h4 { margin-top: .5rem; }
.flow-section { margin: 2.75rem 0 0; }
.flow-section > h3, .flow-section .section-copy > h3:first-child { margin-top: .5rem; }
.callout, .source-list { margin: 2rem 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.article-body blockquote { margin: 2rem 0; padding: 0 0 0 1.25rem; border-left: 2px solid var(--gc-line); }
.source-list li + li, .keynote-outline li + li { margin-top: .75rem; }
.keynote-outline { padding-left: 1.4rem; }
.pill-grid, .topic-list { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 1rem 0; }
.pill-grid span, .topic-list span { padding: 0; border: 0; border-radius: 0; background: transparent; font-weight: 400; }
.pill-grid span:not(:last-child)::after, .topic-list span:not(:last-child)::after { content: ","; }
.talk-details { margin: 2rem 0; }
.talk-details div { margin-bottom: 1rem; }
.talk-details dt { font-weight: 600; }
.talk-details dd { margin: .2rem 0 0; }
.timeline-list { padding: 0; margin: 1.5rem 0; }
.timeline-list li, .timeline-preview > div { display: block; border-bottom: 1px solid var(--gc-line); padding: 1rem 0; }
.timeline-list strong, .timeline-preview strong { display: block; font-weight: 600; }
.timeline-list span, .timeline-preview span { display: block; }
.timeline-preview { margin: 1.5rem 0; }
.anchor-target { display: block; }
.article-shell { padding: 3.5rem 0; }
.article-header { margin-bottom: 2.75rem; }
.article-byline { padding-top: 1rem; border-top: 1px solid var(--gc-line); }
.article-body p, .article-body li { font-size: inherit; line-height: inherit; }
.responsive-table { max-width: 100%; overflow-x: auto; margin: 1.5rem 0; }
.responsive-table table { min-width: 620px; width: 100%; border-collapse: collapse; }
.responsive-table th, .responsive-table td { padding: .8rem; border: 1px solid var(--gc-line); font: inherit; vertical-align: top; }
.responsive-table th { background: var(--gc-soft); font-weight: 600; }
.responsive-table caption { caption-side: top; color: var(--gc-muted); font-size: .875rem; }
.page-photo, .about-preview figure { margin: 1.5rem 0 2rem; max-width: 16rem; }
.page-photo img, .about-preview img { display: block; width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; }
/* The navigation is always visible: no mobile dropdown. */
.site-navbar { min-height: 88px; border-bottom: 1px solid var(--gc-line); box-shadow: none; padding: .5rem 0; }
.site-navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 72rem; }
.site-brand { color: var(--gc-dark) !important; font-family: inherit; font-size: 1.2rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.site-navigation { margin-left: auto; }
.site-navigation .navbar-nav { display: flex; flex-direction: row; flex-wrap: wrap; gap: .25rem .75rem; margin-top: 0; margin-bottom: 0; }
.site-navbar .nav-link { font-family: var(--gc-font); font-size: 1.1rem; font-weight: 700; padding: .55rem .35rem !important; color: #4f5965 !important; white-space: nowrap; }
.site-navbar .nav-link:hover, .site-navbar .nav-link:focus, .site-navbar .nav-link.active { color: var(--gc-red) !important; }
.skip-link { position: absolute; top: -5rem; left: 1rem; padding: .6rem 1rem; background: var(--gc-dark); color: #fff; z-index: 2000; }
.skip-link:focus { top: .5rem; color: #fff; }
.btn { font-family: var(--gc-font); font-size: .9375rem; font-weight: 600; line-height: 1.5; padding: .6rem .9rem; border-radius: 3px; box-shadow: none; }
.btn-danger { background: var(--gc-red); border-color: var(--gc-red); color: #fff; }
.btn-danger:hover, .btn-danger:focus { background: #92283c; border-color: #92283c; color: #fff; }
.btn-outline-dark { color: var(--gc-dark); border-color: var(--gc-dark); }
.button-row, .hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
/* Preserve the portrait treatment and mobile crop of the homepage hero. */
.legacy-home-hero {
  align-items: flex-end; display: flex; position: relative; min-height: calc(100vh - 88px);
  background-image: linear-gradient(90deg, rgba(22,27,33,.88) 0%, rgba(22,27,33,.68) 30%, rgba(22,27,33,.22) 56%, rgba(22,27,33,.10) 100%), url("/assets/imgs/header.jpg");
  background-position: 58% top; background-repeat: no-repeat; background-size: cover; background-attachment: fixed;
  padding: clamp(9rem,17vh,13rem) 0 clamp(3.5rem,8vh,6rem);
}
.legacy-home-hero .container { max-width: none; width: 100%; margin: 0; padding-left: clamp(2rem,6vw,4.5rem); padding-right: 2rem; position: relative; }
.legacy-home-hero .hero-copy { max-width: 500px; }
.hero-copy h1 { font-family: var(--gc-heading); font-size: clamp(2.9rem,4.8vw,4.8rem); font-weight: 900; color: #fff; line-height: .9; text-transform: uppercase; margin-bottom: 1rem; }
.hero-copy h1 span { display: block; }
.hero-role { color: rgba(255,255,255,.84); font-size: clamp(1rem,1.45vw,1.22rem); font-weight: 700; margin-bottom: .6rem; }
.hero-secondary { font-size: 1rem; margin-top: -.25rem; }
.hero-line { color: #fff; font-size: clamp(1.08rem,1.75vw,1.36rem); font-weight: 700; line-height: 1.5; margin-bottom: 1rem; }
.hero-social { display: flex; align-items: center; justify-content: flex-start; gap: 1rem; max-width: none; width: max-content; margin: 0 0 1.35rem .2rem; padding: 0; list-style: none; }
.hero-social .social-item { flex: 0 0 24px; }
.hero-social .social-link { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; line-height: 1; }
.hero-social .social-link i { display: block; line-height: 1; }
.substack-logo { display: inline-block; width: 1em; height: 1em; background-color: currentColor; -webkit-mask: url("/assets/icons/substack.svg") center / contain no-repeat; mask: url("/assets/icons/substack.svg") center / contain no-repeat; }
.hero-social .substack-mark { font-size: 1.25rem; }
.legacy-home-hero .hero-actions .btn { background: rgba(42,48,55,.62); border: 1px solid rgba(255,255,255,.9); color: #fff; }
.legacy-home-hero .hero-actions .btn-danger, .legacy-home-hero .hero-actions .btn:hover { background: #fff; color: var(--gc-dark); }
.hero-social a:focus-visible, .hero-actions a:focus-visible { outline-color: #fff; }
/* Contact information follows the same reading column. */
.contact-primary-link { display: inline-block; font: inherit; font-weight: 600; overflow-wrap: anywhere; margin-bottom: 1rem; }
.social-link-list { display: block; margin-top: 1rem; }
.social-link-list a { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: .85rem; align-items: center; min-height: 44px; margin-bottom: 1rem; }
.social-link-list i, .social-link-list .substack-list-mark { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; font-size: 1.3rem; color: var(--gc-blue); background: var(--gc-soft); border-radius: 50%; }
.social-link-list strong { display: block; font-weight: 700; }
.social-link-list small { display: block; font-size: .9375rem; font-weight: 400; line-height: 1.4; color: var(--gc-muted); }
.contact-band { background: #fff; color: var(--gc-ink); text-align: left; }
.page-body .tile-grid + #speaking { margin-top: 3.5rem; }
.contact-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1.5rem; }
.contact-links a { color: var(--gc-blue); font-weight: 600; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--gc-line); background: var(--gc-soft); color: var(--gc-muted); padding: 1.5rem 0; font-size: .875rem; }
.site-footer .container { max-width: 72rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: center; justify-content: space-between; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.site-footer a { color: var(--gc-dark); }
@media (max-width: 1199.98px) {
  .legacy-home-hero { background-position: 61% top; padding: clamp(8rem,15vh,11rem) 0 clamp(3rem,7vh,5rem); }
  .legacy-home-hero .hero-copy { max-width: 460px; }
  .hero-copy h1 { font-family: var(--gc-heading); font-size: clamp(2.75rem,5.8vw,4.15rem); }
  .hero-role { font-size: 1.05rem; }
  .hero-line { font-size: clamp(1.05rem,2vw,1.18rem); }
}
@media (max-width: 991.98px) {
  .legacy-home-hero { background-position: 63% top; }
  .legacy-home-hero .hero-copy { max-width: 430px; }
}
@media (max-width: 767.98px) {
  html { scroll-padding-top: 8rem; }
  .container, .article-header, .article-body { padding-left: 1rem; padding-right: 1rem; }
  .site-navbar .container { flex-direction: column; gap: .1rem; padding: 0 .75rem; }
  .site-brand { margin: 0; }
  .site-navigation { margin-left: 0; width: 100%; }
  .site-navigation .navbar-nav { justify-content: center; gap: 0; }
  .site-navbar .nav-link { font-family: var(--gc-font); font-size: .875rem; min-height: 44px; display: flex; align-items: center; padding: .5rem .35rem !important; }
  .section, .page-body, .article-shell { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .page-hero { padding: 2.5rem 0 2rem; }
  .legacy-home-hero { background-attachment: scroll; background-position: 58% top; min-height: 590px; padding-top: 3.5rem; padding-bottom: 2.5rem; }
  .legacy-home-hero .container { padding-left: 1.1rem; padding-right: 1rem; }
  .legacy-home-hero .hero-copy { max-width: 340px; }
  .hero-social { display: none; }
  .hero-copy h1 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .hero-line { font-size: clamp(.95rem,3.6vw,1.05rem); line-height: 1.35; margin-bottom: .75rem; }
  .hero-role { font-size: .9rem; }
  .hero-secondary { font-size: .85rem; }
  .hero-actions { gap: .55rem; margin-top: 1.15rem; }
  .legacy-home-hero .hero-actions .btn { font-size: .88rem; padding: .55rem .85rem; }
}
@media (max-width: 575.98px) {
  .legacy-home-hero { min-height: 540px; padding-bottom: 2.25rem; }
  .legacy-home-hero .container { padding-left: .9rem; padding-right: .9rem; }
  .legacy-home-hero .hero-copy { max-width: 300px; }
  .hero-role { font-size: .82rem; }
  .hero-secondary { font-size: .85rem; }
  .hero-line { font-size: .9rem; }
  .legacy-home-hero .hero-actions .btn { font-size: .82rem; padding: .5rem .72rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Bold headings and visible tiles restore the original visual weight. */

.page-hero .lead, .article-deck { font-size: 1.2rem; color: #505963; }

.speaking-preview { background: #faf7f4; }

.site-navbar .nav-link { position: relative; }
.site-navbar .nav-link::after {
  content: ""; position: absolute; height: 2px; left: .35rem; right: .35rem; bottom: .25rem;
  background: var(--gc-red); transform: scaleX(0); transform-origin: left; transition: transform 180ms ease-out;
}
.site-navbar .nav-link.active::after, .site-navbar .nav-link:hover::after, .site-navbar .nav-link:focus-visible::after { transform: scaleX(1); }
.btn { transition: transform 180ms ease-out, background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out; }
a:not(.btn) { text-underline-offset: .2em; text-decoration-thickness: 1px; transition: color 160ms ease-out; }
.scroll-reveal { transition: opacity 550ms ease-out, transform 550ms cubic-bezier(.2,.7,.3,1); }
.scroll-reveal.is-pending { opacity: 0; transform: translateY(14px); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .btn:hover { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-reveal, .btn, a:not(.btn), .site-navbar .nav-link::after { transition: none; }
  .scroll-reveal.is-pending { opacity: 1; transform: none; }
}
@media print { .scroll-reveal.is-pending { opacity: 1; transform: none; } }

.tile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; align-items: stretch; }
.tile-grid > .flow-entry { margin: 0; }
.tile-grid > .flow-entry:last-child:nth-child(odd) { grid-column: 1 / -1; }
.flow-entry > :last-child { margin-bottom: 0; }
.flow-entry h3 a { color: var(--gc-blue); }
.flow-entry .card-label { color: var(--gc-muted); }
.article-list { margin-top: 1.5rem; }
.writing-intro-copy { margin-bottom: 2.5rem; }
.section-copy > p, #technology > p { max-width: 48rem; }
.bg-light-soft { background: var(--gc-soft); }
.section-intro h2 { font-size: clamp(2.2rem, 4.4vw, 3.75rem); }
.callout { padding: 1.75rem; border-left: 3px solid var(--gc-red); background: var(--gc-soft); border-radius: 0 6px 6px 0; }
.callout h2, .callout h3 { margin-top: 0; }
.pill-grid span, .topic-list span { padding: .35rem .7rem; border: 1px solid var(--gc-line); border-radius: 4px; background: var(--gc-soft); font-size: .9375rem; }
.pill-grid span::after, .topic-list span::after { content: none !important; }
.page-photo img, .about-preview img { border-radius: 6px; box-shadow: 0 12px 30px rgba(26,36,48,.10); }
.speaker-background { max-width: 60rem; }
.speaker-background-grid { display: grid; grid-template-columns: minmax(0,15rem) minmax(0,1fr); gap: 2.5rem; align-items: start; margin-top: 2rem; }
.speaker-background-grid .page-photo { width: 100%; max-width: 15rem; margin: 0; }
.speaker-background-copy { min-width: 0; }
.speaker-background-copy > :last-child { margin-bottom: 0; }
.about-preview { display: grid; grid-template-columns: minmax(0,15rem) minmax(0,1fr); gap: 2.5rem; align-items: center; max-width: 60rem; margin: 0 auto; }
.about-preview figure { width: 100%; max-width: 15rem; margin: 0; }
.about-preview > div { min-width: 0; }
@media (max-width: 767.98px) {
  .about-preview { grid-template-columns: minmax(0,1fr); gap: 1.5rem; }
  .about-preview figure { max-width: 14rem; }
  .speaker-background-grid { grid-template-columns: minmax(0,1fr); gap: 1.5rem; }
  .speaker-background-grid .page-photo { max-width: 14rem; }
  .tile-grid { grid-template-columns: minmax(0,1fr); }
  .flow-entry { padding: 1.25rem; }
  .site-brand { font-size: 1.05rem; }
  .site-navbar .nav-link { font-size: .9375rem; }
  .page-hero h1, .article-header h1 { font-size: clamp(2.3rem, 7.6vw, 3.5rem); }
}
