/* taralumleysavile.com
   An archive, set like one: numbered records, ruled tables, frames on paper.
   Newsreader for reading, IBM Plex Mono for the apparatus (numbers, labels, dates).
   Square corners, hairline rules, no shadows, no motion beyond a colour change. */

@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/fonts/Newsreader-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/fonts/Newsreader-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url(/fonts/Newsreader-Italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url(/fonts/Newsreader-Italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plex Mono'; font-weight: 400; font-display: swap;
  src: url(/fonts/PlexMono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plex Mono'; font-weight: 400; font-display: swap;
  src: url(/fonts/PlexMono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plex Mono'; font-weight: 500; font-display: swap;
  src: url(/fonts/PlexMono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #f3f1ec;
  --ink: #181715;
  --mute: #5b5850;
  --hair: rgba(24, 23, 21, .2);
  --blue: #1c2fd8;        /* Nalini's blue: links and the frame you are on, nothing else */
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --mono: 'Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --m: 32px;              /* page margin */
  --g: 24px;              /* gutter */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 19px/1.55 var(--serif); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--blue); color: #fff; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1, h2 { font-weight: 300; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
i { font-style: italic; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; font: 16px var(--mono); background: var(--paper); padding: 8px 0; }
.skip:focus { top: 8px; }

.grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g);
  padding-left: var(--m); padding-right: var(--m);
}
.mono, .top, .foot, .ledger-head, .c-no, .c-kind, .c-where, .c-year, figcaption, .fid, dt, .rec-no,
.t-prev, .t-next, .viewer, .l-year, .l-kind, .p-year, .p-note, .press-head, .page-sub, .sheet-head p, .small {
  font-family: var(--mono); font-size: 16px; line-height: 1.45; letter-spacing: 0;
}

/* ---------------------------------------------------------------- header + footer */
.top { padding-top: 22px; padding-bottom: 18px; align-items: baseline; }
.top::after { content: ''; grid-column: 1 / -1; height: 1px; background: var(--ink); margin-top: 18px; }
.name { grid-column: 1 / 4; text-decoration: none; font-weight: 500; }
.role { grid-column: 4 / 9; color: var(--mute); }
.nav { grid-column: 9 / 13; display: flex; justify-content: flex-end; gap: 28px; }
.nav a { text-decoration: none; }
.nav a[aria-current] { text-decoration: underline; }
.nav a:hover { text-decoration: underline; }

.foot { margin-top: 176px; padding-top: 0; padding-bottom: 48px; row-gap: 20px; }
.foot::before { content: ''; grid-column: 1 / -1; height: 1px; background: var(--ink); margin-bottom: 20px; }
.f-name { grid-column: 1 / 4; }
.f-mail { grid-column: 4 / 7; }
.f-idx { grid-column: 7 / 10; word-spacing: .4em; }
.f-idx a { text-decoration: none; }
.f-idx a:hover { text-decoration: underline; }
.f-legal { grid-column: 10 / 13; text-align: right; }

/* ---------------------------------------------------------------- index */
.intro { padding-top: 104px; padding-bottom: 120px; }
.statement {
  grid-column: 1 / 11; font-size: clamp(36px, 4.4vw, 68px); line-height: 1.07; letter-spacing: -.012em;
  text-wrap: balance;
}

.index { align-items: start; }
.ledger { grid-column: 1 / 9; }
.ledger-head, .rows a {
  display: grid; grid-template-columns: 3.6rem minmax(0, 1fr) 11.5rem 9.5rem 4.5rem; column-gap: 16px;
  align-items: baseline;
}
.ledger-head { color: var(--mute); padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.rows li { border-bottom: 1px solid var(--hair); }
.rows a { padding: 18px 0 17px; text-decoration: none; }
.ledger-head .c-title { font: inherit; }
.rows .c-title { font-size: 25px; line-height: 1.2; letter-spacing: -.005em; }
.c-no, .c-kind, .c-where { color: var(--mute); }
.c-year { text-align: right; }
.rows a:hover .c-title, .rows a:focus-visible .c-title, .rows a.on .c-title { color: var(--blue); }
.rows a:hover .c-no, .rows a.on .c-no { color: var(--blue); }
.c-thumb { display: none; }

.preview { grid-column: 9 / 13; position: sticky; top: 24px; }
.preview-frame { aspect-ratio: 4 / 5; display: flex; align-items: flex-end; justify-content: flex-start; }
.preview-frame img { width: min(100%, calc(125% * var(--r))); }
.preview figcaption { margin-top: 10px; color: var(--mute); }

.sheet-wrap { margin-top: 152px; }
.sheet-head {
  grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  border-top: 1px solid var(--ink); padding-top: 18px; margin-bottom: 40px;
}
.sheet-head h2 { font-size: 30px; line-height: 1.2; }
.sheet-head p { color: var(--mute); }
.sheet-groups { grid-column: 1 / -1; }
.sg {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g);
  padding: 22px 0 48px; border-top: 1px solid var(--hair);
}
.sg:first-child { border-top: 0; padding-top: 0; }
.sg-label { grid-column: 1 / 4; font-size: 21px; line-height: 1.3; padding-right: 24px; }
.sg-label a { text-decoration: none; }
.sg-label a:hover { text-decoration: underline; }
.sg-no { display: block; font: 16px/1.45 var(--mono); color: var(--mute); margin-bottom: 4px; }
.sheet {
  grid-column: 4 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
  gap: 32px 22px;
}
.cell { text-decoration: none; display: block; }
.cell .pic { aspect-ratio: 1; display: flex; align-items: flex-end; justify-content: flex-start; }
.cell img { width: min(100%, calc(100% * var(--r))); }
.fid { display: block; margin-top: 8px; color: var(--mute); }
.cell:hover .fid, .cell.on .fid { color: var(--blue); text-decoration: underline; text-underline-offset: .2em; }

/* ---------------------------------------------------------------- project record */
.record { padding-top: 64px; row-gap: 0; align-items: start; }
.rec-no { grid-column: 1 / -1; color: var(--mute); margin-bottom: 18px; }
.rec-title {
  grid-column: 1 / 11; font-size: clamp(40px, 5.2vw, 80px); line-height: 1.03; letter-spacing: -.015em;
  text-wrap: balance; margin-bottom: 72px;
}
.rec-table { grid-column: 1 / 6; border-bottom: 1px solid var(--hair); }
.rec-table div {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); column-gap: 16px;
  border-top: 1px solid var(--hair); padding: 11px 0 12px;
}
.rec-table div:first-child { border-top-color: var(--ink); }
.rec-table dt { color: var(--mute); padding-top: 2px; }
.rec-table dd { font-size: 19px; line-height: 1.4; }
.rec-sheet {
  grid-column: 7 / 13; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 22px 16px; border-top: 1px solid var(--ink); padding-top: 14px;
}

.body { margin-top: 128px; }
.text { grid-column: 4 / 10; max-width: 38em; }
.text p + p { margin-top: 1em; }
.text .opening { font-size: 30px; line-height: 1.3; letter-spacing: -.005em; margin-bottom: 1.4em; }
.text .closing { font-size: 30px; line-height: 1.3; letter-spacing: -.005em; margin-top: 1.4em; }
.text .small { color: var(--mute); margin-top: 2em; }

.essay { margin-top: 128px; }
.essay .text { border-top: 1px solid var(--ink); padding-top: 22px; }
.essay-title { font-size: 48px; line-height: 1.1; letter-spacing: .02em; margin-bottom: 36px; }

.plates { margin-top: 152px; row-gap: 120px; align-items: end; }
.pl.wide.s0 { grid-column: 1 / 10; }
.pl.wide.s1 { grid-column: 4 / 13; }
.pl.single.s0 { grid-column: 2 / 7; }
.pl.single.s1 { grid-column: 7 / 12; }
.pl.pair { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: end; }
.pl.pair .plate:first-child { grid-column: 1 / 6; }
.pl.pair .plate:last-child { grid-column: 7 / 12; }
.plate { width: min(100%, calc(86vh * var(--r))); }
.plate a { display: block; cursor: zoom-in; }
.plate img { width: 100%; }
.plate figcaption { margin-top: 10px; color: var(--mute); }
.plate:target figcaption { color: var(--blue); }

.turn { margin-top: 152px; }
.turn::before { content: ''; grid-column: 1 / -1; height: 1px; background: var(--ink); margin-bottom: 18px; }
.t-prev { grid-column: 1 / 7; color: var(--mute); }
.t-next { grid-column: 7 / 13; text-align: right; color: var(--mute); }
.turn a { display: inline-block; margin-top: 6px; font: 300 25px/1.25 var(--serif); color: var(--ink); text-decoration: none; }
.turn a:hover { color: var(--blue); }

/* ---------------------------------------------------------------- viewer */
.viewer {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; border: 0; padding: 0;
  background: var(--paper); color: var(--ink); display: none;
}
.viewer:focus { outline: none; }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.viewer::backdrop { background: var(--paper); }
.v-bar {
  display: flex; align-items: baseline; gap: 28px; padding: 20px var(--m) 16px;
  border-bottom: 1px solid var(--ink); margin: 0 var(--m); padding-left: 0; padding-right: 0;
}
.v-id { font-weight: 500; }
.v-count { color: var(--mute); margin-right: auto; }
.viewer button {
  font: inherit; color: inherit; background: none; border: 0; padding: 6px 0; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em;
}
.viewer button:hover { color: var(--blue); }
.v-stage { display: flex; align-items: center; justify-content: center; padding: 28px var(--m); min-height: 0; }
.v-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.v-alt { padding: 0 var(--m) 22px; color: var(--mute); font-family: var(--serif); font-size: 18px; }

/* ---------------------------------------------------------------- about */
.about-top { padding-top: 64px; align-items: start; }
.strip { grid-column: 1 / 3; max-width: 150px; }
.about-top .text { grid-column: 4 / 11; max-width: 36em; }
.about-h { font-size: clamp(32px, 3.4vw, 50px); line-height: 1.1; letter-spacing: -.01em; margin-bottom: 48px; text-wrap: balance; }
.cv { margin-top: 128px; align-items: baseline; }
.cv::before { content: ''; grid-column: 1 / -1; height: 1px; background: var(--ink); margin-bottom: 18px; }
.side-h { grid-column: 1 / 4; font-size: 30px; line-height: 1.2; }
.ledger-list { grid-column: 4 / 13; }
.ledger-list li {
  display: grid; grid-template-columns: 5.5rem 9rem minmax(0, 1fr); column-gap: 16px; align-items: baseline;
  padding: 12px 0 13px; border-bottom: 1px solid var(--hair);
}
.ledger-list li:first-child { padding-top: 4px; }
.l-year, .l-kind { color: var(--mute); }
.contact-line { grid-column: 4 / 13; font-size: 25px; line-height: 1.4; }

/* ---------------------------------------------------------------- press + plain pages */
.page-top { padding-top: 64px; padding-bottom: 72px; }
.page-h { grid-column: 1 / 11; font-size: clamp(40px, 5.2vw, 80px); line-height: 1.03; letter-spacing: -.015em; }
.page-sub { grid-column: 1 / -1; color: var(--mute); margin-top: 20px; }
.page-sub a { color: var(--ink); }
.press-head, .press-list a {
  grid-column: 1 / -1; display: grid; grid-template-columns: 5rem 17rem minmax(0, 1fr) 7rem; column-gap: 16px;
  align-items: baseline;
}
.press-head span { font: inherit; }
.press-head { color: var(--mute); padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.press-list { grid-column: 1 / -1; }
.press-list li { border-bottom: 1px solid var(--hair); }
.press-list a { padding: 16px 0 15px; text-decoration: none; }
.p-year, .p-note { color: var(--mute); }
.p-pub { font-size: 21px; }
.p-title { font-size: 21px; line-height: 1.3; }
.p-note { text-align: right; }
.press-list a:hover .p-title { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

/* ---------------------------------------------------------------- narrower screens */
@media (max-width: 1180px) {
  .ledger { grid-column: 1 / -1; }
  .sg-label { grid-column: 1 / -1; margin-bottom: 20px; }
  .sheet { grid-column: 1 / -1; }
  .preview { display: none; }
  .rec-table { grid-column: 1 / 8; }
  .rec-sheet { grid-column: 1 / -1; margin-top: 56px; }
  .text, .about-top .text { grid-column: 2 / 12; }
  .press-head, .press-list a { grid-template-columns: 4.5rem 13rem minmax(0, 1fr) 6.5rem; }
}

@media (max-width: 820px) {
  :root { --m: 20px; --g: 16px; }
  body { font-size: 18px; }
  .grid { display: block; }
  .top { display: grid; grid-template-columns: 1fr; row-gap: 4px; padding-top: 16px; }
  .top::after { margin-top: 12px; }
  .name, .role, .nav { grid-column: 1 / -1; }
  .role { font-size: 16px; }
  .nav { justify-content: flex-start; gap: 22px; margin-top: 10px; }
  .intro { padding-top: 56px; padding-bottom: 64px; }
  .statement { font-size: 36px; line-height: 1.1; }

  .ledger-head { display: none; }
  .rows li:first-child { border-top: 1px solid var(--ink); }
  .rows a {
    grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: 'thumb no' 'thumb title' 'thumb meta';
    column-gap: 16px; row-gap: 2px; padding: 16px 0; align-items: start;
  }
  .c-thumb { display: flex; grid-area: thumb; aspect-ratio: 1; align-items: flex-end; }
  .c-thumb img { width: min(100%, calc(100% * var(--r))); }
  .c-no { grid-area: no; }
  .c-title { grid-area: title; font-size: 22px; }
  .c-kind { grid-area: meta; }
  .c-where, .c-year { display: none; }

  .sheet-wrap { margin-top: 96px; }
  .sheet-head { display: block; margin-bottom: 28px; }
  .sheet-head p { margin-top: 6px; }
  .sg { display: block; padding-bottom: 36px; }
  .sg-label { margin-bottom: 18px; }
  .sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 14px; }

  .record { padding-top: 40px; }
  .rec-title { font-size: 40px; margin-bottom: 40px; }
  .rec-table div { grid-template-columns: 6.6rem minmax(0, 1fr); }
  .rec-table dd { font-size: 18px; }
  .rec-sheet { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 12px; margin-top: 40px; }
  .body, .essay { margin-top: 72px; }
  .text .opening, .text .closing { font-size: 25px; }
  .essay-title { font-size: 36px; }
  .plates { margin-top: 88px; }
  .pl, .pl.pair { display: block; margin-bottom: 56px; }
  .pl.pair .plate + .plate { margin-top: 56px; }
  .plate { width: 100%; }
  .turn { margin-top: 88px; }
  .turn::before { display: block; }
  .t-next { text-align: left; margin-top: 24px; }
  .turn a { font-size: 22px; }

  .about-top { padding-top: 40px; }
  .strip { max-width: 110px; margin-bottom: 36px; }
  .about-h { font-size: 32px; margin-bottom: 32px; }
  .cv { margin-top: 80px; }
  .cv::before { display: block; }
  .side-h { font-size: 26px; margin-bottom: 16px; }
  .ledger-list li { grid-template-columns: 4.8rem minmax(0, 1fr); grid-template-areas: 'y k' 'w w'; row-gap: 2px; }
  .l-year { grid-area: y; } .l-kind { grid-area: k; } .l-what { grid-area: w; }
  .contact-line { font-size: 21px; }

  .page-top { padding-top: 40px; padding-bottom: 40px; }
  .page-h { font-size: 44px; }
  .press-head { display: none; }
  .press-list li:first-child { border-top: 1px solid var(--ink); }
  .press-list a { grid-template-columns: 4rem minmax(0, 1fr); grid-template-areas: 'y pub' 't t' 'n n'; row-gap: 4px; }
  .p-year { grid-area: y; } .p-pub { grid-area: pub; font-size: 19px; } .p-title { grid-area: t; font-size: 19px; }
  .p-note { grid-area: n; text-align: left; }
  .p-note:empty { display: none; }

  .foot { display: grid; grid-template-columns: 1fr 1fr; margin-top: 112px; }
  .foot::before { grid-column: 1 / -1; }
  .f-name, .f-mail, .f-idx, .f-legal { grid-column: auto; }
  .f-mail { grid-column: 1 / -1; order: -1; }
  .f-legal { text-align: right; }
  .f-idx { display: none; }
  .v-bar { gap: 18px; flex-wrap: wrap; }
  .v-count { margin-right: auto; }
  .v-stage { padding: 16px 0; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
