/* tanso.biz — Victorian-ornate carbon catalog */

:root {
  --mahogany: #1a1414;
  --parchment: #f0e8d8;
  --aurora-pink: #d47aa0;
  --aurora-blue: #7aa0d4;
  --gold-orn: #c4a040;
  --ink-deep: #2a1e18;
  --velvet-red: #6a2a2a;
}

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

html, body {
  background: var(--parchment);
  color: var(--ink-deep);
  font-family: "Crimson Text", Georgia, serif;
  font-weight: 400;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.85;
}

@keyframes drawIn {
  to { stroke-dashoffset: 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes auroraShift {
  0% { background-position: 0% 0%; }
  100% { background-position: 0% 200%; }
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: var(--mahogany);
  color: var(--parchment);
  padding: 28px 24px 28px 28px;
  overflow-y: auto;
  z-index: 10;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
}

.sidebar-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.frame-rect, .frame-curve, .frame-rosette {
  stroke-dasharray: 4000;
  stroke-dashoffset: 4000;
  animation: drawIn 2.6s ease-out forwards;
}

.frame-curve { animation-delay: 0.6s; }
.frame-rosette { animation-delay: 1.2s; }

.sidebar-content {
  position: relative;
  z-index: 2;
  padding: 56px 16px 40px;
  text-align: center;
}

.sidebar-overline {
  font-family: "Courier Prime", monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold-orn);
  margin-bottom: 16px;
}

.sidebar-title {
  font-family: "Courier Prime", monospace;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: var(--parchment);
  margin-bottom: 16px;
}

.sidebar-title .amp {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
  color: var(--gold-orn);
  font-size: 38px;
  display: inline-block;
  padding: 4px 0;
}

.sidebar-sub {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 13px;
  color: var(--aurora-pink);
  line-height: 1.5;
  margin-bottom: 28px;
  padding: 0 4px;
}

.sidebar-divider {
  height: 1px;
  margin: 24px 12px;
  background: linear-gradient(90deg, transparent 0%, var(--aurora-pink) 30%, var(--gold-orn) 50%, var(--aurora-blue) 70%, transparent 100%);
  opacity: 0.7;
}

.sidebar-nav { text-align: left; padding: 0 12px; }

.nav-label {
  font-family: "Courier Prime", monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold-orn);
  margin-bottom: 14px;
  text-align: center;
}

.nav-list {
  list-style: none;
}

.nav-list li {
  margin-bottom: 10px;
}

.nav-link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  color: var(--parchment);
  font-family: "Crimson Text", serif;
  font-size: 15px;
  padding: 8px 10px;
  transition: transform 220ms ease, text-shadow 220ms ease, color 220ms ease, background-color 220ms ease;
  border: 1px solid transparent;
}

.nav-link:hover {
  transform: scale(1.05);
  text-shadow: 0 0 8px rgba(196, 160, 64, 0.5);
  color: var(--gold-orn);
  border-color: rgba(196, 160, 64, 0.25);
}

.nav-link.active {
  color: var(--gold-orn);
  border-color: var(--gold-orn);
  background: rgba(196, 160, 64, 0.06);
}

.numeral {
  font-family: "Courier Prime", monospace;
  font-weight: 700;
  font-size: 13px;
  color: var(--gold-orn);
  min-width: 28px;
}

.link-text {
  font-style: italic;
  flex: 1;
}

.sidebar-mark {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 12px;
  color: var(--aurora-blue);
  margin-top: 28px;
  text-align: center;
  line-height: 1.6;
}

.aurora-edge {
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--aurora-pink) 0%, var(--gold-orn) 50%, var(--aurora-blue) 100%);
  background-size: 100% 200%;
  animation: auroraShift 12s ease-in-out infinite alternate;
}

/* MAIN CATALOG */
.catalog {
  margin-left: 280px;
  padding: clamp(40px, 6vw, 96px) clamp(28px, 6vw, 96px);
  max-width: 920px;
  background: var(--parchment);
}

.entry {
  margin-bottom: clamp(64px, 8vw, 112px);
  opacity: 0;
  animation: fadeUp 0.9s ease-out forwards;
}

.entry:nth-of-type(1) { animation-delay: 0.4s; }
.entry:nth-of-type(2) { animation-delay: 0.6s; }
.entry:nth-of-type(3) { animation-delay: 0.8s; }
.entry:nth-of-type(4) { animation-delay: 1.0s; }
.entry:nth-of-type(5) { animation-delay: 1.2s; }
.entry:nth-of-type(6) { animation-delay: 1.4s; }

.entry-header {
  text-align: center;
  margin-bottom: 32px;
}

.entry-numeral {
  font-family: "Courier Prime", monospace;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--gold-orn);
  margin-bottom: 8px;
}

.entry-title {
  font-family: "Courier Prime", monospace;
  font-weight: 700;
  font-size: clamp(24px, 3.5vw, 44px);
  letter-spacing: 0.08em;
  color: var(--velvet-red);
  margin-bottom: 18px;
}

.ornament {
  display: block;
  margin: 0 auto;
  width: 240px;
  height: 24px;
}

.entry-lead {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 28px);
  color: var(--ink-deep);
  margin-bottom: 24px;
  text-align: center;
  line-height: 1.4;
}

.entry p {
  margin-bottom: 18px;
  text-align: justify;
}

.entry em {
  color: var(--velvet-red);
  font-style: italic;
}

.pull-quote {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--velvet-red);
  border-top: 1px solid var(--gold-orn);
  border-bottom: 1px solid var(--gold-orn);
  padding: 24px 32px;
  margin: 32px clamp(0px, 4vw, 48px);
  text-align: center;
  line-height: 1.5;
  background: linear-gradient(135deg, transparent 0%, rgba(212, 122, 160, 0.04) 50%, transparent 100%);
}

.spec-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 24px;
  row-gap: 12px;
  margin: 24px 0;
  padding: 20px 24px;
  border: 1px solid var(--gold-orn);
  background: rgba(196, 160, 64, 0.05);
}

.spec-list dt {
  font-family: "Courier Prime", monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--velvet-red);
  text-transform: uppercase;
}

.spec-list dd {
  font-family: "Crimson Text", serif;
  font-style: italic;
  color: var(--ink-deep);
}

.catalog-list {
  list-style: none;
  margin: 24px 0;
}

.catalog-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(196, 160, 64, 0.4);
}

.catalog-list li:last-child { border-bottom: none; }

.cat-num {
  font-family: "Courier Prime", monospace;
  font-weight: 700;
  color: var(--gold-orn);
  font-size: 13px;
  letter-spacing: 0.1em;
  grid-row: 1 / span 2;
  align-self: center;
}

.cat-title {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink-deep);
}

.cat-note {
  font-size: 14px;
  font-style: italic;
  color: var(--ink-deep);
  opacity: 0.85;
}

.colophon-end {
  text-align: center;
  font-family: "Courier Prime", monospace;
  letter-spacing: 0.3em;
  color: var(--gold-orn);
  margin-top: 24px;
}

@media (max-width: 880px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    box-shadow: none;
  }
  .catalog {
    margin-left: 0;
  }
  .sidebar-content { padding: 32px 16px; }
  .aurora-edge {
    width: 100%;
    height: 2px;
    bottom: 0;
    top: auto;
    background: linear-gradient(90deg, var(--aurora-pink) 0%, var(--gold-orn) 50%, var(--aurora-blue) 100%);
  }
}
