/* Shared typography and components live in vendor/logan-brand.
   This file owns the personal site's artwork and page composition. */
:root {
  --lb-text-body: 14px;
  --paper: var(--lb-canvas);
  --ink: var(--lb-ink);
  --surface: var(--lb-surface);
  --line: var(--lb-border);
  --muted: var(--lb-muted);
  --red: var(--lb-red);
  --green: var(--lb-green);
  --blue: var(--lb-blue);
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}
body { -webkit-font-smoothing: antialiased; }
a, button { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--red); color: var(--paper); }
.header { min-height: 98px; z-index: 3; }
.wordmark { white-space: nowrap; }
.theme { margin-left: var(--lb-space-3); }
.menu-toggle svg { width: 22px; height: 22px; }

/* Preserve the landscape and astronaut behind the introduction. */
.hero {
  --hero-image: url('orbital-landscape-light.png');
  position: relative;
  isolation: isolate;
  min-height: clamp(650px, 62vw, 760px);
  padding: var(--lb-space-12) 0 0;
  background-image: var(--hero-image);
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center calc(100% + clamp(28px, 8vw, 100px));
}
[data-theme=dark] .hero { --hero-image: url('orbital-landscape-v2.webp'); }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--paper) 0%, color-mix(in srgb, var(--paper) 94%, transparent) 15%, color-mix(in srgb, var(--paper) 55%, transparent) 35%, transparent 58%);
  pointer-events: none;
}
.hero-copy { max-width: 510px; width: 52%; position: relative; }
.hero-copy h1 { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; letter-spacing: -.065em; }
.wave { width: 53px; height: auto; flex: none; }
.lead { font-size: 17px; line-height: 1.7; max-width: 50ch; }
.hero-secondary { font-size: 13px; line-height: 1.85; color: var(--muted); margin: var(--lb-space-5) 0 26px; max-width: 61ch; }
.hero-links { display: flex; flex-wrap: wrap; gap: var(--lb-space-6); align-items: center; }

.projects-section { border-top: 1px solid var(--line); padding-top: var(--lb-space-8); }
.section-heading { margin-bottom: 28px; }
.card { --accent: var(--blue); gap: 0; padding: var(--lb-space-6) 28px; }
.card[data-tool=stockboy] { --accent: var(--green); }
.card[data-tool=roadmap] { --accent: var(--red); }
.cardTop { display: flex; align-items: center; gap: var(--lb-space-4); }
.icon { display: grid; place-items: center; color: var(--accent); width: 36px; height: 36px; }
.icon svg, .icon img { width: 32px; height: 32px; object-fit: contain; }
.icon img { display: block; }
.icon .newsletterLogoDark, .icon .stockboyLogoDark,
[data-theme=dark] .icon .newsletterLogoLight, [data-theme=dark] .icon .stockboyLogoLight { display: none; }
[data-theme=dark] .icon .newsletterLogoDark, [data-theme=dark] .icon .stockboyLogoDark { display: block; }
.cardCopy { margin-top: var(--lb-space-6); }
.cardCopy h3, .cardCopy h4 { font-size: 22px; margin-bottom: 9px; }
.cardCopy p { font-size: 12px; line-height: 1.8; color: var(--muted); max-width: 48ch; }

/* The featured publication and connected project proportions stay site-owned. */
.projects-section > .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: minmax(190px, auto) minmax(196px, auto); }
.grid > [data-tool=newsletter] { grid-column: 1/6; grid-row: 1/3; }
.grid > [data-tool=aijobs] { grid-column: 6/13; grid-row: 1; }
.grid > [data-tool=roadmap] { grid-column: 6/10; grid-row: 2; }
.grid > [data-tool=stockboy] { grid-column: 10/13; grid-row: 2; }
.grid > [data-tool=newsletter] .cardCopy { margin-top: auto; padding-top: var(--lb-space-6); }
.grid > [data-tool=newsletter] h3 { font-size: 30px; }
.grid > [data-tool=newsletter] p { font-size: 14px; max-width: 34ch; }
.grid > [data-tool=stockboy] h3, .grid > [data-tool=roadmap] h3 { font-size: 20px; }
.wip-section { margin-top: var(--lb-space-8); }
.wip-section > .section-heading { margin-bottom: var(--lb-space-5); }
.wip-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.wip-grid > [data-tool=ml] { grid-column: span 7; }
.wip-grid > [data-tool=research] { grid-column: span 5; }
.wip-grid .card { min-height: 172px; }
.wip-grid .cardCopy { margin-top: var(--lb-space-5); }
.wip-grid p { max-width: 62ch; }

/* Article spans and original cover image are specific to the homepage. */
.writing-section { margin-top: 72px; padding: 36px 0 40px; border-top: 1px solid var(--line); }
.writing-section > h2 { margin-bottom: 28px; }
.article-list { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: minmax(160px, auto) minmax(160px, auto) minmax(180px, auto); list-style: none; margin: 0; padding: 0; }
.article-list li { min-width: 0; }
.article-list li:nth-child(1) { grid-column: 1/6; grid-row: 1/3; }
.article-list li:nth-child(2) { grid-column: 6/13; grid-row: 1; }
.article-list li:nth-child(3) { grid-column: 6/13; grid-row: 2; }
.article-list li:nth-child(4) { grid-column: 1/8; grid-row: 3; }
.article-list li:nth-child(5) { grid-column: 8/13; grid-row: 3; }
.article-link { height: 100%; padding: 0; gap: 0; }
.article-copy { display: flex; flex-direction: column; justify-content: space-between; gap: var(--lb-space-5); flex: 1; padding: var(--lb-space-6) 28px; }
.article-link time { font-size: var(--lb-text-small); color: var(--muted); }
.article-link h3 { font-size: 22px; line-height: 1.4; letter-spacing: -.04em; }
.article-list li:first-child h3 { font-size: 30px; line-height: 1.3; }
.article-image { display: block; width: 100%; height: auto; aspect-ratio: 1672/941; object-fit: cover; }

/* The kit supplies the borderless numbered reading lists. */
.about-page { margin-inline: auto; padding-top: var(--lb-space-12); }
.about-page .page-title { font-size: 40px; margin-bottom: 28px; }
.about-page .about-section { margin-top: var(--lb-space-16); }
.about-subsection + .about-subsection { margin-top: var(--lb-space-12); }
.about-subsection-title { margin-bottom: 22px; }
footer { margin-top: 72px; border-top: 1px solid var(--line); padding: 30px 0 40px; display: flex; align-items: center; justify-content: space-between; gap: var(--lb-space-6); }
.footer-name { font-size: 17px; }
.social-links { display: flex; gap: var(--lb-space-6); flex-wrap: wrap; font-size: var(--lb-text-small); }
.about-page + footer { border-top: 0; margin-top: 56px; }

@media (max-width: 950px) {
  .hero { min-height: 660px; padding-top: 38px; }
  .hero-copy { width: 68%; max-width: 480px; }
  .hero-copy h1 { font-size: 39px; gap: 10px; }
  .wave { width: 42px; }
  .lead { font-size: 15px; }
  .hero-secondary { font-size: 12px; }
  .card, .article-copy { padding: 22px; }
  .article-link h3 { font-size: 20px; }
  .article-list li:first-child h3 { font-size: 26px; }
}
@media (min-width: 651px) and (max-width: 950px) {
  .projects-section > .grid > .card { padding: 20px 17px; }
  .grid > [data-tool=newsletter] h3 { font-size: 25px; }
  .grid > [data-tool=stockboy] h3, .grid > [data-tool=roadmap] h3 { font-size: 18px; }
}
@media (max-width: 650px) {
  .header { min-height: 76px; }
  .wordmark { font-size: clamp(15px, 4.4vw, 20px); }
  .theme { margin-left: 0; }
  .hero { min-height: 0; padding: 36px 0 calc((100vw - 2 * var(--lb-page-gutter)) * .563 - 8px); background-position: center calc(100% + 24px); }
  .hero-copy { width: 100%; max-width: none; }
  .hero::before { inset: auto 0 0; height: calc((100vw - 2 * var(--lb-page-gutter)) * .563); background: linear-gradient(180deg, var(--paper) 0%, transparent 35%); }
  .hero-copy h1 { font-size: clamp(30px, 8vw, 43px); margin-bottom: 18px; }
  .wave { width: 46px; }
  .lead { font-size: 16px; }
  .hero-secondary { font-size: 13px; margin: var(--lb-space-4) 0 19px; }
  .hero-links { gap: var(--lb-space-4); }
  .section-heading { margin-bottom: 23px; }
  .projects-section > .grid, .wip-grid, .article-list { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .projects-section > .grid > .card, .wip-grid > .card, .article-list li:nth-child(n) { grid-column: auto; grid-row: auto; }
  .card { padding: 23px; }
  .cardCopy p { font-size: 13px; }
  .grid > [data-tool=newsletter] .cardCopy { margin-top: var(--lb-space-6); padding-top: 0; }
  .grid > [data-tool=newsletter] h3 { font-size: 25px; }
  .grid > [data-tool=newsletter] p { font-size: 13px; max-width: 48ch; }
  .wip-section { margin-top: 28px; }
  .wip-grid .card { min-height: 0; }
  .writing-section { margin-top: var(--lb-space-12); padding: 28px 0 32px; }
  .article-copy { min-height: 170px; padding: 23px; gap: 14px; }
  .article-list li:first-child .article-copy { min-height: 0; }
  .article-list li:first-child h3 { font-size: 25px; }
  .about-page { padding-top: var(--lb-space-8); }
  .about-page .page-title { font-size: 34px; }
  .about-page .about-section { margin-top: var(--lb-space-12); }
  footer { margin-top: 46px; display: block; padding: 26px 0 32px; }
  .social-links { margin-top: 22px; }
}
