/* Rebuilt rule-for-rule from amandapinsker.com's main.css (Nov 2026).
   Ours: colours, font (Source Serif 4), content. Not yet ported: the
   per-project background colour change and outline box on hover, and the
   type-my-name easter egg. */

:root {
  --bg: #fbf5f4;
  --ink: #1a1817;
  --accent: #2f55c4;
  --highlight: #b4c3ee; /* footnote highlight: accent mixed toward the background */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #211a1b;
    --ink: #ede8e0;
    --accent: #8ea8ff;
    --highlight: #2a3a73;
  }
}

html { -webkit-text-size-adjust: 100%; }

/* base */
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-variation-settings: "opsz" 60;
  letter-spacing: -0.01em;
  font-size: 16px;
  line-height: 1.3;
  transition: 0.2s ease;
}

h1, h2, h3, h4, h5, h6, p { margin: 0; }

a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  transition: 0.2s ease;
}
a:hover { text-decoration: underline; }

::selection { background: var(--ink); color: var(--bg); }

.accent {
  color: var(--accent);
  transition: 0.2s ease;
}

/* container */
.site-container {
  width: 88%;
  margin: 0 auto;
  max-width: 1300px;
  padding: 80px 0;
}
@media (min-width: 850px) {
  .site-container { width: 72%; }
}

/* home */
.home { font-size: 24px; line-height: 1.2; }
@media (min-width: 850px) {
  .home { font-size: 32px; }
}

.home .flex { display: flex; justify-content: space-between; flex-direction: column; }
@media (min-width: 850px) {
  .home .flex { flex-direction: row; }
}

.home a { font-weight: 700; }
.home h1 { font-size: inherit; display: inline; }
.home h2 {
  font-size: 32px;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 30px;
}

.home .column { width: 100%; }
@media (min-width: 850px) {
  .home .column.about { width: 48%; }
  .home .column.work { width: 47%; }
}

.about div { margin-bottom: 30px; }

/* selected work */
.project {
  padding-bottom: 30px;
  position: relative;
  display: block;
  text-decoration: none;
}
a.project { font-weight: 400; }
a.project:hover { text-decoration: none; }
a.project:hover b { text-decoration: underline; } /* only the project name underlines; the whole entry stays clickable */

.external-link { font-size: inherit; vertical-align: baseline; display: inline-block; } /* inline-block keeps the arrow out of the hover underline */

/* collaborators */
.collaborators { padding-top: 50px; }
.collaborators div { margin: 0; }
.collaborators span { font-weight: normal; }

/* recent writing */
.writing-preview { padding-top: 80px; font-size: 20px; }
.writing-preview .post-container {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  justify-content: space-between;
}
.writing-preview .post-link { font-weight: normal; width: 48%; }

.back {
  font-size: 18px;
  font-variation-settings: "opsz" 18; /* her "Read the rest" uses Miller Text */
  letter-spacing: 0;
  text-decoration: none;
}
.back span { display: inline-block; transition: 0.2s ease; }
.back:hover { text-decoration: none; }
.writing-preview .back { margin: 0; padding: 24px 0 80px; display: inline-block; }
.writing-preview .back:hover span { transform: translateX(5px); }

/* footnote markers */
.superscript {
  vertical-align: super;
  font-size: 20px;
  line-height: 0;
}
@media (min-width: 850px) {
  .superscript { font-size: 24px; }
}

/* footnotes */
.notes {
  font-variation-settings: "opsz" 14; /* her notes use Miller Text, the small-size cut */
  letter-spacing: 0;
  margin: 0;
  line-height: 1.4;
  font-size: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}
@media (min-width: 850px) {
  .notes {
    margin-left: -23px;
    width: 310px;
    border: none;
    padding-left: 5px;
  }
}

.grid {
  display: grid;
  grid-template-columns: 10px 1fr;
  grid-column-gap: 8px;
  grid-row-gap: 8px;
  align-items: start;
}

.note > span {
  transition: 0.15s ease box-shadow;
  box-shadow: inset 0 0 0 0 var(--highlight);
}
.footnote-accent > span {
  box-shadow: inset 0 -25px 0 0 var(--highlight);
}

/* Email: "(copy or open)" appears inline on hover */
.email-inline { display: none; }
.email-menu:hover .email-inline,
.email-menu:focus-within .email-inline,
.email-menu.open .email-inline { display: inline; }
.email-inline button {
  font: inherit;
  font-weight: 700;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.email-inline button:hover { text-decoration: underline; }

/* ---------------------------------------------------------------
   Inner pages (writing): shared by writing/index.html and every
   post in writing/<slug>/index.html. Start a new post from
   writing/_template/index.html; see CLAUDE.md.
   --------------------------------------------------------------- */

:root { --grey: color-mix(in srgb, var(--ink) 45%, var(--bg)); }

/* ← back to the home page: faded grey, dark on hover */
.home-arrow {
  display: inline-flex;
  margin: 0 0 56px -4px; /* -4px: the arrow's point lines up with the text edge */
  color: var(--grey);
  transition: color 0.25s;
}
.home-arrow:hover, .home-arrow:focus-visible { color: var(--ink); text-decoration: none; }
.home-arrow svg { width: 22px; height: 22px; display: block; }

/* post */
.post { max-width: 34em; font-size: 20px; line-height: 1.45; }
@media (min-width: 850px) { .post { font-size: 22px; } }
.post-header { margin-bottom: 48px; }
.post-header h1 { font-size: 32px; line-height: 1.15; font-weight: 700; }
@media (min-width: 850px) { .post-header h1 { font-size: 44px; } }
.post-meta { margin-top: 12px; font-style: italic; color: var(--grey); font-size: 18px; }
.post-body p { margin: 0 0 1.1em; }
.post-body h2 { font-size: 1.2em; font-weight: 700; margin: 1.8em 0 0.6em; }
.post-body blockquote { margin: 1.4em 0; padding-left: 1em; border-left: 1px solid var(--ink); font-style: italic; }
.post-body a { text-decoration: underline; text-decoration-color: var(--grey); text-underline-offset: 0.15em; }
.post-body a:hover { text-decoration-color: currentColor; }
.post-body img { max-width: 100%; height: auto; display: block; margin: 1.6em 0; }
.post-body .superscript { font-size: 0.7em; }
.post-body .superscript a { text-decoration: none; color: inherit; }

/* post footnotes: same look as the home page's, under a rule */
.post .notes { margin: 64px 0 0; width: auto; padding: 24px 0 0; border-top: 1px solid var(--ink); }
.post .notes .note { margin: 0; }

/* list of posts (writing/index.html) */
.post-list { list-style: none; margin: 0; padding: 0; max-width: 34em; font-size: 20px; }
.post-list li { margin-bottom: 36px; }
.post-list a { display: block; }
.post-list a:hover { text-decoration: none; }
.post-list a:hover b { text-decoration: underline; }
.post-list .post-meta { margin-top: 6px; font-size: 16px; }
.page-title { font-size: 32px; font-weight: 400; font-style: italic; margin-bottom: 48px; }

/* ---------------------------------------------------------------
   Project pages (brief case studies): <project>/index.html, e.g.
   siplo/, bratus/, nodesart/. Same type and spacing as posts, plus
   a facts row and a gallery. Start from _project-template/.
   One centred column: the page's <main> has class "project-wrap", and
   the text, facts row and every image share its width (38em), so
   nothing on the page is wider or narrower than anything else.
   --------------------------------------------------------------- */

/* Type is a step smaller and airier than blog posts, since these pages mix text with many images */
.project-wrap { max-width: 38em; font-size: 18px; line-height: 1.6; }
@media (min-width: 850px) { .project-wrap { font-size: 19px; } }
.project-page .post-header { margin-bottom: 36px; }
.project-page .lede { margin-top: 16px; font-size: 21px; line-height: 1.4; }
@media (min-width: 850px) { .project-page .lede { font-size: 23px; } }
.project-page .post-body p { margin: 0 0 0.9em; }
.project-page .gallery + .post-body > p:first-child { margin-top: 28px; } /* text right after an image */

/* sections: each <h2> is a small numbered label ("01 / The gap") under a thin rule, with room above it */
.project-page { counter-reset: sec dec; padding-bottom: 180px; } /* room after the last section */
.project-page .post-body h2 {
  counter-increment: sec;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--grey);
  margin: 88px 0 20px;
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 18%, var(--bg));
}
.project-page .post-body h2::before { content: counter(sec, decimal-leading-zero) "  /  "; }

/* facts row: small uppercase labels, like the Project / Type / Focus row on Curio */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* two by two on phones */
  gap: 20px 28px;
  margin: 0 0 48px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
  font-size: 18px;
}
.facts dt {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variation-settings: "opsz" 12;
  color: var(--grey);
  margin-bottom: 4px;
}
.facts dd { margin: 0; }
/* on wider screens: three equal columns; a fourth fact wraps onto a second row */
@media (min-width: 850px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
}
.facts a { text-decoration: underline; text-decoration-color: var(--grey); text-underline-offset: 0.15em; }

/* gallery: the same width as the text. .gallery.phones for app screenshots (4 across, 2 on phones);
   plain .gallery for wide images (1 across) */
.gallery { display: grid; gap: 20px; margin: 36px 0 0; }
.gallery.phones { margin: 0; }
.gallery.phones { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 850px) { .gallery.phones { grid-template-columns: repeat(4, 1fr); } }
.gallery img { width: 100%; height: auto; display: block; border-radius: 6px; }
.gallery .placeholder {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: color-mix(in srgb, var(--ink) 7%, var(--bg));
  display: grid;
  place-items: center;
  color: var(--grey);
  font-size: 16px;
  font-style: italic;
  text-align: center;
  padding: 12px;
}
.gallery.phones .placeholder, .gallery.pair .placeholder { aspect-ratio: 414 / 900; }
/* .gallery.pair: two phone screens side by side, for comparing options in a decision.
   Same size as a .gallery.phones row (4 columns), with the two in the middle columns. */
.gallery.pair { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 850px) {
  .gallery.pair { grid-template-columns: repeat(4, 1fr); }
  .gallery.pair > :first-child { grid-column: 2; }
}
.gallery figure { margin: 0; }
.gallery video { width: 100%; height: auto; display: block; border-radius: 6px; }
.gallery figcaption { margin-top: 10px; font-size: 16px; line-height: 1.35; color: var(--grey); }
.gallery figcaption b { color: var(--ink); font-weight: 700; }
.project-page .post-body h3 { font-size: 1em; font-weight: 700; margin: 1.6em 0 0.4em; }
/* .decision: one key decision as a row, the image (a phone screen or recording) on the left
   and the heading and text beside it. Stacks on narrow screens. */
.decision { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 0 0 56px; }
@media (min-width: 850px) { .decision { grid-template-columns: 30% 1fr; gap: 44px; align-items: center; } }
.decision img, .decision video { width: 100%; max-width: 230px; height: auto; display: block; border-radius: 6px; }
.decision svg.flow { width: 100%; max-width: 230px; height: auto; display: block; } /* a small diagram or map in place of a photo */
/* a decision's image before it exists: the same size as a photo, with a note of what to put there */
.decision .placeholder {
  width: 100%; max-width: 230px; aspect-ratio: 4 / 5; border-radius: 6px;
  background: color-mix(in srgb, var(--ink) 7%, var(--bg));
  display: grid; place-items: center; padding: 14px;
  color: var(--grey); font-size: 15px; line-height: 1.35; font-style: italic; text-align: center;
}
.decision h3 { counter-increment: dec; font-size: 1.05em; font-weight: 700; margin: 0 0 0.5em; }
.decision h3::before { content: counter(dec, decimal-leading-zero); display: block; font-size: 13px; font-weight: 400; letter-spacing: 0.08em; color: var(--grey); margin-bottom: 6px; }
.decision p { font-size: 0.95em; margin: 0 0 0.8em; }
/* .takeaways: short closing points (e.g. a Reflection) side by side, three across; they stack on phones */
.takeaways { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 8px; }
@media (min-width: 850px) { .takeaways { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
/* two closing points sit as two equal halves instead of leaving the third column empty */
@media (min-width: 850px) { .takeaways:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); } }
.project-page .takeaways h3 { font-size: 1em; margin: 0 0 0.4em; }
.project-page .takeaways p { font-size: 0.9em; margin: 0; }
/* .gallery.note-card: a single app component (not a full screen), shown at a readable size rather than full width */
.gallery.note-card { justify-items: center; }
.gallery.note-card img { max-width: 360px; border-radius: 0; }
/* a tool or file name in body text, set in monospace */
.project-page code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.76em; font-weight: 300; letter-spacing: -0.01em; padding: 0.05em 0.3em; border-radius: 3px; color: color-mix(in srgb, var(--ink) 78%, var(--bg)); background: color-mix(in srgb, var(--ink) 5%, var(--bg)); }
.project-page a.code-link { text-decoration: none; }
.project-page a.code-link:hover code { background: color-mix(in srgb, var(--ink) 14%, var(--bg)); }
/* .flow: an inline diagram drawn in the site's own ink and grey (like the Curio drawings), so it follows dark mode */
.gallery svg.flow { width: 100%; height: auto; display: block; overflow: visible; }
/* on phones, diagrams keep a readable size and scroll sideways instead of shrinking */
@media (max-width: 700px) {
  .gallery:has(> svg.flow) { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
  .gallery svg.flow { min-width: 640px; }
}
.flow text { font-family: inherit; }
.flow .t { font-size: 14px; font-weight: 700; fill: var(--ink); }
.flow .r { font-size: 12.5px; fill: var(--ink); }
.flow .n { font-size: 11.5px; fill: var(--grey); }
.flow .k { font-size: 10px; letter-spacing: 0.08em; fill: var(--grey); }
.flow .box { fill: none; stroke: var(--ink); stroke-width: 1.1; }
.flow .ln { fill: none; stroke: var(--ink); stroke-width: 1.1; }
.flow .rule { fill: none; stroke: var(--grey); stroke-width: 0.8; opacity: 0.5; }
.flow .dash { stroke-dasharray: 3 4; opacity: 0.8; }
.flow .dot { fill: var(--ink); }
.flow .fill { fill: var(--ink); } /* solid bars in a chart */
.flow .fill2 { fill: var(--grey); opacity: 0.55; } /* a second series, lighter */
.flow .thin { stroke-width: 0.55; } /* fine strokes, e.g. grass fibres */
.flow .faint { opacity: 0.45; }
.flow .boxd { fill: none; stroke: var(--grey); stroke-width: 1.1; stroke-dasharray: 4 4; } /* planned, not built yet */
.flow .lnd { fill: none; stroke: var(--grey); stroke-width: 1.1; stroke-dasharray: 3 4; }
.flow .td { font-size: 14px; font-weight: 700; fill: var(--grey); }



/* Lightbox (site.js): images, recordings and diagrams on project pages open larger in an overlay */
.project-page .zoomable { cursor: zoom-in; }
.project-page .zoomable:focus:not(:focus-visible) { outline: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  cursor: zoom-out;
  animation: lightbox-in 0.18s ease-out;
}
.lightbox > img, .lightbox > video { max-width: 100%; max-height: 92vh; width: auto; height: auto; border-radius: 8px; display: block; }
.lightbox > svg { width: min(1200px, 92vw); max-height: 92vh; height: auto; }
.lightbox-close { position: fixed; top: 20px; right: 24px; font: inherit; font-size: 28px; line-height: 1; background: none; border: 0; color: var(--grey); cursor: pointer; }
.lightbox-close:hover { color: var(--ink); }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lightbox { animation: none; } }