:root {
  --ink: #fff;
  --ground: #000;
  --ash: #a6a6a6;
  --label: "Amarante", "Bodoni 72 Smallcaps", Didot, Georgia, serif;
  --text: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --gutter: clamp(20px, 5vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ground); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.25rem;
  line-height: 1.55;
  text-align: center;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; font-weight: 400; }
ul, ol { padding: 0; list-style: none; }
svg, img { display: block; }
p, h1, h2, h3 { overflow-wrap: break-word; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; -webkit-tap-highlight-color: rgba(255, 255, 255, 0.18); }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
::selection { background: var(--ink); color: var(--ground); }

.skip { position: absolute; left: 12px; top: -100px; background: var(--ink); color: var(--ground); padding: 10px 14px; text-decoration: none; z-index: 10; }
.skip:focus { top: 12px; }

.cabinet { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 var(--gutter); flex: 1; display: flex; flex-direction: column; }
main { flex: 1; }

/* Lettering borrowed from painted apothecary jars */
.label { font-family: var(--label); text-transform: uppercase; letter-spacing: 0.07em; line-height: 1; }

/* Top of every page: her name, then the tabs */
.top { padding-top: clamp(14px, 2.6vw, 30px); }
.top .name { display: inline-flex; align-items: center; min-height: 48px; padding: 6px 6px 0; font-size: clamp(1.5rem, 4.4vw, 2rem); text-decoration: none; }
.shelf { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 clamp(10px, 4vw, 44px); font-size: 1.125rem; }
.shelf a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 6px; text-decoration: none; }
.shelf a:hover, .shelf a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.34em; }

/* Home */
.jar { display: flex; flex-direction: column; justify-content: center; min-height: 62vh; min-height: 62svh; padding: clamp(28px, 6vw, 72px) 0; }
.garland { width: min(100%, 640px); height: auto; margin: 0 auto; color: var(--ink); }
.jar h1 { padding: clamp(4px, 1vw, 12px) 0 clamp(8px, 1.4vw, 16px); font-size: clamp(2.5rem, 10.4vw, 6.25rem); letter-spacing: 0.05em; text-wrap: balance; }
.jar .contents { padding-top: clamp(22px, 3vw, 34px); font-style: italic; color: var(--ash); }

/* Inner pages */
.page { padding-top: clamp(44px, 8vw, 96px); }
.sprig { width: 80px; height: 28px; margin: 0 auto; }
.page h1 { padding-top: 18px; font-size: clamp(2.125rem, 6.4vw, 3.5rem); }
.page .body { max-width: 34em; margin: 0 auto; padding-top: 26px; }
.soon { font-style: italic; color: var(--ash); }

/* Art: one piece per row, its date underneath */
.gallery { max-width: 600px; margin: 0 auto; padding-top: 42px; }
.piece + .piece { margin-top: clamp(64px, 10vw, 104px); }
.piece img { width: 100%; height: auto; box-shadow: 0 0 0 7px var(--ground), 0 0 0 8px var(--ink); }
.piece figcaption { padding-top: 26px; font-style: italic; color: var(--ash); }

.drawer { padding-top: clamp(56px, 9vw, 96px); }
.drawer h2 { padding-top: 16px; font-size: clamp(1.5rem, 4vw, 2rem); }
.drawer .body { max-width: 34em; margin: 0 auto; padding-top: 22px; }
.body p + p { margin-top: 1.1em; }
.body p { text-wrap: pretty; }

.cameo {
  width: min(60vw, 230px);
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin: 8px auto 34px;
  border-radius: 50%;
  box-shadow: 0 0 0 7px var(--ground), 0 0 0 8.5px var(--ink);
}

/* Background: years on the left, what she did on the right */
.years { text-align: left; }
.years li { display: grid; grid-template-columns: 7.4em minmax(0, 1fr); column-gap: 1.1em; padding: 16px 0; border-top: 1px solid #3a3a3a; }
.years li:first-child { border-top: 0; padding-top: 0; }
.years .when { color: var(--ash); font-style: italic; }
.years .where { display: block; color: var(--ash); font-style: italic; }
.years .what { display: block; margin-top: 4px; font-size: 1.0625rem; line-height: 1.5; }

.reach { font-style: italic; color: var(--ash); }
.reach a { display: block; padding: 12px 0; color: var(--ink); font-style: normal; font-family: var(--label); font-size: clamp(0.9375rem, 5.3vw, 1.625rem); letter-spacing: 0.03em; white-space: nowrap; }

footer { padding: clamp(72px, 11vw, 128px) 0 clamp(24px, 4vw, 40px); color: var(--ash); font-size: 1rem; }
footer p + p { margin-top: 2px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }

@media (max-width: 520px) {
  body { font-size: 1.125rem; }
  .shelf { font-size: 1rem; }
  .years li { grid-template-columns: 1fr; row-gap: 2px; }
  .years .what { font-size: 1rem; }
}
@media (max-width: 360px) {
  .shelf { gap: 0 4px; }
}
@media print {
  html, body { background: #fff; color: #000; }
  :root { --ink: #000; --ground: #fff; --ash: #444; }
  .shelf, .skip { display: none; }
  .piece img { box-shadow: none; }
}
