/* A small, shared stylesheet. Fonts are local; no JavaScript required. */
@font-face {
  font-family: "Caveat";
  src: url("assets/fonts/caveat/Caveat-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #faf9f6;
  --ink: #292c28;
  --muted: #696d65;
  --line: #e2e3dc;
  --accent: #50674a;
  --hover: #f0f1ea;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.65; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
::selection { color: var(--ink); background: #dfe6d8; }
img { max-width: 100%; display: block; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.page-wrap { width: min(760px, calc(100% - 64px)); min-height: 100svh; margin-inline: auto; display: flex; flex-direction: column; }
.page-wrap > main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.site-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-family: Georgia, serif; font-size: 29px; line-height: 1; letter-spacing: -1.7px; }
.wordmark span, .accent { color: var(--accent); }
.site-header nav { display: flex; align-items: center; gap: 28px; font-size: 13px; }
.site-header nav a { min-height: 44px; display: inline-flex; align-items: center; gap: 5px; }
.skip-link { position: fixed; left: 16px; top: 12px; padding: 10px 16px; z-index: 10; transform: translateY(-180%); background: var(--ink); color: var(--paper); border-radius: 4px; }
.skip-link:focus { transform: none; color: var(--paper); }
.intro { padding: 28px 0 24px; }
.eyebrow { color: var(--muted); font-size: 11px; letter-spacing: .075em; }
h1 { font-size: clamp(38px, 6vw, 52px); font-weight: 500; line-height: 1.12; letter-spacing: -.065em; }
.intro h1 { margin: 0 0 12px; }
.intro-copy { color: var(--muted); font-size: 17px; line-height: 1.65; letter-spacing: -.015em; }
.intro-copy a { color: var(--ink); text-decoration: underline; text-decoration-color: #b7c2ae; }
.intro-copy a:hover { color: var(--accent); }
.quiet-link { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; color: var(--muted); font-size: 12px; }
.intro .quiet-link { margin-top: 4px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.section-heading h2 { font-size: 14px; font-weight: 500; letter-spacing: -.015em; }
.section-heading > span { color: var(--muted); font-size: 11px; }
.apps-section { margin-top: 4px; scroll-margin-top: 16px; }
.app-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; padding: 4px 0 32px; }
.app-list > li { min-width: 0; border-bottom: 1px solid var(--line); }
.app-tile { display: grid; grid-template-columns: 40px minmax(0, 1fr) 12px; align-items: start; gap: 16px; padding: 28px 0; height: 100%; }
.project-icon { width: 40px; height: 40px; object-fit: contain; border-radius: 9px; filter: grayscale(1); opacity: .8; }
.crowd-icon { display: block; color: var(--accent); background: #edf0e9; }
.crowd-icon svg { display: block; width: 100%; height: 100%; }
.project-copy { min-width: 0; }
.app-name { display: block; font-size: 14px; font-weight: 500; line-height: 1.5; }
.app-tile:hover .app-name { text-decoration: underline; text-decoration-color: #b7c2ae; text-underline-offset: 4px; }
.project-description { display: block; margin-top: 5px; font-size: 12px; line-height: 1.65; color: var(--muted); }
.project-status { display: block; margin-top: 10px; color: var(--muted); font-size: 10px; }
.project-arrow { color: var(--muted); font-size: 12px; padding-top: 1px; }
.contact-section { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 20px; margin-top: auto; padding: 20px 0; }
.contact-email { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; font-size: 13px; }
.social-links { display: flex; flex-wrap: wrap; gap: 4px 24px; color: var(--muted); font-size: 12px; margin-top: 0; }
.social-links a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; }
.site-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 16px 0 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.site-footer > a { display: inline-flex; gap: 7px; min-height: 44px; margin-top: -9px; align-items: center; }
.page-intro { padding: 16px 0 26px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 12px; margin-bottom: 18px; }
.page-intro .eyebrow { margin-bottom: 14px; }
.page-intro h1 { font-size: clamp(36px, 6vw, 52px); line-height: 1.15; letter-spacing: -.05em; }
.page-description { color: var(--muted); font-size: 17px; margin-top: 20px; max-width: 550px; }
.information-list { border-top: 1px solid var(--line); }
.information-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 87px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.information-row h2 { font-size: 16px; font-weight: 500; letter-spacing: -.025em; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 13px; }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: var(--line); }
.support-contact { padding: 48px 0 64px; }
.support-contact h2 { font-size: 20px; font-weight: 500; letter-spacing: -.025em; margin-bottom: 12px; }
.support-contact p { color: var(--muted); font-size: 14px; max-width: 530px; }
.support-contact a, .prose a { color: var(--ink); text-decoration: underline; text-decoration-color: #b7c2ae; }
.prose a:hover, .support-contact a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.prose { max-width: 650px; color: #53594f; font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.prose p { margin-bottom: 16px; }
.prose :is(h2, h3, h4) { font-weight: 500; letter-spacing: -.025em; line-height: 1.4; color: var(--ink); margin: 34px 0 12px; }
.prose h2, .prose h3 { font-size: 19px; }
.prose h4 { font-size: 16px; }
.prose :is(ul, ol) { margin: 16px 0 24px; padding-left: 22px; list-style: disc; }
.prose li { padding-left: 3px; margin-bottom: 9px; }
.prose strong { font-weight: 600; }
.legal-copy > nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; line-height: 2; margin-bottom: 24px; }
.legal-copy > nav a { display: inline-flex; align-items: center; min-height: 44px; }
.legal-copy > p:first-of-type { font-size: 12px; color: var(--muted); }
.legal-document { padding-bottom: 48px; }
.about-copy { padding-bottom: 28px; font-size: 17px; }
@media (max-width: 600px) {
  .page-wrap { width: calc(100% - 44px); }
  .site-header { min-height: 68px; }
  .site-header nav { gap: 19px; font-size: 12px; }
  .wordmark { font-size: 27px; }
  .intro { padding: 24px 0 20px; }
  .section-heading { align-items: center; }
  .section-heading > span { font-size: 10px; }
  .apps-section { margin-top: 4px; }
  .contact-section { padding: 16px 0; }
  .site-footer { flex-direction: column; gap: 4px; font-size: 11px; }
  .site-footer > a { margin-top: 0; }
  .information-row { flex-direction: column; align-items: flex-start; gap: 5px; }
  .information-row .legal-links { gap: 28px; }
  .page-intro { padding-bottom: 22px; }
  .back-link { margin-bottom: 14px; }
  .prose { font-size: 15px; }
}
@media (max-width: 360px) {
  .page-wrap { width: calc(100% - 36px); }
  .site-header nav { gap: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* An illustration accompanies the text on About. */
.about-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 32px; padding: 8px 0 24px; }
.about-portrait { margin: 16px 0 0; }
.about-portrait img { width: 220px; height: auto; }
.about-heading h1 { font-family: "Caveat", "Bradley Hand", cursive; font-size: 30px; font-weight: 400; line-height: 1.2; letter-spacing: 0; margin: 0 0 18px; }
.about-layout .about-copy { font-size: 15px; padding-bottom: 0; }
@media (max-width: 600px) {
  .about-layout { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
  .about-text { display: contents; }
  .about-portrait { grid-column: 1; grid-row: 1; margin: 0; }
  .about-portrait img { width: 120px; }
  .about-heading { grid-column: 2; grid-row: 1; align-self: center; }
  .about-heading h1 { font-size: 28px; margin: 0; }
  .about-layout .about-copy { grid-column: 1 / -1; }
}

/* About is the home page; projects have their own destination. */
.site-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: #b7c2ae; text-underline-offset: 5px; }
.home-page .about-layout { padding-top: 28px; }
.projects-page .page-intro { padding: 28px 0 38px; }
.projects-page .page-intro h1 { font-size: 28px; }
.current-work { color: var(--muted); font-size: 15px; line-height: 1.7; margin-top: 14px; }
.current-work a { color: var(--ink); text-decoration: underline; text-decoration-color: #b7c2ae; }

/* A text reading archive; native disclosures work without JavaScript. */
.books-page .page-intro { padding: 28px 0 24px; }
.books-page .page-intro h1 { font-size: 28px; }
.reading-intro { font-size: 15px; color: var(--muted); margin-top: 14px; max-width: 550px; }
.reading-source, .reading-updated { color: var(--muted); font-size: 12px; margin-top: 12px; }
.reading-source a, .reading-updated a, .book-goodreads { text-decoration: underline; text-decoration-color: #b7c2ae; }
.reading-updated { margin-top: 22px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.year-picker { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px 16px; min-width: 0; margin: 0 0 24px; padding: 0; border: 0; }
.year-option { position: relative; min-width: 0; cursor: pointer; }
.year-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.year-option > span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 10px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 13px; }
.year-option:hover > span { color: var(--accent); background: var(--hover); }
.year-option input:checked + span { color: var(--accent); border-bottom-color: var(--accent); }
.year-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.reading-year { border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.year-summary, .book-summary { list-style: none; }
.book-summary { cursor: pointer; }
.book-summary::-webkit-details-marker { display: none; }
.book-summary:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.year-summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 58px; padding-block: 12px; }
.year-summary h2 { font-size: 15px; font-weight: 500; }
.year-summary > span { color: var(--muted); font-size: 11px; }
.book-toggle { display: inline-block; font-size: 16px; font-weight: 400; }
.reading-book[open] > .book-summary .book-toggle { transform: rotate(45deg); }
@supports selector(:has(*)) {
  .reading-year { display: none; }
  .reading-archive:has(#year-2026:checked) #books-2026,
  .reading-archive:has(#year-2025:checked) #books-2025,
  .reading-archive:has(#year-2024:checked) #books-2024,
  .reading-archive:has(#year-2023:checked) #books-2023,
  .reading-archive:has(#year-2022:checked) #books-2022,
  .reading-archive:has(#year-2021:checked) #books-2021,
  .reading-archive:has(#year-2020:checked) #books-2020,
  .reading-archive:has(#year-2019:checked) #books-2019,
  .reading-archive:has(#year-2016:checked) #books-2016,
  .reading-archive:has(#year-2015:checked) #books-2015,
  .reading-archive:has(#year-2014:checked) #books-2014,
  .reading-archive:has(#year-undated:checked) #books-undated { display: block; }
}
@media (max-width: 600px) {
  .year-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 10px; }
  .app-list { column-gap: 24px; }
}
@media (max-width: 520px) {
  .app-list { grid-template-columns: minmax(0, 1fr); padding-bottom: 24px; }
  .app-tile { padding-block: 22px; }
}
.reading-list { margin: 0; padding: 0; list-style: none; }
.reading-list > li { list-style: none; }
.reading-list > li::marker { content: ""; }
.reading-list > li + li { border-top: 1px solid var(--line); }
.book-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; min-height: 56px; padding-block: 10px; }
.book-main { min-width: 0; overflow-wrap: anywhere; }
.book-title { display: block; font-size: 14px; line-height: 1.5; }
.book-byline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 14px; margin-top: 2px; color: var(--muted); }
.book-author { font-size: 12px; }
.book-rating { font-size: 11px; white-space: nowrap; }
.book-summary > .book-toggle { color: var(--muted); }
.book-detail { display: grid; gap: 14px; max-width: 62ch; padding: 16px 0 24px; color: #53594f; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.book-detail p { margin: 0; }
.book-detail > .book-goodreads { justify-self: start; }
.book-detail:has(> .book-finished + .book-goodreads) { gap: 6px; }
.book-detail .book-finished { font-size: 11px; color: var(--muted); }
.book-goodreads { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; font-size: 12px; }
@media (max-width: 360px) {
  .site-header { gap: 12px; }
  .site-header nav { gap: 12px; font-size: 11px; }
}

/* Keep each year short; reveal the next six books only when requested. */
.reading-more { border-top: 1px solid var(--line); }
.more-summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; color: var(--accent); font-size: 12px; list-style: none; cursor: pointer; }
.more-summary::-webkit-details-marker { display: none; }
.more-summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.more-count { color: var(--muted); font-size: 11px; }
.more-close, .reading-more[open] > .more-summary .more-open, .reading-more[open] > .more-summary .more-count { display: none; }
.reading-more[open] > .more-summary .more-close { display: inline; }
