/* ============================================
   Chitra Nayak — Art Portfolio
   Editorial, image-forward styling inspired
   by kimbox.com: quiet nav, serif display type,
   generous whitespace, full-bleed imagery.
   ============================================ */

:root {
  --ink: #2b2723;
  --ink-soft: #55504a;
  --paper: #faf7f2;
  --paper-deep: #f2ede4;
  --line: #e3dccf;
  --accent: #b5502f;
  --accent-soft: #c97a52;
  --white: #ffffff;

  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --nav-h: 84px;
  --container: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-weight: 300;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}

/* ---------- Navigation ---------- */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color .45s ease, box-shadow .45s ease, height .35s ease;
  background: transparent;
}

.site-nav.is-solid {
  background: rgba(250, 247, 242, 0.96);
  box-shadow: 0 1px 0 var(--line);
  height: 72px;
}

.site-nav .nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.04em;
  font-weight: 500;
  color: var(--white);
  transition: color .4s ease;
  white-space: nowrap;
}

body.page-interior .nav-brand,
.site-nav.is-solid .nav-brand {
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  padding-bottom: 6px;
  transition: color .4s ease;
}

body.page-interior .nav-links a,
.site-nav.is-solid .nav-links a {
  color: var(--ink-soft);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 1px;
  background: currentColor;
  transition: width .35s ease;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  width: 100%;
}

.nav-links a.is-active {
  color: var(--accent-soft);
}

body.page-interior .nav-links a.is-active,
.site-nav.is-solid .nav-links a.is-active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--white);
  margin: 6px 0;
  transition: background-color .4s ease;
}
body.page-interior .nav-toggle span,
.site-nav.is-solid .nav-toggle span { background: var(--ink); }

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  transform: scale(1.02);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,16,12,0.42) 0%, rgba(20,16,12,0.18) 32%, rgba(20,16,12,0.30) 68%, rgba(20,16,12,0.62) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 0 24px;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 22px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 9vw, 108px);
  line-height: 1;
  margin: 0 0 22px;
  letter-spacing: 0.01em;
}

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 400;
  max-width: 560px;
  margin: 0 auto;
  opacity: 0.94;
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.85;
}

.scroll-cue .line {
  width: 1px;
  height: 34px;
  background: rgba(255,255,255,0.75);
  animation: cue-drop 1.8s ease-in-out infinite;
}

@keyframes cue-drop {
  0% { transform: scaleY(0.2); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0.2); transform-origin: bottom; opacity: 0; }
}

/* ---------- Intro / statement block ---------- */

.statement {
  padding: 130px 0 90px;
  text-align: center;
}

.statement p {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.55;
  color: var(--ink);
  max-width: 820px;
  margin: 0 auto;
  font-weight: 400;
}

.statement .signature {
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Category tiles (home) ---------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 0 4px 4px;
}

.category-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: block;
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1);
}

.category-tile .tile-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,16,12,0) 45%, rgba(20,16,12,0.55) 100%);
  transition: background .4s ease;
}

.category-tile:hover img { transform: scale(1.06); }

.tile-label {
  position: absolute;
  left: 32px;
  bottom: 30px;
  color: var(--white);
  z-index: 2;
}

.tile-label .num {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  opacity: 0.8;
  margin-bottom: 8px;
}

.tile-label .name {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 500;
}

.tile-label .arrow {
  display: inline-block;
  margin-left: 10px;
  transition: transform .35s ease;
}
.category-tile:hover .tile-label .arrow { transform: translateX(8px); }

/* ---------- Page header (interior pages) ---------- */

.page-header {
  padding: calc(var(--nav-h) + 80px) 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 70px;
}

.page-header .eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.page-header h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 64px);
  margin: 0 0 18px;
}

.page-header p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Gallery grid (masonry, true-to-original orientation) ---------- */

.gallery {
  column-count: 3;
  column-gap: 32px;
  padding-bottom: 130px;
}

.gallery-item {
  cursor: pointer;
  background: var(--paper-deep);
  position: relative;
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 32px;
}

.gallery-item .frame {
  overflow: hidden;
  line-height: 0;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}

.gallery-item:hover img { transform: scale(1.03); }

.gallery-item .piece-index {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.gallery-item .piece-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

.gallery-item .piece-index .zoom {
  opacity: 0;
  transition: opacity .3s ease;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.gallery-item:hover .piece-index .zoom { opacity: 1; }

/* Size and availability are edited here but only displayed in the
   full-screen lightbox view, so they're hidden in the grid itself. */
.piece-size,
.piece-availability {
  display: none;
}

/* Landscapes: fewer, panoramic pieces read well in two columns */
.gallery.gallery-wide {
  column-count: 2;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(18, 15, 12, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.lightbox.is-open { display: flex; }

.lightbox-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  max-width: 100%;
  max-height: 100%;
}

.lightbox-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.lightbox-media img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  margin: 0 auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-family: var(--sans);
  opacity: 0.75;
  transition: opacity .25s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

.lightbox-close {
  top: 28px;
  right: 36px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  padding: 12px 18px;
}
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

.lightbox-caption {
  color: var(--white);
  font-family: var(--serif);
  font-size: 20px;
  text-align: center;
}

/* Size and availability sit beside the image, not under it */
.lightbox-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 160px;
  max-width: 220px;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.lightbox-side .meta-size {
  font-size: 15px;
  color: var(--white);
}

.lightbox-side .meta-size:empty,
.lightbox-side .meta-availability:empty {
  display: none;
}

.availability-badge {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
}

.availability-badge.is-available {
  color: #bfe3c2;
  border-color: rgba(191,227,194,0.5);
}

.availability-badge.is-sold {
  color: #e3b3b3;
  border-color: rgba(227,179,179,0.5);
}

.availability-badge.is-unavailable {
  color: rgba(255,255,255,0.6);
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  letter-spacing: 0.18em;
}

@media (max-width: 900px) {
  .lightbox-body {
    flex-direction: column;
    gap: 20px;
  }
  .lightbox-media img { max-height: 60vh; }
  .lightbox-side {
    flex-direction: row;
    align-items: center;
    max-width: 100%;
  }
}

/* ---------- About page ---------- */

.about-section {
  padding: calc(var(--nav-h) + 70px) 0 130px;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
  align-items: center;
}

.about-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo.is-placeholder {
  flex-direction: column;
  gap: 14px;
  color: var(--ink-soft);
  text-align: center;
  padding: 40px;
}
.about-photo.is-placeholder .ph-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--accent-soft);
}
.about-photo.is-placeholder .ph-sub {
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.about-copy .eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.about-copy h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 5vw, 56px);
  margin: 0 0 30px;
}

.about-copy p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0 0 22px;
  font-weight: 300;
}

.about-copy p.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 23px;
  color: var(--ink);
  line-height: 1.5;
}

.about-copy .media-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.media-tags span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.contact-block {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.contact-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.contact-email {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--accent);
  position: relative;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, color .3s ease;
}

.contact-email:hover {
  color: var(--accent-soft);
  border-bottom-color: var(--accent-soft);
}

/* ---------- Hidden pages (Writings / Eatings / Greetings) ---------- */
/* Not linked from the main nav — reachable only by direct URL. */

.hidden-content {
  max-width: 780px;
  padding-bottom: 120px;
}

.toc {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  padding: 32px 36px;
  margin-bottom: 60px;
}

.toc-title {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 1;
}

.toc ol.toc-inline {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.toc li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.5;
}

.toc a {
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.toc a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.essay {
  padding-bottom: 64px;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--line);
}
.essay:last-child { border-bottom: none; }

.essay h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  margin: 0 0 26px;
  line-height: 1.25;
}

.essay p,
.recipe-section p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0 0 20px;
  font-weight: 300;
}

.essay ul {
  margin: 0 0 20px;
  padding-left: 22px;
}
.essay ul li {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.essay strong { color: var(--ink); font-weight: 500; }

.source-note {
  font-size: 13px !important;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 30px !important;
}

.back-to-toc {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Eatings */

.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 20px;
  padding: 0;
  border: none;
}
.pull-quote span {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.recipe-download {
  text-align: center;
  margin-bottom: 50px;
}
.recipe-download a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

.recipe-section {
  margin-bottom: 56px;
}
.recipe-section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 26px;
}
.recipe-section h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin: 28px 0 8px;
}
.recipe-section h4:first-child { margin-top: 0; }

.recipe-signoff {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
  margin-top: 40px;
}

/* Greetings */

.greeting-year {
  margin-bottom: 56px;
}
.greeting-year h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  margin-bottom: 18px;
}
.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--paper-deep);
  border: 1px solid var(--line);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 640px) {
  .toc { padding: 24px; }
  .essay h2 { font-size: 26px; }
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 54px 0;
  text-align: center;
  color: var(--ink-soft);
}

.site-footer .foot-name {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 10px;
}

.site-footer .foot-note {
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .site-nav .nav-inner { padding: 0 24px; }

  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform .4s ease;
    z-index: 600;
    box-shadow: -12px 0 40px rgba(0,0,0,0.15);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { color: var(--ink-soft); font-size: 14px; }
  .nav-links a.is-active { color: var(--accent); }

  .nav-toggle { display: block; z-index: 700; }

  .category-grid { grid-template-columns: 1fr; }
  .gallery { column-count: 2; column-gap: 20px; }
  .gallery-item { margin-bottom: 20px; }
  .gallery.gallery-wide { column-count: 1; }

  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-photo { max-width: 380px; margin: 0 auto; }

  .lightbox { padding: 24px; }
  .lightbox-prev, .lightbox-next { font-size: 24px; padding: 8px 10px; }
}

@media (max-width: 560px) {
  .gallery { column-count: 1; }
  .statement { padding: 90px 0 60px; }
  .page-header { padding-top: calc(var(--nav-h) + 50px); }
}
