/* lolabares.com — ported from the Claude Design prototype (Lola Bares.dc.html).
   Palette: paper oklch(0.965 0.006 75) · ink oklch(0.22 0.01 60) · accent rgb(223,37,40)
   Breakpoints: desktop ≥900px · tablet 620–899px · narrow <620px */

/* ---------- fonts (self-hosted variable woff2, latin subset; JA uses system mincho) ---------- */
@font-face {
  font-family: 'EB Garamond'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/assets/fonts/eb-garamond.woff2') format('woff2');
}
@font-face {
  font-family: 'EB Garamond'; font-style: italic; font-weight: 400 800; font-display: swap;
  src: url('/assets/fonts/eb-garamond-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/assets/fonts/archivo.woff2') format('woff2');
}

/* ---------- base ---------- */
:root {
  --paper: oklch(0.965 0.006 75);
  --paper-dim: oklch(0.945 0.005 75);
  --ink: oklch(0.22 0.01 60);
  --ink-soft: oklch(0.35 0.01 60);
  --muted: oklch(0.55 0.01 60);
  --muted-2: oklch(0.6 0.01 60);
  --muted-3: oklch(0.62 0.01 60);
  --faint: oklch(0.68 0.01 60);
  --line: oklch(0.89 0.008 75);
  --line-soft: oklch(0.91 0.008 75);
  --accent: rgb(223, 37, 40);
  --serif: 'EB Garamond', Georgia, serif;
  --sans: Archivo, 'Helvetica Neue', sans-serif;
}
.lang-ja { --serif: 'EB Garamond', 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP', Georgia, serif; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); }
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--ink);
  font-family: var(--serif);
  min-height: 100vh;
  text-wrap: pretty;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
::selection { background: rgba(223, 37, 40, 0.18); }

@keyframes lbRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbVeil { from { opacity: 1; } to { opacity: 0; } }
@keyframes lbZoom { from { opacity: 0; transform: scale(0.965); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
  font-family: var(--sans); font-size: 12px;
}
.skip:focus { left: 0; color: var(--paper); }

/* ---------- sidebar (desktop) ---------- */
.side {
  position: fixed; top: 0; left: 0; bottom: 0; width: 278px;
  padding: 46px 34px 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid var(--line);
  background: var(--paper);
  z-index: 5;
}
.side-top { display: flex; flex-direction: column; gap: 46px; }
.brand {
  font-family: var(--sans); font-weight: 700; font-size: 21px; line-height: 1.15;
  letter-spacing: 0.09em; text-transform: uppercase;
}
.side-nav { display: flex; flex-direction: column; gap: 13px; }
.side-nav .nav-link {
  font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.055em;
  display: flex; align-items: baseline; gap: 10px;
  transition: color 0.4s ease;
}
.side-nav .nav-link.active { color: var(--accent); }
.nav-rule {
  width: 11px; height: 1px; background: currentColor; opacity: 0;
  transform: translateY(-4px); transition: opacity 0.4s ease;
}
.nav-link.active .nav-rule { opacity: 1; }
.side-bottom { display: flex; flex-direction: column; gap: 22px; }
.side-langs { display: flex; gap: 13px; font-family: var(--sans); font-size: 11px; letter-spacing: 0.1em; }
.lang-link { color: var(--muted); transition: color 0.4s ease; }
.lang-link.active { color: var(--accent); }
.side-ig {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); border-bottom: 1px solid oklch(0.82 0.015 60);
  padding-bottom: 5px; align-self: flex-start;
  transition: color 0.35s ease, border-color 0.35s ease;
}
.side-ig:hover { color: var(--accent); border-color: var(--accent); }
.side-ig .arr, .m-ig .arr { font-size: 12px; }
.signature { width: 104px; height: auto; opacity: 0.8; }
.colophon { font-family: var(--sans); font-size: 10px; letter-spacing: 0.07em; color: var(--faint); line-height: 1.7; }

/* ---------- mobile header + menu ---------- */
.nav-toggle { display: none; }
.m-head {
  display: none;
  position: sticky; top: 0; z-index: 20;
  align-items: center; justify-content: space-between;
  padding: 15px 20px; background: var(--paper); border-bottom: 1px solid var(--line);
}
.m-head .brand { font-size: 15px; }
.menu-btn {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); cursor: pointer;
  padding: 10px; margin: -10px; min-height: 44px; min-width: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}
.menu-btn .when-open { display: none; }
.nav-toggle:checked ~ .m-head .menu-btn .when-closed { display: none; }
.nav-toggle:checked ~ .m-head .menu-btn .when-open { display: inline; }
.m-menu {
  display: none;
  position: fixed; inset: 56px 0 0; z-index: 19;
  background: var(--paper); padding: 24px 20px 28px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  flex-direction: column; justify-content: space-between; gap: 28px;
  animation: lbFade 0.3s ease both;
}
.nav-toggle:checked ~ .m-menu { display: flex; }
.m-nav { display: flex; flex-direction: column; }
.m-nav .nav-link { font-size: 27px; padding: 8px 0; animation: lbRise 0.5s ease both; }
.m-nav .nav-link.active { color: var(--accent); }
.m-menu-foot { display: flex; flex-direction: column; gap: 14px; flex: none; }
.m-langs { display: flex; gap: 22px; font-family: var(--sans); font-size: 13px; letter-spacing: 0.1em; }
.m-langs .lang-link { padding: 10px 0; }
.m-ig {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); align-self: flex-start; min-height: 44px; align-items: center;
}

/* ---------- main ---------- */
.main { margin-left: 278px; padding: 46px 54px 130px; }
.main-home { padding: 0; }

@media (max-width: 899px) {
  .side { display: none; }
  .m-head { display: flex; }
  .main { margin-left: 0; padding: 34px 32px 110px; }
  .main-home { padding: 0; }
}
@media (max-width: 619px) {
  .main { padding: 28px 20px 90px; }
  .main-home { padding: 0; }
}

/* ---------- home ---------- */
.home-feed { position: relative; background: var(--paper-dim); }
.feed-item { display: block; }
.feed-item img { width: 100%; height: auto; }
.veil {
  position: fixed; inset: 0; pointer-events: none; background: var(--paper);
  animation: lbVeil 1.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ---------- work index ---------- */
.series { margin-bottom: 94px; }
.series-head {
  display: flex; align-items: baseline; gap: 16px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.series-head h2 { font-weight: 400; font-size: 27px; line-height: 1.15; margin: 0; }
.series-sub { font-family: var(--sans); font-size: 12px; letter-spacing: 0.05em; color: var(--muted); }
.series-meta { margin-left: auto; font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.1em; color: var(--muted-3); flex: none; }
.series-statement { font-size: 17px; line-height: 1.6; margin: 20px 0 0; max-width: 44em; color: oklch(0.4 0.01 60); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.tile {
  position: relative; display: block; background: var(--paper-dim); overflow: hidden;
  animation: lbRise 0.75s cubic-bezier(0.2, 0, 0, 1) both;
}
.tile img {
  width: 100%; height: 100%; object-fit: contain; object-position: center;
  transition: transform 1.4s cubic-bezier(0.2, 0, 0, 1);
}
.tile:hover img { transform: scale(1.03); }
.tile-empty {
  width: 100%; height: 100%;
  background-image: repeating-linear-gradient(135deg, oklch(0.905 0.009 75) 0 1px, transparent 1px 9px);
}
.tile-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px;
  opacity: 0;
  background: linear-gradient(to top, oklch(0.18 0.01 60 / 0.62) 0%, oklch(0.18 0.01 60 / 0.12) 42%, transparent 70%);
  transition: opacity 0.55s cubic-bezier(0.2, 0, 0, 1);
  color: oklch(0.985 0.004 85);
  display: flex; align-items: flex-end;
}
.tile:hover .tile-overlay, .tile:focus-visible .tile-overlay { opacity: 1; }
.tile-title { font-size: 15.5px; line-height: 1.2; }
.tile-year { font-family: var(--sans); font-size: 10px; letter-spacing: 0.1em; opacity: 0.75; flex: none; margin-left: 10px; }
.tile-overlay { gap: 0; }
.tile-overlay > * { display: inline-block; }

@media (max-width: 899px) {
  .series { margin-bottom: 62px; }
  .series-head h2 { font-size: 22px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 619px) {
  .tiles { grid-template-columns: 1fr; }
}

/* ---------- piece ---------- */
.piece { animation: lbFade 0.6s ease both; }
.back {
  font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.piece-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 54px; margin-top: 30px; align-items: start; }
.piece-images { display: flex; flex-direction: column; gap: 30px; }
.piece-img {
  display: block; width: 100%; background: var(--paper-dim); cursor: zoom-in;
  animation: lbRise 0.8s cubic-bezier(0.2, 0, 0, 1) both;
}
.piece-img img { width: 100%; height: auto; }
.more-label { font-family: var(--sans); font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: oklch(0.64 0.01 60); }
.piece-aside { position: sticky; top: 46px; }
.piece-aside h1 { font-weight: 400; font-size: 44px; line-height: 1.12; margin: 0; }
.piece-sub { font-family: var(--sans); font-size: 13px; line-height: 1.4; letter-spacing: 0.05em; color: var(--muted); margin-top: 10px; }
.facts { margin-top: 34px; }
.fact { display: grid; grid-template-columns: 104px 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid oklch(0.9 0.008 75); }
.fact-label {
  font-family: var(--sans); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-2); padding-top: 4px;
}
.fact-value { font-size: 16.5px; line-height: 1.45; }
.piece-statement { font-size: 16.5px; line-height: 1.62; margin: 28px 0 0; color: oklch(0.38 0.01 60); }
.enquire {
  display: inline-block; margin-top: 32px; padding: 13px 22px;
  border: 1px solid oklch(0.72 0.02 60);
  font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.enquire:hover { background: var(--ink); border-color: var(--ink); color: oklch(0.97 0.006 75); }
.piece-pager {
  display: flex; justify-content: space-between; gap: 24px;
  margin-top: 82px; padding-top: 20px; border-top: 1px solid var(--line);
  font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.06em;
}
.piece-pager a:last-child { text-align: right; }

@media (max-width: 899px) {
  .piece-grid { grid-template-columns: 1fr; }
  .piece-aside { position: static; }
  .piece-aside h1 { font-size: 30px; }
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  background: oklch(0.16 0.008 60 / 0.965);
  display: flex; align-items: center; justify-content: center;
  padding: 52px; cursor: zoom-out;
  animation: lbFade 0.4s cubic-bezier(0.2, 0, 0, 1) both;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  animation: lbZoom 0.55s cubic-bezier(0.2, 0, 0, 1) both;
}
.lightbox button {
  appearance: none; background: none; border: 0; font: inherit; cursor: pointer;
  font-family: var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  color: oklch(0.97 0.004 85 / 0.75); min-height: 44px;
  transition: color 0.3s ease;
}
.lightbox button:hover { color: oklch(0.99 0.004 85); }
.lb-close { position: absolute; top: 18px; right: 20px; padding: 12px; font-size: 11px; }
.lb-nav {
  position: absolute; left: 0; right: 0; bottom: 20px;
  display: flex; align-items: center; justify-content: center; gap: 26px;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.12em; color: oklch(0.97 0.004 85 / 0.7);
}
.lb-nav button { padding: 12px 16px; font-size: 11px; }
.lightbox.single .lb-nav { display: none; }

/* ---------- shows ---------- */
.shows { animation: lbFade 0.6s ease both; }
.shows h1, .collabs h1, .sketchbook h1, .contact h1 { font-weight: 400; font-size: 44px; line-height: 1.1; margin: 0 0 50px; }
.show-list { display: flex; flex-direction: column; max-width: 920px; }
.show-row {
  display: grid; grid-template-columns: 64px 1.3fr 1fr 92px; gap: 8px 26px;
  padding: 22px 0; border-top: 1px solid var(--line); align-items: baseline;
  animation: lbRise 0.7s ease both;
}
.show-year { font-family: var(--sans); font-size: 11px; letter-spacing: 0.1em; color: var(--muted-2); }
.show-title { font-size: 21px; line-height: 1.25; }
.show-venue { font-size: 16px; color: oklch(0.45 0.01 60); }
.show-kind { font-family: var(--sans); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-3); }
.show-art { display: flex; gap: 12px; margin-top: 86px; align-items: flex-start; }
.show-art-item { flex-basis: 0; min-width: 0; background: var(--paper-dim); overflow: hidden; animation: lbFade 0.9s ease both; }
.show-art-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.2, 0, 0, 1); }
.show-art-item:hover img { transform: scale(1.03); }

@media (max-width: 899px) {
  .shows h1, .collabs h1, .sketchbook h1, .contact h1 { font-size: 30px; }
}
@media (max-width: 619px) {
  .show-row { grid-template-columns: 1fr; }
  .show-art { flex-wrap: wrap; }
  .show-art-item { min-width: 100%; }
}

/* ---------- collabs ---------- */
.collabs { animation: lbFade 0.6s ease both; }
.collabs h1 { margin-bottom: 46px; }
.collab-list { display: flex; flex-direction: column; gap: 86px; }
.collab {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 34px; align-items: start;
  animation: lbRise 0.75s cubic-bezier(0.2, 0, 0, 1) both;
}
.collab-media { width: 100%; background: var(--paper-dim); overflow: hidden; }
.collab-media img { width: 100%; height: auto; }
.collab-body h2 { font-weight: 400; font-size: 27px; line-height: 1.15; margin: 0; }
.collab-meta {
  font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted-2); margin-top: 8px;
}
.collab-text { font-size: 17px; line-height: 1.6; margin: 20px 0 0; color: oklch(0.36 0.01 60); max-width: 40em; }
.credits { margin-top: 22px; display: flex; flex-direction: column; gap: 6px; }
.credit { display: flex; gap: 12px; font-size: 15px; color: oklch(0.42 0.01 60); }
.credit-role {
  font-family: var(--sans); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: oklch(0.64 0.01 60); min-width: 138px; padding-top: 3px;
}
@media (max-width: 899px) {
  .collab-list { gap: 58px; }
  .collab { grid-template-columns: 1fr; }
  .collab-body h2 { font-size: 22px; }
}

/* ---------- sketchbook ---------- */
.sketchbook { animation: lbFade 0.6s ease both; }
.sketchbook h1 { margin-bottom: 12px; }
.lead { font-size: 18px; line-height: 1.55; margin: 0 0 46px; max-width: 34em; color: oklch(0.45 0.01 60); }
.sketch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 54px 28px; }
.sketch { animation: lbRise 0.75s cubic-bezier(0.2, 0, 0, 1) both; }
.sketch-cover { width: 100%; aspect-ratio: 4/5; background: var(--paper-dim); overflow: hidden; }
.sketch-cover img { width: 100%; height: 100%; object-fit: cover; }
.sketch-empty {
  width: 100%; aspect-ratio: 4/5;
  background-color: var(--paper-dim);
  background-image: repeating-linear-gradient(135deg, oklch(0.905 0.009 75) 0 1px, transparent 1px 9px);
  display: flex; align-items: flex-end; padding: 12px;
}
.sketch-empty span {
  font-family: var(--sans); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: oklch(0.64 0.01 60);
}
.sketch-title { margin-top: 13px; font-size: 16.5px; }
@media (max-width: 899px) {
  .sketch-grid { grid-template-columns: repeat(2, 1fr); gap: 38px 28px; }
}
@media (max-width: 619px) {
  .sketch-grid { grid-template-columns: 1fr; }
}

/* ---------- bio ---------- */
.bio {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 54px;
  max-width: 1160px; align-items: start;
  animation: lbFade 0.6s ease both;
}
.bio-media { position: sticky; top: 46px; display: flex; flex-direction: column; gap: 14px; }
.bio-media img { width: 100%; height: auto; background: var(--paper-dim); }
.bio-body { max-width: 620px; }
.bio-body h1 { margin: 0 0 10px; }
.bio-sig { width: 300px; max-width: 100%; height: auto; }
.bio-year { font-family: var(--sans); font-size: 11px; letter-spacing: 0.12em; color: oklch(0.58 0.01 60); margin-bottom: 38px; }
.bio-p { font-size: 18.5px; line-height: 1.6; margin: 0 0 20px; color: oklch(0.27 0.01 60); }
.bio-section { margin-top: 48px; }
.bio-section h2 {
  font-family: var(--sans); font-weight: 500; font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: oklch(0.5 0.01 60); margin: 0 0 18px;
}
.bio-row { display: grid; grid-template-columns: 68px 1fr; gap: 18px; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.bio-row-year { font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.08em; color: var(--muted-2); padding-top: 4px; }
.bio-row-text { font-size: 16.5px; line-height: 1.5; }
@media (max-width: 899px) {
  .bio { grid-template-columns: 1fr; }
  .bio-media { position: static; }
  .bio-sig { width: 210px; }
}

/* ---------- contact ---------- */
.contact { max-width: 640px; animation: lbFade 0.6s ease both; }
.contact h1 { margin-bottom: 40px; }
.contact .lead { font-size: 19px; line-height: 1.6; margin: 0 0 44px; color: oklch(0.3 0.01 60); max-width: none; }
.contact-h2 {
  font-family: var(--sans); font-weight: 500; font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: oklch(0.5 0.01 60); margin: 0 0 12px;
}
.gallery-h2 { margin-top: 56px; }
.contact-row {
  display: grid; grid-template-columns: 136px 1fr; gap: 20px; padding: 16px 0;
  border-top: 1px solid var(--line); align-items: baseline;
}
.contact-label {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: oklch(0.58 0.01 60);
}
.contact-link { font-size: 18px; display: inline-flex; align-items: baseline; gap: 9px; justify-self: start; transition: color 0.35s ease; }
.contact-link .arr { font-family: var(--sans); font-size: 12px; }
.contact-value { font-size: 18px; }
.contact-art {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 80px; max-width: 640px; align-items: start;
  animation: lbFade 0.9s ease 0.2s both;
}
.contact-art-item { display: block; aspect-ratio: 3/4; background: var(--paper-dim); overflow: hidden; }
.contact-art-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.2, 0, 0, 1); }
.contact-art-item:hover img { transform: scale(1.03); }
@media (max-width: 619px) {
  .contact-row { grid-template-columns: 1fr; gap: 6px; }
  .contact-art { grid-template-columns: 1fr; }
}
