/* rough template — layout structure lifted from jamies.page, retheme freely */

:root {
  --bg: #191410;          /* warm dark bark */
  --box-bg: #241b13;      /* dim ember panel */
  --border: #bd7838;      /* autumn amber */
  --text: #f1e7d7;        /* warm cream */
  --text-dim: #b6a186;    /* soft tan */
  --link: #e6a24e;        /* glowing amber — from the foliage */
  --link-hover: #78c6ac;  /* teal pop — from the eyes */
  --radius: 3px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 0.95em;
  line-height: 22px;
  font-family: "Segoe UI", "Nunito", system-ui, sans-serif;
  background-color: var(--bg);
  background-image: url("assets/eldr_arrange02.jpg");
  background-repeat: repeat;
  background-size: 450px;
  color: var(--text);
}

body {
  margin: 0;
}

.page {
  width: 900px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 12px;
}

a {
  text-decoration: none;
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

h1 {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 4px;
}

/* header banner box — swap the background-image for your own art */
.head-link {
  display: block;
}

.head {
  margin-top: 30px;
  height: 220px;
  border: 3px solid var(--border);
  border-radius: var(--radius);
  background-image: url("assets/ELDRYUU FINAL(2).gif");
  background-size: cover;
  background-position: center;
  background-color: var(--box-bg);
}

.layout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* sticky sidebar nav */
.sidebar {
  flex: 0 0 120px;
  background-color: var(--box-bg);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  position: sticky;
  top: 20px;
}

.sidenav {
  display: flex;
  flex-direction: column;
  line-height: 26px;
}

.sidelink {
  display: block;
}

.divide {
  height: 2px;
  border: 0;
  margin: 12px 0;
  background-color: var(--text-dim);
  opacity: 0.4;
  width: 80%;
}

/* wraps the sidebar + a page-specific extra (e.g. theme-song player) as one sticky column */
.sidebar-col {
  flex: 0 0 120px;
  /* without this, unbreakable content (long con names, the player) forces the
     flex item wider than 120px via min-width:auto — pinning it keeps every
     page's sidebar the same small width */
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 20px;
}

.sidebar-col .sidebar {
  position: static;
}

.theme-song {
  background-color: var(--box-bg);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
}

.theme-song p {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

.player {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.player {
  position: relative;
}

.player-buttons {
  display: flex;
  gap: 6px;
}

.play-btn,
.mute-btn {
  flex: 1 1 0;
  min-width: 0;
  height: 22px;
  padding: 0 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 10px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.play-btn:hover,
.mute-btn:hover {
  border-color: var(--link-hover);
  color: var(--link-hover);
}

/* range inputs, reskinned to look like a slim progress/volume bar */
.seek-bar,
.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.seek-bar {
  width: 100%;
  height: 4px;
}

.seek-bar::-webkit-slider-thumb,
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--link);
  cursor: pointer;
}

.seek-bar::-moz-range-thumb,
.volume-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: var(--link);
  cursor: pointer;
}

.seek-bar::-moz-range-progress,
.volume-slider::-moz-range-progress {
  background: var(--link);
  border-radius: 2px;
}

/* volume popup: shown/hidden via a JS-toggled .show class (see kuro.html),
   which grace-periods the hide so crossing the gap to reach the slider works */
.volume-popup {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  padding: 10px 6px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.volume-popup.show {
  opacity: 1;
  pointer-events: auto;
}

.volume-slider {
  writing-mode: vertical-lr;
  direction: rtl;
  -webkit-appearance: slider-vertical;
  width: 4px;
  height: 60px;
}

/* main content box */
.bodybar {
  flex: 1 1 auto;
  background-color: var(--box-bg);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.pronouns {
  margin: 4px 0 20px;
  color: var(--text-dim);
}
.hrt {
  margin: 0 6px;
  color: var(--link-hover);
}

.intro {
  margin: 0 20px 20px;
  text-align: left;
}

.cursive {
  font-style: italic;
}

/* upcoming cons — a small card in the sidebar column, styled like .theme-song */
.cons {
  background-color: var(--box-bg);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
}

.cons-title {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

.cons ul {
  margin: 0;
  padding: 0;
  list-style: none;
  /* no bullet/indent + a slightly smaller size lets "NordicFuzzCon" sit on one
     line within the 120px card; overflow-wrap is a safety net so any longer name
     still wraps rather than widening the sidebar */
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.findme {
  margin-bottom: 4px;
}

.linkgrid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0;
  margin: 16px 20px 24px;
}

.linkgrid li {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 16px;
  font-weight: bold;
}

.credit {
  font-size: 12px;
  color: var(--text-dim);
}

.footer {
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  margin: 20px 0 30px;
}

/* rough responsive fallback — stack sidebar above content on narrow screens */
@media (max-width: 700px) {
  .layout {
    flex-direction: column;
  }
  .sidebar,
  .sidebar-col {
    flex: 1 1 auto;
    width: 100%;
    position: static;
  }
  .sidenav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    line-height: normal;
  }
  .divide {
    display: none;
  }
}
