/* ============================================
   Photographer site — core stylesheet
   Aesthetic: editorial / gallery publication
   Typography: Cormorant Garamond (display) +
               Inter Tight (UI) + JetBrains Mono (tech)
   ============================================ */

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

:root {
  --font-display: 'Cormorant Garamond', 'Noto Serif JP', serif;
  --font-body: 'Inter Tight', 'Noto Sans JP', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --color-paper: #ffffff;
  --color-ink: #1a1816;              /* near-black with warmth */
  --color-ink-soft: #5a564e;         /* secondary text */
  --color-ink-mute: #a39d8f;         /* tertiary, metadata */
  --color-rule: rgba(26, 24, 22, 0.12);
  --color-rule-strong: rgba(26, 24, 22, 0.35);

  --edge: clamp(1.5rem, 4vw, 3rem);  /* page side margin */
  --rhythm: 1.8;                      /* line-height for body */
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: var(--rhythm);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

/* ---------- Top navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.4rem var(--edge);
  background: var(--color-paper);
  border-bottom: 0.5px solid var(--color-rule);
  mix-blend-mode: normal;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.nav-logo .jp { font-family: var(--font-body); font-size: 11px; color: var(--color-ink-mute); margin-left: 0.5em; letter-spacing: 0.15em; }

.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

.nav-links a {
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a.is-current {
  color: var(--color-ink);
}

.nav-links a.is-current::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 0.5px;
  background: var(--color-ink);
}

.nav-links a:hover { color: var(--color-ink); }

/* ---------- Shared topbar + sidebar (all pages) ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem clamp(1.5rem, 4vw, 3rem);
  background: var(--color-paper);
}
.topbar-left { display: flex; align-items: center; }
.t-name {
  font-size: 18px; font-weight: 400;
  letter-spacing: 0.01em; color: var(--color-ink);
  text-decoration: none;
  cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20'><line x1='15' y1='5' x2='5' y2='15' stroke='black' stroke-width='1.5' stroke-linecap='round'/><polyline points='5,9 5,15 11,15' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round' stroke-linecap='round'/></svg>") 5 15, sw-resize;
}
.t-sep { margin: 0 0.8em; color: var(--color-ink-mute); opacity: 0.5; }
.t-section {
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--color-ink-mute);
}
.topbar-buttons { display: flex; align-items: center; gap: 1rem; }
.btn-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; background: none;
  color: var(--color-ink); transition: opacity 0.3s;
}
.btn-icon:hover { opacity: 0.5; }
.btn-icon svg { width: 20px; height: 20px; }

.sidebar-overlay {
  position: fixed; inset: 0; z-index: 300;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  background: rgba(244,241,234,0.65);
}
.sidebar-overlay.open { opacity: 1; pointer-events: auto; }
.sidebar {
  position: relative; width: 100%; height: 100vh;
  background: none; z-index: 1;
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow-y: auto; align-items: flex-start; justify-content: center;
}
.sidebar-close {
  position: absolute;
  top: clamp(1.2rem, 3vw, 2rem); right: clamp(1.2rem, 3vw, 2rem);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; background: none;
  color: var(--color-ink); transition: opacity 0.3s;
}
.sidebar-close:hover { opacity: 0.4; }
.sidebar-name {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400; color: var(--color-ink);
  margin-bottom: clamp(2rem, 5vh, 4rem);
  padding-left: clamp(2rem, 10vw, 12rem);
}
.sidebar-section { display: block; padding-left: clamp(3rem, 16vw, 18rem); }
.sidebar-links { display: flex; flex-direction: column; align-items: flex-start; }
.sidebar-links a {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 400; color: var(--color-ink); text-decoration: none;
  padding: clamp(0.6rem, 2vh, 1.2rem) 0;
  transition: opacity 0.25s; line-height: 1.15;
}
.sidebar-links a:hover { opacity: 0.4; }

/* ---------- Shared page frame ---------- */
.page {
  padding-top: 5rem;
  min-height: 100vh;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-ink-mute);
}

/* ---------- Footer ---------- */
.site-copyright {
  position: fixed;
  bottom: 1.4rem;
  left: clamp(1.5rem, 4vw, 3rem);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--color-ink-mute);
  z-index: 50;
  line-height: 1.6;
  pointer-events: none;
}

/* ---------- Reveal animation (used everywhere) ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rise {
  opacity: 0;
  animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.rise-1 { animation-delay: 0.1s; }
.rise-2 { animation-delay: 0.3s; }
.rise-3 { animation-delay: 0.5s; }
.rise-4 { animation-delay: 0.7s; }
.rise-5 { animation-delay: 0.9s; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav-links { gap: 1rem; font-size: 10px; }
  .nav-logo .jp { display: none; }
}
