/* ── Tokens ── */
:root {
  /* Color */
  --color-bg: #101010;
  --color-text: #fff;
  --color-accent: #FFA303;
  --color-text-muted: rgba(255, 255, 255, 0.5);

  /* Typography */
  --font-family: 'Rams', sans-serif;
  --font-size: clamp(1.5rem, 0.5rem + 2vw, 2.5rem);
  --font-weight: 400;
  --line-height: 0.95;
  --letter-spacing: -0.02em;

  /* Spacing */
  --space-xs: 0.45em;
  --space-sm: 0.75em;
  --space-md: 1.2em;
  --space-page: 28px;
}

/* ── Font ── */
@font-face {
  font-family: 'Rams';
  src: url('../fonts/Rams-569.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── Cursor ── */
@media (pointer: fine) {
  * {
    cursor: none;
  }

  #cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    will-change: transform, opacity;
    z-index: 9999;
  }
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Base ── */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  padding: var(--space-page);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--font-size);
  font-weight: var(--font-weight);
  line-height: var(--line-height);
  letter-spacing: var(--letter-spacing);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Utilities ── */
.orange {
  color: var(--color-accent);
}

/* ── Selection ── */
::selection {
  background: var(--color-accent);
  color: var(--color-bg);
}


/* ── Bio ── */
.bio {
  max-width: 500px;
  min-width: 33.33vw;
}

.bio p+p {
  margin-top: var(--space-sm);
}

.line-mask {
  display: block;
  overflow: hidden;
  margin-bottom: -0.15em;
}

.line-inner {
  display: block;
  padding-bottom: 0.15em;
}


/* ── Works / Apps / Contact ── */
.works,
.apps,
.contact {
  display: none;
}

.works .line-mask,
.apps .line-mask,
.contact .line-mask {
  display: block;
  overflow: hidden;
}

.works .line-mask + .line-mask,
.apps .line-mask + .line-mask,
.contact .line-mask + .line-mask {
  margin-top: 0.25em;
}

.works-item {
  display: flex;
  justify-content: space-between;
}

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

.works-item a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.works-item a:hover {
  color: var(--color-text-muted);
}


/* ── Nav ── */
.nav {
  margin-top: auto;
  padding-top: var(--space-md);
}

.nav .line-mask {
  display: block;
  overflow: hidden;
}

.nav .line-mask+.line-mask {
  margin-top: 0.25em;
}

.nav a {
  display: block;
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--color-text-muted);
}

.nav a.active {
  color: var(--color-accent);
}