/* skapefryd.net — index page only.
   Pieces inside /pieces/ do NOT have to use this file.
   Each piece is free to bring its own styles, or none at all. */

:root {
  --color-bg: #0e0e0e;
  --color-text: #f2f2f2;
  --color-muted: #999999;
  --color-accent: #ffe14d;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

header {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}
header h1 {
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}
header h1 a {
  color: inherit;
  text-decoration: none;
}
.tagline {
  color: var(--color-muted);
  margin: 0;
  max-width: 32rem;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.pieces {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #2a2a2a;
}
.pieces li {
  border-bottom: 1px solid #2a2a2a;
}
.pieces a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding: 1.1rem 0;
  text-decoration: none;
  color: inherit;
}
.pieces a:hover .piece-title {
  color: var(--color-accent);
}
.piece-title {
  font-weight: 600;
  font-size: 1.05rem;
}
.piece-date {
  color: var(--color-muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.piece-note {
  flex-basis: 100%;
  color: var(--color-muted);
  font-size: 0.9rem;
}

footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem;
  color: var(--color-muted);
  font-size: 0.85rem;
}
