/* Genevra E.T. — shared styles for every page. */
/* Home answers three questions in about 30 seconds: who is she, what does she do, what is she curious about.
   The top navigation already leads everywhere else, so the home page does not repeat it. */
@font-face {
  font-family: "Genevra Chalkboard";
  src: local("ChalkboardSE-Regular");
  font-style: normal;
  font-weight: 400 500;
}
@font-face {
  font-family: "Genevra Chalkboard";
  src: local("ChalkboardSE-Bold");
  font-style: normal;
  font-weight: 600 900;
}
:root {
  --paper: #fafafa;
  --ink: #1a1a1a;
  --soft: #6a6a6a;
  --hairline: #d2d2d2;
  --block: #ececec;
  --site-font: "Genevra Chalkboard", "Chalkboard SE", "Chalkboard", sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #121212; --ink: #efefef; --soft: #9a9a9a; --hairline: #333; --block: #1e1e1e; }
  :root:not([data-theme="light"]) .trace { filter: invert(1) hue-rotate(180deg); }
}
:root[data-theme="dark"] { --paper: #121212; --ink: #efefef; --soft: #9a9a9a; --hairline: #333; --block: #1e1e1e; }
:root[data-theme="dark"] .trace { filter: invert(1) hue-rotate(180deg); }

*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--site-font); font-size: 1.125rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px dashed var(--ink); outline-offset: 6px; }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }

/* header */
header.top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.5rem 0 1.25rem; border-bottom: 1.5px solid var(--ink); }
.brand { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; }
nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.6rem; list-style: none; margin: 0; padding: 0; }
nav li { position: relative; }
nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
nav .note { position: absolute; left: 0; top: 100%; margin-top: 0.15rem; z-index: 2; white-space: nowrap; font-family: var(--site-font); font-size: 1.15rem; color: var(--soft); opacity: 0; transform: translateY(-2px); transition: opacity 0.2s, transform 0.2s; pointer-events: none; }
nav li:last-child .note { left: auto; right: 0; }
nav li:hover .note, nav li:focus-within .note { opacity: 1; transform: none; }

/* home */
.home { display: grid; gap: 2rem 4rem; padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem); grid-template-areas: "name" "text" "art"; }
@media (min-width: 52rem) { .home { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-areas: "name name" "text art"; align-items: center; row-gap: clamp(2rem, 5vw, 3.5rem); } }
h1 { grid-area: name; font-weight: 500; font-size: clamp(3.4rem, 10.5vw, 7.5rem); line-height: 0.92; letter-spacing: -0.035em; margin: 0; }
.home h1 { font-size: 3.125rem; }
.intro { grid-area: text; font-size: 1.25rem; line-height: 1.4; max-width: 27rem; }
.intro p { margin: 0 0 1.25rem; }
.intro p:last-child { margin-bottom: 0; }
.art { grid-area: art; margin: 0; }
.art img { width: 100%; max-width: 40rem; margin-left: auto; }
.home .art img { max-width: 26rem; }

/* inner pages (placeholders until each page is built) */
.page { padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem); border-bottom: 1px solid var(--hairline); }
.page h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); }
.page p { margin: 1.25rem 0 0; color: var(--soft); }
.myanetherflow-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 4rem; align-items: start; margin-top: clamp(2.5rem, 6vw, 4rem); }
.myanetherflow-intro p { max-width: 30rem; margin-top: 2rem; }
.myanetherflow-cat { width: min(100%, 14.67rem); }
nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }

/* research */
.research { display: grid; gap: 2.5rem 4rem; padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem); border-bottom: 1px solid var(--hairline); }
@media (min-width: 52rem) { .research { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .research .side { position: sticky; top: 2rem; } }
.research .side { margin: 0; }
.research .art { margin: 1.5rem 0 0; }
.research .art img { width: 100%; max-width: 40rem; }
.research h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); }
.research .themes { font-size: clamp(1.4rem, 2.6vw, 1.75rem); line-height: 1.3; margin: 1.5rem 0 0; max-width: 22rem; }
.research .text p { max-width: 34rem; }
.research .lede { margin: 0; color: var(--soft); }
.research h2 { font-weight: 500; font-size: 1.5rem; line-height: 1.2; margin: 3rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--hairline); }
.research .entry { margin-top: 1.5rem; }
.research h3 { font-weight: 500; font-size: 1.125rem; line-height: 1.35; margin: 0; max-width: 34rem; }
.research .entry p { margin: 0.35rem 0 0; }
.research .pubs { margin: 1.5rem 0 0; padding-left: 1.5rem; max-width: 34rem; }
.research .pubs li { margin-bottom: 1rem; padding-left: 0.25rem; }

/* CV */
.cv-page { padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem); }
.cv-page > h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.cv-row { display: grid; grid-template-columns: minmax(9rem, 1fr) minmax(0, 2fr); gap: 1.5rem 3rem; border-top: 1px solid var(--hairline); padding: 1.6rem 0 2.25rem; }
.cv-row:last-child { border-bottom: 1px solid var(--hairline); }
.cv-row h2 { font-weight: 500; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; margin: 0; }
.cv-content { max-width: 38rem; }
.cv-content p { margin: 0 0 0.75rem; }
.cv-content p:last-child { margin-bottom: 0; }
.cv-skills { display: grid; gap: 2rem; }
.cv-skills h3 { font-size: 1.125rem; font-weight: 500; line-height: 1.35; margin: 0 0 0.4rem; }
.cv-skills section p { color: var(--soft); }

/* Dali Forest */
.forest { padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem); }
.forest-heading { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); border-bottom: 1px solid var(--hairline); padding-bottom: 2rem; }
.forest-heading h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); }
.forest-heading img { width: clamp(2.67rem, 6.67vw, 4.67rem); flex: none; }
.forest-stories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3rem 1.5rem; align-items: start; justify-items: center; padding: clamp(3rem, 7vw, 5rem) 0; }
.forest-story { width: min(100%, 14rem); margin: 0; text-align: center; }
.forest-story img { max-height: 16rem; margin: 0 auto; object-fit: contain; }
.forest-story figcaption { margin-top: 1rem; font-size: 1.4rem; }
.forest-story a { display: block; }
.forest-story a:hover + figcaption, .forest-story a:focus-visible + figcaption { text-decoration: underline; text-underline-offset: 5px; }
.forest-credit { border-top: 1px solid var(--hairline); padding-top: 1.5rem; margin: 0; color: var(--soft); font-size: 0.95rem; }

/* footer */
footer { border-top: 1.5px solid var(--ink); padding: 2rem 0 3rem; display: grid; gap: 1.75rem; }
@media (min-width: 40rem) { footer { grid-template-columns: 1fr auto; align-items: end; } }
footer .who { font-size: 1.2rem; margin: 0; }
footer .who span { display: block; color: var(--soft); font-size: 1rem; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
footer ul a:hover { text-decoration: underline; text-underline-offset: 5px; }
footer .copy { color: var(--soft); font-size: 0.95rem; margin: 0; }
@media (min-width: 40rem) { footer .copy { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { nav .note { transition: none; } }

/* hobbies and collections */
.collection-index, .collection { padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem); }
.collection-index h1, .collection h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.hobby-row { display: grid; grid-template-columns: minmax(9rem, 1fr) minmax(0, 2fr); gap: 1.5rem 3rem; border-top: 1px solid var(--hairline); padding: 1.6rem 0 1.8rem; }
.hobby-row:last-child { border-bottom: 1px solid var(--hairline); }
.hobby-row h2 { font-weight: 500; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; margin: 0; }
.hobby-content p { margin: 0; color: var(--soft); }
.hand-link, .more-work summary { font-family: var(--site-font); font-size: 1.55rem; line-height: 1.2; cursor: pointer; }
.hand-link { display: inline-block; margin-top: 0.35rem; }
.hand-link:hover, .back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.back-link { display: inline-block; color: var(--soft); margin-bottom: 1.5rem; }
.hobby-preview { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.hobby-preview img { width: 4.5rem; height: 4.5rem; flex: none; object-fit: cover; }
.collection-heading { border-bottom: 1px solid var(--hairline); margin-bottom: 2rem; }
.collection-heading h1 { margin-bottom: 1.5rem; }
.photo-category { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(0, 3fr); gap: 1.5rem 3rem; border-top: 1px solid var(--hairline); padding: 2rem 0 3rem; }
.photo-category:last-child { border-bottom: 1px solid var(--hairline); }
.photo-category h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; line-height: 1.2; margin: 0; }
.category-content { min-width: 0; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: start; width: 100%; max-width: 35rem; margin-inline: 0; }
.seal-grid { margin-inline: auto; }
.artwork { display: block; width: 100%; border: 0; padding: 0; background: none; color: inherit; cursor: zoom-in; }
.photo-grid .artwork img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.more-work { margin-top: 2rem; }
.more-work summary { display: inline-block; list-style: none; border-bottom: 1px solid var(--ink); }
.more-work summary::-webkit-details-marker { display: none; }
.more-work[open] summary { margin-bottom: 2rem; }
.more-work.has-show-less[open] summary { display: none; }
.more-work .show-less { display: none; border: 0; border-bottom: 1px solid var(--ink); padding: 0; background: none; color: inherit; font: 1.55rem/1.2 var(--site-font); cursor: pointer; }
.more-work.has-show-less[open] .show-less { display: inline-block; margin-top: 2rem; }
.drawing-field { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; padding: 1rem 0; max-width: 54rem; margin-inline: auto; }
.drawing-field .artwork img { width: 100%; aspect-ratio: 1; height: auto; object-fit: contain; }
.drawing-toggle { display: block; margin-top: 2rem; border: 0; border-bottom: 1px solid var(--ink); padding: 0; background: none; color: inherit; font: 1.55rem/1.2 var(--site-font); cursor: pointer; }
.lightbox { box-sizing: border-box; border: 0; padding: 3rem 4.5rem; width: calc(100vw - 2rem); height: calc(100vh - 2rem); max-width: none; max-height: none; overflow: hidden; background: var(--paper); color: var(--ink); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgb(0 0 0 / 82%); }
.lightbox-stage { display: flex; align-items: center; justify-content: center; gap: 0.7rem; max-width: 100%; height: 100%; }
.lightbox img { display: block; max-width: calc(100% - 7.4rem); max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox-close { position: absolute; top: 0; right: 0; width: 2.5rem; height: 2.5rem; border: 0; background: var(--paper); color: var(--ink); font: 2rem/1 var(--site-font); cursor: pointer; }
.lightbox-nav { flex: 0 0 3rem; width: 3rem; height: 5rem; border: 0; padding: 0; background: transparent; color: var(--ink); font: 700 2.7rem/1 var(--site-font); -webkit-text-stroke: 0.6px currentColor; cursor: pointer; }
.lightbox-prev { transform: rotate(-7deg); }
.lightbox-next { transform: rotate(6deg); }
.lightbox-prev:hover, .lightbox-prev:focus-visible { transform: rotate(-11deg) scale(1.08); }
.lightbox-next:hover, .lightbox-next:focus-visible { transform: rotate(10deg) scale(1.08); }
.lightbox-nav:hover, .lightbox-nav:focus-visible, .lightbox-close:hover, .lightbox-close:focus-visible { background: rgb(0 0 0 / 7%); }
@media (max-width: 42rem) {
  .cv-row { grid-template-columns: 1fr; gap: 1rem; }
  .myanetherflow-intro { grid-template-columns: 1fr; }
  .myanetherflow-intro p { margin-top: 0; }
  .myanetherflow-cat { justify-self: end; }
  .forest-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1rem; }
  .hobby-row { grid-template-columns: 1fr; gap: 0.7rem; }
  .photo-category { grid-template-columns: 1fr; gap: 1rem; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 8rem)); }
  .drawing-field { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lightbox { width: 100vw; height: 100vh; padding: 3rem 0.4rem 1rem; }
  .lightbox-stage { gap: 0.2rem; }
  .lightbox img { max-width: calc(100% - 5.4rem); }
  .lightbox-nav { flex-basis: 2.5rem; width: 2.5rem; font-size: 2.35rem; }
}
