/* ============================================================
   Catherine Olien — author site
   Ivory paper · ink · sage. Set entirely in Garamonds, in the
   manner of an art historian's catalogue: plates, captions,
   and the double spiral (after her MA thesis on the Cretan
   double-spiral motif) as the house ornament.
   ============================================================ */

:root {
  --paper: #F7F3EA;
  --paper-deep: #EFE8D8;
  --ink: #211E19;
  --ink-soft: #5C574B;
  --sage: #4F6046;
  --sage-soft: #8C9880;
  --hairline: #DCD3BF;
  --serif-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --serif-body: 'EB Garamond', 'Iowan Old Style', Georgia, serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 1.1875rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--sage); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

.wrap {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 5vw, 48px);
  padding-right: clamp(20px, 5vw, 48px);
}

/* ------------------------------------------------ header */

.site-head { border-bottom: 1px solid var(--hairline); }
.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 0.75rem 2rem;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}
.wordmark {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 1.42rem;
  letter-spacing: 0.045em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--sage); }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.9rem; }
.site-nav a {
  font-family: var(--serif-body);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--sage);
  border-bottom: 1px solid var(--sage-soft);
}

.nav-icons {
  display: inline-flex;
  align-items: center;
  gap: 1.05rem;
  margin-left: 0.55rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--hairline);
}
.nav-icons a { display: inline-flex; color: var(--ink-soft); opacity: 0.85; padding: 0.15rem; border: 0; }
.nav-icons a:hover { color: var(--sage); opacity: 1; }
.nav-icons svg {
  width: 17px; height: 17px; display: block;
  fill: none; stroke: currentColor; stroke-width: 1.45;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ------------------------------------------------ type roles */

.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 1.1rem;
}

h1, h2, h3 { font-family: var(--serif-display); font-weight: 600; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.7rem, 6.5vw, 4.35rem); letter-spacing: 0.005em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.5rem; line-height: 1.25; }

.place-line {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--ink-soft);
  margin: 0.9rem 0 0;
}

.lede { font-size: 1.28rem; line-height: 1.65; }

p { margin: 0 0 1.15em; }

.dropcap::first-letter {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 3.5em;
  float: left;
  line-height: 0.82;
  padding: 0.06em 0.09em 0 0;
  color: var(--sage);
}

/* ------------------------------------------------ links & buttons */

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem 2.2rem; margin-top: 1.9rem; }

.cta-link {
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--sage-soft);
  padding-bottom: 0.28rem;
}
.cta-link::after { content: '\2192'; margin-left: 0.6em; color: var(--sage); }
.cta-link:hover { color: var(--sage); border-bottom-color: var(--sage); }

.btn {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.85rem 1.6rem;
  transition: background-color 140ms ease, color 140ms ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }

/* ------------------------------------------------ sections & ornament */

.section { padding-top: clamp(3.2rem, 7vw, 5.5rem); padding-bottom: clamp(3.2rem, 7vw, 5.5rem); }
.section-tight { padding-top: clamp(2.4rem, 5vw, 3.6rem); padding-bottom: clamp(2.4rem, 5vw, 3.6rem); }

.divider {
  display: flex; align-items: center; gap: 1.4rem;
  max-width: 1080px; margin-left: auto; margin-right: auto;
  padding-left: clamp(20px, 5vw, 48px);
  padding-right: clamp(20px, 5vw, 48px);
}
.divider::before, .divider::after {
  content: ''; flex: 1; border-top: 1px solid var(--hairline);
}
.divider svg { width: 30px; height: 30px; color: var(--sage-soft); flex: none; }
.divider--double svg { width: 64px; height: 28px; }

.section-head { margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head .eyebrow { margin-bottom: 0.8rem; }

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

.hero { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3.2rem, 7vw, 5.5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.2rem, 5vw, 4.5rem);
  align-items: start;
}
.hero-copy { max-width: 34em; }
.hero-copy .lede { margin-top: 1.7rem; }
/* Plate top aligns with the H1, not the eyebrow above it.
   (.hero-grid prefix outranks the later `.plate { margin: 0 }` reset.) */
.hero-grid .hero-plate { margin-top: 2.32rem; }

/* ------------------------------------------------ plates (figures) */

.plate { margin: 0; }
.plate-frame {
  background: var(--paper-deep);
  border: 1px solid var(--hairline);
  padding: clamp(10px, 1.6vw, 16px);
}
.plate-frame img { width: 100%; }
.plate-cap {
  font-style: italic;
  font-size: 0.98rem;
  color: var(--ink-soft);
  text-align: center;
  padding-top: 0.85rem;
  line-height: 1.5;
}
.plate-cap .plate-no { font-style: normal; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.72rem; color: var(--sage); margin-right: 0.7em; }

/* ------------------------------------------------ dated notes list */

.note-list { list-style: none; margin: 0; padding: 0; max-width: 46em; }
.note-list li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1.5rem;
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
  border-top: 1px solid var(--hairline);
}
.note-list li:last-child { border-bottom: 1px solid var(--hairline); }
.note-year {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--sage);
}
.note-body { margin: 0; }

/* ------------------------------------------------ video cards */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(1.6rem, 3.5vw, 2.4rem);
}
.video-card { margin: 0; }
.lite-yt {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--hairline);
  background: var(--ink);
  cursor: pointer;
  overflow: hidden;
}
/* 16:9 spacer — works where aspect-ratio doesn't */
.lite-yt::before { content: ''; display: block; padding-top: 56.25%; }
.lite-yt img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: opacity 160ms ease, transform 400ms ease;
}
.lite-yt:hover img { opacity: 1; transform: scale(1.02); }
.lite-yt .play {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  display: grid; place-items: center;
}
.lite-yt .play span {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(33, 30, 25, 0.78);
  border: 1px solid rgba(247, 243, 234, 0.55);
  display: grid; place-items: center;
  transition: background-color 140ms ease;
}
.lite-yt:hover .play span { background: var(--sage); }
.lite-yt .play svg { width: 20px; height: 20px; fill: var(--paper); margin-left: 3px; }
.lite-yt iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.video-meta { padding-top: 0.9rem; }
.video-kicker {
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sage); margin: 0 0 0.35rem;
}
.video-title {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.3;
  margin: 0;
}
.video-note { font-style: italic; color: var(--ink-soft); font-size: 1rem; margin: 0.35rem 0 0; }

/* ------------------------------------------------ publications */

.pub {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
  padding-top: clamp(2rem, 4.5vw, 3rem);
  padding-bottom: clamp(2rem, 4.5vw, 3rem);
  border-top: 1px solid var(--hairline);
}
.pub:last-of-type { border-bottom: 1px solid var(--hairline); }
.pub-cover { margin: 0; }
.pub-cover img { border: 1px solid var(--hairline); }
.pub h3 { margin-bottom: 0.55rem; font-size: 1.62rem; }
.pub-citation { font-style: italic; color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 1rem; }
.pub-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; margin-top: 1.2rem; }
.pub--text { display: block; max-width: 46em; }

/* ------------------------------------------------ vita */

.vita {
  background: var(--paper-deep);
  border: 1px solid var(--hairline);
  padding: clamp(1.8rem, 4vw, 3rem);
}
.vita-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem 2.6rem;
}
.vita h3 {
  font-family: var(--serif-body);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.9rem;
}
.vita ul { list-style: none; margin: 0; padding: 0; }
.vita li { padding-top: 0.42rem; padding-bottom: 0.42rem; font-size: 1.06rem; line-height: 1.5; }
.vita li strong { font-weight: 600; }
.vita li em { color: var(--ink-soft); }

/* ------------------------------------------------ bands */

.band {
  background: var(--paper-deep);
  border-block: 1px solid var(--hairline);
}
.band-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.6rem 3rem;
  padding-top: clamp(2.6rem, 6vw, 4rem);
  padding-bottom: clamp(2.6rem, 6vw, 4rem);
}
.band-title {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 0.5rem;
}
.band p { margin: 0; max-width: 36em; }

/* ------------------------------------------------ contact */

.contact-email {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 4.5vw, 2.9rem);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.elsewhere { list-style: none; margin: 0; padding: 0; max-width: 44em; }
.elsewhere li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1.5rem;
  padding-top: 1.05rem;
  padding-bottom: 1.05rem;
  border-top: 1px solid var(--hairline);
  align-items: baseline;
}
.elsewhere li:last-child { border-bottom: 1px solid var(--hairline); }
.elsewhere .where {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft);
}

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

.site-foot { margin-top: clamp(3rem, 7vw, 5rem); }
.foot-inner { text-align: center; padding-top: 0; padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.foot-name {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 2.4rem 0 0.3rem;
}
.foot-role { font-style: italic; color: var(--ink-soft); margin: 0 0 1.5rem; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem 2rem; margin-bottom: 1.7rem; }
.foot-links a {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; color: var(--sage);
}
.foot-links a:hover { color: var(--ink); }
.foot-fine { font-size: 0.95rem; color: var(--ink-soft); font-style: italic; margin: 0; }

/* ------------------------------------------------ motion */

@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(14px); animation: rise 700ms cubic-bezier(0.2, 0.6, 0.2, 1) forwards; }
  .rise-1 { animation-delay: 60ms; }
  .rise-2 { animation-delay: 160ms; }
  .rise-3 { animation-delay: 260ms; }
  .rise-4 { animation-delay: 380ms; }
  @keyframes rise { to { opacity: 1; transform: none; } }

  html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.6, 0.2, 1); }
  html.js .reveal.in { opacity: 1; transform: none; }
}

/* ------------------------------------------------ responsive */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .hero-plate { max-width: 460px; margin-top: 0; }
  .band-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 1.125rem; }
  .site-head .wrap { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .site-nav { gap: 0.4rem 1.15rem; }
  .site-nav a { letter-spacing: 0.17em; }
  .nav-icons { padding-left: 1rem; margin-left: 0.1rem; gap: 0.85rem; }
  .note-list li { grid-template-columns: 1fr; gap: 0.15rem; }
  .pub { grid-template-columns: 1fr; }
  .pub-cover { max-width: 220px; }
  .elsewhere li { grid-template-columns: 1fr; gap: 0.2rem; }
}
