/* =========================================================
   THEME TOKENS
   Edit these to re-skin the whole site. Dark is the default;
   [data-theme="light"] overrides below.
   ========================================================= */
:root,
:root[data-theme="dark"] {
  --bg:        #0d0d10;
  --bg-soft:   #16161b;
  --text:      #ececf0;
  --text-dim:  #8b8b97;
  --line:      #26262e;
  --accent:    #ff5c8a;   /* your one accent colour (tweak freely) */
  --accent-dim:#ff5c8a22;
}

:root[data-theme="light"] {
  --bg:        #faf9f7;
  --bg-soft:   #ffffff;
  --text:      #16161a;
  --text-dim:  #6a6a72;
  --line:      #e6e4df;
  --accent:    #e23c6d;
  --accent-dim:#e23c6d18;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #fff; }

/* =========================================================
   PAGE LAYOUT
   Two columns that fill the width and the full viewport height,
   vertically centred so everything is visible without scrolling.
   ========================================================= */
.page {
  position: relative;
  z-index: 1;              /* sits above the playfield canvas */
  min-height: 100vh;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4rem) clamp(1.5rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-content: center;   /* centre the whole block vertically */
  align-items: center;     /* centre the left column against the right */
}

/* osu!-style playfield animation living behind the left column */
#playfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* =========================================================
   LEFT: IDENTITY
   ========================================================= */
.wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}
/* If you swap the wordmark for an image, this keeps it sized nicely */
.wordmark img { display: block; height: clamp(2.5rem, 6vw, 4rem); width: auto; }

.side__meta {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.socials {
  display: flex;
  gap: 0.35rem;
  margin: 1.5rem 0 0 -0.5rem;   /* pull left so icons align with the wordmark edge */
}
.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--text-dim);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.socials a:hover {
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.side__footer {
  margin-top: 2.25rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.side__map {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  opacity: 0.75;
}
.side__map a { transition: color .2s ease; }
.side__map a:hover { color: var(--accent); }

/* =========================================================
   THEME TOGGLE (floats top-right)
   ========================================================= */
.theme-toggle {
  position: fixed;
  top: clamp(1rem, 3vh, 1.75rem);
  right: clamp(1rem, 3vw, 1.75rem);
  z-index: 10;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text-dim);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

.icon-sun  { display: none; }
.icon-moon { display: block; }
:root[data-theme="light"] .icon-sun  { display: block; }
:root[data-theme="light"] .icon-moon { display: none; }

/* =========================================================
   RIGHT: CONTENT
   ========================================================= */
.content { width: 100%; }

.section {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.section:first-child { border-top: none; padding-top: 0; }
.section:last-child  { padding-bottom: 0; }

.section__label {
  color: var(--text-dim);
  font-size: 0.9rem;
  padding-top: 0.15rem;
}
.section__slash {
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  margin-right: 0.1em;
}

.section__body p { color: var(--text); }
/* Inline text links only: quiet grey underline that warms up on hover.
   (Scoped to "p a" so list items never get underlined.) */
.section__body p a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--text-dim);
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.section__body p a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* =========================================================
   LISTS (tools + links)
   ========================================================= */
.list { list-style: none; display: flex; flex-direction: column; }

.list__link {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.55rem 0.75rem;
  margin: 0 -0.75rem;
  border-radius: 10px;
  transition: background .2s ease, transform .15s ease;
}
.list__link:hover { background: var(--bg-soft); transform: translateX(3px); }

.list__title { font-weight: 600; }
.list__desc  { color: var(--text-dim); font-size: 0.88rem; }

/* Links variant: title + arrow on one row */
.list--links .list__link {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.list__arrow { color: var(--text-dim); transition: color .2s ease, transform .2s ease; }
.list--links .list__link:hover .list__arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
/* Stack to a single column on narrow screens (scrolling is fine here) */
@media (max-width: 760px) {
  .page {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-content: start;
    min-height: 0;
    padding-top: clamp(4rem, 12vh, 6rem);
  }
  #playfield { display: none; }   /* skip the animation on phones */
}

@media (max-width: 460px) {
  .section { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* Respect users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
