/* srinesan.com portfolio layer: type, browser surfaces, and the home, case-study,
   résumé and accessibility layouts. Loaded after plain.css, whose bytes stay
   frozen. The palette is plain.css's; nothing here adds a colour. */
@font-face { font-family: Archivo; src: url("/fonts/archivo-sn.woff2") format("woff2"); font-weight: 400 800; font-stretch: 75% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: Literata; src: url("/fonts/literata-sn.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  --sans: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Literata, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  /* Monospace belongs to the terminal: the brand mark, the room entry and literal slots. */
  --term: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --mono: var(--sans);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11.5M8.5 3 13.5 8l-5 5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E");
  --arrow-out: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 3.5h7.5V11M12.5 3.5l-9 9' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E");
  scrollbar-color: var(--line) var(--ink);
  caret-color: var(--amber);
  accent-color: var(--amber);
  font-kerning: normal;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
::selection { background: var(--amber); color: var(--ink); }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration-color: color-mix(in srgb, currentColor 46%, transparent); text-underline-offset: .22em; transition: color .18s var(--ease), text-decoration-color .18s var(--ease); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline-offset: 4px; }

/* Type. One grotesque with a width axis: wide for display, normal for reading.
   The serif carries the single-sentence statements. */
h1, h2, h3 { font-family: var(--sans); font-stretch: 112%; line-height: 1.04; letter-spacing: -.028em; }
h1 { font-weight: 730; font-stretch: 116%; letter-spacing: -.038em; line-height: .98; }
h2 { font-size: clamp(30px, 3.3vw, 44px); font-weight: 690; margin: 0 0 20px; }
h3 { font-size: 22px; font-weight: 650; font-stretch: 106%; letter-spacing: -.02em; line-height: 1.16; }
.lead { font-family: var(--serif); font-size: clamp(22px, 2.1vw, 28px); line-height: 1.36; letter-spacing: -.012em; }
strong { font-weight: 620; }
p, li, dd, figcaption { text-wrap: pretty; }

/* Drawn arrows; the glyph arrows are gone from the markup. */
.text-link::after, .out::after, .case-back::before { content: ""; flex: none; display: inline-block; width: .82em; height: .82em; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform .28s var(--ease); }
.out::after { -webkit-mask-image: var(--arrow-out); mask-image: var(--arrow-out); margin-left: .32em; }
.text-link:hover::after { transform: translateX(4px); }
.out:hover::after { transform: translate(2px, -2px); }
.button.out::after, nav .out::after { margin-left: 0; }
.button.out::after { width: 13px; height: 13px; }

/* Shell */
.site-header { min-height: 88px; }
.brand { font-size: 16px; font-weight: 620; font-stretch: 106%; letter-spacing: -.01em; }
.brand span { font-family: var(--term); font-weight: 500; }
nav { font: 500 15px/1.5 var(--sans); gap: 28px; }
nav a[aria-current="page"] { text-decoration-color: currentColor; text-underline-offset: .4em; }
.button { gap: 14px; padding: 13px 22px; font: 620 15px/1.4 var(--sans); transition: background-color .18s var(--ease), transform .18s var(--ease); }
.button:active { transform: translateY(1px); }
.text-link { gap: 9px; font: 520 15px/1.5 var(--sans); }
.site-footer { padding-block: 28px 44px; font: 400 14px/1.7 var(--sans); }

/* Home: introduction and the room */
.hero { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 72px; padding-block: 76px 92px; align-items: center; }
.hero h1 { font-size: clamp(56px, 7.3vw, 96px); font-weight: 740; font-stretch: 121%; letter-spacing: -.04em; line-height: .96; margin: 0 0 30px; white-space: nowrap; }
.hero .lead { margin-bottom: 14px; }
.hero-detail { max-width: 43ch; font-size: 17px; }
.hero-links { gap: 28px; margin-top: 30px; }
.bio-note { max-width: 43ch; margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.room-entry { padding: 0; }
.room-still { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.room-body { padding: 24px 28px 22px; }
.room-entry h2 { margin: 0 0 8px; font-size: 24px; font-stretch: 108%; letter-spacing: -.022em; }
.room-body > p { font-size: 15px; }
.room-entry .button, .effects-control label, .effects-submit { font-family: var(--term); }
.room-entry .button { font-size: 13px; font-weight: 600; }
.room-button { margin-top: 8px; }
.effects-control label { font-size: 13px; }
.effects-submit { font-size: 13px; }
.effects-note { font-size: 13px !important; }

/* Home: sections */
.work-section, .web-section, .archive-section { padding-block: 76px 84px; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 16px 72px; align-items: baseline; margin-bottom: 44px; }
.section-heading > h2:only-child { grid-column: 1 / -1; }
.section-heading h2 { margin: 0; }
.section-heading > p, .section-aside p { max-width: 46ch; margin: 0; font: 400 16px/1.6 var(--sans); }
.section-aside .work-start { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; margin: 10px 0 -10px; font-size: 14px; }

.status { display: inline-flex; align-items: baseline; gap: 9px; font: 560 13px/1.5 var(--sans); letter-spacing: .012em; }
.status::before { content: ""; flex: none; width: 7px; height: 7px; background: currentColor; transform: translateY(-1px); }
.status.s-built::before, .status.s-open::before, .status.s-stopped::before { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.status.s-open { color: var(--green); }
.status.s-stopped { color: var(--muted); }
.result strong { color: var(--text); }

.project-card, .demo { transition: border-color .3s var(--ease); }
.project-card:has(a:hover), .demo:has(a:hover), .project-card:focus-within, .demo:focus-within { border-color: color-mix(in srgb, var(--amber) 55%, var(--line)); }
.ledger .archive-card:has(a:hover) h3 a { color: var(--amber); }
.featured-grid { gap: 24px; }
.project-card.featured { display: grid; grid-template-columns: minmax(0, 212px) minmax(0, 1fr); gap: 32px; padding: 28px; }
.featured .work-preview { align-self: start; margin: 0; border: 1px solid var(--line); overflow: hidden; }
.featured .work-preview img { display: block; width: 100%; height: auto; transition: transform .7s var(--ease); }
.featured .work-preview:hover img { transform: scale(1.025); }
.featured-copy { display: flex; flex-direction: column; align-items: start; min-width: 0; }
.featured-copy p { font-size: 15px; }
.featured h3 { margin: 12px 0 10px; font-size: clamp(26px, 2.5vw, 32px); font-stretch: 112%; letter-spacing: -.028em; }
.featured h3 a, .compact h3 a, .archive-card h3 a, .demo h3 a { display: inline; text-decoration: none; }
.featured-copy .card-lead { font-family: var(--serif); font-size: 19px; line-height: 1.4; letter-spacing: -.008em; }
.featured-copy .text-link { margin-top: auto; }
.personal-grid { gap: 24px; margin-top: 24px; }
.project-card.compact { padding: 24px 28px; }
.compact h3 { margin: 10px 0; }
.compact p { font-size: 15px; }

.archive-grid { column-gap: 40px; }
.archive-card h3 { margin: 10px 0; font-size: 21px; }
.archive-card p { font-size: 15px; }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.demo { padding: 0; border: 1px solid var(--line); background: var(--panel); }
.demo-still { display: block; overflow: hidden; border-bottom: 1px solid var(--line); }
.demo-still img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; transition: transform .7s var(--ease); }
.demo-still:hover img { transform: scale(1.02); }
.demo-copy { padding: 22px 28px 20px; }
.demo-copy h3 { margin-top: 10px; font-size: 24px; }

/* The bench reads as a ledger: name, what it is, what came of it. */
.ledger { border-top: 1px solid var(--line); }
.ledger .archive-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, 1.55fr); gap: 8px 40px; padding-block: 22px; border-top: 0; border-bottom: 1px solid var(--line); }
.ledger h3 { margin: 0 0 6px; font-size: 20px; }
.ledger p { margin: 0; }
.ledger .text-link { margin-top: 2px; }
.proof-note { max-width: 78ch; margin-top: 28px; padding-top: 0; border-top: 0; font-size: 14px; }

.about-section, .contact-section { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 72px; padding-block: 76px; }
.about-section h2, .contact-section h2 { margin: 0; }
.about-section p { font-size: 17px; }
.contact-links { gap: 2px; font: 560 clamp(19px, 2.2vw, 27px)/1.3 var(--sans); font-stretch: 108%; letter-spacing: -.02em; }
.contact-links a { padding: 8px 0; }

/* Résumé and accessibility statement */
.page-intro h1 { font-size: clamp(44px, 5.8vw, 84px); margin: 0 0 24px; }
.page-intro .status { margin-right: 12px; }
.contact-list, .resume-contact { font: 500 14px/1.8 var(--sans); }
.resume-section h2 { font-size: 24px; font-stretch: 110%; margin-bottom: 16px; }
.resume-section h3 { margin: 18px 0 6px; }
.resume-section h3 a { text-decoration: none; }
.resume-note, .print-note { font-size: 13px; }

/* Case studies */
.case-back { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 28px; color: var(--muted); font-size: 14px; text-decoration: none; }
.case-back::before { transform: scaleX(-1); }
.case-back:hover::before { transform: scaleX(-1) translateX(4px); }
.case-hero { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); grid-template-areas: "summary facts"; gap: 44px 72px; align-items: end; padding-block: 36px 68px; }
.case-hero.has-wide { grid-template-areas: "summary facts" "art art"; }
.case-hero.has-side { grid-template-areas: "summary art" "facts art"; grid-template-rows: auto 1fr; align-items: start; }
.case-hero.has-phone { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-areas: "summary art" "facts art"; grid-template-rows: auto 1fr; align-items: start; }
.case-summary { grid-area: summary; }
.case-summary h1 { margin: 0 0 26px; font-size: clamp(44px, 5.8vw, 84px); }
.case-summary .lead { max-width: 25ch; margin: 0; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.3; }
.has-phone .case-summary, .has-side .case-summary { padding-top: 28px; }
.case-facts { grid-area: facts; margin: 0; border-bottom: 1px solid var(--line); font-size: 15px; font-variant-numeric: tabular-nums; }
.has-phone .case-facts, .has-side .case-facts { align-self: end; max-width: 520px; }
.case-facts > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 16px; padding-block: 11px; border-top: 1px solid var(--line); }
.case-facts dt { color: var(--muted); font-size: 13px; line-height: 1.85; }
.case-facts dd { margin: 0; }
.case-facts .fact-status { color: var(--amber); font-weight: 560; }
.case-facts a { display: inline-block; margin-block: -10px; padding-block: 10px; color: var(--green); }
.case-facts dd a + a { margin-left: 18px; }
.case-art { grid-area: art; min-width: 0; }
.case-art img, .case-art video { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: var(--ink); }
.case-phone { justify-self: end; width: min(100%, 300px); }
.case-art figcaption { max-width: 52ch; }
.case-image-link { display: block; }
figcaption { padding-top: 12px; font-size: 13px; line-height: 1.55; }
.full-size { display: flex; align-items: center; width: fit-content; min-height: 44px; color: var(--green); }
.case-index { gap: 4px 28px; padding-block: 6px; border-block: 1px solid var(--line); font: 500 14px/1.5 var(--sans); }
.case-index a { color: var(--muted); text-decoration: none; }
.case-index a:hover { color: var(--amber); }
.case-page .case-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; padding-block: 60px; border-top: 0; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.case-section h2 { position: sticky; top: 24px; align-self: start; margin: 0; font-size: 26px; font-stretch: 110%; letter-spacing: -.024em; }
.case-copy { min-width: 0; }
.case-copy p { max-width: 62ch; font-size: 17px; line-height: 1.65; }
.case-copy > :last-child { margin-bottom: 0; }
#problem .case-copy > p:first-child { max-width: 36em; margin-bottom: 22px; font: 400 clamp(20px, 1.85vw, 24px)/1.45 var(--serif); letter-spacing: -.008em; }
.case-detail { margin-top: 36px; }
.case-detail h3 { margin: 0 0 18px; font-size: 22px; }
.case-detail img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.case-detail.is-phone figure { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 28px; align-items: end; }
.case-detail.is-phone figcaption { max-width: 34ch; padding: 0; }
.case-detail .text-link { margin-top: 6px; }
.case-detail:target { scroll-margin-top: 32px; }

/* Evidence: what the page shows beside what it does not claim. */
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.evidence-grid h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-size: 15px; font-weight: 620; font-stretch: 100%; letter-spacing: 0; }
.evidence-grid h3::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--green); transform: translateY(-1px); }
.evidence-grid .not h3::before { background: none; box-shadow: inset 0 0 0 1.5px var(--amber); }
.evidence-grid ul { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.evidence-grid li { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.55; }
.evidence-links { display: flex; flex-flow: row wrap; gap: 0 28px; margin-top: 20px; }
.evidence-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font-size: 15px; }
.owner-todo { margin-top: 28px; color: var(--muted); font-size: 14px; }
.owner-todo summary { display: inline-block; min-height: 44px; padding-block: 11px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .3em; }
.owner-todo summary::-webkit-details-marker { display: none; }
.owner-todo summary::after { content: " +"; }
.owner-todo[open] summary::after { content: " \2212"; }
.owner-todo p { max-width: 58ch; margin: 4px 0 0; font-size: 14px; }
.link-slot { color: var(--amber); font-family: var(--term); font-size: .92em; white-space: nowrap; }

.case-end { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; padding-block: 64px 72px; }
.case-next { display: block; text-decoration: none; }
.case-next span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 14px; }
.case-next strong { display: inline-flex; align-items: baseline; gap: .3em; font-size: clamp(30px, 4.2vw, 56px); font-weight: 720; font-stretch: 116%; letter-spacing: -.035em; line-height: 1; }
.case-next strong::after { content: ""; flex: none; width: .5em; height: .5em; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform .28s var(--ease); }
.case-next:hover strong::after { transform: translateX(8px); }
.case-sign { margin: 0; color: var(--muted); font-size: 14px; text-align: right; }
.case-sign a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); }

/* Civic draft */
.draft-note { display: flex; align-items: baseline; gap: 10px; max-width: none; margin: 20px 0 0; padding: 12px 16px; border: 1px dashed var(--amber); color: var(--amber); font-size: 14px; }
.concepts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.concept { padding: 24px 26px; border: 1px solid var(--line); background: var(--panel); }
.concept h3 { margin: 0 0 12px; }
.concept p { font-size: 15.5px; }
.concept .slot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 14px; }
.case-copy h3 { margin: 36px 0 12px; }
.case-copy h3:first-child { margin-top: 0; }
.steps { max-width: 62ch; margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); margin: 0; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; counter-increment: step; }
.steps + p { margin-top: 22px; }
.steps li::before { content: counter(step); color: var(--amber); font-weight: 620; font-variant-numeric: tabular-nums; }

/* Motion: the name tunes in along the width axis once; titles carry between
   the index and their case study where the browser supports it. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: tune-in 1.15s var(--ease) both; }
  @keyframes tune-in { from { font-stretch: 76%; letter-spacing: .01em; } }
  @view-transition { navigation: auto; }
  ::view-transition-group(*) { animation-duration: .42s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
}
#nova h3, .vt-nova { view-transition-name: nova; }
#shuruq h3, .vt-shuruq { view-transition-name: shuruq; }
#ollie-remote h3, .vt-ollie { view-transition-name: ollie; }
#mission h3, .vt-mission { view-transition-name: mission; }
#walkslip h3, .vt-walkslip { view-transition-name: walkslip; }
#polyglot h3, .vt-polyglot { view-transition-name: polyglot; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 52px; padding-block: 56px 72px; }
  .hero h1 { font-size: clamp(56px, 11vw, 96px); }
  .room-entry { max-width: 640px; }
  .featured-grid { grid-template-columns: minmax(0, 1fr); }
  .ledger .archive-card { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .ledger .row-result { grid-column: 2; }
  .case-hero, .case-hero.has-phone { gap: 36px 40px; }
}
@media (max-width: 800px) {
  .case-hero, .case-hero.has-wide, .case-hero.has-side { grid-template-columns: minmax(0, 1fr); grid-template-areas: "summary" "art" "facts"; }
  .case-hero.has-wide { grid-template-areas: "summary" "facts" "art"; }
  .has-side .case-facts { max-width: none; }
  .case-page .case-section { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .case-section h2 { position: static; }
  .section-heading, .about-section, .contact-section { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 700px) {
  nav { gap: 8px; }
  .site-header { min-height: 108px; }
  .hero { gap: 44px; padding-block: 44px 56px; }
  .hero h1 { font-size: clamp(50px, 14.4vw, 80px); font-stretch: 116%; margin-bottom: 24px; }
  .hero-links { gap: 12px 24px; margin-top: 24px; }
  .room-body { padding: 20px 22px; }
  .work-section, .web-section, .archive-section { padding-block: 52px 56px; }
  .section-heading { margin-bottom: 30px; }
  .project-card.featured { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 22px; }
  .project-card.compact { padding: 22px; }
  .featured .work-preview { width: min(100%, 220px); }
  .featured-copy .text-link { margin-top: 4px; }
  .demo-grid, .evidence-grid, .concepts { grid-template-columns: minmax(0, 1fr); }
  .demo-copy { padding: 20px 22px 16px; }
  .ledger .archive-card { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 22px; }
  .ledger .row-result { grid-column: auto; }
  .about-section, .contact-section { padding-block: 52px; }
  .case-back { margin-top: 16px; }
  .case-hero.has-phone { grid-template-columns: minmax(0, 1fr); grid-template-areas: "summary" "art" "facts"; }
  .case-hero, .case-hero.has-phone { gap: 32px; padding-block: 20px 44px; }
  .has-phone .case-summary, .has-side .case-summary { padding-top: 0; }
  .case-summary h1 { font-size: clamp(40px, 11.4vw, 56px); margin-bottom: 20px; }
  .case-summary .lead { font-size: 22px; }
  .case-phone { justify-self: start; width: min(100%, 250px); }
  .has-phone .case-facts { max-width: none; }
  .case-index { justify-content: flex-start; gap: 0 22px; }
  .case-page .case-section { padding-block: 40px; }
  .case-detail.is-phone figure { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .case-detail.is-phone img { max-width: 250px; }
  .case-detail.is-phone figcaption { padding-top: 12px; }
  .case-end { padding-block: 44px 52px; }
  .case-sign { text-align: left; }
}
@media print {
  .case-section h2 { position: static; }
  .case-back, .case-index, .case-end, .owner-todo { display: none; }
}
