/* jayceelewis.com — "Paper" theme
   IBM Plex Mono · notebook-paper aesthetic
   Palette sampled from the Figma "Paper" screen. */

:root {
  --bg: #f6f2eb;      /* warm cream paper */
  --ink: #252621;     /* warm near-black ink */
  --muted: #8d8c86;   /* muted warm gray */
  --line: #dfddd3;    /* hairline ruled line */
  --line-strong: #d5d5ca;
  --hover: #ece6da;   /* subtle sheet highlight */
  --brand-size: 13px;
  --label-size: 20px;
  --arrow-size: 22px;
  --max-width: 560px;
  --gutter: 24px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background-color: var(--bg);
  /* faint ruled-paper texture */
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 31px,
    var(--line) 31px,
    var(--line) 32px
  );
  background-position: 0 0;
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- brand (top-left) ---------- */
.brand {
  padding: var(--gutter);
  position: relative;
  z-index: 1;
}

.brand-link {
  font-size: var(--brand-size);
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}

.brand-link:hover,
.brand-link:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
}

/* ---------- sheet ---------- */
.sheet {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px var(--gutter) 64px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.tagline {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--ink);
}

/* ---------- index (link list) ---------- */
.index {
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.index li {
  border-bottom: 1px solid var(--line-strong);
}

.card {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  text-decoration: none;
  color: var(--ink);
  transition: background-color 120ms ease;
}

.label {
  font-size: var(--label-size);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.arrow {
  font-size: var(--arrow-size);
  font-weight: 400;
  color: var(--muted);
  line-height: 1;
  transform: translateX(0);
  transition: transform 160ms ease, color 120ms ease;
}

.card:hover {
  background-color: var(--hover);
}

.card:hover .arrow,
.card:focus-visible .arrow {
  color: var(--ink);
  transform: translateX(4px);
}

/* ---------- footer ---------- */
.footer {
  font-size: var(--brand-size);
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ---------- focus visibility ---------- */
.card:focus-visible,
.brand-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ---------- mobile ---------- */
@media (max-width: 480px) {
  :root {
    --label-size: 18px;
    --gutter: 18px;
  }

  .sheet {
    padding-top: 32px;
    gap: 32px;
  }

  .tagline {
    font-size: 20px;
    text-align: left;
  }

  .footer {
    text-align: left;
  }
}
