@import url("https://use.typekit.net/wij5wwd.css");

/* Change shared sizes and spacing here; every page uses this stylesheet. */
:root {
 --font-body: "merel", Arial, Helvetica, sans-serif;
 --font-heading: "merel", Arial, Helvetica, sans-serif;
 --font-label: "merel", Arial, Helvetica, sans-serif;
 --text-size-increase: 6pt;
 --size-body: calc(1.125rem + var(--text-size-increase));
 --size-small: calc(.875rem + var(--text-size-increase));
 --size-label: calc(.75rem + var(--text-size-increase));
 --size-title: calc(clamp(3rem, 7vw, 6.5rem) + var(--text-size-increase));
 --size-section: calc(clamp(1.75rem, 3vw, 2.5rem) + var(--text-size-increase));
 --size-card: calc(1.5rem + var(--text-size-increase));
 --weight-heading: 400;
 --tracking-heading: -.045em;
 --line-body: 1.65;
 --line-heading: 1.03;
 --page-width: 72rem;
 --page-gutter: clamp(1.25rem, 5vw, 4rem);
 --section-space: clamp(3.5rem, 7vw, 6rem);
 --background: #101110;
 --text: #f1f0e9;
 --muted: #b5b8af;
 --line: #3d4039;
}
/* Optional per-project font styles, with sizes and layout kept consistent:
body[data-project="head58"] { --font-heading: Georgia, serif; }
body[data-project="spiritus-in-speculo"] { --font-heading: Georgia, serif; }
body[data-project="a-bleed-field"] { --font-heading: Georgia, serif; }
*/
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font-family: var(--font-body); font-size: var(--size-body); line-height: var(--line-body); }
a { color: inherit; text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 6px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(100% - var(--page-gutter) * 2, var(--page-width)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -6rem; padding: .7rem 1rem; background: var(--text); color: var(--background); z-index: 5; }
.skip:focus { top: 1rem; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; padding-block: 1.5rem; }
.brand { font-size: var(--size-body); font-weight: 600; text-decoration: none; white-space: nowrap; }
nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: var(--size-small); }
nav a { display: inline-block; padding-block: .5rem; text-decoration: none; color: var(--muted); }
nav a:hover,nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }
.hero { padding-block: var(--section-space); }
.eyebrow { font-family: var(--font-label); font-size: var(--size-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.5rem; }
h1,h2,h3 { font-family: var(--font-heading); font-weight: var(--weight-heading); letter-spacing: var(--tracking-heading); line-height: var(--line-heading); text-wrap: balance; }
h1 { font-size: var(--size-title); margin: 0 0 1.5rem; max-width: 15ch; }
h2 { font-size: var(--size-section); margin: 0 0 1.5rem; }
h3 { font-size: var(--size-card); margin: 0 0 .8rem; }
p { max-width: 68ch; margin: 0 0 1.25rem; }
.lead { font-size: var(--size-card); line-height: 1.4; max-width: 45ch; }
.intro { max-width: 65ch; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button { display: inline-block; padding: .8rem 1.2rem; min-height: 48px; border: 1px solid var(--line); font-size: var(--size-small); text-decoration: none; }
.button.primary { color: var(--background); background: var(--text); border-color: var(--text); }
.button:hover { border-color: var(--text); text-decoration: underline; }
.section { border-top: 1px solid var(--line); padding-block: var(--section-space); scroll-margin-top: 1.5rem; }
.section-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; }
.section-copy p { color: var(--muted); }
.project-list { border-top: 1px solid var(--line); margin-top: 2rem; }
.project-link { display: grid; grid-template-columns: 3rem 1fr 2.5rem; align-items: start; gap: 1.5rem; padding-block: 2rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.project-link:hover h3 { text-decoration: underline; }
.project-link .number { font-size: var(--size-small); color: var(--muted); padding-top: .3rem; }
.project-link p { margin: 0; color: var(--muted); max-width: 48ch; }
.project-link .arrow { font-size: 2rem; line-height: 1; }
.media-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2rem; }
.media-grid.single { grid-template-columns: minmax(0,1fr); max-width: 55rem; }
figure { margin: 0; }
.video { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: #000; display: block; }
figcaption { font-size: var(--size-small); padding-block: 1rem; color: var(--muted); }
.artwork { width: 100%; max-height: 44rem; object-fit: contain; background: #000; border: 1px solid var(--line); }
.details { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2rem; margin-top: 2.5rem; }
.detail { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.detail p { color: var(--muted); }
.contact { font-size: calc(clamp(1.125rem,3vw,2rem) + var(--text-size-increase)); overflow-wrap: anywhere; }
.socials { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.5rem; font-size: var(--size-small); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); padding-block: 2rem; font-size: var(--size-small); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 700px) {
 .header-inner { align-items: flex-start; }
 nav { width: 100%; gap: .25rem 1rem; }
 .section-grid,.media-grid,.details { grid-template-columns: 1fr; gap: 1.75rem; }
 .project-link { grid-template-columns: 1.5rem 1fr 1.5rem; gap: .75rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


/* DISCREET ESSAYS ENTRANCE
   Erin's chosen artwork is stored unchanged in assets/essay-logo.png.
   Change only this URL to use another image. A light backing keeps the original
   black artwork visible on the dark footer. No crop or recoloring is applied.
*/
:root { --essay-logo: url("./essay-logo.png"); --essay-logo-size: 192px; }
.footer-inner { align-items: center; }
.essay-door { display: inline-flex; align-items: center; justify-content: center; width: calc(var(--essay-logo-size) + 16px); height: calc(var(--essay-logo-size) + 16px); flex: 0 0 calc(var(--essay-logo-size) + 16px); text-decoration: none; border-radius: 2px; }
.essay-door-logo { display: block; width: var(--essay-logo-size); height: var(--essay-logo-size); background: #fff var(--essay-logo) center / contain no-repeat; opacity: .72; transition: opacity .18s ease; }
.essay-door:hover .essay-door-logo, .essay-door:focus-visible .essay-door-logo { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .essay-door-logo { transition: none; } }


/* Homepage wordmark and original white PNG, aligned to the introductory copy. */
body[data-project="home"] .home-hero-title {
  --hero-logo-column: clamp(7rem, 24vw, 18rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--hero-logo-column);
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  max-width: 65ch;
  min-height: calc(var(--hero-logo-column) * 874 / 844);
  margin-bottom: 1.5rem;
}
body[data-project="home"] .home-hero-title h1 {
  min-width: 0;
  max-width: none;
  margin: 0;
}
body[data-project="home"] .home-hero-logo {
  display: block;
  width: 88%;
  justify-self: end;
  transform: translateY(.5rem);
  height: auto;
  object-fit: contain;
  background: transparent;
}
@media (max-width: 360px) {
  body[data-project="home"] .home-hero-title {
    --hero-logo-column: 5.5rem;
    gap: .75rem;
  }
}
