/* ============================================================
   Evavel.link — design tokens
   ============================================================ */
:root {
  --ink: #12203A;
  --paper: #F5F1E8;
  --muted: #6B6F73;
  --line: rgba(18, 32, 58, 0.14);
  --line-soft: rgba(18, 32, 58, 0.08);

  /* GROUP COLOURS — add a new one here if you invent a new "group" in data.js */
  --group-flagship: #C08A3E;
  --group-devotional: #A6472B;
  --group-education: #3F6B5E;
  --group-agency: #3A5A7A;
  --group-default: #8A8477;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 460px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

a { color: inherit; }

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Header ---------- */

.mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 22px;
}

.mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.tagline {
  font-size: 15px;
  color: var(--muted);
  max-width: 34ch;
  margin: 0;
}

.tagline::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--group-flagship);
  margin-top: 18px;
}

/* ---------- Link list ---------- */

.links {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

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

.links a {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 2px;
  text-decoration: none;
  outline-offset: 4px;
}

.links a:hover .link-name,
.links a:focus-visible .link-name {
  text-decoration-line: underline;
  text-decoration-color: var(--dot-color, var(--group-default));
  text-decoration-thickness: 1.5px;
}

.dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 8px;
  background: var(--dot-color, var(--group-default));
}

.link-body { flex: 1; min-width: 0; }

.link-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.link-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  text-decoration: none;
}

.link-group {
  font-size: 12px;
  color: var(--dot-color, var(--group-default));
}

.link-desc {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.chevron {
  flex: none;
  margin-top: 10px;
  color: var(--muted);
  opacity: 0.7;
}

.links a:hover .chevron,
.links a:focus-visible .chevron {
  opacity: 1;
  color: var(--ink);
}

/* group -> colour, applied via inline style on .dot / --dot-color custom prop */

/* ---------- Footer ---------- */

.contact {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
}

.contact a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.contact a:hover,
.contact a:focus-visible {
  border-bottom-color: var(--ink);
}

.footer {
  margin-top: auto;
  padding-top: 40px;
  font-size: 12px;
  color: var(--muted);
}

.footer p { margin: 4px 0 0; }

/* ---------- Focus ---------- */

a:focus-visible {
  outline: 2px solid var(--ink);
  border-radius: 2px;
}

/* ---------- Small screens ---------- */

@media (max-width: 360px) {
  .page { padding: 40px 18px 32px; }
  h1.wordmark { font-size: 36px; }
}
