/* ============================================================
   artwork.css — Dark artwork detail page
   Link this in artwork/index.html only. It shares the
   @font-face from style.css if both are on the same domain,
   but re-declares it here for standalone use.

   This file does NOT conflict with style.css because:
     - They are loaded on different pages
     - All class names here are prefixed with "art-" or are
       unique to this layout (no .sidebar, .page, .journal, etc.)
   ============================================================ */

/* ---- Font (same file, safe to redeclare) ---- */

@font-face {
  font-family: 'saitamaar';
  src: url('../fonts/Saitamaar-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

/* ---- Tokens ---- */

:root {
  --font-display: 'saitamaar', Helvetica, Arial, sans-serif;
  --font-body:    'saitamaar', Helvetica, Arial, sans-serif;
  --font-mono:    'Courier New', Courier, monospace;

  --dark-bg:      #0a0a0a;
  --dark-surface: #000000;
  --dark-border:  #1a1a1a;
  --dark-text:    #c8c8c8;
  --dark-muted:   #555555;
  --dark-faint:   #3a3a3a;
}

/* ---- Reset ---- */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---- Body ---- */

body {
  background-color: var(--dark-bg);
  color: var(--dark-text);
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.6;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================================
   LEFT SIDEBAR
   Fixed thin bar with vertical Japanese text
   ============================================================ */

.art-sidebar {
  width: 28px;
  min-height: 100vh;
  background-color: var(--dark-surface);
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-right: 1px solid var(--dark-border);
}

/* Up/down scroll hints */
.art-sidebar-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--dark-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  user-select: none;
}

/* Rotated Japanese text — reads bottom-to-top */
.art-sidebar-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--dark-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  max-height: calc(100vh - 80px);
}

/* Bottom menu glyph */
.art-sidebar-menu {
  color: #444;
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: center;
  line-height: 1.2;
}

/* ============================================================
   PAGE WRAPPER  (clears the fixed sidebar)
   ============================================================ */

.art-page-wrapper {
  margin-left: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */

.art-breadcrumb {
  text-align: center;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dark-faint);
  letter-spacing: 0.05em;
  border-bottom: 1px solid #111;
}

.art-breadcrumb a {
  color: var(--dark-faint);
  text-decoration: none;
}

.art-breadcrumb a:hover { color: #888; }

.art-breadcrumb .sep {
  margin: 0 5px;
  color: #2a2a2a;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.art-nav {
  padding: 10px 16px 6px 16px;
  border-bottom: 1px solid #1c1c1c;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Home / back button */
.art-home-btn {
  color: #666;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-right: 6px;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.art-home-btn:hover { color: #bbb; }

.art-home-btn .arrow {
  font-size: 12px;
  font-weight: bold;
  color: var(--dark-muted);
}

/* Primary nav links */
.art-nav-link {
  color: #888;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}

.art-nav-link::before {
  content: "◆";
  font-size: 7px;
  color: var(--dark-muted);
}

.art-nav-link:hover { color: #ddd; }

/* Secondary sub-nav */
.art-nav-sub {
  padding: 4px 16px 8px 16px;
  display: flex;
  gap: 14px;
}

.art-nav-sub-link {
  color: var(--dark-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color 0.15s;
}

.art-nav-sub-link::before {
  content: "♥";
  font-size: 8px;
  color: #444;
}

.art-nav-sub-link:hover { color: #aaa; }

/* ============================================================
   MAIN CONTENT
   ============================================================ */

.art-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 40px 16px;
}

/* ---- Artwork frame with corner labels ---- */

.art-frame {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

/* Top-left: artwork title */
.art-work-title {
  position: absolute;
  top: -18px;
  left: 0;
  font-family: var(--font-body);  /* saitamaar — display label */
  font-size: 10px;
  color: #888;
  letter-spacing: 0.05em;
  white-space: nowrap;
  z-index: 2;
}

/* Bottom-right: date */
.art-work-date {
  position: absolute;
  bottom: -18px;
  right: 0;
  font-family: var(--font-mono);  /* Courier — data/metadata */
  font-size: 10px;
  color: var(--dark-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  z-index: 2;
}

/* The image */
.art-work-image {
  display: block;
  width: 100%;
  filter: grayscale(20%) brightness(0.95);
  border: 1px solid #1e1e1e;
  background-color: #111;
}

/* Crosshatch placeholder — swap for <img> when ready */
.art-work-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #111;
  border: 1px solid #1e1e1e;
  background-image: repeating-linear-gradient(
    45deg,
    #1a1a1a 0px, #1a1a1a 1px,
    transparent 1px, transparent 8px
  );
  position: relative;
}

.art-work-placeholder::after {
  content: "[ artwork ]";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #333;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* ---- Description block ---- */

.art-info {
  width: 100%;
  max-width: 500px;
  margin: 30px auto 0;
}

.art-divider {
  width: 100%;
  border: none;
  border-top: 1px solid #1c1c1c;
  margin-bottom: 12px;
}

/* Small [–] toggle box */
.art-toggle {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid #333;
  color: var(--dark-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  text-align: center;
  line-height: 13px;
  margin-bottom: 8px;
  cursor: pointer;
  user-select: none;
}

.art-description {
  font-family: var(--font-body);  /* saitamaar for readable prose */
  font-size: 11px;
  color: #777;
  line-height: 1.7;
  margin-bottom: 10px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.art-footer {
  width: 100%;
  padding: 16px 20px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 24px;
  margin-top: auto;
}

.art-footer-logo {
  font-size: 18px;
  color: #2a2a2a;
  line-height: 1;
}

.art-footer-text {
  text-align: right;
}

.art-footer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.art-footer-link {
  color: #3a3a3a;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.15s;
}

.art-footer-link:hover { color: #888; }

.art-footer-legal {
  font-family: var(--font-mono);
  font-size: 8px;
  color: #2e2e2e;
  line-height: 1.6;
  text-align: right;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}