@import url("fonts.css");

/* ==========================================================================
   marthaparlin.com
   Visual language ported from marthasprague.com (Wix):
   Fahkwang for display + body, Barlow (DIN Next substitute) for navigation,
   full-bleed photography, translucent dark panels, near-black page ground.
   ========================================================================== */

:root {
  --ink:        #05070a;
  --ink-soft:   #0d1119;
  --bar:        rgba(11, 15, 24, 0.92);
  --panel:      rgba(48, 54, 52, 0.78);
  --panel-flat: #2b3130;
  --accent:     #13341f;
  --text:       #f2f3f4;
  --muted:      #a6abb2;
  --rule:       rgba(255, 255, 255, 0.14);

  --nav-h:      96px;
  --measure:    62ch;
  --pad:        clamp(1.25rem, 5vw, 5.5rem);

  --display: "Fahkwang", "Palatino Linotype", Georgia, serif;
  --ui:      "Barlow", "DIN Next", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* height:auto is required alongside max-width — every <img> carries intrinsic
   width/height attributes, and without it the attribute height wins and the
   picture squashes horizontally as the column narrows */
img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: 0.6rem 1rem;
  font-family: var(--ui);
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------------------------------------------------------------- nav ---- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.9rem, 2vw, 1.9rem);
  padding: 0 var(--pad);
  background: linear-gradient(100deg, #0b0f18 0%, #161b26 55%, #0e1220 100%);
  background-color: var(--bar);
  backdrop-filter: saturate(1.2) blur(6px);
}

.nav__home {
  margin-right: auto;
  font-family: var(--ui);
  font-weight: 300;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.nav__home:hover { color: #fff; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.1vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-family: var(--ui);
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.nav__links a:hover { border-bottom-color: rgba(255, 255, 255, 0.55); }
.nav__links a[aria-current="page"] { color: var(--muted); }

.nav__social {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.4rem;
}
.nav__social a {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #fff;
  opacity: 0.88;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.nav__social a:hover { opacity: 1; transform: translateY(-1px); }
.nav__social svg { width: 18px; height: 18px; fill: currentColor; }

/* checkbox-driven mobile menu — no JavaScript */
.nav__toggle { display: none; }
.nav__burger { display: none; }

@media (max-width: 860px) {
  :root { --nav-h: 72px; }

  .nav__burger {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    order: 3;
  }
  .nav__burger span { position: relative; }
  .nav__burger span,
  .nav__burger span::before,
  .nav__burger span::after {
    content: "";
    display: block;
    width: 22px;
    height: 1px;
    background: #fff;
    transition: transform 0.22s ease, background 0.22s ease;
  }
  /* absolutely positioned so the two bars rotate about a shared centre
     into an X rather than a chevron */
  .nav__burger span::before,
  .nav__burger span::after { position: absolute; left: 0; top: 0; }
  .nav__burger span::before { transform: translateY(-7px); }
  .nav__burger span::after  { transform: translateY(7px); }

  .nav__toggle:checked ~ .nav__burger span { background: transparent; }
  .nav__toggle:checked ~ .nav__burger span::before { transform: rotate(45deg); }
  .nav__toggle:checked ~ .nav__burger span::after  { transform: rotate(-45deg); }

  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #0b0f18;
    border-top: 1px solid var(--rule);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
  }
  .nav__toggle:checked ~ .nav__links { max-height: 70vh; }
  .nav__links a {
    display: block;
    padding: 1rem var(--pad);
    font-size: 1rem;
    letter-spacing: 0.16em;
    border-bottom: 1px solid var(--rule);
  }
}

/* --------------------------------------------------------------- hero ---- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  padding: calc(var(--nav-h) + clamp(2rem, 7vh, 5rem)) var(--pad) clamp(3rem, 8vh, 6rem);
  background: #101418 center / cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.1) 38%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

/* both hero photographs are portrait, so on a wide viewport `cover` scales them
   to the full width and the overflow is vertical. Anchor at the top — anything
   other than `top` crops into the subject's head, which is near the top edge
   of both originals. */
.hero--home  { background-image: url("../img/hero-home.jpg");  background-position: center top; }
.hero--about { background-image: url("../img/hero-about.jpg"); background-position: center top; }

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(2rem, 6vw, 5rem);
}

/* the wordmark takes a full row of its own so it never wraps into the subject
   of the photograph; the index panel then drops to the row beneath it */
.hero__titles { flex: 1 1 100%; }

.wordmark {
  margin: 0;
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(2.6rem, 8.2vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.5);
}

.tagline {
  margin: 0.9rem 0 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(0.95rem, 1.9vw, 1.35rem);
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

/* the translucent section index that sits over the home hero */
.hero__index {
  flex: 0 1 20rem;
  margin-left: auto;
  margin-top: clamp(1.5rem, 8vh, 5rem);
  list-style: none;
  padding: 0;
  background: var(--panel);
  backdrop-filter: blur(2px);
}
.hero__index li + li { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.hero__index a {
  display: block;
  padding: 1.1rem 1.6rem;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.15rem, 2.1vw, 1.6rem);
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  transition: background 0.2s ease;
}
.hero__index a:hover { background: rgba(255, 255, 255, 0.09); }
.hero__index a[aria-current="page"] { background: var(--accent); }

/* interior page hero: big title + statement panel. Full viewport height like
   the home hero — a shorter band would crop the portrait to a slit of forehead,
   and it is the full band that matches the source site's framing. */
.hero--page { align-items: flex-start; }

.page-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.5);
}

.statement {
  flex: 0 1 24rem;
  margin: 0 0 0 auto;
  padding: 1.6rem 1.9rem;
  background: rgba(24, 30, 36, 0.78);
  backdrop-filter: blur(2px);
  font-weight: 300;
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  line-height: 1.28;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

/* ------------------------------------------------------------ sections --- */

main { display: block; }

.section {
  padding: clamp(3.5rem, 9vh, 7rem) var(--pad);
}
.section--tight { padding-top: clamp(2rem, 5vh, 3.5rem); }
.section--flush { padding-top: 0; }

/* pages that open on a title band rather than a photo hero still have to clear
   the fixed navigation */
main > .section:first-child,
main > .notice:first-child {
  padding-top: calc(var(--nav-h) + clamp(2rem, 6vh, 4rem));
}

/* the wash behind those title bands, echoing the Wix gradient */
.section--banner {
  background: linear-gradient(105deg, #2f3b28 0%, #14181c 42%, #0a0d12 100%);
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
}

.section__title {
  margin: 0 0 clamp(1.5rem, 4vh, 2.75rem);
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.7rem, 4.2vw, 2.9rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
}
.section__title--center { text-align: center; }

.prose {
  max-width: var(--measure);
  font-weight: 300;
}
.prose p { margin: 0 0 1.15em; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: #fff; text-underline-offset: 4px; }

.lede {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.45;
  color: #fff;
}

.split {
  display: grid;
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--reverse > :first-child { order: 2; }
}

figure { margin: 0; }
figcaption {
  margin-top: 0.7rem;
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--muted);
}

.button,
.prose a.button {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.75rem 1.6rem;
  background: #fff;
  color: #000;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.7vw, 1.15rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.button:hover { background: var(--accent); color: #fff; }

/* ------------------------------------------------------------ schedule --- */

.notice {
  padding: clamp(2.5rem, 7vh, 4.5rem) var(--pad);
  text-align: center;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--rule);
  background: #000;
}

.events {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.event {
  background: var(--ink-soft);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.event img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
}
.event__body { padding: 1.1rem 1.25rem 1.4rem; }
.event__name {
  margin: 0 0 0.5rem;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: 0.015em;
}
.event__meta {
  margin: 0;
  font-family: var(--ui);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------- gallery --- */

.gallery {
  columns: 3 16rem;
  column-gap: clamp(0.75rem, 1.6vw, 1.25rem);
}
.gallery a {
  display: block;
  margin: 0 0 clamp(0.75rem, 1.6vw, 1.25rem);
  break-inside: avoid;
  line-height: 0;
}
.gallery img {
  width: 100%;
  transition: opacity 0.22s ease, transform 0.35s ease;
}
.gallery a:hover img { opacity: 0.82; transform: scale(1.012); }

/* the UA stylesheet gives <dialog> width:fit-content and a small max-width,
   both of which have to be unset for a full-viewport lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: clamp(1rem, 4vw, 3rem);
  border: 0;
  background: rgba(0, 0, 0, 0.94);
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.94); }
.lightbox img {
  max-width: 100%;
  max-height: 88svh;
  width: auto;
  margin: 0 auto;
}
.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: 0;
  color: #fff;
  font-family: var(--ui);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* -------------------------------------------------------------- footer --- */

.footer {
  padding: clamp(2rem, 5vh, 3.25rem) var(--pad);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--ui);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__social { display: flex; gap: 0.9rem; }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; display: block; }

/* --------------------------------------------------------------- misc ---- */

.center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
