@layer reset, theme, garden, pages, responsive, accessibility;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body { margin: 0; }
  a { color: inherit; }
  img { display: block; max-width: 100%; }
  h1, h2, p { margin: 0; }
}

@layer theme {
  :root {
    color-scheme: light;
    --paper: #eee4d2;
    --paper-light: #f6efdf;
    --ink: #2d3028;
    --ink-soft: #625a4a;
    --vermilion: #ab422e;
    --hairline: #cfc1aa;
    --serif: "Baskerville", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ease-ink: cubic-bezier(.16, 1, .3, 1);
    font-family: var(--serif);
    color: var(--ink);
    background: var(--paper);
  }
  ::selection { background: #dcc4a2; color: var(--ink); }
  a { text-underline-offset: .3em; text-decoration-thickness: 1px; }
  a:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 6px; }
}

@layer garden {
  .home-page {
    min-height: 100svh;
    background: var(--paper);
  }
  .garden {
    --garden-height: max(100svh, 33.3334vw);
    position: relative;
    isolation: isolate;
    width: 100%;
    height: var(--garden-height);
    overflow: hidden;
  }
  @supports (height: 100dvh) {
    .garden { --garden-height: max(100dvh, 33.3334vw); }
  }
  /* Art and links share one proportional canvas, so cover never separates them. */
  .garden-scene {
    position: absolute;
    width: max(100%, calc(var(--garden-height) * 1.598790323));
    aspect-ratio: 1586 / 992;
    left: 50%;
    top: 80%;
    transform: translate(-50%, -80%);
  }
  .garden-art, .garden-art img {
    display: block;
    width: 100%;
    height: 100%;
  }
  .garden-art { position: absolute; inset: 0; }
  .garden-art img { object-fit: cover; }
  .garden-name {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: clamp(1.25rem, 3vh, 2rem);
    transform: translateX(-50%);
    font-size: clamp(2rem, 3.7vw, 3.7rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.025em;
    white-space: nowrap;
  }
  /* Keep the name legible when cover crops bring the roof or trees behind it. */
  .garden-name::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -.6em -1.1em;
    pointer-events: none;
    background: radial-gradient(ellipse closest-side,
      rgb(246 239 223 / .98) 0% 60%,
      rgb(246 239 223 / .7) 78%,
      rgb(246 239 223 / 0) 100%);
  }
  .garden-characters { position: absolute; inset: 0; }
  .character-link {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--w);
    height: var(--h);
    min-width: 44px;
    min-height: 44px;
    z-index: 3;
    border-radius: 4px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .character-link:hover, .character-link:focus-visible { z-index: 4; }
  .character-wash {
    position: absolute;
    inset: -8% -14%;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgb(255 241 191 / .26) 0%, rgb(255 246 221 / .12) 39%, transparent 71%);
    mix-blend-mode: screen;
    opacity: 0;
    transform: scale(.86);
    transition: opacity .4s var(--ease-ink), transform .6s var(--ease-ink);
  }
  .character-link:is(:hover, :focus-visible) .character-wash { opacity: 1; transform: scale(1); }
  .character-link:focus-visible {
    outline: 2px dashed var(--vermilion);
    outline-offset: 5px;
    background: rgb(246 239 223 / .07);
  }
  .character-label {
    position: absolute;
    left: var(--lx);
    top: var(--ly);
    display: flex;
    align-items: center;
    gap: .6rem;
    width: max-content;
    min-height: 44px;
    padding: .25rem .55rem;
    font-size: clamp(.95rem, 1.25vw, 1.2rem);
    line-height: 1.25;
    white-space: nowrap;
    color: #25291f;
    background: radial-gradient(ellipse, rgb(246 239 223 / .94) 10%, rgb(246 239 223 / .6) 46%, transparent 73%);
    transition: color .25s ease;
  }
  .ink-dot {
    position: relative;
    flex: 0 0 auto;
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: var(--vermilion);
  }
  .ink-dot::after {
    content: "";
    position: absolute;
    inset: -.24rem;
    border: 1px solid var(--vermilion);
    border-radius: 50%;
    opacity: 0;
    transform: scale(.65);
    transition: opacity .3s ease, transform .5s var(--ease-ink);
  }
  .label-text { position: relative; }
  .label-text::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.2em;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease-ink);
  }
  .character-link:is(:hover, :focus-visible) .ink-dot::after { opacity: .85; transform: scale(1); }
  .character-link:is(:hover, :focus-visible) .label-text::after { transform: scaleX(1); }
  .character-link:active .character-label { color: var(--vermilion); }

  .character-about { --x: 6.5%; --y: 47%; --w: 13%; --h: 27%; --lx: 24%; --ly: 94%; }
  .character-resume { --x: 19%; --y: 40%; --w: 12%; --h: 18%; --lx: 70%; --ly: 1%; }
  .character-writings { --x: 44%; --y: 51%; --w: 16%; --h: 22%; --lx: 65%; --ly: 22%; }
  .character-bookmarks { --x: 78%; --y: 47%; --w: 16%; --h: 21%; --lx: -4%; --ly: 7%; }
  .character-photos { --x: 77.8%; --y: 69.5%; --w: 11%; --h: 20%; --lx: -45%; --ly: 4%; }
}

@layer pages {
  .inner-page {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background: var(--paper-light);
  }
  .skip-link {
    position: fixed;
    top: .75rem;
    left: 1rem;
    padding: .75rem 1rem;
    transform: translateY(-180%);
    background: var(--ink);
    color: var(--paper-light);
    z-index: 20;
  }
  .skip-link:focus { transform: translateY(0); }
  .page-content {
    width: min(100% - 4rem, 54rem);
    margin: clamp(3rem, 10vh, 8rem) auto;
    flex: 1;
  }
  .back-to-garden {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    min-height: 44px;
    color: var(--ink-soft);
    font-size: 1rem;
    text-decoration: none;
  }
  .back-to-garden:hover { color: var(--vermilion); }
  .back-arrow { transition: transform .3s var(--ease-ink); }
  .back-to-garden:hover .back-arrow { transform: translateX(-4px); }
  .page-title {
    margin-top: clamp(2rem, 5vh, 4rem);
    font-size: clamp(3.5rem, 7.5vw, 6rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.025em;
    text-wrap: balance;
  }
  .page-description {
    margin-top: 1.5rem;
    font-family: var(--sans);
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 48ch;
    color: var(--ink-soft);
    text-wrap: pretty;
  }
  .coming-soon {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--hairline);
    max-width: 28rem;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--ink-soft);
  }
  .page-footer {
    width: min(100% - 8rem, 86rem);
    margin-inline: auto;
    padding-block: 1.5rem 2rem;
    color: var(--ink-soft);
    font-size: 1rem;
  }
  .page-footer a { text-decoration: none; }
}

@layer responsive {
  @media (max-width: 900px) {
    .page-footer { width: calc(100% - 3rem); }
  }
  /* Keep these aspect-ratio boundaries in sync with the picture sources. */
  @media (max-aspect-ratio: 29/20) {
    .garden-scene {
      width: max(100%, var(--garden-height));
      aspect-ratio: 1;
      top: 50%;
      transform: translate(-50%, -50%);
    }
    .garden-name { font-size: clamp(1.9rem, 5vw, 3rem); }
    .character-about { --x: 7.3%; --y: 46%; --w: 18.5%; --h: 22%; --lx: 10%; --ly: 94%; }
    .character-resume { --x: 18.5%; --y: 34%; --w: 15%; --h: 14%; --lx: 103%; --ly: 4%; }
    .character-writings { --x: 43.8%; --y: 51%; --w: 20%; --h: 20%; --lx: 12%; --ly: -21%; }
    .character-bookmarks { --x: 69.5%; --y: 41.5%; --w: 24%; --h: 20%; --lx: 2%; --ly: -20%; }
    .character-photos { --x: 71.8%; --y: 62.5%; --w: 16%; --h: 20%; --lx: -56%; --ly: 14%; }
  }
  @media (max-aspect-ratio: 22/25) {
    .garden-scene { width: max(100%, calc(var(--garden-height) * .562799043)); aspect-ratio: 941 / 1672; top: 60%; transform: translate(-50%, -60%); }
    .garden-name { font-size: clamp(1.9rem, 7.8vw, 2.65rem); }
    .character-label { font-size: 1rem; padding: .2rem .35rem; gap: .4rem; }
    .ink-dot { width: .45rem; height: .45rem; }
    .character-about { --x: 17.5%; --y: 40.5%; --w: 21%; --h: 15.5%; --lx: -8%; --ly: 96%; }
    .character-resume { --x: 16%; --y: 30%; --w: 21%; --h: 10.7%; --lx: 99%; --ly: -6%; }
    .character-writings { --x: 50.5%; --y: 43%; --w: 27%; --h: 12.8%; --lx: 4%; --ly: -26%; }
    .character-bookmarks { --x: 58.5%; --y: 51.3%; --w: 28%; --h: 15.2%; --lx: -13%; --ly: 100%; }
    .character-photos { --x: 14.5%; --y: 67%; --w: 23.5%; --h: 16.2%; --lx: 110%; --ly: 15%; }
  }
  @media (max-width: 420px) {
    .page-content { width: calc(100% - 3rem); }
  }
}

@layer accessibility {
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  }
  @media (forced-colors: active) {
    .garden-name { background: Canvas; color: CanvasText; }
    .garden-name::before { display: none; }
    .character-label { background: Canvas; color: LinkText; }
    .ink-dot { background: LinkText; }
    .character-link:focus-visible { outline-color: Highlight; }
    .character-wash { display: none; }
  }
  @media print {
    .site-header, .page-footer, .back-to-garden { display: none; }
    .inner-page { background: white; }
    .page-content { margin: 0; }
  }
}

/* Preserve the original body layout while retaining the garden between visits. */
.page-view { display: contents; }
.page-view[hidden] { display: none; }
h1[tabindex="-1"]:focus { outline: none; }

/* about:start */
/* The painted scroll: live text on quiet paper, contemporary selves in ink. */
@layer pages {
  .about-page { background: var(--paper-light); }
  .about-scroll { width: min(100% - 8rem, 86rem); margin: 1.2rem auto 0; flex: 1; }
  .story-layout { display: grid; grid-template-columns: 9rem minmax(0,1fr); gap: clamp(2rem,4vw,4rem); align-items: start; margin-top: 2.25rem; }
  .chapter-index { position: sticky; top: 2rem; display: grid; padding-left: 1.1rem; border-left: 1px solid var(--hairline); z-index: 4; }
  .chapter-index a { min-height: 4.9rem; display: flex; flex-direction: column; justify-content: flex-start; gap: .1rem; position: relative; padding: .1rem 0 1.4rem; text-decoration: none; font-size: 1rem; line-height: 1.25; color: var(--ink-soft); }
  .chapter-index a::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-soft); position: absolute; left: calc(-1.1rem - 3.5px); top: .55rem; transition: background .2s; }
  .chapter-index a[aria-current="location"], .chapter-index a:hover { color: var(--vermilion); }
  .chapter-index a[aria-current="location"]::before { background: var(--vermilion); transform: scale(1.5); }
  .chapter-number { font-size: .875rem; font-variant-numeric: tabular-nums; }
  .story-body { min-width: 0; }
  .story-opening { position: relative; isolation: isolate; min-height: 49rem; padding-bottom: 5rem; }
  .story-intro { position: relative; z-index: 2; }
  .story-intro h1 { font-size: clamp(3.5rem,6vw,5.5rem); font-weight: 400; line-height: 1.05; letter-spacing: -.03em; }
  .story-intro > p { max-width: 32rem; margin-top: 1.35rem; font-size: clamp(1.3rem,2.1vw,1.75rem); line-height: 1.4; text-wrap: pretty; }
  .story-art { display: block; pointer-events: none; }
  .story-art img { width: 100%; height: auto; }
  .opening-art { position: absolute; z-index: -1; width: 62%; max-width: 45rem; right: -4rem; top: -5rem; }
  .story-chapter { scroll-margin-top: 2rem; }
  .story-now { margin-top: 5rem; position: relative; z-index: 1; }
  .story-now .story-copy { width: 51%; min-width: 22rem; max-width: 32rem; }
  .chapter-caption { color: var(--vermilion); font-size: .95rem; letter-spacing: .065em; text-transform: uppercase; margin-bottom: 1.15rem; }
  .story-chapter h2 { font-weight: 400; font-size: clamp(2.35rem,3.5vw,3.15rem); line-height: 1.13; letter-spacing: -.025em; margin-bottom: 1.7rem; text-wrap: balance; }
  .story-copy > p:not(.chapter-caption), .experience-story > p, .experience-intro { font-size: 1.2rem; line-height: 1.65; text-wrap: pretty; }
  .story-copy > p + p, .experience-story > p + p { margin-top: 1.1rem; }
  .story-copy strong { font-weight: 400; text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: .22em; }
  .story-connections { display: grid; grid-template-columns: 47% minmax(0,1fr); gap: 3rem; align-items: center; position: relative; margin: -3.5rem 0 6.5rem; min-height: 39rem; }
  .connections-art { width: 113%; margin-left: -7%; }
  .story-duke { display: grid; grid-template-columns: 40% minmax(0,1fr); gap: 4rem; margin: 2rem 0 7rem; padding-top: 3rem; border-top: 1px solid var(--hairline); }
  .chapter-aside { color: var(--ink-soft); font-size: 1.1rem; font-style: italic; line-height: 1.5; }
  .story-duke > .story-copy { align-self: center; }
  .duke-art { width: calc(100% + 2rem); max-width: 22rem; margin: 1rem -1rem -1.2rem; }
  .story-experiences { display: grid; grid-template-columns: 40% minmax(0,1fr); gap: 4rem; margin-bottom: 7rem; padding-top: 3rem; border-top: 1px solid var(--hairline); }
  .experience-intro { max-width: 26ch; color: var(--ink-soft); }
  .experiences-art { width: calc(100% + 2rem); max-width: 29rem; margin: 1.5rem -1rem 0; }
  .experience-story { padding-bottom: 2.4rem; }
  .experience-story + .experience-story { padding-top: 2.4rem; border-top: 1px solid var(--hairline); }
  .experience-story h3 { margin: 0 0 1.05rem; font-size: 1.9rem; font-weight: 400; line-height: 1.25; }
  .experience-story h3 span { display: block; margin-top: .35rem; font-size: 1rem; font-style: italic; color: var(--ink-soft); }
  .everyday-copy { display: grid; grid-template-columns: 40% minmax(0,1fr); gap: 4rem; }
  .everyday-art { margin: .5rem -3rem 0 0; }
  .story-invitation { max-width: 42rem; text-align: center; margin: 1rem auto 5rem; padding-top: 1rem; }
  .story-invitation > p { font-size: clamp(1.5rem,2.7vw,2.1rem); line-height: 1.45; text-wrap: pretty; }
  .story-invitation .invitation-last { font-size: 1.2rem; color: var(--ink-soft); margin-top: 1.2rem; font-style: italic; }
  .story-top { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; margin-top: 2rem; font-size: 1rem; text-decoration: none; color: var(--vermilion); }
  .story-top:hover { text-decoration: underline; }
  .about-page .page-footer { display: flex; justify-content: space-between; border-top: 1px solid var(--hairline); }
  .about-page .page-footer > a:last-child { font-size: .9rem; }
  .story-chapter h2:focus { outline: none; }
}
@layer responsive {
  @media (max-width: 1100px) {
    .about-scroll { width: calc(100% - 4rem); }
    .story-layout { grid-template-columns: 7.2rem minmax(0,1fr); gap: 2rem; }
    .opening-art { right: -2rem; width: 45%; top: -2rem; }
    .story-opening { min-height: 47rem; }
    .story-intro > p { max-width: 27rem; }
    .story-now .story-copy { width: 56%; min-width: 0; }
    .story-connections { gap: 1.75rem; }
    .story-duke, .story-experiences, .everyday-copy { grid-template-columns: 38% minmax(0,1fr); gap: 2rem; }
    .everyday-art { margin-inline: -2rem; }
  }
  @media (max-width: 850px) {
    .about-scroll { width: calc(100% - 3rem); }
    .story-layout { grid-template-columns: minmax(0,1fr); gap: 1.7rem; margin-top: 1rem; }
    .chapter-index { position: sticky; top: 0; display: flex; flex-wrap: wrap; gap: .15rem 1.2rem; border: 0; border-bottom: 1px solid var(--hairline); padding: .6rem 0; background: var(--paper-light); }
    .chapter-index a { min-height: 44px; padding: .25rem 0; display: inline-flex; flex-direction: row; align-items: center; gap: .35rem; font-size: .95rem; }
    .chapter-index a::before { display: none; }
    .chapter-index a[aria-current="location"] { text-decoration: underline; text-underline-offset: .4em; }
    .chapter-number { font-size: .75rem; }
    .story-opening { min-height: 44rem; }
    .story-now { margin-top: 3.5rem; }
    .story-intro > p { max-width: 28rem; }
    .opening-art { top: -1rem; width: 45%; right: -1.5rem; }
    .story-now .story-copy { width: 54%; }
    .story-chapter { scroll-margin-top: var(--chapter-clearance, 8rem); }
    .story-connections { margin-bottom: 4rem; min-height: 36rem; }
    .story-duke, .story-experiences { margin-bottom: 4.5rem; }
    .everyday-art { margin-inline: -1.5rem; }
  }
  @media (max-width: 600px) {
    .story-intro h1 { font-size: clamp(3rem,12vw,4rem); }
    .story-intro > p { max-width: 26ch; font-size: 1.35rem; }
    .story-opening { display: flex; flex-direction: column; min-height: 0; padding-bottom: 0; }
    .story-intro { order: 0; }
    .opening-art { position: static; order: 1; width: 100%; max-width: none; margin: -1.25rem auto -2.2rem; }
    .story-now { order: 2; margin-top: 0; }
    .story-now .story-copy { width: 100%; max-width: none; }
    .story-chapter h2 { font-size: 2.35rem; max-width: 20ch; margin-bottom: 1.2rem; }
    .story-copy > p:not(.chapter-caption), .experience-story > p, .experience-intro { font-size: 1.125rem; line-height: 1.7; }
    .chapter-caption { margin-bottom: .8rem; font-size: .85rem; }
    .desktop-break { display: none; }
    .story-connections { display: flex; flex-direction: column; min-height: 0; margin: 1.5rem 0 3.75rem; gap: 0; }
    .connections-art { width: 100%; margin: 0 auto .5rem; }
    .story-duke, .story-experiences, .everyday-copy { display: block; }
    .story-duke, .story-experiences { padding-top: 2.2rem; margin-bottom: 3.75rem; }
    .chapter-title-block { margin-bottom: 1.5rem; }
    .duke-art { width: 100%; max-width: 18rem; margin: .5rem auto 0; }
    .experiences-art { width: 100%; max-width: 17rem; margin: 1rem auto 0; }
    .experience-intro { max-width: 100%; }
    .experience-stories { margin-top: 2rem; }
    .experience-story { padding-bottom: 1.5rem; }
    .experience-story + .experience-story { padding-top: 1.5rem; }
    .experience-story h3 { font-size: 1.6rem; }
    .everyday-art { margin: 1.2rem -1.5rem 0; }
    .story-invitation { margin: 1rem 0 3rem; }
    .about-page .page-footer { gap: 1rem; }
  }
}
@layer accessibility {
  @media print {
    .chapter-index, .story-top { display: none; }
    .about-scroll { width: 100%; }
    .story-layout { display: block; }
    .story-art { max-height: 20rem; overflow: hidden; }
    .story-chapter { break-inside: avoid; }
    .story-opening { min-height: 0; }
    .opening-art { display: none; }
    .story-now .story-copy { width: 100%; }
  }
}
/* about:end */


/* bookmarks:start */
/* Content-sized shelves: the frame occupies reserved space, while independent
   illustrations keep their proportions in the intro grid. No text is positioned
   against coordinates in a painting. The original wood and small ornaments are
   reused at fixed, independent sizes rather than stretching the room. */
@layer pages {
  .bookmarks-page {
    background: #f4edde;
    --cabinet-paint: image-set(url('/assets/cabinet-hd-2840.avif') 1x type('image/avif'), url('/assets/cabinet-hd-5680.avif') 2x type('image/avif'), url('/assets/cabinet-hd-2840.webp') 1x type('image/webp'), url('/assets/cabinet-hd-5680.webp') 2x type('image/webp'));
    --cabinet-margin: clamp(1rem, 3.5vw, 5rem);
  }
  .bookmarks-room { width: 100%; min-height: 100svh; }
  .bookmarks-main { width: calc(100% - 2 * var(--cabinet-margin)); margin-inline: auto; }
  .bookmarks-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 1.6fr) minmax(0, 1fr); align-items: end; gap: clamp(.75rem, 2vw, 2.5rem); padding-top: 2rem; }
  .bookmarks-intro-copy { align-self: center; text-align: center; min-width: 0; padding-block: 1.5rem 2.5rem; }
  .bookmarks-intro h1 { font-size: clamp(3rem, 4.6vw, 6.2rem); font-weight: 400; line-height: 1.1; letter-spacing: -.035em; }
  .bookmarks-intro p { max-width: 25ch; margin: .6rem auto 0; font-size: clamp(1.125rem, 1.6vw, 1.75rem); color: var(--ink-soft); line-height: 1.4; }
  .cabinet-illustration { display: block; pointer-events: none; }
  .cabinet-illustration img { width: 100%; height: auto; }
  .cabinet-reader { width: min(100%, 22rem); justify-self: center; }
  .cabinet-still-life { width: min(100%, 25rem); justify-self: end; }



  .bookmark-cabinet { --rail: 22px; position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--rail); padding-inline: var(--rail); }
  .cabinet-post { position: absolute; top: 0; bottom: 0; width: var(--rail); pointer-events: none; background-image: var(--cabinet-paint); background-size: 5916.667% 481.739%; background-position: 51.719% 43.28%; background-repeat: no-repeat; }
  .cabinet-post-left { left: 0; }
  .cabinet-post-middle { left: calc(50% - var(--rail) / 2); }
  .cabinet-post-right { right: 0; }
  .bookmark-collection { position: relative; min-width: 0; padding: calc(var(--rail) + 2rem) clamp(1.65rem, 3vw, 4.5rem) 2.5rem; scroll-margin-top: 1rem; display: flex; flex-direction: column; }
  .bookmark-collection::before, .cabinet-bottom-rail { background-image: var(--cabinet-paint); background-size: 167.059% 4261.538%; background-position: 55.789% 26.34%; background-repeat: no-repeat; }
  .bookmark-collection::before { content: ''; position: absolute; top: 0; left: calc(-1 * var(--rail)); right: calc(-1 * var(--rail)); height: var(--rail); pointer-events: none; z-index: 1; }
  .bookmark-collection::after { content: ''; position: absolute; left: 0; top: var(--rail); width: 34px; height: 34px; background-image: var(--cabinet-paint); background-size: 3380.952% 2638.095%; background-position: 49.346% 28.894%; background-repeat: no-repeat; pointer-events: none; }
  .cabinet-bottom-rail { grid-column: 1 / -1; height: var(--rail); margin-inline: calc(-1 * var(--rail)); z-index: 1; pointer-events: none; }
  .collection-copy { min-width: 0; }
  .bookmark-collection h2 { color: var(--vermilion); font-weight: 400; font-size: clamp(2.1rem, 2.65vw, 3.5rem); line-height: 1.1; margin-bottom: 1.4rem; letter-spacing: -.025em; }
  .bookmark-collection ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
  .bookmark-entry { min-width: 0; }
  .bookmark-title { display: block; max-width: 100%; font-size: clamp(1.15rem, 1.45vw, 1.6rem); line-height: 1.25; text-decoration: none; overflow-wrap: anywhere; text-wrap: pretty; }
  .bookmark-title:is(:hover,:focus-visible) { color: var(--vermilion); text-decoration: underline; text-decoration-thickness: 1px; }
  .bookmark-credit { color: #575249; font-size: clamp(1rem, 1.13vw, 1.25rem); line-height: 1.35; margin-top: .2rem; }
  .bookmark-note { display: block; font-size: .94em; line-height: 1.35; }
  .cabinet-crop { display: block; pointer-events: none; background-image: var(--cabinet-paint); background-size: var(--crop-size); background-position: var(--crop-position); background-repeat: no-repeat; aspect-ratio: var(--crop-ratio); mask-size: 100% 100%; mask-repeat: no-repeat; }
  .cabinet-original-projector { mask-image: url('/assets/cabinet-projector-mask.svg'); width: 7rem; max-width: 100%; margin: 1.5rem 0 -1.4rem auto; }
  .cabinet-original-cat { mask-image: url('/assets/cabinet-cat-mask.svg'); width: 13rem; max-width: 80%; margin: 1.5rem 0 0 auto; flex-shrink: 0; }
  .bookmarks-page .page-footer { display: flex; justify-content: space-between; gap: 1rem; width: calc(100% - 2 * var(--cabinet-margin)); max-width: none; padding-block: .75rem 1rem; }
  .bookmarks-page .page-footer a { display: inline-flex; align-items: center; min-height: 44px; }
}
@layer responsive {
  @media (max-width: 1000px) {
    .bookmarks-intro { grid-template-columns: minmax(0, 1fr) minmax(18rem, 1.8fr) minmax(0, 1fr); }
  }
  @media (max-width: 880px) {
    .bookmark-cabinet { grid-template-columns: minmax(0, 1fr); --rail: 18px; }
    .cabinet-post-middle { display: none; }
    .bookmark-collection { padding: calc(var(--rail) + 1.75rem) clamp(1.4rem, 5vw, 3rem) 2.3rem; }
    .bookmark-collection h2 { font-size: 2.2rem; }
    .bookmark-title { font-size: 1.2rem; }
  }
  @media (max-width: 680px) {
    .bookmarks-page { --cabinet-margin: .75rem; }
    .bookmarks-intro { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; padding-top: 1.5rem; }
    .bookmarks-intro-copy { grid-column: 1 / -1; grid-row: 1; padding-block: .5rem .25rem; }
    .bookmarks-intro h1 { font-size: clamp(2.8rem, 10vw, 4rem); }
    .bookmarks-intro p { font-size: 1.15rem; }


    .cabinet-reader { width: min(100%, 13rem); }
    .cabinet-still-life { width: min(100%, 15rem); }
    .bookmark-cabinet { --rail: 14px; }
    .bookmark-collection { padding: calc(var(--rail) + 1.6rem) 1.3rem 2rem; }
    .bookmark-collection::after { width: 26px; height: 26px; }
    .bookmark-collection h2 { font-size: 2rem; }
    .bookmark-title { font-size: 1.15rem; line-height: 1.3; }
    .bookmark-credit { font-size: 1rem; }
    .bookmarks-page .page-footer { width: calc(100% - 2 * var(--cabinet-margin)); font-size: .95rem; }
  }
}
@layer accessibility {
  @media (forced-colors: active) {
    .cabinet-illustration, .cabinet-crop, .cabinet-post, .cabinet-bottom-rail, .bookmark-collection::before, .bookmark-collection::after { display: none; }
    .bookmark-collection { border: 1px solid CanvasText; }
  }
  @media print {
    .cabinet-illustration, .cabinet-crop, .cabinet-post, .cabinet-bottom-rail, .bookmark-collection::before, .bookmark-collection::after, .bookmarks-page .page-footer { display: none; }
    .bookmarks-main { width: 100%; }
    .bookmarks-intro { display: block; padding: 0; }
    .bookmark-cabinet { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 0; }
    .bookmark-collection { break-inside: avoid; padding: 0; }
    .bookmark-title { font-size: 12pt; }
    .bookmark-credit { font-size: 10pt; }
  }
}
/* bookmarks:end */


/* resume:start */
/* Approved folding-screen layout. Scope every selector to this route so
   cached pages retain their own styles. Art stays in flow when details open. */
@layer pages {
  .resume-page {color-scheme: light; --paper: #f4edde; --ink: #2d3028; --soft: #665d4e; --red: #aa432e; --line: #b7a88c; --wood: #987c56; --silk: #70868a; font-family: Baskerville,"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif; color: var(--ink); background: var(--paper);}
  .resume-page * {box-sizing: border-box;}
  .resume-page {margin: 0;}
  .resume-page a {color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em;}
  .resume-page button, .resume-page summary {-webkit-tap-highlight-color: transparent;}
  .resume-page a:focus-visible, .resume-page summary:focus-visible {outline: 2px solid var(--red); outline-offset: 5px;}
  .resume-page h1, .resume-page h2, .resume-page h3, .resume-page p {margin: 0; font-weight: 400;}
  .resume-page .skip-link {position: fixed; top: .5rem; left: 1rem; z-index: 10; padding: .75rem 1rem; background: var(--paper); transform: translateY(-200%);}
  .resume-page .skip-link:focus {transform: none;}
  .resume-page main {width: calc(100% - 4rem); margin: 0 auto;}
  .resume-page .page-heading {display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .65rem 1.5rem 1.45rem;}
  .resume-page h1 {font-size: clamp(3.25rem,5.3vw,5.5rem); line-height: 1.1; letter-spacing: -.035em;}
  .resume-page .section-index {display: none;}
  .resume-page .studio-screen {display: grid; grid-template-columns: minmax(0,46fr) minmax(0,25fr) minmax(0,29fr); align-items: stretch; width: 100%;}
  .resume-page .screen-panel {min-width: 0; position: relative; display: flex; flex-direction: column; border: 8px solid var(--wood); border-block-width: 10px; border-right-width: 5px; background: #f7f0e3; box-shadow: inset 0 0 0 1px #5f4b33;}
  .resume-page .screen-panel + .screen-panel {border-left-width: 5px;}
  .resume-page .screen-panel:last-child {border-right-width: 8px;}
  .resume-page .screen-panel::before, .resume-page .screen-panel::after {content: ""; display: block; flex: none; height: 1.15rem; background-color: var(--silk); background-image: url('/assets/resume-screen-reference.webp'); background-size: 245.22% 2965.7%; background-position: 6.585% 19.342%; border-block: 2px solid #b5a17c; margin: 1px;}
  .resume-page .screen-panel::after {margin-top: auto;}
  .resume-page .panel-copy {padding: 1.65rem clamp(1.1rem,2vw,2.25rem) 0; position: relative; z-index: 1;}
  .resume-page h2 {font-size: clamp(2.3rem,3vw,3.5rem); line-height: 1.12; padding-bottom: .8rem; margin-bottom: .15rem; border-bottom: 1px solid var(--line); letter-spacing: -.025em;}
  .resume-page .work-panel h2 {display: flex; align-items: center; gap: .65rem;}
  .resume-page .work-panel h2::before {content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red);}
  .resume-page .resume-entry {border-bottom: 1px solid var(--line);}
  .resume-page summary {min-height: 4.4rem; padding: .85rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; list-style: none; font-size: clamp(1.35rem,1.8vw,1.9rem); line-height: 1.2;}
  .resume-page summary::-webkit-details-marker {display: none;}
  .resume-page summary:hover {color: var(--red);}
  .resume-page .disclosure-mark {width: 1.35rem; height: 1.35rem; position: relative; flex: 0 0 1.35rem;}
  .resume-page .disclosure-mark::before, .resume-page .disclosure-mark::after {content: ""; position: absolute; background: currentColor;}
  .resume-page .disclosure-mark::before {width: .95rem; height: 1px; left: .2rem; top: calc(50% - .5px);}
  .resume-page .disclosure-mark::after {height: .95rem; width: 1px; top: .2rem; left: calc(50% - .5px); transition: transform 160ms ease-out;}
  .resume-page details[open] > summary {color: var(--red);}
  .resume-page details[open] > summary .disclosure-mark::after {transform: scaleY(0);}
  .resume-page .entry-content {padding: 0 1.5rem 1.3rem 0; font-size: 1.05rem; line-height: 1.45;}
  .resume-page .entry-role {font-size: 1.15rem;}
  .resume-page .entry-date {color: var(--soft); font-size: .95rem; margin-top: .3rem;}
  .resume-page .entry-description {margin-top: .85rem;}
  .resume-page .detail-placeholder {color: var(--soft); font-style: italic; margin-top: .85rem;}
  .resume-page .education-summary {margin-top: 1.3rem;}
  .resume-page h3 {font-size: clamp(1.5rem,1.8vw,2rem); line-height: 1.2; letter-spacing: -.025em;}
  .resume-page .education-summary > p:not(.entry-date) {font-size: 1.1rem; line-height: 1.45; margin-top: .4rem;}
  .resume-page .extracurriculars {margin-top: 1.6rem; border-top: 1px solid var(--line);}
  .resume-page .extracurriculars summary, .resume-page .project-details summary {font-size: 1.05rem; min-height: 3.4rem;}
  .resume-page .project-entry {padding-top: 1.3rem;}
  .resume-page .project-entry + .project-entry {padding-top: 1.55rem;}
  .resume-page .project-entry h3 {font-size: clamp(1.35rem,1.85vw,1.95rem); overflow-wrap: anywhere;}
  .resume-page .project-entry h3 a {display: flex; align-items: baseline; justify-content: space-between; gap: .7rem; text-decoration: none;}
  .resume-page .project-entry h3 a:hover {color: var(--red); text-decoration: underline;}
  .resume-page .project-entry h3 a span {font-size: 1rem; flex: none;}
  .resume-page .project-category {color: var(--soft); font-size: .95rem; margin-top: .4rem;}
  .resume-page .project-details {margin-top: .3rem;}
  .resume-page .panel-painting {width: 100%; margin-top: auto; padding-top: 1.4rem; display: flex; align-items: flex-end; pointer-events: none;}
  .resume-page .panel-painting img {display: block; width: 100%; height: auto; object-fit: contain;}
  .resume-page .work-painting {min-height: 18rem;}
  .resume-page .duke-painting {padding-inline: .4rem;}
  .resume-page .projects-painting {min-height: 14rem;}
  .resume-page footer {width: calc(100% - 7rem); margin: 1.1rem auto 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .95rem;}
  .resume-page footer a {min-height: 44px; display: inline-flex; align-items: center; text-decoration: none;}
  .resume-page footer a:hover {color: var(--red); text-decoration: underline;}
  .resume-page footer p {font-size: .875rem; color: var(--soft);}
  .resume-page .resume-main { flex: 1; }
  .resume-page .resume-footer { max-width: none; padding: 0; }
  .resume-page .panel-painting picture { display: block; width: 100%; }
}
@layer responsive {

  @media (min-width:1700px) {.resume-page .panel-copy {padding-top: 2rem;}.resume-page .work-entries summary {min-height: 5rem;}}
  @media (max-width:1100px) {
  .resume-page footer {width: calc(100% - 3rem);}.resume-page main {width: calc(100% - 2rem);}.resume-page .page-heading {padding-inline: .5rem;}.resume-page .studio-screen {grid-template-columns: minmax(0,1fr) minmax(0,1fr);}.resume-page .work-panel {grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr; border-right-width: 8px;}.resume-page .work-panel::before, .resume-page .work-panel::after {grid-column: 1/-1;}.resume-page .work-panel .panel-copy {padding-bottom: 1.75rem;}.resume-page .work-panel .panel-painting {min-height: 0; padding: 2rem 0 0; align-self: end;}.resume-page .duke-panel {border-left-width: 8px !important; border-top-width: 5px;}.resume-page .projects-panel {border-top-width: 5px;}.resume-page .panel-copy {padding-inline: 1.5rem;}.resume-page .project-entry h3 {font-size: 1.7rem;}.resume-page .duke-painting {max-width: 23rem; margin-inline: auto;}}
  @media (max-width:650px) {.resume-page .page-heading {align-items: end; padding-block: .4rem 1.1rem;}.resume-page .page-heading {flex-wrap: wrap;}.resume-page .section-index {display: flex; gap: 1.4rem; flex-basis: 100%; margin-top: .25rem;}.resume-page .section-index a {display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; text-decoration: none;}.resume-page .section-index a:hover {color: var(--red); text-decoration: underline;}.resume-page .screen-panel {scroll-margin-top: 1rem;}.resume-page .studio-screen {display: block;}.resume-page .screen-panel, .resume-page .screen-panel + .screen-panel, .resume-page .screen-panel:last-child {display: flex; border-width: 8px;}.resume-page .screen-panel + .screen-panel {margin-top: 1.5rem;}.resume-page .panel-copy {padding: 1.4rem 1.25rem 0;}.resume-page h2 {font-size: 2.75rem;}.resume-page .work-entries summary {font-size: 1.6rem; min-height: 4.25rem;}.resume-page .work-panel .panel-copy {padding-bottom: 0;}.resume-page .work-panel .panel-painting {padding-top: 1.75rem;}.resume-page .panel-painting {padding-top: 1.5rem;}.resume-page .duke-painting {max-width: 22rem;}.resume-page .projects-painting {min-height: 0;}.resume-page footer {flex-direction: column; align-items: flex-start; gap: 0; margin-bottom: 1rem;}}
}
@layer accessibility {
  @media (prefers-reduced-motion:reduce) {.resume-page *, .resume-page *::before, .resume-page *::after {transition: none !important;}}
  @media (forced-colors:active) {.resume-page .panel-painting, .resume-page .screen-panel::before, .resume-page .screen-panel::after {display: none;}.resume-page .screen-panel {border: 1px solid CanvasText;}.resume-page .disclosure-mark::before, .resume-page .disclosure-mark::after {background: ButtonText;}}
  @media print { .resume-page .panel-painting, .resume-page .section-index { display: none; } .resume-page .studio-screen { display: block; } .resume-page .screen-panel { border: 0; box-shadow: none; break-inside: avoid; } .resume-page .screen-panel::before, .resume-page .screen-panel::after { display: none; } }
}
/* resume:end */


/* photos:start */
/* Photographer's Album: proportional rows, with an approved sky crop for 09
   in the album only. Thin paper mounts and small painted margin details carry
   the established garden identity; the full-size viewer is a native dialog. */
@layer pages {
  .photos-page { --paper-light: #f4edde; background: var(--paper-light); }
  .photos-page .photo-album, .photos-page .page-footer { position: relative; z-index: 1; }
  .photos-page .photo-album { width: min(100% - 8rem, 94rem); margin: 0 auto; }
  .photos-page .album-intro { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 12.5rem; padding: 1rem 1.5rem 2rem 6rem; gap: 2rem; }
  .photos-page .album-intro > div { flex: 1; min-width: 0; }
  .photos-page .album-title { margin: 0; font-weight: 400; font-size: clamp(3.5rem, 6vw, 5.5rem); line-height: 1.08; letter-spacing: -.03em; }
  .photos-page .album-subtitle { font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.45; margin-top: .55rem; max-width: 42ch; text-wrap: pretty; }
  .photos-page .album-character { flex: 0 0 auto; width: clamp(7.5rem, 11vw, 10rem); align-self: flex-end; margin: -.5rem 3rem -1.5rem 0; pointer-events: none; }
  .photos-page .album-character img { width: 100%; height: auto; }
  .photos-page .album-branch { position: absolute; z-index: 0; width: clamp(8rem, 15vw, 15rem); top: 5.5rem; left: -3.5rem; pointer-events: none; }
  .photos-page .album-branch img { width: 100%; height: auto; }
  .photos-page .album-gallery { display: grid; gap: clamp(2rem, 3vw, 3rem); }
  .photos-page .album-row { display: flex; gap: clamp(1.25rem, 2.2vw, 2.25rem); align-items: start; }
  .photos-page .album-photo { margin: 0; min-width: 0; flex: var(--photo-ratio) 1 0; }
  .photos-page .photo-link { display: block; background: #fffaf0; padding: clamp(5px, .5vw, 8px); box-shadow: 0 3px 9px rgb(73 53 29 / .13); text-decoration: none; cursor: zoom-in; transition: transform 200ms var(--ease-ink), box-shadow 200ms var(--ease-ink); }
  .photos-page .photo-link picture, .photos-page .photo-link img { display: block; width: 100%; }
  .photos-page .photo-link img { height: auto; background: #e6ddcc; }
  .photos-page .album-photo-cropped .photo-link img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center bottom; }
  .photos-page .album-caption { display: flex; align-items: baseline; gap: .7rem; margin: .75rem .15rem 0; font-size: 1rem; line-height: 1.35; color: var(--ink); }
  .photos-page .photo-number { color: var(--ink-soft); font-size: .875rem; font-variant-numeric: tabular-nums; }
  .photos-page .photo-link:focus-visible + .album-caption .photo-number { color: var(--vermilion); }
  .photos-page .page-footer { width: min(100% - 8rem, 94rem); margin-top: 2.75rem; padding: 1.5rem 0 2rem; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--hairline); }
  .photos-page .page-footer a { min-height: 44px; display: inline-flex; align-items: center; }
  .photos-page.photo-viewer-open { overflow: hidden; }
  .photos-page .photo-viewer { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: #f8f2e7; background: rgb(24 27 24 / .98); }
  .photos-page .photo-viewer::backdrop { background: #181b18; }
  .photos-page .photo-viewer:not([open]) { display: none; }
  .photos-page .photo-viewer[open] { display: grid; grid-template-columns: 5rem minmax(0, 1fr) 5rem; grid-template-rows: 4.25rem minmax(0, 1fr); align-items: center; padding: 0 1.5rem 1.5rem; }
  .photos-page .viewer-close { grid-column: 2 / 4; grid-row: 1; justify-self: end; }
  .photos-page .photo-viewer button { appearance: none; border: 0; background: none; color: inherit; font: inherit; font-size: 1.125rem; min-width: 48px; min-height: 48px; cursor: pointer; }
  .photos-page .photo-viewer button:hover { color: #e6bca3; }
  .photos-page .photo-viewer button:focus-visible, .photos-page .photo-viewer a:focus-visible { outline: 2px solid #f8f2e7; outline-offset: 3px; }
  .photos-page .viewer-prev { grid-column: 1; grid-row: 2; }
  .photos-page .viewer-next { grid-column: 3; grid-row: 2; }
  .photos-page .photo-viewer .viewer-arrow { font-size: 2rem; }
  .photos-page .viewer-figure { min-width: 0; min-height: 0; width: 100%; height: 100%; margin: 0; grid-column: 2; grid-row: 2; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 1rem; }
  .photos-page .viewer-stage { min-width: 0; min-height: 0; position: relative; display: grid; place-items: center; touch-action: pan-y pinch-zoom; }
  .photos-page .viewer-image { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
  .photos-page .viewer-figure figcaption { display: flex; justify-content: flex-end; align-items: baseline; gap: 1rem; font-size: 1.125rem; line-height: 1.4; }
  .photos-page .viewer-count { white-space: nowrap; font-size: 1rem; font-variant-numeric: tabular-nums; }
  .photos-page .viewer-error { position: absolute; inset: 0; padding: 2rem; background: #181b18; text-align: center; align-content: center; font-size: 1.15rem; line-height: 1.6; }
  .photos-page .viewer-error[hidden] { display: none; }
  @media (hover: hover) { .photos-page .photo-link:hover { transform: translateY(-3px); box-shadow: 0 7px 15px rgb(73 53 29 / .18); } .photos-page .album-photo:hover .photo-number { color: var(--vermilion); } }
}
@layer responsive {
  @media (max-width: 1100px) {
    .photos-page .photo-album, .photos-page .page-footer { width: calc(100% - 4rem); }
    .photos-page .album-intro { padding-left: 4rem; }
    .photos-page .album-character { margin-right: 1rem; }
  }

  @media (max-width: 700px) {
    .photos-page .photo-album, .photos-page .page-footer { width: calc(100% - 2.5rem); }
    .photos-page .album-intro { padding: 1.25rem 0 2rem; min-height: 10rem; gap: 0; }
    .photos-page .album-title { font-size: 3.75rem; }
    .photos-page .album-subtitle { max-width: 22ch; font-size: 1.125rem; }
    .photos-page .album-character { width: 6.5rem; margin: 0 -.75rem -1.1rem 0; }
    .photos-page .album-branch { width: 7rem; left: -4.5rem; top: 11rem; opacity: .6; }
    .photos-page .album-gallery { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 2rem 1.25rem; }
    .photos-page .album-row { display: contents; }
    .photos-page .album-photo:first-child { grid-column: 1 / -1; }
    .photos-page .album-caption { font-size: .95rem; gap: .5rem; }
    .photos-page .photo-viewer[open] { padding: 0 .75rem 1rem; grid-template-columns: 1fr 1fr; grid-template-rows: 3.75rem minmax(0, 1fr) 3rem; }
    .photos-page .viewer-close { grid-column: 1 / -1; grid-row: 1; }
    .photos-page .viewer-figure { grid-column: 1 / -1; grid-row: 2; gap: .75rem; }
    .photos-page .viewer-prev { grid-column: 1; grid-row: 3; justify-self: start; }
    .photos-page .viewer-next { grid-column: 2; grid-row: 3; justify-self: end; }
    .photos-page .viewer-figure figcaption { font-size: 1rem; }
  }
  @media (max-width: 440px) {
    .photos-page .album-gallery { display: block; }
    .photos-page .album-photo { margin-bottom: 2rem; }
    .photos-page .album-character { width: 5.5rem; }
    .photos-page .album-intro { align-items: center; }
    .photos-page .album-title { font-size: 3.5rem; }
    .photos-page .album-subtitle { font-size: 1.05rem; max-width: none; }
    .photos-page .album-caption { font-size: 1rem; }
    .photos-page .page-footer { gap: 1rem; font-size: .95rem; margin-top: 1rem; }
  }
}
@layer accessibility {
  @media (forced-colors: active) { .photos-page .album-character, .photos-page .album-branch { display: none; } .photos-page .photo-link { border: 1px solid CanvasText; } }
  @media print { .photos-page .photo-viewer, .photos-page .album-branch, .photos-page .album-character { display: none !important; } .photos-page .album-photo { break-inside: avoid; } }
}
/* photos:end */


/* writings:start */
/* The approved contents page: warm paper, quiet rules, and one small writer. */
@layer pages {
  .writing-index {
    width: min(100% - 8rem, 56rem);
    margin: clamp(3rem, 7vh, 5rem) auto 4rem;
    flex: 1;
  }
  .writing-intro { display: grid; grid-template-columns: minmax(0, 1fr) 13rem; align-items: center; gap: 2rem; margin-bottom: 2.5rem; }
  .writing-intro h1 { font-size: clamp(3.25rem, 5vw, 4.5rem); font-weight: 400; line-height: 1.08; letter-spacing: -.025em; }
  .writing-intro p { margin-top: 1rem; max-width: 38ch; font-size: 1.35rem; line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }
  .writing-art { width: 100%; height: auto; }
  .writing-filters { display: flex; gap: 2rem; margin-bottom: .75rem; }
  .writing-filters[hidden], .writing-list[hidden], .writing-empty[hidden] { display: none; }
  .writing-filters button {
    appearance: none;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--ink-soft);
    padding: .35rem 0;
    min-width: 44px;
    min-height: 44px;
    font: inherit;
    font-size: 1.25rem;
    line-height: 1.4;
    cursor: pointer;
    text-align: left;
    text-underline-offset: .45em;
    text-decoration-thickness: 1px;
  }
  .writing-filters button:is(:hover, [aria-pressed="true"]) { color: var(--vermilion); }
  .writing-filters button[aria-pressed="true"] { text-decoration: underline; }
  .writing-filters button:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 5px; }
  .writing-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
  .writing-list > li { border-bottom: 1px solid var(--hairline); }
  .writing-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 0; text-decoration: none; }
  .writing-title { font-size: clamp(1.4rem, 2.3vw, 1.8rem); line-height: 1.3; overflow-wrap: anywhere; }
  .writing-kind { flex: none; font-size: 1rem; color: var(--ink-soft); }
  .writing-list a:hover .writing-title { color: var(--vermilion); text-decoration: underline; }
  .writing-empty { border-block: 1px solid var(--hairline); padding: 4rem 0; font-size: 1.2rem; line-height: 1.6; color: var(--ink-soft); }
  .writing-reader { width: min(100% - 8rem, 48rem); margin: clamp(2rem, 5vh, 3.5rem) auto 5rem; flex: 1; }
  .back-to-writings { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 2rem; color: var(--ink-soft); font-size: 1.125rem; text-decoration: none; }
  .back-to-writings:hover { color: var(--vermilion); text-decoration: underline; }
  .writing-reader h1 { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 400; line-height: 1.15; letter-spacing: -.025em; margin: 0 0 2.5rem; }
  .poem-body { font-size: 1.25rem; line-height: 1.7; }
  .poem-stanza { margin: 0; }
  .poem-stanza + .poem-stanza { margin-top: 1.7em; }
  /* Wrapped continuations are indented so the author's line breaks stay legible. */
  .poem-line { display: block; padding-left: 1.25em; text-indent: -1.25em; overflow-wrap: anywhere; }
}
@layer responsive {
  @media (max-width: 1100px) { .writing-index { width: min(100% - 3rem, 56rem); } }
  @media (max-width: 1100px) { .writing-reader { width: min(100% - 3rem, 48rem); } }
  @media (max-width: 650px) {
    .writing-reader { margin-top: 1.5rem; margin-bottom: 3rem; }
    .back-to-writings { margin-bottom: 1.5rem; }
    .writing-reader h1 { margin-bottom: 2rem; }
    .poem-body { font-size: 1.125rem; }
    .writing-index { margin-top: 2.5rem; margin-bottom: 2.5rem; }
    .writing-intro { grid-template-columns: minmax(0, 1fr) 7rem; gap: 1rem; align-items: start; margin-bottom: 2rem; }
    .writing-intro h1 { font-size: clamp(2.8rem, 9.5vw, 3.25rem); }
    .writing-intro p { font-size: 1.125rem; margin-top: .75rem; }
    .writing-art { margin-top: .5rem; }
    .writing-filters { gap: 1.5rem; }
    .writing-filters button { font-size: 1.125rem; }
    .writing-list a { gap: .75rem; }
    .writing-empty { padding-block: 3rem; font-size: 1.125rem; }
  }
  @media (max-width: 380px) {
    .writing-intro { grid-template-columns: minmax(0, 1fr) 5.25rem; gap: .5rem; }
  }
}
@layer accessibility {
  @media (forced-colors: active) {
    .writing-art { display: none; }
    .writing-intro { grid-template-columns: 1fr; }
    .writing-filters button { color: ButtonText; }
    .writing-filters button:focus-visible { outline-color: Highlight; }
  }
  @media print {
    .writing-art, .writing-filters, .back-to-writings { display: none; }
    .writing-reader { width: 100%; margin: 0; }
    .poem-stanza { break-inside: avoid; }
  }
}
/* writings:end */


/* header:start */
/* One navigation layout for every interior page, independent of its artwork. */
@layer pages {
  html:has(.inner-page) { scrollbar-gutter: stable; }
  .site-header {
    position: relative;
    z-index: 3;
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: min(100% - 8rem, 86rem);
    margin: 0 auto;
    padding: 1.65rem 0 1.2rem;
    border-bottom: 1px solid var(--hairline);
    font-family: var(--serif);
    line-height: 1.25;
    color: var(--ink);
  }
  .site-header a { text-decoration-thickness: 1px; text-underline-offset: .3em; }
  .site-header .brand {
    flex: none;
    font-size: 2rem;
    line-height: 1.15;
    letter-spacing: -.025em;
    white-space: nowrap;
    text-decoration: none;
  }
  .page-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.6rem; }
  .site-header .page-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 1rem;
    line-height: 1.25;
    white-space: nowrap;
    text-decoration: none;
  }
  .site-header .page-nav a:hover { color: var(--vermilion); }
  .site-header .page-nav a:is([aria-current="page"], [aria-current="location"]) { text-decoration: underline; text-decoration-color: var(--vermilion); }
}
@layer responsive {
  @media (max-width: 1100px) {
    .site-header { width: calc(100% - 3rem); }
  }
  @media (max-width: 700px) {
    .site-header { flex-direction: column; align-items: flex-start; gap: .5rem; padding-top: 1.25rem; }
    .page-nav { width: 100%; gap: .25rem 1rem; }
    .site-header .page-nav a { font-size: .95rem; }
  }
}
/* header:end */
