/* ------------------------------------------------------------------
   GURMEET KAUR — museum-catalogue register
   One serif (EB Garamond ≈ Caslon). Pure white ground, ink only —
   no accent color: emphasis lives in italics, small caps, hairlines.
   ------------------------------------------------------------------ */

:root {
  --paper: #ffffff;
  --ink: #000000;
  --mute: #6f6f6f;
  --hairline: rgba(0, 0, 0, 0.22);
  --underline: rgba(0, 0, 0, 0.35);
  --serif: "Cormorant Garamond", "Adobe Caslon Pro", "Baskerville", Georgia, serif;
  --pad: clamp(1.4rem, 4vw, 2.6rem);
  --measure: 46rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.62;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-inline: var(--pad);
}

main { flex: 1; width: 100%; max-width: var(--measure); }
body.home main { max-width: 100%; }

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }

em, .work-title { font-style: italic; }

/* the caps voice — dates, roles, captions, section labels */
.caps,
.section-note,
.quiet-list .where,
.venue,
.cat-list .where,
.poem-block .poem-meta,
.contact-form label,
.colophon {
  font-family: var(--serif);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

/* in-text links: hairline underline, solid ink on hover */
p a, .poem a, .quiet-list a {
  text-decoration: underline;
  text-decoration-color: var(--underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: text-decoration-color 0.25s ease;
}
p a:hover, .poem a:hover, .quiet-list a:hover { text-decoration-color: var(--ink); }

/* ------------------------------------------------------------------
   HEADER
   ------------------------------------------------------------------ */
.site-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.9rem 2.5rem;
  padding-block: 1.8rem 0.4rem;
}

.wordmark {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.6rem;
  white-space: nowrap;
}
.site-nav a {
  font-size: clamp(0.95rem, 1.35vw, 1.12rem);
  font-weight: 600;
  line-height: 1.4;
}
.site-nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
.site-nav a[aria-current="page"] { font-style: italic; color: var(--mute); }

.rule {
  border: none;
  border-top: 1px solid var(--hairline);
  margin-block: 1.7rem 0;
}

/* ------------------------------------------------------------------
   HOME — one line beside the installation photograph, bled to the edge
   ------------------------------------------------------------------ */
.home-grid {
  display: grid;
  grid-template-columns: minmax(17rem, 28rem) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
  padding-block: clamp(2.4rem, 5vh, 4rem) 0;
  margin-right: calc(-1 * var(--pad));
}
.home-line {
  position: sticky;
  top: 5rem;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.55;
  font-weight: 500;
  font-style: italic;
}
.home-photo img {
  width: 100%;
  height: min(86svh, 54rem);
  object-fit: cover;
  display: block;
}
.home-photo .credit { margin-top: 0.9rem; padding-right: var(--pad); }

/* ------------------------------------------------------------------
   CONTENT PAGES
   ------------------------------------------------------------------ */
.page { padding-block: 3.8rem 2.4rem; }

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2.8rem;
}

.page p + p { margin-top: 1.25rem; }
.lede {
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  line-height: 1.55;
}

/* about: text column with the portrait alongside — no text wrapping */
main:has(.about-page) { max-width: 62rem; }
.about-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11rem, 17rem);
  gap: clamp(2rem, 4vw, 3.4rem);
  align-items: start;
}
.about-portrait img { width: 100%; height: auto; display: block; }
.about-portrait .credit { margin-top: 0.7rem; }
.credit {
  margin-top: 0.8rem;
  color: var(--mute);
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
}
.credit a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

/* ---- catalogue section labels ---- */
.section-note {
  margin-top: 3.8rem;
  margin-bottom: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--hairline);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.82rem;
}
.page > .section-note:first-of-type,
.page .lede + .section-note { margin-top: 2.6rem; }

/* ---- quiet lists (publications, projects) ---- */
.quiet-list { list-style: none; }
.quiet-list li { padding-block: 0.7rem; }
.quiet-list .t { font-style: italic; }
.quiet-list .where { color: var(--mute); letter-spacing: 0.13em; font-size: 0.68rem; }
.quiet-list .year { color: var(--mute); margin-right: 1.1rem; font-variant-numeric: oldstyle-nums; }

.venue { color: var(--mute); margin-top: -0.7rem; margin-bottom: 1rem; }

.plate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1.9rem;
  max-width: 38rem;
}
.plate-grid img { width: 100%; height: auto; display: block; }

.practice-photo { margin-top: 3.2rem; max-width: 28rem; }
.practice-photo.wide { max-width: 38rem; margin-top: 1.8rem; }
.practice-photo img { width: 100%; height: auto; display: block; }

/* ---- poems hosted on-site: line breaks are kept exactly ---- */
.poem-block { padding-block: 2.8rem 0; }
.poem-block .poem-title { font-size: 1.2rem; font-weight: 700; }
.poem-block .poem-meta { color: var(--mute); margin-top: 0.4rem; }
.poem {
  margin-top: 1.5rem;
  font-size: 1.12rem;
  line-height: 1.85;
  white-space: pre-line;
  max-width: 34ch;
}
.backlink {
  display: inline-block;
  margin-top: 1.7rem;
  font-style: italic;
  color: var(--mute);
}
.backlink:hover { color: var(--ink); }

/* ---- practice: catalogue rows with even rhythm ---- */
.practice .section-note { margin-top: 3rem; }
.cat-list { list-style: none; margin-top: 0.5rem; }
.cat-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding-block: 0.6rem;
}
.cat-list li + li { border-top: 1px solid rgba(0, 0, 0, 0.09); }
.cat-list .t { font-style: italic; }
.cat-list .where { color: var(--mute); }
.practice .creds { margin-top: 1rem; font-size: 0.9rem; }
.page .closing { margin-top: 2.8rem; }

.creds {
  font-size: 0.95rem;
  color: var(--mute);
  max-width: 40rem;
  line-height: 1.9;
}

.contact-intro { max-width: 34rem; font-size: 0.95rem; }

/* ---- contact form (Netlify-ready when deployed) ---- */
.contact-form { margin-top: 2.6rem; max-width: 34rem; display: grid; gap: 1.3rem; }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.contact-form label {
  display: block;
  color: var(--mute);
  margin-bottom: 0.45rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 0;
  padding: 0.6rem 0.75rem;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: none;
  border-color: var(--ink);
}
.contact-form button {
  width: fit-content;
  font-family: var(--serif);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  padding: 0.7rem 2.2rem;
  background: none;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.contact-form button:hover { background: var(--ink); color: var(--paper); }

/* ------------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------------ */
.colophon {
  padding-block: 3.6rem 1.9rem;
  color: var(--mute);
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}
/* ---- quiet motion: elements settle in once, slow and steady ---- */
.fade {
  opacity: 0;
  translate: 0 0.7rem;
  transition: opacity 1.1s ease, translate 1.1s ease;
}
.fade.inview { opacity: 1; translate: 0 0; }
.home-photo { overflow: hidden; }

/* ------------------------------------------------------------------
   PAGE TRANSITIONS — soft cross-fade between pages; the wordmark,
   menu and rule hold still while content changes. Browsers without
   the View Transitions API simply navigate instantly.
   ------------------------------------------------------------------ */
@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.55s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.wordmark { view-transition-name: wordmark; }
.menu-toggle { view-transition-name: menu-toggle; }
.rule { view-transition-name: rule; }
.colophon { view-transition-name: colophon; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* ------------------------------------------------------------------
   SMALL SCREENS
   ------------------------------------------------------------------ */
@media (max-width: 700px) {
  body { font-size: 16px; }
  .page { padding-block: 2.6rem 1.6rem; }
  .home-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-inline: calc(-1 * var(--pad));
  }
  .home-line { position: static; padding-inline: var(--pad); }
  .home-photo img { height: min(66svh, 34rem); }
  .home-photo .credit { padding-inline: var(--pad); }
  .contact-form .row2 { grid-template-columns: 1fr; }
  .site-head { gap: 0.9rem; padding-block: 1.5rem 0.3rem; }
  .site-nav {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 0.45rem 1.7rem;
  }
  .about-page { grid-template-columns: 1fr; }
  .about-portrait { max-width: 20rem; margin-top: 0.6rem; }
}
