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

:root {
  /* Warm palette using OKLCH — never pure black or white */
  --bg: oklch(0.97 0.007 75);
  --surface: oklch(0.995 0.005 75);
  --border: oklch(0.88 0.015 75);
  --text: oklch(0.22 0.02 55);
  --text-muted: oklch(0.45 0.02 55);

  /* Terracotta accent — deliberately not AI-purple */
  --accent: oklch(0.58 0.16 35);
  --accent-subtle: oklch(0.58 0.16 35 / 0.06);
  --accent-light: oklch(0.58 0.16 35 / 0.12);
  --accent-hover: oklch(0.58 0.16 35 / 0.18);
  --accent-border: oklch(0.58 0.16 35 / 0.25);

  /* Warm shadow */
  --shadow-sm: 0 1px 3px oklch(0.22 0.02 55 / 0.04);
  --shadow-md: 0 4px 16px oklch(0.22 0.02 55 / 0.06);
  --shadow-lg: 0 8px 32px oklch(0.22 0.02 55 / 0.08);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fluid spacing and typography — no jarring breakpoint jumps */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) clamp(16px, 4vw, 24px) clamp(80px, 12vw, 140px);
}

header {
  text-align: center;
  margin-bottom: clamp(48px, 8vw, 72px);
}

.site-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent-light);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.site-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-muted);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
}

.card-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 24px);
  padding: clamp(20px, 3.5vw, 28px) clamp(18px, 4vw, 32px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-subtle);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-left-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.card:hover {
  border-color: var(--accent-border);
  border-left-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Keyboard focus — visible ring, only on Tab (not click) */
.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
}

/* Active state for touch devices */
.card:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent-border);
}

.card-icon {
  flex-shrink: 0;
  width: clamp(44px, 6vw, 52px);
  height: clamp(44px, 6vw, 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent);
  transition: background 0.3s ease;
}

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

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

.card-icon svg {
  width: clamp(22px, 3.5vw, 28px);
  height: clamp(22px, 3.5vw, 28px);
}

.card-content {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.3s ease;
}

.card-description {
  font-size: clamp(0.85rem, 1.8vw, 0.9rem);
  color: var(--text-muted);
  line-height: 1.55;
}

.card-arrow {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  transition: color 0.3s ease, transform 0.3s ease;
}

.card-arrow svg {
  width: 22px;
  height: 22px;
}

.card:hover .card-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: clamp(48px, 8vw, 72px);
}

.footer-link {
  display: inline-flex;
  color: var(--accent);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.footer-link:hover {
  opacity: 1;
}

.footer-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.footer-link svg {
  width: 18px;
  height: 18px;
}

/* Small screens — hide arrow to reclaim space, keep focus on content */
@media (max-width: 400px) {
  .card-arrow {
    display: none;
  }
}

/* Reduced motion — respect user preference, keep focus ring */
@media (prefers-reduced-motion: reduce) {
  .card,
  .card-icon,
  .card-arrow,
  .card-title,
  .footer-link {
    transition: none;
  }

  .card:hover {
    transform: none;
  }

  .card:hover .card-arrow {
    transform: none;
  }
}

/* Print — clean, ink-friendly output */
@media print {
  body {
    background: none;
    color: #222;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .card:hover {
    transform: none;
    box-shadow: none;
  }

  .card-icon {
    background: none;
    border: 1px solid #ccc;
  }

  .card-arrow {
    display: none;
  }

  /* Show link URLs in print */
  .card::after {
    content: " (" attr(href) ")";
    display: block;
    font-size: 0.75rem;
    color: #666;
    padding: 4px 32px 0;
  }
}
