:root {
  --bg-0: #0f1318;
  --bg-1: #171d24;
  --bg-2: #202935;
  --panel: rgba(26, 33, 43, 0.84);
  --panel-strong: rgba(30, 38, 49, 0.95);
  --text-main: #e9ecef;
  --text-soft: #b8c0c9;
  --line: rgba(200, 212, 225, 0.2);
  --accent: #d4a563;
  --accent-soft: #ecd1aa;
  --danger: #9f3f2f;
  --radius: 16px;
  --max-width: 1060px;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text-main);
  background: linear-gradient(165deg, var(--bg-0), var(--bg-1) 45%, var(--bg-2));
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Atmospheric background layers to avoid a flat page. */
.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(80rem 40rem at 8% -5%, rgba(159, 63, 47, 0.18), transparent 68%),
    radial-gradient(70rem 36rem at 100% 0%, rgba(212, 165, 99, 0.12), transparent 70%),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 10px
    );
}

a {
  color: var(--accent-soft);
}

a:hover {
  color: #f7e5c9;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(9px);
  background: rgba(12, 15, 19, 0.76);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-main);
}

.brand-main {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.social-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.social-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.3rem;
  height: 3.3rem;
}

.social-nav a,
.control-chip {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.82rem;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.social-nav a:hover,
.control-chip:hover {
  background: rgba(212, 165, 99, 0.16);
  border-color: rgba(212, 165, 99, 0.52);
  transform: translateY(-1px);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.3rem;
  height: 3.3rem;
  padding: 0;
}

.social-icon svg {
  width: 1.9rem;
  height: 1.9rem;
  display: block;
  fill: currentColor;
}

.social-icon svg path {
  fill: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.control-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 145px;
}

#collapse-toggle,
.control-chip {
  cursor: pointer;
}

.page-wrap {
  width: min(var(--max-width), 92vw);
  margin: 2rem auto 3.5rem;
  display: grid;
  gap: 1.5rem;
}

.hero,
.wishlist-panel,
.faq-panel,
.log-entry {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero,
.wishlist-panel,
.faq-panel {
  padding: clamp(1rem, 3vw, 1.6rem);
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.hero-split > * {
  min-width: 0;
}

.hero-media {
  position: relative;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  min-width: 0;
}

.hero-media > img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.hero-copy {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  border-radius: 999px;
  border: 1px solid rgba(212, 165, 99, 0.6);
  color: var(--accent-soft);
  padding: 0.2rem 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.status-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #6fb2ff;
  box-shadow: 0 0 0.5rem rgba(111, 178, 255, 0.92);
  animation: pulse-dot 1s steps(2, end) infinite;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  line-height: 1.24;
  font-family: "Cinzel", "Times New Roman", serif;
}

h1 {
  font-size: clamp(1.7rem, 4.3vw, 2.8rem);
  margin-top: 0.75rem;
}

h2 {
  font-size: clamp(1.2rem, 2.6vw, 1.75rem);
}

.hero-lead {
  margin: 0 0 1rem;
  color: var(--text-soft);
  max-width: 72ch;
  font-size: 0.92rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
}

.hero-meta p {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.hero-jump-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.1rem;
}

.hero-nav-button {
  min-width: 0;
}

.wishlist-panel {
  padding: 1.15rem;
  border: 1px solid rgba(212, 165, 99, 0.42);
  background: linear-gradient(145deg, rgba(27, 32, 40, 0.98), rgba(20, 26, 35, 0.93));
}

.wishlist-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.wishlist-copy {
  min-width: 0;
}

.wishlist-panel h2 {
  margin-bottom: 0.5rem;
}

.wishlist-panel p {
  margin: 0 0 0.8rem;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.wishlist-buttons {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.wishlist-button {
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 10px;
  border: 1px solid rgba(212, 165, 99, 0.45);
  padding: 0.66rem 0.95rem;
  color: var(--text-main);
  background: rgba(212, 165, 99, 0.08);
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.wishlist-button:hover {
  transform: translateY(-1px);
  background: rgba(212, 165, 99, 0.16);
  border-color: rgba(212, 165, 99, 0.7);
}

.wishlist-button.primary {
  background: rgba(212, 165, 99, 0.24);
  border-color: rgba(247, 220, 177, 0.85);
}

.chart-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  padding: 0.5rem;
  min-width: 0;
}

.mini-chart-wrap {
  margin-top: 0.2rem;
  padding: 0.35rem;
}

.mini-chart-title {
  margin: 0.2rem 0 0.35rem;
  color: var(--text-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 700;
}

.wishlist-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.wishlist-summary-item {
  margin: 0;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(200, 212, 225, 0.14);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.14);
  display: grid;
  gap: 0.14rem;
}

.wishlist-summary-label {
  color: var(--text-soft);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.wishlist-summary-value {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 700;
}

#wishlist-chart-mini {
  display: block;
  width: 100%;
  height: auto;
}

.phase-list,
.entry-metrics {
  margin: 0;
  padding-left: 1.15rem;
}

.phase-list li,
.entry-metrics li {
  margin-bottom: 0.6rem;
}

.phase-list span {
  color: var(--accent-soft);
  margin-right: 0.35rem;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  overflow: clip;
}

.faq-item h3 {
  margin: 0;
}

.faq-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  padding: 0.82rem 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
}

.faq-toggle::after {
  content: "+";
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1;
}

.faq-toggle[aria-expanded="true"]::after {
  content: "-";
}

.faq-toggle:hover::after {
  color: var(--accent-soft);
}

.faq-answer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.8rem 1rem 0.95rem;
}

.faq-answer[hidden] {
  display: none;
}

.faq-answer p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.89rem;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.log-controls {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.log-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.62rem 0;
}

.log-title {
  margin: 0;
  color: var(--text-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.84rem;
}

.log-feed {
  display: grid;
  gap: 1rem;
}

.log-entry {
  overflow: clip;
  background: var(--panel-strong);
}

.entry-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.9rem 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comment-link,
.copy-link {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-main);
  padding: 0.44rem 0.6rem;
  font-size: 0.72rem;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.comment-link:hover,
.copy-link:hover {
  background: rgba(212, 165, 99, 0.15);
}

.entry-toggle {
  background: transparent;
  border: 0;
  color: var(--text-main);
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0;
  cursor: pointer;
  width: 100%;
  font: inherit;
}

.entry-toggle span {
  font-weight: 700;
  font-size: 0.97rem;
}

.entry-toggle time {
  color: var(--text-soft);
  font-size: 0.78rem;
  white-space: nowrap;
}

.entry-toggle::after {
  content: "▾";
  color: var(--text-soft);
  font-size: 0.82rem;
  transition: color 180ms ease;
}

.entry-toggle[aria-expanded="false"]::after {
  content: "▸";
}

.entry-toggle:hover::after {
  color: var(--accent-soft);
}

.entry-content {
  padding: 0.95rem;
}

.entry-content[hidden] {
  display: none;
}

.entry-content p {
  margin-top: 0;
  font-size: 0.9rem;
}

.media-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0.8rem;
}

figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
}

figure img,
figure video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #101419;
}

figcaption {
  padding: 0.6rem 0.7rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.site-footer {
  width: min(var(--max-width), 92vw);
  margin: 0 auto 2.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  opacity: 0.9;
}

.footer-brand:hover {
  opacity: 1;
}

.footer-brand img:first-child {
  width: 1.4rem;
  height: 1.4rem;
}

.footer-brand img:last-child {
  width: 4.2rem;
  height: auto;
}

/* Motion is limited and purposeful: subtle reveal to support readability. */
@media (prefers-reduced-motion: no-preference) {
  .hero,
  .wishlist-panel,
  .faq-panel,
  .log-controls,
  .log-entry {
    animation: fade-up 420ms ease both;
  }

  .log-entry {
    animation-delay: 140ms;
  }
}

@keyframes fade-up {
  from {
    transform: translateY(8px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse-dot {
  0% {
    opacity: 1;
  }

  49% {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }

  100% {
    opacity: 0.2;
  }
}

@media (max-width: 820px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .social-nav {
    justify-content: flex-start;
  }

  .hero-split {
    grid-template-columns: 1fr;
  }

  .wishlist-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .wishlist-buttons {
    justify-content: flex-start;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .log-controls-bar {
    flex-wrap: wrap;
  }

  .control-row {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .page-wrap {
    width: min(var(--max-width), 95vw);
    margin-top: 1.15rem;
    gap: 1rem;
  }

  .hero,
  .wishlist-panel,
  .faq-panel,
  .log-entry {
    border-radius: 12px;
  }

  .control-chip {
    min-width: 0;
    flex: 1 1 auto;
  }

  .hero-meta p {
    width: auto;
  }

  .hero-jump-row {
    width: 100%;
  }

  .hero-nav-button {
    flex: 1 1 7.5rem;
  }

  .wishlist-summary {
    grid-template-columns: 1fr;
  }

  .social-nav {
    gap: 0.4rem;
  }

  .social-nav a {
    width: 2.65rem;
    height: 2.65rem;
    padding: 0;
  }

  .social-icon {
    width: 2.65rem;
    height: 2.65rem;
  }

  .social-icon svg {
    width: 1.55rem;
    height: 1.55rem;
  }
}

@media (max-width: 520px) {
  .entry-toggle {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .entry-toggle time {
    grid-column: 1;
  }

  .entry-toggle::after {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .entry-head {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .entry-toggle {
    grid-column: 1 / -1;
  }

  .comment-link,
  .copy-link {
    justify-self: stretch;
    text-align: center;
  }
}