/* ==========================================================================
   KYOKO — Direction 04: ATELIER JOURNAL (Editorial Monograph & Book Spreads)
   Standalone stylesheet — Alabaster-sage linen, deep forest-ink, Noto Serif
   ========================================================================== */

@font-face {
  font-family: 'Noto Serif Local';
  src: url('../../assets/fonts/noto-serif-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Serif Local';
  src: url('../../assets/fonts/noto-serif-400i.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Serif Local';
  src: url('../../assets/fonts/noto-serif-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope Local';
  src: url('../../assets/fonts/manrope-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --jr-stone: #eceee8;
  --jr-linen: #f7f6f1;
  --jr-forest: #19231f;
  --jr-forest-soft: #26352f;
  --jr-slate: #4c5a53;
  --jr-cinnabar: #a63228;
  --jr-cinnabar-dark: #84251d;
  --jr-rule: #cfd5cc;
  --jr-max: 1240px;
  --jr-gutter: clamp(20px, 5vw, 72px);
  --font-book: 'Noto Serif Local', Georgia, serif;
  --font-ui: 'Manrope Local', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--jr-linen);
  color: var(--jr-forest);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--jr-cinnabar); text-underline-offset: 0.26em; text-decoration-thickness: 1px; }
a:hover { color: var(--jr-cinnabar-dark); }
:focus-visible { outline: 2.5px solid var(--jr-cinnabar); outline-offset: 3px; }

.jr-skip {
  position: absolute; left: 16px; top: -64px; z-index: 300;
  background: var(--jr-forest); color: var(--jr-linen);
  padding: 10px 16px; text-decoration: none;
}
.jr-skip:focus { top: 16px; }

.jr-wrap { max-width: var(--jr-max); margin: 0 auto; padding: 0 var(--jr-gutter); }
.jr-narrow { max-width: 740px; margin: 0 auto; padding: 0 var(--jr-gutter); }

/* ---------- Whisper-Quiet Book-Folio Header ---------- */
.jr-header {
  padding: 26px 0 22px;
}
.jr-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.jr-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--jr-forest);
}
.jr-brand img { width: 38px; height: 38px; object-fit: contain; }
.jr-brand-word {
  font-family: var(--font-book);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.jr-brand-city {
  font-size: 0.85rem;
  color: var(--jr-slate);
  margin-left: 6px;
}

.jr-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
}
.jr-nav a {
  color: var(--jr-forest);
  text-decoration: none;
  font-size: 0.94rem;
  padding: 8px 0;
  position: relative;
}
.jr-nav a[aria-current="page"] {
  font-family: var(--font-book);
  font-style: italic;
  color: var(--jr-cinnabar);
}
.jr-nav a:hover { color: var(--jr-cinnabar); }

.jr-menu-btn {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--jr-rule);
  color: var(--jr-forest);
  font-family: var(--font-book);
  font-style: italic;
  font-size: 0.98rem;
  min-height: 44px;
  padding: 0 18px;
  cursor: pointer;
}
.jr-drawer {
  display: none;
  background: var(--jr-stone);
  border-top: 1px solid var(--jr-rule);
  border-bottom: 1px solid var(--jr-rule);
  padding: 18px var(--jr-gutter) 26px;
  margin-top: 16px;
}
.jr-drawer.is-open { display: block; }
.jr-drawer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.jr-drawer a {
  display: block;
  padding: 12px 0;
  font-family: var(--font-book);
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--jr-forest);
  border-bottom: 1px solid var(--jr-rule);
}
.jr-drawer a[aria-current="page"] { color: var(--jr-cinnabar); font-style: italic; }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-book);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 { font-size: clamp(2.25rem, 4.9vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.55rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.48rem); }
p { margin: 0; }

/* ---------- Asymmetrical Book-Spread Hero ---------- */
.jr-hero {
  padding: clamp(18px, 3vw, 36px) 0 clamp(60px, 8.5vw, 108px);
}
.jr-spread-hero {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: stretch;
}
.jr-margin-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding-top: 8px;
}
.jr-margin-top {
  border-top: 1px solid var(--jr-rule);
  padding-top: 14px;
  font-size: 0.85rem;
  color: var(--jr-slate);
  display: grid;
  gap: 4px;
}
.jr-margin-top strong { color: var(--jr-forest); font-weight: 500; }
.jr-vignette { margin: 0; }
.jr-vignette img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.jr-vignette figcaption {
  margin-top: 8px;
  font-family: var(--font-book);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--jr-slate);
}
.jr-colophon-note {
  border-top: 1px solid var(--jr-rule);
  padding-top: 16px;
  font-size: 0.87rem;
  color: var(--jr-slate);
  display: grid;
  gap: 4px;
}
.jr-colophon-note strong { color: var(--jr-forest); font-weight: 500; }

.jr-feature-col {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.6vw, 28px);
}
.jr-feature-header {
  max-width: 660px;
  display: grid;
  gap: 16px;
}
.jr-lead {
  font-family: var(--font-book);
  font-size: clamp(1.06rem, 1.4vw, 1.22rem);
  color: var(--jr-slate);
  max-width: 52ch;
}
.jr-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 6px;
}
.jr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 24px;
  background: var(--jr-forest);
  color: var(--jr-linen);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid var(--jr-forest);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.jr-btn:hover { background: var(--jr-cinnabar); border-color: var(--jr-cinnabar); color: var(--jr-linen); }
.jr-link-italic {
  font-family: var(--font-book);
  font-style: italic;
  font-size: 1rem;
  color: var(--jr-forest);
  text-decoration: none;
  border-bottom: 1px solid var(--jr-rule);
  padding-bottom: 3px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.jr-link-italic:hover { color: var(--jr-cinnabar); border-bottom-color: var(--jr-cinnabar); }

.jr-hero-diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2.2vw, 24px);
}
.jr-hero-plate { margin: 0; }
.jr-hero-plate img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.jr-hero-plate figcaption {
  margin-top: 9px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--jr-slate);
}

/* ---------- Chapters & Alternating Editorial Magazine Spreads (62/38) ---------- */
.jr-chapter {
  padding: clamp(64px, 9vw, 118px) 0;
  border-top: 1px solid var(--jr-rule);
}
.jr-chapter-stone { background: var(--jr-stone); }
.jr-chapter-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 56px;
  align-items: end;
  margin-bottom: clamp(36px, 5.5vw, 64px);
}
.jr-chapter-head p { color: var(--jr-slate); max-width: 48ch; }

.jr-spreads { display: grid; gap: clamp(48px, 7vw, 88px); }
.jr-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(22px, 3.8vw, 48px);
  align-items: start;
}
.jr-spread.is-flipped {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
}
.jr-stack { display: grid; gap: clamp(22px, 3.5vw, 42px); }

.jr-figure { margin: 0; }
.jr-fig-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--jr-stone);
  cursor: zoom-in;
  overflow: hidden;
}
.jr-fig-btn img {
  width: 100%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.jr-fig-btn:hover img { transform: scale(1.018); }
.jr-figure figcaption {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--jr-slate);
}
.jr-figure figcaption strong {
  font-family: var(--font-book);
  font-weight: 400;
  color: var(--jr-forest);
}
.jr-figure figcaption em {
  font-family: var(--font-book);
  font-style: italic;
}

/* ---------- Artist Editorial Chapters ---------- */
.jr-artist-chapters { display: grid; gap: clamp(36px, 5vw, 56px); }
.jr-artist-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--jr-rule);
}
.jr-artist-row:first-child { border-top: 0; padding-top: 0; }
.jr-artist-id {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.jr-artist-id img { width: 120px; height: 120px; object-fit: cover; }
.jr-artist-role { font-family: var(--font-book); font-style: italic; color: var(--jr-slate); margin-top: 4px; }
.jr-artist-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.jr-artist-thumbs img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Portfolio Masonry Wall & Filters ---------- */
.jr-filters { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 40px; border-bottom: 1px solid var(--jr-rule); padding-bottom: 14px; }
.jr-filter {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--jr-slate);
  font-family: var(--font-ui);
  font-size: 0.94rem;
  min-height: 44px;
  padding: 6px 2px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.jr-filter:hover { color: var(--jr-forest); }
.jr-filter[aria-pressed="true"] {
  font-family: var(--font-book);
  font-style: italic;
  color: var(--jr-cinnabar);
  border-bottom-color: var(--jr-cinnabar);
}

.jr-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 44px) clamp(18px, 2.5vw, 32px);
  align-items: start;
}

/* ---------- Ledger / Pricing / Hours / Contact ---------- */
.jr-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5.5vw, 80px);
  align-items: start;
}
.jr-entry {
  padding: 20px 0;
  border-top: 1px solid var(--jr-rule);
}
.jr-entry:last-of-type { border-bottom: 1px solid var(--jr-rule); }
.jr-entry-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.jr-entry-name { font-family: var(--font-book); font-size: 1.4rem; }
.jr-entry-price { font-family: var(--font-book); font-style: italic; font-size: 1.35rem; color: var(--jr-cinnabar); }
.jr-entry-note { color: var(--jr-slate); font-size: 0.94rem; margin-top: 6px; }

.jr-hours { width: 100%; border-collapse: collapse; margin-top: 14px; }
.jr-hours th, .jr-hours td {
  padding: 11px 0;
  border-bottom: 1px solid var(--jr-rule);
  font-weight: 400;
  text-align: left;
  font-size: 0.95rem;
}
.jr-hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.jr-hours tr.is-closed th, .jr-hours tr.is-closed td { color: var(--jr-slate); }

/* Page Head & Form */
.jr-page-head {
  padding: clamp(40px, 6.5vw, 80px) 0 clamp(28px, 4vw, 44px);
}
.jr-page-head p { font-family: var(--font-book); color: var(--jr-slate); max-width: 56ch; margin-top: 12px; font-size: 1.08rem; }

.jr-form {
  background: var(--jr-stone);
  padding: clamp(24px, 3.8vw, 42px);
  border: 1px solid var(--jr-rule);
}
.jr-notice {
  border-left: 2.5px solid var(--jr-cinnabar);
  background: var(--jr-linen);
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--jr-slate);
  margin: 14px 0 22px;
}
.jr-field { margin-bottom: 16px; }
.jr-field label { display: block; font-size: 0.88rem; color: var(--jr-slate); margin-bottom: 6px; }
.jr-field input, .jr-field select, .jr-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  background: var(--jr-linen);
  border: 1px solid var(--jr-rule);
  color: var(--jr-forest);
  font-family: var(--font-ui);
  font-size: 0.95rem;
}
.jr-field textarea { min-height: 112px; resize: vertical; }
.jr-form-status {
  display: none;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--jr-forest);
  background: var(--jr-linen);
  font-size: 0.9rem;
}
.jr-form-status.is-visible { display: block; }

.jr-prose { display: grid; gap: 22px; }
.jr-prose h2 { font-size: 1.4rem; margin-top: 8px; }
.jr-prose p { color: var(--jr-slate); }

/* ---------- Deep Forest Colophon Footer ---------- */
.jr-footer {
  background: var(--jr-forest);
  color: #dfe4dd;
  padding: clamp(48px, 7vw, 80px) 0 36px;
}
.jr-footer a { color: #f4f5f0; text-decoration: none; }
.jr-footer a:hover { color: #e8968d; text-decoration: underline; }
.jr-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(223, 228, 221, 0.16);
}
.jr-footer h3 { font-family: var(--font-book); font-size: 1.1rem; color: #ffffff; margin-bottom: 12px; }
.jr-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 0.92rem; }
.jr-footer-foot {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 0.84rem;
  color: #aeb8b1;
}

/* ---------- Lightbox ---------- */
.jr-lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(20, 29, 25, 0.94);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
  gap: 16px;
}
.jr-lightbox.is-open { display: flex; }
.jr-lightbox img { max-width: min(92vw, 900px); max-height: calc(100vh - 150px); object-fit: contain; }
.jr-lb-bar {
  width: min(92vw, 900px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: #f4f5f0;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 14px;
}
.jr-lb-cap { font-family: var(--font-book); font-style: italic; font-size: 1rem; }
.jr-lb-btns { display: flex; gap: 8px; }
.jr-lb-btn {
  min-width: 44px; min-height: 44px; padding: 0 14px;
  background: transparent; border: 1px solid rgba(255,255,255,0.35);
  color: #fff; font-family: var(--font-ui); cursor: pointer;
}
.jr-lb-btn:hover { background: #fff; color: var(--jr-forest); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .jr-spread-hero, .jr-chapter-head, .jr-artist-row, .jr-two-col { grid-template-columns: 1fr; }
  .jr-feature-col { order: -1; }
  .jr-margin-col { flex-direction: row; align-items: center; justify-content: flex-start; border-top: 1px solid var(--jr-rule); padding-top: 24px; }
  .jr-margin-top { display: none; }
  .jr-vignette { max-width: 170px; flex-shrink: 0; }
  .jr-colophon-note { border-top: 0; padding-top: 0; }
  .jr-spread, .jr-spread.is-flipped { grid-template-columns: 1fr; }
  .jr-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jr-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .jr-nav { display: none; }
  .jr-menu-btn { display: inline-flex; align-items: center; }
  .jr-hero-diptych { grid-template-columns: 1fr; }
  .jr-margin-col { flex-direction: column; align-items: flex-start; }
  .jr-vignette { max-width: 240px; width: 100%; }
  .jr-gallery-grid, .jr-footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .jr-fig-btn img, .jr-btn { transition: none !important; transform: none !important; }
}
