/* Palette taken from caltech_food/index.html so the hub matches the tools. */
:root {
  --bg: #FBDCBE;
  --surface: #FFF3E6;
  --border: #EFD3B6;
  --text: #2E2118;
  --muted: #6B5546;
  --accent: #BC560A;
  --accent-hover: #A94D08;

  --radius: 16px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1F1611;
    --surface: #2C2019;
    --border: #45332A;
    --text: #F6E8DA;
    --muted: #C4AE9C;
    --accent: #F08A3C;
    --accent-hover: #F6A566;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
}

main {
  width: 100%;
  max-width: 760px;
  padding: 48px var(--gutter);
}

header { text-align: center; margin-bottom: 32px; }

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 2.75rem);
  letter-spacing: -0.02em;
  color: var(--accent);
}

.tagline { margin: 8px 0 0; color: var(--muted); font-size: 1.05rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gutter);
}

.card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.08);
}

.card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.card-icon {
  flex: none;
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-text { display: flex; flex-direction: column; gap: 4px; }

.card-name { font-size: 1.25rem; font-weight: 650; }

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

.card-desc { color: var(--muted); font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}
