/* ============================================================
   Akemi Kawanabe Photography — Editorial Light design system
   Palette + type locked in docs/website-brief.md
   ============================================================ */

:root {
  --bg:        #FAFAF8;  /* warm white */
  --ink:       #1A1A1A;  /* near-black */
  --burgundy:  #7B2D3B;  /* brand accent (resting state) */
  --grey:      #8A8A82;  /* warm grey */
  --orange:    #E04A1F;  /* sports accent — only inside the sports gallery */
  --line:      #E6E4DE;  /* hairline borders */
  --accent:    var(--burgundy);  /* swapped to orange within .is-sports */

  --max:       1240px;
  --gut:       clamp(20px, 5vw, 64px);
  --font-head:    'Space Grotesk', system-ui, sans-serif;   /* everything except the corner name */
  --font-display: var(--font-head);                          /* UI labels, nav, buttons */
  --font-body:    var(--font-head);                          /* body copy */
  --font-name:    'Hanken Grotesk', system-ui, sans-serif;  /* the corner name only */
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.07; letter-spacing: -0.02em; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 2px;
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent);
  transition: opacity .2s, transform .2s;
  cursor: pointer;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); opacity: 1; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,248,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand {
  display: inline-flex; align-items: center; gap: 17px;
  font-family: var(--font-name);
  font-weight: 600; font-size: 16px;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.brand-mark { width: 36px; height: 36px; flex: none; color: var(--ink); }
/* optical align: pull the lockup left so the mark's visual edge matches the nav's */
.site-header .brand { margin-left: -3px; }
.brand-mark text { font-family: var(--font-name); font-weight: 700; letter-spacing: -1px; fill: currentColor; }
.site-footer .brand-mark { width: 24px; height: 24px; }
.nav { display: flex; gap: 34px; align-items: center; }
.nav a {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--grey); transition: color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a.nav-book { color: var(--burgundy); }
.nav-toggle { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: clamp(64px, 11vw, 132px) 0 clamp(48px, 7vw, 88px); }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 { font-size: clamp(44px, 8vw, 88px); max-width: 14ch; font-weight: 500; }
.hero .lede { font-size: clamp(17px, 2vw, 21px); color: var(--grey); max-width: 46ch; margin: 26px 0 36px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ---------- generic section ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 4.5vw, 52px); margin: 14px 0 0; }
.section-head p { color: var(--grey); margin-top: 16px; }

/* ---------- two-niche split (home) ---------- */
.split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.niche {
  position: relative; overflow: hidden; border-radius: 4px;
  min-height: 440px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 34px; color: #fff;
}
.niche::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.6)); z-index: 1; }
.niche > * { position: relative; z-index: 2; }
.niche h3 { font-size: 30px; }
.niche p { margin: 8px 0 18px; opacity: .9; font-size: 15px; max-width: 34ch; }
.niche .link { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.niche--boutique { background: linear-gradient(135deg, #7B2D3B, #3a151c); }
.niche--sports   { background: linear-gradient(135deg, #E04A1F, #7a2410); }
.niche--personal { background: linear-gradient(135deg, #8A8A82, #34332e); }
.niche--music-events { background: linear-gradient(135deg, #E5A035, #9A4E10); }

/* ---------- portfolio galleries ---------- */
.gallery-tabs { display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn {
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 12px 24px; border: 1px solid var(--line); border-radius: 2px;
  background: transparent; color: var(--grey); cursor: pointer; transition: all .2s;
}
.tab-btn.is-active { color: #fff; background: var(--ink); border-color: var(--ink); }
.gallery { display: none; }
.gallery.is-active { display: block; animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* sports gallery swaps the accent to electric orange */
.is-sports { --accent: var(--orange); }
.is-sports .tab-btn.is-active { background: var(--orange); border-color: var(--orange); }

/* personal gallery uses the signature warm grey for its dot */
#personal .gallery-head .dot { background: var(--grey); }

/* music & events gallery uses amber-orange for its dot */
#music-events .gallery-head .dot { background: #E5A035; }

.gallery-head { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.gallery-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.gallery-head h2 { font-size: clamp(26px, 4vw, 40px); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.photo {
  position: relative; overflow: hidden; border-radius: 3px;
  aspect-ratio: 3 / 4; background: #efece6; cursor: pointer;
}
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.photo:hover img { transform: scale(1.04); }
/* placeholder tiles when no photos uploaded yet */
.photo--ph {
  display: flex; align-items: center; justify-content: center; cursor: default;
  color: var(--grey); font-family: var(--font-display); font-weight: 600;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: 16px;
  background: repeating-linear-gradient(135deg, #f1eee8, #f1eee8 12px, #ece8e1 12px, #ece8e1 24px);
}
.empty-note { color: var(--grey); font-size: 15px; margin-top: 22px; }
.gallery-prompt {
  color: var(--grey); font-size: 16px;
  padding: 48px 0; text-align: center;
  border: 1px dashed var(--line); border-radius: 4px;
}
.gallery-prompt[hidden] { display: none; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20,18,17,.94); display: none; align-items: center; justify-content: center; padding: 5vw; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 3px; }
.lightbox-close { position: absolute; top: 22px; right: 28px; color: #fff; font-size: 34px; background: none; border: 0; cursor: pointer; line-height: 1; }

/* ---------- about ---------- */
.prose { max-width: 64ch; }
.prose p { margin-bottom: 22px; font-size: 18px; }
.prose .pull { font-family: var(--font-head); font-weight: 500; font-size: clamp(22px, 3vw, 30px); color: var(--accent); line-height: 1.2; margin: 8px 0 30px; }
.prose h3 { font-size: 22px; margin: 36px 0 10px; }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.about-portrait { aspect-ratio: 4/5; border-radius: 4px; background: linear-gradient(135deg, #8A8A82, #4a4a44); display:flex; align-items:flex-end; padding:18px; color:#fff; font-family:var(--font-display); font-size:12px; letter-spacing:.12em; text-transform:uppercase; }
/* real portrait photo: fill the 4:5 frame edge-to-edge, centered */
img.about-portrait { width: 100%; height: auto; padding: 0; background: none; display: block; object-fit: cover; object-position: center 30%; }

/* ---------- form ---------- */
.form-wrap { max-width: 640px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 16px;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 3px;
  background: #fff; color: var(--ink); transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--burgundy); }
.field input.is-error, .field select.is-error, .field textarea.is-error {
  border-color: #D33A2C;
  box-shadow: 0 0 0 2px rgba(211, 58, 44, .14);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .opt { color: var(--grey); font-weight: 400; text-transform: none; letter-spacing: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two-col .field { display: flex; flex-direction: column; }
.two-col .field input, .two-col .field select { flex: 1 0 auto; }
.form-note { color: var(--grey); font-size: 14px; margin-top: 18px; }
.book-note {
  border: 1px solid var(--line); border-left: 3px solid var(--burgundy);
  border-radius: 3px; background: #fff;
  padding: 20px 24px; margin-bottom: 32px;
}
.book-note__tag {
  display: block; font-family: var(--font-display);
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--burgundy); margin-bottom: 8px;
}
.book-note p { font-size: 15px; color: var(--ink); margin: 0; line-height: 1.55; }
.form-success { display: none; padding: 20px; border: 1px solid var(--burgundy); border-radius: 3px; color: var(--burgundy); font-weight: 600; margin-bottom: 24px; }
.reveal:not([hidden]) { animation: fade .35s ease; }

/* ---------- layout utilities (replaces former inline styles) ---------- */
.hero--flush { padding-bottom: 0; }
.h1--16 { max-width: 16ch; }
.h1--20 { max-width: 20ch; }
.section--center { text-align: center; }
.section--tight-top { padding-top: clamp(32px, 5vw, 56px); }
.cta-heading {
  font-size: clamp(28px, 4.5vw, 46px);
  max-width: 18ch;
  margin: 14px auto 28px;
}
.mt-32 { margin-top: 32px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0; margin-top: 40px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer .brand { font-size: 14px; }
.site-footer .tag { color: var(--grey); font-size: 14px; }
.site-footer .links { display: flex; gap: 22px; }
.site-footer .links a { color: var(--grey); font-size: 13px; }
.site-footer .links a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .nav { position: fixed; inset: 74px 0 auto 0; background: var(--bg); flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s; }
  .nav.is-open { transform: none; }
  .nav a { padding: 18px var(--gut); width: 100%; border-top: 1px solid var(--line); font-size: 14px; }
  .nav-toggle { display: block; }
  .split { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
}
