/* ============================================================
   NICO KRELL — nicokrell.com
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,wght@0,300;1,300&display=swap');

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

/* ============================================================
   THEME VARIABLES
   Default (no attribute) = dark  — landing page
   [data-theme="light"]   = light — all inner pages
   ============================================================ */

:root {
  --serif:     'Newsreader', 'Cormorant Garamond', Georgia, serif;
  --sans:      Helvetica, 'Helvetica Neue', Arial, sans-serif;
  --sidebar-w: 200px;

  /* Dark theme (default) */
  --bg:           #0c0c0b;
  --bg-surface:   #131312;
  --fg:           #e8e4dc;
  --fg-dim:       rgba(232,228,220,0.55);
  --fg-dimmer:    rgba(232,228,220,0.28);
  --rule:         rgba(232,228,220,0.10);
  --accent:       #9c5fa7;

  /* press--bar: inverts relative to the page theme */
  --bar-bg:       #e8e4dc;
  --bar-fg:       #0c0c0b;
  --bar-fg-dim:   rgba(12,12,11,0.40);
  --bar-rule:     rgba(12,12,11,0.12);

  /* ghost mark color */
  --ghost-mark:   rgba(232,228,220,0.07);

  /* mobile sidebar overlay */
  --sidebar-overlay-bg: rgba(12,12,11,0.97);
}

[data-theme="light"] {
  --bg:           #ffffff;
  --bg-surface:   #ffffff;
  --fg:           #333333;
  --fg-dim:       rgba(12,12,11,0.55);
  --fg-dimmer:    rgba(12,12,11,0.32);
  --rule:         rgba(12,12,11,0.10);

  --bar-bg:       #0c0c0b;
  --bar-fg:       #e8e4dc;
  --bar-fg-dim:   rgba(232,228,220,0.45);
  --bar-rule:     rgba(232,228,220,0.12);

  --ghost-mark:   rgba(12,12,11,0.06);

  --sidebar-overlay-bg: rgba(245,244,241,0.97);
}

/* ============================================================
   BASE
   ============================================================ */

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--fg-dim);
  transition: color 0.2s;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

img { display: block; max-width: 100%; }
ul  { list-style: none; }

/* ============================================================
   HEADINGS
   h1 — large serif, for page/show titles
   h2 — medium serif italic, for section titles or subtitles
   h3 — small sans uppercase, for labels and categories
   ============================================================ */

h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13.5px;
  text-transform: uppercase;
  line-height: 1;
  color: var(--fg);
}

h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0;
  color: var(--fg);
}

h3 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  text-transform: uppercase;
  font-style: normal;
  line-height: 1;
  color: var(--fg-dimmer);
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100%;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 2.5rem 1.5rem 2rem;
  text-align: right;
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }

.sidebar--opaque {
  background: var(--bg-surface);
}

.sidebar__brand {
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 400;
  text-transform: uppercase;
  font-weight: bold;
  color: var(--fg);
  opacity: 0.9;
  margin-bottom: 0.0rem;
}

.sidebar__role {
  font-size: 9px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--fg-dimmer);
  margin-bottom: 3rem;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sidebar__nav a {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color 0.2s;
  margin-bottom: 1.3rem;
}
.sidebar__nav a:hover,
.sidebar__nav a.active { color: var(--accent); }

.sidebar__shows {
  display: flex;
  flex-direction: column;
  gap: 0.0rem;
  flex: 1;
}

.sidebar__shows a {
  font-family: var(--sans);
  font-style: italic;
  font-size: 9px;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color 0.2s;
  line-height: 2.3;
}
.sidebar__shows a:hover,
.sidebar__shows a.active { color: var(--accent); }

/* ============================================================
   HAMBURGER
   ============================================================ */

.hamburger {
  display: none;
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--fg-dim);
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.sidebar--mobile-open {
  transform: translateX(0) !important;
  background: var(--sidebar-overlay-bg) !important;
  backdrop-filter: blur(16px);
}

/* ============================================================
   PAGE WRAP
   ============================================================ */

.page-wrap {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  padding: clamp(2rem, 4vw, 5rem) clamp(2rem, 6vw, 5rem);
}

/* ============================================================
   SHOW PAGE — info block
   ============================================================ */

.show-hero {
  width: 100%;
  overflow: hidden;
  margin-bottom: clamp(2rem, 4vw, 4rem);
}
.show-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.show-info {
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: clamp(2rem, 4vw, 5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.show-meta { display: flex; flex-direction: column; gap: 1.5rem; }

.meta-label {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--fg-dimmer);
  display: block;
  margin-bottom: 0.2rem;
}
.meta-value {
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.2;
  color: var(--fg);
}
.meta-value p { margin: 0; }

.show-text p {
  font-size: clamp(9px, 11px, 11px);
  color: var(--fg);
  line-height: 1.2;
  max-width: 90ch;
}
.show-text p + p { margin-top: 1.4rem; }

/* ============================================================
   PRESS QUOTES — three style options

   Usage: add a modifier class to .press-section

     .press-section              Option D — large centered type (default)
     .press-section.press--ghost Option B — giant ghost quotation mark
     .press-section.press--bar   Option E — solid bar (place INSIDE .photo-stream)

   All three use identical HTML inside:
     <div class="press-quotes">
       <div class="press-quote">
         <p class="press-quote__text">…</p>
         <p class="press-quote__source">…</p>
       </div>
     </div>
   ============================================================ */

.press-section { 
  margin-bottom: clamp(2rem, 3vw, 4rem); 
}


.press-label {
  display: block;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--fg-dim);
}

/* ── Option D: large centered type (default) ── */
.press-section .press-quotes {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.press-section .press-quote {
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  width: 100%;
  max-width: 680px;
}
.press-section .press-quote + .press-quote {
  border-top: 1px solid var(--rule);
}
.press-section .press-quote__text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  line-height: 1.45;
  color: var(--fg);
  margin-bottom: 1.2rem;
}
.press-section .press-quote__source {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dimmer);
}

/* ── Option B: ghost quotation mark ── */
.press-section.press--ghost .press-quotes {
  align-items: stretch;
}
.press-section.press--ghost .press-quote {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1.5rem;
  align-items: start;
  text-align: left;
  max-width: none;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}
.press-section.press--ghost .press-quote + .press-quote {
  border-top: 1px solid var(--rule);
}
.press-section.press--ghost .press-quote::before {
  content: '\201C';
  font-family: var(--serif);
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: 0.75;
  color: var(--ghost-mark);
  user-select: none;
  margin-top: 0.1em;
}
.press-section.press--ghost .press-quote__text {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  line-height: 1.55;
  margin-bottom: 0.8rem;
  text-align: left;
}
.press-section.press--ghost .press-quote__source { text-align: left; }

/* ── Option E: solid bar (place inside .photo-stream) ── */
.press-section.press--bar {
  margin-bottom: 0;
  background: var(--bar-bg);
}
.press-section.press--bar .press-label { display: none; }
.press-section.press--bar .press-quotes {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.press-section.press--bar .press-quote {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.2rem, 3vw, 2rem) clamp(1.5rem, 4vw, 3rem);
  max-width: none;
  text-align: left;
}
.press-section.press--bar .press-quote + .press-quote {
  border-top: 1px solid var(--bar-rule);
}
.press-section.press--bar .press-quote__text {
  font-size: clamp(0.9rem, 1.6vw, 1.15rem);
  font-style: italic;
  color: var(--bar-fg);
  line-height: 1.6;
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
}
.press-section.press--bar .press-quote__source {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bar-fg-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   PHOTO STREAM
   ============================================================ */

.photo-stream {
  display: flex;
  flex-direction: column;
  gap: clamp(0.3rem, 0.6vw, 0.6rem);
  margin-bottom: clamp(3rem, 8vw, 7rem);
}

.photo-full { width: 100%; overflow: hidden; }
.photo-full.cinematic img { aspect-ratio: 2.39/1; }
.photo-full.portrait     { max-width: 66%; margin-left: auto; }
.photo-full.portrait img  { aspect-ratio: 3/4; }

.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.3rem, 0.6vw, 0.6rem); }
.photo-pair.weighted-left  { grid-template-columns: 1.6fr 1fr; }
.photo-pair.weighted-right { grid-template-columns: 1fr 1.6fr; }

.photo-trio { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(0.3rem, 0.6vw, 0.6rem); }

.photo-cell { overflow: hidden; background: var(--rule); }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }

.h-landscape { aspect-ratio: 16/10; }
.h-square    { aspect-ratio: 1/1;   }
.h-portrait  { aspect-ratio: 3/4;   }
.h-cinema    { aspect-ratio: 2.39/1;}

/* ============================================================
   FOOTER NAV
   ============================================================ */

.show-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);
  margin-bottom: 3rem;
}
.footer-nav-link { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-nav-link.next { text-align: right; }
.footer-nav-link .fn-dir {
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dimmer);
}
.footer-nav-link .fn-title {
  font-family: var(--sans);
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  color: var(--fg-dim);
  transition: color 0.2s;
}
.footer-nav-link:hover .fn-title { color: var(--accent); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */

/* ============================================================
   ABOUT PAGE
   ============================================================ */

/*
  One width token governs the whole page.
  Change --about-w to adjust everything together.
*/
.about-wrap {
  --about-w: min(680px, 100%);
  width: var(--about-w);
}

.about-wrap h1 {
  font-weight: 600;
  font-size: 13.5px;
  text-transform: uppercase;
  line-height: 1;
  color: var(--fg);
  margin-bottom: 2rem;
}

/* Lead: prominent */
.about-lead {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.about-lead p {
  font-size: 14px;
  color: var(--fg);
  line-height: 1.6;
}
.about-lead p + p { margin-top: 1.2rem; }

/* Credits: recessive */
.about-credits {
  margin-top: 2.5rem;
}

.about-credits p {
  font-size: 11px;
  color: var(--fg-dim);
  line-height: 1.2;
}
.about-credits p + p { margin-top: 1.2rem; }

/* Photo + quote row */
.about-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.about-headshot {
  width: 100%;
  display: block;
}

/* Quote sits in the right column, vertically centered */
.about-quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.about-quote .press-quote__text {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 500;
  font-style: normal;
  line-height: 1.55;
  color: var(--fg);
  margin-bottom: 1.2rem;
}

.about-quote .press-quote__source {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dimmer);
  line-height: 1.2;
}

@media (max-width: 700px) {
  .about-wrap { --about-w: 100%; }
  .about-bottom { grid-template-columns: 1fr; }
  .about-headshot { max-width: 100%; }
}

.about-resume {
  color: var(--fg);
  margin-top: 1.8rem;
  margin-bottom: 2.5rem;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-wrap { width: min(680px, 100%); }

.contact-wrap h1 {
  font-weight: 600;
  font-size: 13.5px;
  text-transform: uppercase;
  line-height: 1;
  color: var(--fg);
  margin-bottom: 2rem;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.8rem;
}
.contact-item .c-label {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dimmer);
}
.contact-item .c-value {
  font-family: var(--sans);
  font-size: 1.1rem;
  color: var(--fg-dim);
  transition: color 0.2s;
}
.contact-item a:hover .c-value { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .show-info { grid-template-columns: 1fr; gap: 2rem; }
  .photo-trio { grid-template-columns: 1fr 1fr; }
  .photo-trio .photo-cell:nth-child(3) { grid-column: span 2; }
}

@media (max-width: 700px) {
  :root { --sidebar-w: 0px; }

  .sidebar {
    left: auto;
    right: 0;
    transform: translateX(100%);
    width: 240px;
    background: var(--sidebar-overlay-bg);
    backdrop-filter: blur(16px);
    transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
    z-index: 150;
  }

  .hamburger { display: flex; }

  .page-wrap { margin-right: 0; margin-left: 0; padding: 4rem 1.25rem 2rem; }

  .photo-pair,
  .photo-pair.weighted-left,
  .photo-pair.weighted-right { grid-template-columns: 1fr; }
  .photo-trio                { grid-template-columns: 1fr; }
  .photo-trio .photo-cell:nth-child(3) { grid-column: span 1; }
  .photo-full.portrait       { max-width: 100%; }

  .show-footer-nav { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
  .footer-nav-link.next { text-align: left; }
}
