/* Monika Misra, public site. White wall, photos first, one accent for the current page. */
:root {
  --accent: #b0306a;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --side: 300px;
  --gap: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Jost', 'Futura', 'Century Gothic', 'Avenir Next', system-ui, sans-serif;
  color: var(--ink); background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- left column ---------- */
.side {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--side);
  padding: 36px 28px 28px 32px;
  display: flex; flex-direction: column; gap: 28px;
  overflow-y: auto; background: #fff; z-index: 10;
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: block; font-size: 30px; font-weight: 400; letter-spacing: 0.04em; line-height: 1.1; }
.brand img { display: block; max-width: 100%; max-height: 140px; }
.menu-btn { display: none; }
.tagline { margin: -18px 0 0; font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; }
.navwrap { display: flex; flex-direction: column; gap: 28px; }
.menu ul, .links, .social { list-style: none; margin: 0; padding: 0; }
.menu > ul > li > a {
  display: block; padding: 5px 0;
  font-size: 15px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase;
}
.menu a:hover, .menu a[aria-current], .links a:hover, .links a[aria-current] { color: var(--accent); }
.sub { display: none; padding: 4px 0 8px 10px !important; }
li.open > .sub { display: block; }
.sub a { display: block; padding: 4px 0; font-size: 14px; letter-spacing: 0.14em; }
.links { display: flex; flex-direction: column; gap: 8px; }
.links a { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.social { display: flex; gap: 10px; }
.social a {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff;
}

/* ---------- grids ---------- */
main { margin-left: var(--side); padding: var(--gap) var(--gap) calc(var(--gap) * 3) 0; min-height: 100vh; }
.intro { max-width: 62ch; margin: 20px 0 24px; color: var(--muted); line-height: 1.65; font-size: 16px; }
.intro p { margin: 0 0 0.8em; }
.masonry { columns: 4 240px; column-gap: var(--gap); }
.masonry.js { display: flex; align-items: flex-start; gap: var(--gap); columns: auto; }
.mcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.tile { display: block; break-inside: avoid; margin-bottom: var(--gap); }
.masonry.js .tile { margin-bottom: 0; }
.tile img { display: block; width: 100%; height: auto; background: #f2f2f2; transition: opacity 0.2s; }
.tile:hover img { opacity: 0.88; }
.cap {
  display: block; margin-top: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.tile:hover .cap { color: var(--accent); }

/* ---------- single photo ---------- */
.viewing main { padding-bottom: var(--gap); }
.viewer { margin: 0; height: calc(100vh - var(--gap) * 2); display: flex; flex-direction: column; }
.stage { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; }
.stage .photo { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.zone { position: absolute; top: 0; bottom: 0; width: 33.34%; }
.zone.prev { left: 0; cursor: w-resize; }
.zone.back { left: 33.33%; cursor: zoom-out; }
.zone.next { right: 0; cursor: e-resize; }
.zone:focus-visible { outline-offset: -6px; }
.viewer figcaption { padding-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.mnav { display: none; }
.viewnav { margin-top: auto; display: flex; flex-direction: column; gap: 18px; }
.dots { display: flex; flex-wrap: wrap; gap: 9px 12px; }
.dots a { width: 7px; height: 7px; border-radius: 50%; background: #c9c9c9; position: relative; }
.dots a::after { content: ''; position: absolute; inset: -5px; }
.dots a:hover { background: var(--muted); }
.dots a[aria-current] { background: var(--ink); }
.thumbs { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.thumbs:hover { color: var(--accent); }

/* ---------- text pages ---------- */
.page { max-width: 62ch; padding: 20px 0 40px; line-height: 1.7; font-size: 17px; }
.page h1 { margin: 0 0 20px; font-size: 15px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.page p { margin: 0 0 1em; }
.page a { border-bottom: 1px solid currentColor; }
.contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact a { margin-left: 8px; }

/* ---------- phones and narrow windows ---------- */
@media (max-width: 819px) {
  :root { --gap: 10px; }
  .side { position: sticky; top: 0; bottom: auto; width: auto; padding: 14px 16px; gap: 14px; border-bottom: 1px solid var(--line); overflow: visible; }
  .brand { font-size: 22px; }
  .brand img { max-height: 48px; }
  .tagline { margin: -10px 0 0; font-size: 10px; }
  .menu-btn {
    display: block; min-height: 44px; padding: 0 14px; font: inherit; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
    background: none; border: 1px solid var(--ink); color: var(--ink); cursor: pointer;
  }
  .navwrap { display: none; padding-bottom: 8px; }
  body.menu-open .navwrap { display: flex; }
  .menu > ul > li > a, .sub a { padding: 9px 0; }
  li.open > .sub, .sub { display: block; }
  main { margin-left: 0; padding: var(--gap); }
  .viewnav { display: none; }
  .viewer { height: calc(100svh - 90px); }
  .mnav { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 0; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
  .mnav a { padding: 12px 4px; }
  .mnav span { color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) { .tile img { transition: none; } }
