/* Nataliya Deleva — nataliyadeleva.com
   Shared design system. Tokens and chrome are identical on every page. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --ink: #14181d;
  --body: #22272e;
  --muted: #424a55;
  --line: #e3e6ea;
  --edge: #c3cad4;
  --panel: #f7f9fb;
  --link: #2f5077;
  --linkh: #21395a;
  --tint: #cfe0f0;
  --accent: #7a1f16;
  --blush: #fbeeec;
  --blushink: #22272e;
  --cream: #faf6ef;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161b;
    --ink: #f1f4f8;
    --body: #e4e9ef;
    --muted: #b4bdc9;
    --line: #2a313a;
    --edge: #3b434e;
    --panel: #191e25;
    --link: #9ec9ee;
    --linkh: #c6def4;
    --tint: #2f4257;
    --accent: #f2ab9f;
    --blush: #2a1c1a;
    --blushink: #efe4e2;
    --cream: #241f18;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); }
a:hover { color: var(--linkh); }
::selection { background: var(--link); color: var(--bg); }

img { max-width: 100%; }
[hidden] { display: none !important; }

/* ---------- Page shell ---------- */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: absolute;
  z-index: 80;
  left: 16px;
  top: 8px;
  transform: translateY(-250%);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  font-size: 14px;
  text-decoration: none;
  transition: transform .15s;
}
.skip-link:focus {
  transform: none;
  outline: 3px solid var(--link);
  outline-offset: 2px;
}

.site-main { flex: 1; }

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--line); }

.site-header__inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}
@media (min-width: 861px) {
  .site-header__inner {
    flex-direction: row;
    gap: 14px 32px;
    align-items: center;
  }
}

.brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.15;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--link); }
.brand:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }

.nav-cluster {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px 18px;
  align-items: center;
  width: 100%;
}
@media (min-width: 861px) {
  .nav-cluster { width: auto; }
}

.menu-wrap { position: relative; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--edge);
  background: var(--bg);
  color: var(--ink);
  padding: 10px 16px;
  cursor: pointer;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.menu-btn:hover { border-color: var(--link); color: var(--link); }
.menu-btn:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.menu-btn__icon { font-size: 15px; line-height: 1; }

.site-nav {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  z-index: 60;
  min-width: 250px;
  max-width: calc(100vw - 48px);
  background: var(--bg);
  border: 1px solid var(--ink);
  box-shadow: 0 16px 34px rgba(20, 24, 29, .16);
  padding: 6px 0;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
}
@media (min-width: 861px) {
  .site-nav { left: auto; right: 0; }
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: stretch;
}
.site-nav__list a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 20px;
  border-left: 2px solid transparent;
  transition: border-left-color .2s ease, padding-left .2s ease;
}
.site-nav__list a:hover {
  color: var(--link);
  border-left-color: var(--link);
  padding-left: 32px;
}
.site-nav__list a:focus-visible { outline: 3px solid var(--link); outline-offset: -3px; }
.site-nav__list a[aria-current="page"] {
  color: var(--link);
  border-bottom: 2px solid var(--link);
}

/* Without JavaScript the disclosure cannot work, so the nav renders as a
   static list and the button that would control it is removed. */
.no-js .menu-btn { display: none; }
.no-js .site-nav[hidden] {
  display: block !important;
  position: static;
  border: 0;
  box-shadow: none;
  padding: 0;
  min-width: 0;
  max-width: none;
}
.no-js .site-nav__list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2px 18px;
  align-items: center;
}
.no-js .site-nav__list a { padding: 6px 0; }
.no-js .site-nav__list a:hover { padding-left: 0; border-left-color: transparent; }

.lang-toggle {
  display: flex;
  border: 1px solid var(--edge);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button {
  border: 0;
  cursor: pointer;
  padding: 7px 14px;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  background: var(--bg);
  color: var(--ink);
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}
.lang-toggle button:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

/* ---------- Content frame ---------- */

.frame {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: clamp(24px, 5vw, 64px);
  padding-right: clamp(24px, 5vw, 64px);
}
.frame--index { max-width: 1000px; }
.frame--top { padding-top: clamp(40px, 6vw, 78px); }
.frame--mid { padding-top: clamp(22px, 3vw, 32px); }
.frame--body { padding-top: clamp(26px, 4vw, 44px); }
.frame--end { padding-bottom: clamp(56px, 7vw, 90px); }

.page-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(35px, calc(46px - 0.8vw), 44px);
  line-height: 1.03;
  margin: 0;
  letter-spacing: -.01em;
}
.page-subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(21px, calc(28px - 0.5vw), 25px);
  line-height: 1.25;
  color: var(--muted);
  margin: 10px 0 0;
}

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(24px, calc(34px - 0.7vw), 30px);
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}

.prose {
  font-size: clamp(17.5px, calc(25px - 0.6vw), 21.5px);
  line-height: 1.74;
  max-width: 58ch;
}
.prose p { margin: 0 0 20px; }
.prose p:last-child { margin-bottom: 0; }
.prose--wide { max-width: 66ch; }

.meta {
  font-size: clamp(15px, calc(19px - 0.35vw), 16.5px);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Index rows (Events, Critique, Other work) ---------- */

.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}
.index-list > li { border-bottom: 1px solid var(--line); }

.index-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
  padding: 20px 0;
  text-decoration: none;
  color: var(--ink);
  border-left: 2px solid transparent;
  transition: border-left-color .25s ease, padding-left .25s ease, color .25s ease;
}
.index-row:hover,
.index-row:focus-visible {
  color: var(--link);
  border-left-color: var(--link);
  padding-left: 14px;
}
.index-row:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }

.index-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(24px, calc(30px - 0.45vw), 26px);
  font-weight: 500;
  line-height: 1.28;
  margin: 0;
}
.index-meta {
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.chip {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 9px;
  border: 1px solid var(--edge);
  color: var(--muted);
}

/* ---------- Bordered card with stacked rows (Events, Other work) ---------- */

.card {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: clamp(22px, 2.6vw, 30px) clamp(20px, 2.4vw, 28px) clamp(24px, 3vw, 32px);
  scroll-margin-top: 24px;
}
.card__keyline {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--link);
  margin: 0 0 14px;
}
.card__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(27px, calc(33px - 0.45vw), 29px);
  font-weight: 600;
  margin: 0 0 20px;
  line-height: 1.18;
  color: var(--ink);
}

.stack-list { list-style: none; margin: 0; padding: 0; }
.stack-list > li {
  border-top: 1px solid var(--line);
  margin: 0 0 16px;
}

.stack-row {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border-left: 2px solid transparent;
  padding: 16px 0 2px;
  transition: border-left-color .25s ease, padding-left .25s ease;
}
a.stack-row:hover,
a.stack-row:focus-visible {
  border-left-color: var(--link);
  padding-left: 14px;
}
a.stack-row:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }

.stack-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  margin: 0 0 6px;
  font-size: clamp(15px, calc(19px - 0.35vw), 16.5px);
  color: var(--muted);
}
.stack-row__kind {
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
}
.stack-row__status {
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--edge);
  padding: 3px 9px;
}
.stack-row__status--upcoming {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.stack-row__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(24px, calc(28px - 0.3vw), 25px);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 5px;
}
.stack-row__title .arrow { font-size: 14px; color: var(--muted); }
.stack-row__where {
  display: block;
  margin: 0;
  font-size: clamp(15px, calc(19px - 0.35vw), 16.5px);
  line-height: 1.65;
  color: var(--muted);
}

/* Jump links above a set of cards */
.jump-nav { margin: 22px 0 0; }
.jump-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}
.jump-nav a {
  display: inline-block;
  white-space: nowrap;
  font-size: clamp(15px, calc(19px - 0.35vw), 16.5px);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--link);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid var(--tint);
  transition: border-color .2s;
}
.jump-nav a:hover { border-color: var(--link); }
.jump-nav a:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(18px, 2.5vw, 30px);
  align-items: start;
}

/* ---------- Panels and quotes ---------- */

.panel {
  background: var(--panel);
  padding: clamp(22px, 3vw, 34px);
}
.panel--blush {
  background: var(--blush);
  color: var(--blushink);
}
.panel--cream { background: var(--cream); }

.pull-quote {
  margin: 0;
  padding: 2px 0 2px 22px;
  border-left: 3px solid var(--link);
}
.pull-quote p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(19px, calc(26px - 0.5vw), 24px);
  line-height: 1.42;
  margin: 0;
  color: var(--ink);
}
.pull-quote footer {
  margin: 10px 0 0;
  font-size: 13.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  cursor: pointer;
}
.btn:hover { background: var(--bg); color: var(--ink); }
.btn:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }

.btn--quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--edge);
}
.btn--quiet:hover { border-color: var(--link); color: var(--link); background: transparent; }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px;
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}
.site-footer__social { display: flex; gap: 24px; }
.site-footer__social a:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
