/* jacksonreed.dev: one stylesheet, screen then print.
   Layout and spacing are measured from the reference template (design spec, sections 3 and 4).
   Type is Futura throughout (owner's request, 2026-10-19); sizes are set for Futura's wider letters. */

/* Jost stands in for Futura (a commercial face) where Futura is not installed. */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/jost.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/jost-italic.woff2") format("woff2");
}

:root {
  --ink: #000;
  --paper: #fff;
  --foot: #1c1c1c;
  --foot-head: #dcdcdc;
  --foot-text: #fafafa;
  --futura: Futura, "Futura PT", Jost, "Century Gothic", sans-serif;
  --gutter: 6vw;
  --column: 991px;
  --display: clamp(30px, 3.2vw, 46px);
  --heading: clamp(26px, 2.36vw, 34px);
  --title: clamp(22px, 1.81vw, 26px);
  --lead: clamp(18px, 1.39vw, 20px);
  --body: clamp(16px, 1.18vw, 17px);
  --label: clamp(16px, 1.25vw, 18px);
  --small: clamp(14px, 1.04vw, 15px);
  --brand: clamp(21px, 1.67vw, 24px);
  --hero-label: clamp(18px, 1.46vw, 21px);
}
@media (min-width: 768px) {
  :root { --gutter: 4vw; }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: anywhere;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--futura);
  font-weight: 400;
  font-size: var(--body);
  line-height: 1.6;
}
main { flex: 1 0 auto; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Type */
.display { font-size: var(--display); line-height: 1.22; font-weight: 400; }
.heading { font-size: var(--heading); line-height: 1.3; font-weight: 400; }
.title { font-size: var(--title); line-height: 1.35; font-weight: 500; }
.lead { font-size: var(--lead); line-height: 1.5; }
.label {
  font-size: var(--label);
  line-height: 1.8;
  font-weight: 500;
  font-style: italic;
}
.small, .meta, .stack, .links, .date, .jump, .nav a, .contact-links, .footer-line, .footer-links {
  font-size: var(--small);
  line-height: 1.8;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Layout pieces */
.narrow { width: min(var(--column), 100% - 2 * var(--gutter)); margin-inline: auto; }
.label-row {
  display: grid;
  grid-template-columns: minmax(max-content, 22%) 1fr;
  column-gap: 1.5em;
  align-items: center;
}
@media (max-width: 640px) {
  .label-row { grid-template-columns: 1fr; row-gap: 20px; }
  .label-row .rule { order: -1; }
}
.rule { display: block; height: 1px; background: var(--ink); }
.rule-full { height: 0; margin: 0; border: 0; border-top: 1px solid var(--ink); }
.skip {
  position: absolute;
  left: var(--gutter);
  top: -200px;
  padding: 4px 8px;
  background: var(--paper);
  font-weight: 500;
}
.skip:focus { top: 8px; }

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 24px var(--gutter) 0;
}
.brand { font-size: var(--brand); line-height: 1.4; font-weight: 500; letter-spacing: 0.01em; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; }
.nav-icon { display: inline-flex; margin-left: 10px; }
@media (max-width: 640px) {
  .site-header { flex-direction: column; align-items: flex-start; }
}

/* Home: hero */
.hero {
  display: grid;
  grid-template-columns: 41.2fr 49.6fr;
  column-gap: 9.2%;
  align-items: start;
  padding: 79px var(--gutter) 87px;
}
.hero-photo img { width: 100%; }
.hero-label { grid-template-columns: max-content 1fr; column-gap: 2em; }
.hero-label .lead { font-size: var(--hero-label); letter-spacing: 0.02em; }
.hero .display { margin-top: 32px; }
.down { display: inline-block; margin-top: 24px; font-size: var(--display); line-height: 1; text-decoration: none; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; row-gap: 25px; padding-top: 48px; padding-bottom: 64px; }
  .hero-photo { width: 61%; }
  .hero-label { grid-template-columns: 1fr; row-gap: 20px; }
  .hero-label .rule { order: -1; }
}

/* Home: work grid */
.work { padding: 24px var(--gutter) 48px; }
.label-center { text-align: center; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 64px; }
.tile { display: block; text-decoration: none; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile-title { margin-top: 18px; }
.tile-blurb { margin-top: 4px; }
.tile:hover .tile-title, .tile:focus-visible .tile-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr; }
}

/* Home: currently */
.currently { padding: 56px 0 112px; text-align: center; }
.currently .heading { margin-top: 32px; }

/* Inner pages */
.page { padding-top: clamp(64px, 9vw, 130px); }
.page .heading { margin-top: 28px; }
.prose { margin-top: 28px; }
.prose .lead + .lead { margin-top: 24px; }
.page-end { margin: 72px 0 112px; }
.back { margin: 40px 0 112px; }

/* Contact */
.contact-rule { margin-top: 72px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px 64px; padding: 22px 0 112px 22%; }
@media (max-width: 640px) {
  .contact-links { flex-direction: column; padding-left: 0; }
}

/* Group pages */
.group-head { padding-bottom: 56px; border-bottom: 1px solid var(--ink); }
.jump { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 28px; }
.project { padding: 56px 0; border-bottom: 1px solid var(--ink); }
.project .meta { margin-top: 4px; }
.tagline { margin-top: 12px; font-style: italic; }
.writeup p { margin-top: 16px; }
.facts { margin-top: 24px; }
.facts li + li { margin-top: 8px; }
.date { margin-left: 8px; white-space: nowrap; }
.stack { margin-top: 24px; }
.shots { display: grid; gap: 40px; margin-top: 32px; }
.shots-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.shot-narrow { max-width: 476px; }
.links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 24px; }
.other-work { padding: 64px 0 112px; }
.other-work ul { display: flex; flex-wrap: wrap; gap: 4px 36px; margin-top: 16px; }
.other-work a { font-size: var(--title); line-height: 1.35; }

/* Resume (screen) */
.resume { padding-bottom: 112px; }
.resume .tagline { margin-top: 6px; }
.resume-meta { margin-top: 14px; }
.download { margin-top: 6px; }
.resume-section { margin-top: 56px; }
.resume-section .label-row + * { margin-top: 18px; }
.entry + .entry { margin-top: 26px; }
.entry-title { font-size: var(--lead); line-height: 1.4; font-weight: 500; }
.note { font-style: italic; }
.bullets { margin-top: 10px; padding-left: 1.2em; list-style: disc; }
.bullets li + li, .plain li + li { margin-top: 8px; }

/* Footer */
.site-footer { padding: 48px var(--gutter) 64px; background: var(--foot); color: var(--foot-text); }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
.footer-name { color: var(--foot-head); }
.footer-line { max-width: 546px; margin-top: 20px; }
.footer-links { display: flex; flex-wrap: wrap; align-content: start; gap: 4px 28px; }
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* Print: the resume as one US Letter page (tools/render_pdf.mjs). Tune --print to fit. */
@page { size: Letter; margin: 0.4in 0.5in; }
@media print {
  :root { --print: 8.8pt; }
  .skip, .site-header, .site-footer, .no-print { display: none !important; }
  body { display: block; min-height: 0; font-size: var(--print); line-height: 1.25; }
  .page, .resume { padding: 0; }
  .narrow { width: auto; }
  .resume .heading { margin: 0; font-size: 20pt; line-height: 1.05; font-weight: 500; }
  .resume .tagline { margin-top: 1pt; font-size: 10.5pt; line-height: 1.2; }
  .resume-meta, .meta { font-size: var(--print); font-weight: 400; letter-spacing: 0; line-height: 1.25; }
  .resume-meta { margin-top: 2pt; }
  .resume-section { margin-top: 6pt; }
  .resume-section .label-row { grid-template-columns: max-content 1fr; column-gap: 6pt; }
  .resume-section .label { font-style: normal; font-weight: 600; font-size: 10.5pt; line-height: 1.2; }
  .resume-section .label-row + * { margin-top: 3pt; }
  .entry + .entry { margin-top: 5pt; }
  .entry-title { font-size: 9.6pt; line-height: 1.25; font-weight: 600; }
  .note, .summary, .bullets li, .plain li { font-size: var(--print); line-height: 1.25; }
  .bullets { margin-top: 2pt; padding-left: 1.1em; }
  .bullets li + li, .plain li + li { margin-top: 1.5pt; }
  .rule { height: 0; background: none; border-top: 0.75pt solid #000; }
  a { text-decoration: none; }
}
