@font-face {
  font-family: "MD IO";
  src: url("fts/MDIO-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MD IO";
  src: url("fts/MDIO-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MD IO";
  src: url("fts/MDIO-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "MD IO";
  src: url("fts/MDIO-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MD IO";
  src: url("fts/MDIO-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: rgba(0, 0, 0, 0.85);
  --blue: #0000ff;
  --font-semi: "MD IO", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "MD IO", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; }
html, body { margin: 0; padding: 0; min-height: 100vh; }

body {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--blue); text-decoration: underline; }
a:active { opacity: 0.7; }

hr {
  border: 0;
  height: 1px;
  display: block;
  margin: 0.5rem 0;
  background: rgba(0, 0, 0, 0.6);
}

/* ---------- LIVE clock (pinned top-left) ---------- */
.clock-pin {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  padding: 1rem;
  pointer-events: none;
}

.clock {
  display: inline-block;
  font: 400 1.1rem/1.2 var(--font-mono);
  color: rgba(255, 255, 255, 0.86);
  background: rgba(0, 0, 0, 0.85);
  border-radius: 0rem;
  padding: 0.4rem 1rem 0.4rem 0.5rem;
}

.clock .dot {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin: 0 0.45em 0 0.2em;
  border-radius: 50%;
  vertical-align: 0.05em;
  background: rgba(255, 255, 255, 0.85);
  animation: blink 1.2s steps(1, end) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* ---------- Page: wallpaper panel + content ---------- */
.page {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 100vh;
}

/* left panel, 20% wide */
.backdrop {
  position: relative;
  flex: 0 0 20%;
  width: 20%;
  order: 0;
}

.backdrop-contents {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.wallpaper {
  position: absolute;
  inset: 0;
  opacity: 0.9;
  background:
    url("src/sky.jpg") center / cover no-repeat;
}

/* right side */
.page-layout {
  flex: 1 1 0;
  min-width: 0;
}

.page-content {
  padding: 0.7rem 1rem 1rem 0.2rem;
  text-align: left;
  font: 400 1.2rem/1.15 var(--font-semi);
  color: var(--ink);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marquee-scroll 40s linear infinite;
  will-change: transform;
}

.marquee-still {
  text-align: center;
}

/* .marquee-track:hover { animation-play-state: paused; } 

makes text stay still when hovering w mouse cursor*/

.marquee-text {
  flex: none;
  white-space: pre;
  font: 320 1.1rem/1.2 var(--font-semi);
  color: var(--blue);
}

.marquee-text-still {
  flex: none;
  white-space: pre;
  font: 320 1.1rem/1.2 var(--font-semi);
  color: var(--blue);
  
}

/* JS adds two clones, so one third of the track is one loop */
@keyframes marquee-scroll {
  to { transform: translateX(-33.3333%); }
}

/* ---------- Title (fit-text) ---------- */
.title { width: 100%; overflow: hidden; }

h1 {
  display: block;
  width: max-content;
  margin: 0;
  font: 400 7rem/1.1 var(--font-semi);
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--ink);
}

h1 i { color: var(--blue); }

/* ---------- Links ---------- */
.links { 
  padding-top: 0.5rem;
  text-align: center; 
}

.arrow { text-decoration: none; display: inline-block; }

/* ---------- Welcome ticker ---------- */
.avatar img {
  width: 250px;
  height: auto;
  margin-top: 0;
  margin-left: 1rem;
}

.welcome {
  margin-top: 1rem;
  max-width: 300px; /* adjust until it wraps to 5 lines    |    usefull for text */
}

nav.links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  text-align: left;
  margin: 0.5rem 0 0 1rem; /* 1rem matches the avatar's left edge */
}

.intro { display: flex; gap: 1rem; align-items: flex-start; }

.dontyou {
  max-width: 200px;
  padding-right: 3rem;
  margin-top: 2rem;
}
