/* Direction A skin for the pages that still use style.css (paintings, drawings, privacy, jp).
   Loaded after style.css. It maps the old tokens onto A's paper, ink and river blue, sets
   everything in IBM Plex Mono, and quiets the old header, titles, cards and footer.
   The homepage uses home.css instead. */
:root {
  --paper: #FBFBF9;
  --ink: #161616;
  --quiet: #5E5E5E;
  --rule: #DEDEDA;
  --river: #24408E;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --bg-base: var(--paper);
  --bg-panel: var(--paper);
  --text-primary: var(--ink);
  --text-muted: var(--quiet);
  --border-light: var(--rule);
  --border-hover: var(--ink);
  --accent-primary: var(--river);
  --accent-secondary: var(--river);
  --accent-ink: var(--river);
  --font-heading: var(--mono);
  --font-artist: var(--mono);
  --font-body: var(--mono);
}
html, body { background: var(--paper); color: var(--ink); font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--river); outline-offset: 3px; }

/* Header: the name, quiet links. Static, like the homepage. */
.header { position: static; background: var(--paper); border-bottom: 0; }
.header-container { max-width: none; padding: 40px 40px 0; align-items: baseline; flex-wrap: wrap; gap: 12px 24px; }
.header-logo-img { display: none; }
.logo-link { gap: 0; }
.logo-text { font-family: var(--mono); font-size: 22px; font-weight: 300; letter-spacing: 0.08em; text-transform: none; color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.nav-link { font-family: var(--mono); font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--quiet); min-height: 44px; display: inline-flex; align-items: center; border-bottom: 1px solid transparent; text-decoration: none; }
.nav-link::after { display: none !important; }
.nav-link:hover { color: var(--river); }
.nav-link.active, .nav-link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--river); }

/* Titles: a quiet label, left-aligned, no markers or rules. */
.section-header { text-align: left; max-width: none; margin: 0 0 40px; }
.section-title { font-family: var(--mono); font-size: 22px; font-weight: 300; letter-spacing: 0.08em; text-transform: none; margin: 0 0 8px; }
.section-title::before, .section-title::after, .section-header::before, .section-header::after,
.teaser-title::before { content: none !important; display: none !important; }
.section-kicker { color: var(--quiet); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; }
.section-kicker::before, .section-kicker::after { content: none; }
.section-desc { color: var(--quiet); font-size: 14px; }

/* Galleries: the work on paper, no cards. */
.art-section .section-container, .section-container { max-width: 1280px; padding: 56px 40px 96px; }
.gallery-grid { gap: 48px 40px; }
.gallery-item { background: transparent; border: 0; padding: 0; }
.gallery-item:hover { border: 0; }
.gallery-item:hover .art-title { color: var(--river); }
.art-info { margin-top: 12px; }
.art-medium { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--quiet); text-transform: none; }
.art-title { font-family: var(--mono); font-size: 16px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); }

/* Viewer */
.lightbox { background: rgba(251, 251, 249, 0.97); }
.lightbox-title { font-family: var(--mono); font-size: 18px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.lightbox-medium { font-family: var(--mono); color: var(--quiet); }
.lightbox-close, .lightbox-nav { border-radius: 0; }

/* Buttons on the Japanese page */
.btn { font-family: var(--mono); border-radius: 0; text-transform: none; letter-spacing: 0; }
.btn::before, .btn::after { content: none; }

/* Footer: quiet line on paper, like the homepage. */
.footer { background: var(--paper); border-top: 1px solid var(--rule); color: var(--quiet); padding: 24px 40px 40px; }
.footer a, .footer p, .copyright { color: var(--quiet); font-size: 12px; }
.footer a:hover { color: var(--river); }
.footer-label::before { content: none; }

@media (max-width: 760px) {
  .header-container { padding: 24px 20px 0; }
  .art-section .section-container, .section-container { padding: 32px 20px 72px; }
  .footer { padding: 24px 20px 40px; }
}

/* Round P1 fixes */
.art-section .section-container, .section-container { max-width: none; }     /* align content with the name above */
.legal-section { padding: 0; }                                               /* the old fixed header needed 140px; this one doesn't */
.legal { max-width: 760px; margin: 0; }
.footer-container { max-width: none; }
.footer a, .footer-links a { min-height: 44px; display: inline-flex; align-items: center; }   /* 44px tap targets */
.footer-label { color: var(--quiet); }                                       /* was white on the old dark footer */
/* Art is visible at rest. The old scroll-in fade could leave works blank after a fast scroll (seen in WebKit). */
.reveal, .reveal.is-visible { opacity: 1 !important; transform: none !important; transition: none !important; }
