:root {
  --paper: #ffffff;
  --ink: #2a2a2a;
  --muted: #6e6e6e;
  --rule: #e4e4e4;
  --accent: #144b4a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Helvetica, Arial, "Helvetica Neue", sans-serif;
  font-size: 15px;
}

body { display: flex; align-items: flex-start; }

/* Sidebar */
.sidebar {
  position: sticky;
  top: 0;
  width: 180px;
  flex-shrink: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.sidebar .kicker { margin: 0 0 1.75rem; line-height: 1.5; }
.sidebar .kicker .name { display: block; font-weight: bold; }

.sidebar nav ul { list-style: none; margin: 0 0 1.75rem; padding: 0; }
.sidebar nav li { margin-bottom: 0.3rem; }
.sidebar nav a { text-decoration: none; color: var(--ink); }
.sidebar nav a:hover { color: var(--accent); }
.sidebar nav a.active { color: var(--accent); text-shadow: 0 0 0.4px currentColor; }
.sidebar .date { display: block; font-size: 0.78rem; color: var(--muted); }

.sidebar .info {
  margin-top: auto;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--accent);
  padding-top: 1rem;
}
.sidebar .info a { display: block; color: var(--ink); text-decoration: none; margin-bottom: 0.3rem; }
.sidebar .info a:hover { color: var(--accent); }
.sidebar .info a.active { color: var(--accent); text-shadow: 0 0 0.4px currentColor; }

/* Main content */
main { flex: 1; min-width: 0; }

.first-roll {
  display: inline-block;
  padding: 2.5rem;
  color: var(--ink);
  text-decoration: none;
}
.first-roll strong { font-weight: bold; }
.first-roll:hover { color: var(--accent); }
main .intro { max-width: 32rem; padding: 2.5rem; line-height: 1.7; }
main .intro a:hover { color: var(--accent); }
main .roll-head { padding: 2.5rem 2.5rem 0 0; }
main .roll-head h1 { font-size: 1.1rem; font-weight: bold; margin: 0 0 0.2rem; }
main .roll-head .meta { font-size: 0.85rem; color: var(--muted); margin: 0; }

.roll { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding-right: 3px; }

.roll img, .roll .plate {
  display: block; width: 100%; height: 100%; object-fit: cover; background: #e2e2e2;
}

.roll .plate {
  aspect-ratio: 3 / 4;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.78rem; text-align: center; padding: 1rem;
}

.roll-foot {
  display: flex; justify-content: space-between;
  padding: 1.25rem 2.5rem 2.5rem 0;
}
.roll-foot a { color: var(--ink); text-decoration: none; }
.roll-foot a:hover { color: var(--accent); }

/* Roll items (clickable, open lightbox) */
.roll-item {
  display: block; width: 100%; height: 100%;
  padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in;
}

/* Lightbox (desktop + mobile) */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: #000;
  z-index: 2000;
  align-items: center; justify-content: center;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 94vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  background: none; border: 0; color: #fff; font-size: 1.6rem;
  cursor: pointer; line-height: 1; padding: 0.5rem; z-index: 2010;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #fff; font-size: 2.4rem;
  line-height: 1; cursor: pointer; padding: 0.6rem 1rem;
  opacity: 0.7; z-index: 2010;
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 0.25rem; }
.lightbox-next { right: 0.25rem; }

/* Scroll lock while mobile menu is open */
html.no-scroll, body.no-scroll { overflow: hidden; height: 100%; }

/* Mobile menu toggle (hidden on desktop) */
.menu-toggle { display: none; }

@media (max-width: 680px) {
  body { flex-direction: column; }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--rule);
  }

  /* Collapsed bar: name + hamburger only */
  .sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .sidebar-top .kicker { margin: 0; line-height: 1.3; }

  .menu-toggle {
    display: block;
    background: none; border: 0;
    font-size: 1.4rem; line-height: 1;
    color: var(--ink); cursor: pointer;
    padding: 0.25rem;
  }

  /* Hidden until menu is opened */
  .sidebar nav, .sidebar .info { display: none; }

  /* Full-screen takeover when open */
  .sidebar.open {
    position: fixed; inset: 0;
    width: 100%; height: 100%;
    z-index: 1500;
    background: var(--paper);
    padding: 1.1rem 1.25rem 2rem;
    overflow-y: auto;
    border-bottom: none;
  }
  .sidebar.open nav,
  .sidebar.open .info { display: block; }
  .sidebar.open nav { margin-top: 2rem; font-size: 1.1rem; }
  .sidebar.open nav li { margin-bottom: 0.8rem; }
  .sidebar.open .info { margin-top: 1.5rem; font-size: 1rem; }

  .roll { grid-template-columns: 1fr; gap: 2px; padding-right: 0; }
  .roll .plate { aspect-ratio: 4 / 3; }

  main .intro, main .roll-head { padding: 1.5rem; }
  .roll-foot { padding: 1rem 1.5rem 1.5rem; }
}
