/* Josh Strauss: an open, type-led portfolio. Shared by the home and reading pages. */
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/fonts/hanken-grotesk-var.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-var.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f6f8fb;
  --ink: #152942;
  --accent: #234f85;
  --muted: #56667a;
  --wash: #e6edf6;
  --line: #ccd6e3;
  --white: #fff;
  --font-body: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Newsreader', Georgia, serif;
  --space-2: .5rem;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 2rem; }
body { min-height: 100svh; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--font-body); }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 2px; }
::selection { background: #c4dcf7; color: var(--ink); }
img, svg { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, li, a { overflow-wrap: break-word; }
h1, h2, h3 { line-height: 1.12; }
h2 { font-weight: 500; letter-spacing: -.04em; }
h3 { font-weight: 600; letter-spacing: -.025em; }
p + p { margin-top: 1rem; }
ul, ol { padding-left: 1.25rem; }
ul[class], ol[class] { padding: 0; list-style: none; }
section[id], article[id] { scroll-margin-top: 2rem; }
.site-shell, .sheet { width: min(100% - 7rem, 78rem); margin-inline: auto; }
.site-header, .masthead { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-block: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; font-size: .95rem; font-weight: 600; white-space: nowrap; }
.brand__mark { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; background: var(--ink); color: var(--white); font-size: .85rem; border-radius: 50%; letter-spacing: -.04em; }
.site-nav, .masthead__nav { display: flex; flex-wrap: wrap; gap: 1.75rem; font-size: .9rem; }
.site-nav a, .masthead__nav a { text-decoration: none; padding-block: .4rem; }
.site-nav a:hover, .masthead__nav a:hover { text-decoration: underline; }
.hero { padding-top: 3.8rem; padding-bottom: 5.5rem; }
.hero__topline { display: flex; justify-content: space-between; gap: 1.25rem; color: var(--muted); font-size: .95rem; }
.hero h1 { margin: 1.3rem 0 2.6rem -.065em; font-size: clamp(5rem, 12.5vw, 11.5rem); font-weight: 500; letter-spacing: -.075em; line-height: 1; }
.hero h1 span { color: var(--accent); }
.hero__bottom { display: grid; grid-template-columns: 1.05fr .85fr 1fr; align-items: center; gap: 2.5rem; }
.hero__portrait { position: relative; z-index: 2; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; border-radius: .75rem; }
.hero__intro > p { max-width: 22ch; font: 400 clamp(2rem, 3.1vw, 3rem)/1.14 var(--font-display); letter-spacing: -.035em; }
.text-link { display: inline-flex; align-items: center; gap: 1.7rem; margin-top: 1.8rem; font-weight: 500; font-size: .95rem; text-decoration: none; }
.text-link span { font-size: 1.5rem; line-height: 1; }
.text-link:hover { text-decoration: underline; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 1.8rem; }
.hero__actions .text-link { margin-top: 0; }
.resume-link { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .65rem 1rem; border-radius: .4rem; background: var(--ink); color: var(--white); font-size: .95rem; font-weight: 500; text-decoration: none; }
.resume-link:hover { background: var(--accent); color: var(--white); }
.current-index { padding-top: .2rem; }
.current-index h2 { font: 500 .9rem/1.5 var(--font-body); letter-spacing: 0; color: var(--muted); margin-bottom: .6rem; }
.current-index a { display: flex; justify-content: space-between; gap: 1.2rem; padding: .65rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1rem; }
.current-index a span:last-child { color: var(--muted); font-size: .85rem; align-self: center; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.8rem; }
.section-heading h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.section-heading > p { color: var(--muted); font-size: .95rem; }
.venture-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.venture { background: var(--white); border-radius: 1.1rem; overflow: hidden; }
.venture--featured { grid-column: 1 / -1; display: grid; grid-template-columns: .85fr 1.5fr; }
.venture__visual { position: relative; min-height: 27rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.75rem; background: var(--wash); }
.venture__visual .logo-slot { width: 10rem; height: 10rem; background: var(--white); border-radius: 2.4rem; padding: 1.5rem; box-shadow: 0 14px 34px #234f8510; }
.venture__visual .venture__category { position: absolute; bottom: 2rem; color: var(--muted); }
.venture__body { padding: 2.6rem; }
.venture__body > p { color: var(--muted); font-size: 1rem; max-width: 66ch; }
.venture .entry__head { margin-bottom: 1.3rem; }
.venture h3 { font-size: clamp(1.8rem, 2.8vw, 2.7rem); margin-bottom: .65rem; }
.venture h3 a { text-decoration: none; }
.venture h3 a:hover { text-decoration: underline; }
.entry__meta { display: block; font-size: .8rem; color: var(--muted); line-height: 1.65; font-weight: 400; letter-spacing: 0; }
.entry__links { display: flex; flex-wrap: wrap; column-gap: 1.25rem; row-gap: .5rem; margin-top: 1.5rem; font-size: .9rem !important; }
.entry__links a { color: var(--ink); }
.entry__links > span { color: var(--muted); }
.venture__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 2rem 2.6rem 0; }
.venture__category { font-size: .85rem; }
.logo-slot { display: grid; place-items: center; flex-shrink: 0; width: 3.25rem; height: 3.25rem; }
.logo-slot img { width: 100%; height: 100%; object-fit: contain; }
.venture--mise .logo-slot, #getmise .logo-slot { border-radius: 23%; overflow: hidden; }
.venture--giltedge .logo-slot { padding: .3rem; }
.venture__top + .venture__body { padding-top: 1.8rem; }
.venture--mise { background: #edf2f8; }
.venture--giltedge { background: #e9eff7; }
.dot { display: none; }
.dot--live { display: inline-block; width: .4rem; height: .4rem; border-radius: 50%; background: #3f8d57; margin-right: .4rem; vertical-align: .1em; }
.side-projects, .sites-section { margin-top: 4.5rem; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.project-grid > .entry { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.project-heading { display: flex; align-items: center; gap: 1rem; }
.entry h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.entry__head { margin-bottom: .8rem; }
.entry > p, .entry > div > p { color: var(--muted); }
.site-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.site-grid > .entry { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.site-grid .logo-slot { margin-bottom: 1.3rem; width: 2.6rem; height: 2.6rem; }
.site-grid .entry h3 { font-size: 1.15rem; }
.site-grid .entry h3 a { text-decoration: none; }
.site-grid .entry h3 a:hover { text-decoration: underline; }
.site-grid .entry p { font-size: .95rem; }
.about-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: 6rem; margin-top: 7rem; padding-top: 5rem; border-top: 1px solid var(--line); }
.about-heading h2 { font-size: clamp(2.6rem, 4.6vw, 4rem); }
.about-heading p { color: var(--muted); max-width: 23ch; margin-top: 1.4rem; }
.about-copy > p { color: var(--muted); font-size: 1.075rem; }
.about-copy > p:first-child { color: var(--ink); font-size: 1.35rem; line-height: 1.55; }
.now-note { margin-top: 2rem; padding: 1.5rem 1.75rem; background: var(--wash); border-radius: .65rem; }
.now-note h3 { font-size: 1rem; margin-bottom: .7rem; }
.now-note > p { color: var(--muted); font-size: .95rem; }
.updated { font-size: .8rem !important; color: var(--muted); }
.background-section { display: grid; grid-template-columns: 1.4fr 1fr; gap: 6rem; padding-block: 4.5rem 0; }
.background-details details { border-top: 1px solid var(--line); }
.background-details details:last-child { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 1.25rem 2.5rem 1.25rem 0; font-size: 1.3rem; font-weight: 500; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: .3rem; top: 1.25rem; font-size: 1.4rem; font-weight: 400; }
details[open] > summary::after { content: '−'; }
.details-body { padding: .25rem 0 1.75rem; }
.details-body .entry + .entry { margin-top: 1.6rem; }
.details-body .entry h3 { font-size: 1.05rem; }
.details-body .entry p, .details-body li { font-size: .95rem; color: var(--muted); }
.details-body li + li { margin-top: 1rem; }
.personal-notes section + section { margin-top: 1.8rem; }
.personal-notes h3 { font-size: .95rem; margin-bottom: .85rem; }
.personal-notes p, .fact-list { font-size: .95rem; color: var(--muted); }
.skill-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.skill-list li { background: var(--wash); padding: .25rem .65rem; border-radius: .3rem; font-size: .8rem; color: var(--muted); }
.reading-section { padding-top: 5.5rem; padding-bottom: 5rem; }
.reading-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.reading-link { display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-decoration: none; padding: 1.7rem 0; border-top: 1px solid var(--line); }
.reading-link h3 { font: 400 2.2rem/1.2 var(--font-display); letter-spacing: -.025em; }
.reading-link p { color: var(--muted); font-size: .95rem; margin-top: .7rem; }
.reading-link__icon { display: grid; place-items: center; flex-shrink: 0; width: 2.8rem; height: 2.8rem; border: 1px solid var(--line); border-radius: 50%; font-size: 1.3rem; }
.reading-link:hover .reading-link__icon { background: var(--ink); color: var(--white); border-color: var(--ink); }
.contact-section { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding: 3.5rem; color: var(--white); background: var(--ink); border-radius: 1rem; }
.contact-section h2 { font-size: clamp(2.4rem, 4.5vw, 4rem); margin-bottom: 1.5rem; }
.contact-email { font-size: clamp(1rem, 2vw, 1.5rem); }
.contact-links { display: flex; flex-direction: column; align-items: flex-end; gap: .55rem; font-size: .95rem; }
.contact-section a:hover { color: #bfdbfe; }
.contact-section a:focus-visible { outline-color: #bfdbfe; }
.sheet-footer { display: flex; justify-content: space-between; gap: 2rem; padding-block: 2rem; font-size: .8rem; color: var(--muted); }
.sheet-footer p + p { margin-top: 0; }
.skip-link { position: fixed; left: 1rem; top: -8rem; z-index: 10; background: var(--ink); color: var(--white); padding: .65rem 1rem; }
.skip-link:focus { top: 1rem; color: var(--white); outline-color: var(--accent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Reading pages share the portfolio's quiet typography and generous measure. */
.sheet { max-width: 70rem; }
.sheet .masthead { border-bottom: 1px solid var(--line); }
.sheet main { padding: 3rem 0 4rem; }
.backlink { display: inline-block; color: var(--muted); font-size: .9rem; margin-bottom: 2.4rem; }
.page-heading { font-size: clamp(2.7rem, 5.5vw, 4.5rem); font-weight: 500; letter-spacing: -.05em; max-width: 20ch; margin-bottom: 1.2rem; }
.page-lede { max-width: 70ch; font-size: 1.15rem; color: var(--muted); margin-bottom: 2rem; }
.research-disclosure { max-width: 75ch; font-size: .95rem; color: var(--muted); margin-bottom: 2rem; }
.panel { margin-top: 2.5rem; }
.panel__title { font-size: clamp(1.4rem, 2.5vw, 2rem); margin-bottom: 1.5rem; max-width: 42ch; }
.panel__body { max-width: 80ch; }
.book-list { margin-top: 1.5rem; }
.book-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.book-list cite { font: 400 1.6rem/1.25 var(--font-display); }
.book-author { color: var(--muted); font-size: .95rem; }
.ref-list li { padding: 1.1rem 0; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.ref-list a { color: var(--ink); }
.ref-list cite { font-style: normal; }
.error-sheet h1 { font: 500 clamp(2.5rem, 6vw, 5rem)/1.1 var(--font-body); letter-spacing: -.05em; margin-bottom: 1.5rem; }
.error-sheet { min-height: 65svh; }
@media (max-width: 1000px) {
  .site-shell, .sheet { width: calc(100% - 4rem); }
  .hero__bottom { gap: 2rem; }
  .venture__body { padding: 2rem; }
  .venture__top { padding: 1.7rem 2rem 0; }
  .venture--featured { grid-template-columns: .7fr 1.2fr; }
  .venture__visual { min-height: 24rem; }
  .about-section, .background-section { gap: 3rem; }
  .site-grid { gap: 1.5rem; }
  .site-grid .entry h3 { font-size: 1rem; }
}
@media (max-width: 700px) {
  .site-shell, .sheet { width: calc(100% - 2.5rem); }
  .site-header, .masthead { padding-block: 1.3rem; gap: 1rem; }
  .brand > span:last-child { display: none; }
  .site-nav, .masthead__nav { gap: 1.15rem; font-size: .85rem; }
  .hero { padding-top: 2.6rem; padding-bottom: 3.5rem; }
  .hero__topline { flex-direction: column; gap: .25rem; font-size: .85rem; }
  .hero h1 { font-size: clamp(3.35rem, 13vw, 5.8rem); margin: 1.4rem 0 2rem -.055em; }
  .hero__bottom { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero__portrait { grid-row: 1; aspect-ratio: 6 / 5; }
  .hero__intro > p { font-size: 2.2rem; max-width: 23ch; }
  .text-link { margin-top: 1.3rem; }
  .hero__actions { margin-top: 1.3rem; }
  .current-index a { padding-block: .75rem; }
  .section-heading { display: block; margin-bottom: 1.4rem; }
  .section-heading h2 { font-size: 1.95rem; }
  .section-heading > p { margin-top: .65rem; }
  .venture-grid, .venture--featured { grid-template-columns: 1fr; gap: 1rem; }
  .venture--featured { gap: 0; }
  .venture__visual { min-height: 14rem; }
  .venture__visual .logo-slot { width: 6.5rem; height: 6.5rem; padding: 1rem; border-radius: 1.5rem; }
  .venture__visual .venture__category { bottom: 1rem; font-size: .8rem; }
  .venture__body { padding: 1.65rem; }
  .venture h3 { font-size: 2rem; }
  .venture__top { padding: 1.5rem 1.65rem 0; }
  .venture__body > p { font-size: .95rem; }
  .side-projects, .sites-section { margin-top: 3.2rem; }
  .project-grid, .site-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .site-grid > .entry { display: flex; align-items: flex-start; gap: 1rem; }
  .site-grid .entry h3 { font-size: 1.15rem; }
  .site-grid .logo-slot { margin-top: .15rem; }
  .about-section { grid-template-columns: 1fr; gap: 2rem; margin-top: 4rem; padding-top: 3rem; }
  .about-heading h2 { font-size: 3rem; }
  .about-heading br { display: none; }
  .about-heading p { max-width: none; margin-top: 1rem; }
  .about-copy > p:first-child { font-size: 1.2rem; }
  .about-copy > p { font-size: 1rem; }
  .background-section { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3rem; }
  .reading-section { padding-block: 3.5rem 2.5rem; }
  .reading-grid { grid-template-columns: 1fr; gap: 0; }
  .reading-link h3 { font-size: 2rem; }
  .contact-section { padding: 2rem 1.5rem; flex-direction: column; align-items: flex-start; gap: 1.7rem; }
  .contact-section h2 { font-size: 2.4rem; }
  .contact-links { flex-direction: row; flex-wrap: wrap; gap: 1.25rem; font-size: .9rem; }
  .sheet-footer { gap: 1rem; }
  .sheet main { padding-top: 2rem; }
  .page-heading { font-size: 2.7rem; }
  .page-lede { font-size: 1.05rem; }
  .book-list li { display: block; }
  .book-author { display: block; margin-top: .5rem; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero h1 { animation: arrive .6s ease-out both; }
  @keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
@media print {
  body { background: white; color: black; font-size: 10pt; }
  .site-shell, .sheet { width: 100%; }
  .site-nav, .masthead__nav, .hero__actions, .text-link, .skip-link, .sheet-footer > a { display: none; }
  .hero { padding: 1rem 0 2rem; }
  .hero h1 { font-size: 64pt; }
  .hero__intro > p { font-size: 24pt; }
  .venture, .entry, .reading-link { break-inside: avoid; }
  .contact-section { background: white; color: black; padding: 2rem 0; }
  .about-section { margin-top: 2rem; padding-top: 2rem; }
}
