4.1 KiB · text History 9174a13
@use "tokens";

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--base-content);
  background: var(--base-100);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

// ── Header ───────────────────────────────────────────────────────────────────
.site-header {
  background: var(--base-200);
  border-bottom: var(--border) solid var(--base-300);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  height: 4rem;

  &__logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}

// ── Main ─────────────────────────────────────────────────────────────────────
main { flex: 1; padding-block: var(--space-lg); }

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--base-content);
  margin-bottom: var(--space-xs);
}

.lede {
  color: var(--secondary);
  font-size: 1.0625rem;
  margin-bottom: var(--space-lg);
}

.back {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--secondary);
  margin-top: var(--space-lg);

  &:hover { color: var(--base-content); }
}

// ── Deck index ───────────────────────────────────────────────────────────────
.decks {
  display: flex;
  flex-direction: column;
  border: var(--border) solid var(--base-300);
  border-radius: var(--radius-box);
  overflow: hidden;

  li {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    flex-wrap: wrap;
    padding: var(--space-sm) var(--space-md);
    border-bottom: var(--border) solid var(--base-300);
    transition: background 0.15s ease;

    &:last-child { border-bottom: none; }
    &:hover { background: var(--base-200); }
  }

  a {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--base-content);
  }

  .desc {
    flex: 1 1 12rem;
    font-size: 0.9375rem;
    color: var(--secondary);
  }

  time {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--accent);
    white-space: nowrap;
    flex-shrink: 0;
  }

  .empty {
    color: var(--secondary);
    font-style: italic;
    &:hover { background: none; }
  }
}

// ── Footer ───────────────────────────────────────────────────────────────────
.site-footer {
  border-top: var(--border) solid var(--base-300);
  background: var(--base-200);
  padding-block: var(--space-md);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--secondary);
}

// ── Theme switcher ───────────────────────────────────────────────────────────
.theme-toggle {
  background: none;
  border: none;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.15s ease;

  &:hover { opacity: 0.7; }
}