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

:root {
  --cream: #FAFAF8;
  --ink: #1A1A1A;
  --teal: #0D6B5E;
  --border: #E5E5E0;
  --white: #ffffff;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 24px 64px;
  animation: fadeUp 0.45s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Header ── */

.header {
  margin-bottom: 52px;
}

.site-title {
  font-family: 'Instrument Serif', serif;
  font-size: 2.25rem;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.site-title-accent {
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--teal);
  margin-top: 14px;
  border-radius: 1px;
}

.site-subtitle {
  margin-top: 18px;
  font-size: 0.875rem;
  color: rgba(26, 26, 26, 0.45);
  line-height: 1.5;
}

/* ── Cards ── */

.cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

a.card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

a.card:hover .card-arrow {
  color: var(--teal);
  transform: translateX(3px);
}

.card-body {
  flex: 1;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.card-module {
  font-family: 'Instrument Serif', serif;
  font-size: 1.125rem;
  color: var(--ink);
  line-height: 1.2;
}

.card-desc {
  margin-top: 5px;
  font-size: 0.8125rem;
  color: rgba(26, 26, 26, 0.45);
  line-height: 1.5;
}

.card-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.shortcut {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6875rem;
  color: rgba(26, 26, 26, 0.25);
  background: rgba(26, 26, 26, 0.04);
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 2px 6px;
  line-height: 1.4;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

a.card:hover .shortcut {
  color: var(--teal);
  border-color: rgba(13, 107, 94, 0.3);
  background: rgba(13, 107, 94, 0.05);
}

.card-arrow {
  font-size: 1.1rem;
  color: rgba(26, 26, 26, 0.2);
  flex-shrink: 0;
  transition: color 0.15s ease, transform 0.15s ease;
  line-height: 1;
}

/* ── Footer ── */

.footer {
  margin-top: 72px;
  font-size: 0.75rem;
}

.footer a {
  color: rgba(26, 26, 26, 0.25);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer a:hover {
  color: var(--teal);
}

/* ── Mobile ── */

@media (max-width: 480px) {
  .page {
    padding: 56px 20px 48px;
  }

  .site-title {
    font-size: 1.875rem;
  }

  .card {
    padding: 18px 20px;
  }
}
