/* ── Mascot ─────────────────────────────────────────── */
.mascot-icon {
    display: block;
    height: 1.6em;
    width: auto;
    margin-left: -1em;
    margin-top: -0.8em;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mascot-icon:hover {
  transform: rotate(-8deg) scale(1.08);
  opacity: 1;
}

/* ── "Hi, I'm" — superscript to upper-left of title ─── */
h1.title { padding-top: 1.7rem; }
#content{padding-bottom: 0;}
.title-sticky-wrap{ position: unset; }
.outline-text-2{ padding-top:3.15rem; }

.title-hi {
  position: absolute;
  top: 1.85rem;
  left: -3.35em;
  font-family: var(--body-serif);
  font-size: 0.82rem;
  font-weight: normal;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Tagline links ───────────────────────────────────── */
.about-tagline {
  font-family: var(--titling);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.about-tagline a {
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.18s;
}

.about-tagline a:hover { opacity: 0.62; }

.tl-pipe {
  color: var(--text-faint);
  opacity: 0.35;
  margin: 0 0.45em;
  user-select: none;
}

/* ── Board section ──────────────────────────────────── */
#board-section {
  max-width: calc(var(--content-width) + 6rem);
  margin: 0 auto;
  padding: 0 3rem 5rem;
  padding-bottom: 0;
}

.board-label {
  font-family: var(--titling);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--text-faint);
  opacity: 0.45;
  margin-bottom: 0.7rem;
}

/* Board rectangle */
#board-container {
  width: 100%;
  height: 420px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-card) 75%, var(--bg));
  box-shadow:
    0 2px 20px rgba(0,0,0,0.14),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

/* Subtle inner frame */
#board-container::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid var(--border);
  border-radius: 2px;
  pointer-events: none;
  opacity: 0.38;
  z-index: 1;
}

#board-container svg {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

/* ── Tag filter strip ────────────────────────────────── */
#tag-filter-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

#tag-filter-wrap::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(to right, transparent, var(--bg));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

#tag-filter-wrap.overflows::after { opacity: 1; }

#tag-filter-panel {
  display: flex;
  flex-direction: row;
  gap: 0.28rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.15rem 0.1rem 0.3rem;
}

#tag-filter-panel::-webkit-scrollbar { display: none; }

.filter-chip {
  font-family: var(--titling);
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 3px 8px 2px;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--text-faint);
  cursor: pointer;
  transition: color 0.16s, border-color 0.16s, background 0.16s;
  user-select: none;
}

.filter-chip:hover { color: var(--text-muted); }

.filter-chip.active {
  color: var(--bg);
  background: var(--chip-clr, var(--accent));
  border-color: transparent;
}

/* ── Timeline ────────────────────────────────────────── */
#board-timeline {
  margin-top: 1.4rem;
}

.tl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.tl-title-lbl {
  font-family: var(--titling);
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--text-faint);
  opacity: 0.45;
}

#tl-reset, #tl-toggle {
  font-family: var(--titling);
  font-size: 0.48rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 2px 8px 1px;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  user-select: none;
}

#tl-reset:hover, #tl-toggle:hover { color: var(--text-muted); }

/* Scroll wrapper — fade at right edge when scrollable */
.tl-scroll-wrap {
  position: relative;
  overflow: hidden;
}

.tl-scroll-wrap::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 6px;
  width: 48px;
  background: linear-gradient(to right, transparent, var(--bg));
  pointer-events: none;
  transition: opacity 0.2s;
  opacity: 0;
}

.tl-scroll-wrap.overflows::after { opacity: 1; }

.tl-scroll {
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tl-scroll::-webkit-scrollbar { display: none; }

.tl-track {
  margin-top:8px;
  position: relative;
  height: 72px;
  min-width: 100%;
}

.tl-rail {
  position: absolute;
  top: 11px;
  left: 0; right: 0;
  height: 1px;
  background: var(--border);
}

.tl-dot {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  gap: 0.2rem;
}

.tl-circle {
  border-radius: 50%;
  border: 1px solid var(--text-faint);
  background: var(--bg);
  transition: background 0.2s, border-color 0.2s, transform 0.14s;
  flex-shrink: 0;
}

.tl-dot:hover .tl-circle { transform: scale(1.28); }

.tl-dot.tl-active .tl-circle {
  background: var(--accent);
  border-color: var(--accent);
}

.tl-lbl {
  font-family: var(--titling);
  font-size: 0.48rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-faint);
  white-space: nowrap;
  transition: color 0.18s;
}

.tl-dot.tl-active .tl-lbl { color: var(--accent); }

.tl-cnt {
  font-family: var(--titling);
  font-size: 0.42rem;
  color: var(--text-faint);
  opacity: 0.55;
}

/* ── Tooltip ─────────────────────────────────────────── */
#graph-tooltip {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.14s ease;
  background: color-mix(in srgb, var(--bg-card) 96%, transparent);
  border: 1px solid var(--border);
  padding: 0.7rem 1rem 0.65rem;
  border-radius: 2px;
  max-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

#graph-tooltip.visible { opacity: 1; }

.tt-title {
  font-family: var(--body-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.2rem;
  line-height: 1.4;
}

.tt-date {
  font-family: var(--titling);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 0.25rem;
}

.tt-tags { display: flex; gap: 0.28rem; flex-wrap: wrap; }

.tt-tag {
  font-family: var(--titling);
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1px 5px;
  border-radius: 2px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.tt-tag-more {
  opacity: 0.5;
  border-style: dashed;
}

/* ── About blurb below timeline ─────────────────────── */
#about-blurb {
  max-width: var(--content-width);
  margin: 3rem auto 5rem;
  margin-top: 0.5rem;
  padding: 0 3rem;
  font-family: var(--body-serif);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
}

#about-blurb p { margin: 0 0 0.9em; }
#about-blurb p:last-child { margin-bottom: 0; }

#about-blurb a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.16s;
}

#about-blurb a:hover { opacity: 0.65; }

/* ── Subscribe nudge ─────────────────────────────────── */
#subscribe-button {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: 1.2rem;
}

#about-blurb .subscribe-nudge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--titling);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.16s;
}

#about-blurb .subscribe-nudge:hover { color: var(--text-muted); border-bottom: 0px; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 860px) {
  #board-section { padding: 0 1.2rem 3rem; }
  #board-container { height: 320px; }
  .tl-cnt { display: none; }
  .tl-lbl { font-size: 0.42rem; letter-spacing: 0.06em; }
  .title-hi { position: static; display: block; margin-bottom: 0.18rem; }
  h1.title  { padding-top: 0.4rem; }
  #about-blurb { padding: 0 1.2rem; }
}

@media (max-width: 480px) {
  #board-container { height: 260px; }
  #board-timeline { margin-top: 1rem; }
  .tl-track { height: 60px; }
  #tag-filter-panel { max-width: 110px; }
  .filter-chip { font-size: 0.44rem; padding: 2px 5px; }
  #about-blurb { margin-top: 2rem; font-size: 0.95rem; }
}
