/* richardbanks.com: placeholder that recreates the 2022–2026 WordPress links page in plain HTML. */

:root {
  --page-bg: #e4e4e4;
  --card-bg: #ffffff;
  --text: #2b2b2b;
  --muted: #5c5c5c;
  --link: #c0392b;
  --button: #3b7dd8;
  --button-hover: #2f68b8;
  --radius: 4px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
}

.page {
  max-width: 660px;
  margin: 0 auto;
  background: var(--card-bg);
  padding-bottom: 1px;
  box-shadow: 0 0 24px rgb(0 0 0 / 0.12);
}

/* Header */
.intro { text-align: center; padding-top: 1.75rem; }
.intro h1 { margin: 0; font-size: 2rem; font-weight: 600; line-height: 1.2; }
.tagline { margin: 0.6rem 1.5rem 1.5rem; font-size: 0.82rem; font-weight: 600; }
.portrait { display: block; width: 100%; height: auto; }

/* Image cards with a dark overlay */
.cards {
  display: grid;
  gap: 0.9rem;
  margin: 2rem auto;
  padding: 0 1.25rem;
  max-width: 500px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 70px;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  text-align: center;
  text-decoration: none;
  background-color: #333;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  isolation: isolate;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(0 0 0 / 0.55);
  transition: background 0.2s;
}
a.card:hover::before, a.card:focus-visible::before { background: rgb(0 0 0 / 0.35); }
a.card:focus-visible { outline: 3px solid var(--button); outline-offset: 2px; }
.card-title { font-size: 0.95rem; }
.card-note { margin-top: 0.25rem; font-size: 0.72rem; opacity: 0.85; }

/* Text sections */
.prose, .footer { padding: 0 2rem; }
.prose { max-width: 600px; margin: 2.5rem auto; }
.prose p { margin: 0 0 1.1rem; }
.prose a { color: var(--link); text-decoration: none; }
.prose a:hover, .prose a:focus-visible { text-decoration: underline; }

h2 { text-align: center; margin: 0 0 1.25rem; font-size: 1.6rem; font-weight: 600; }
h2.small-heading { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }

/* Blue buttons */
.buttons {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto 2.5rem;
  padding: 0 1.25rem;
}
.buttons a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  background: var(--button);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.45;
}
.buttons a:hover, .buttons a:focus-visible { background: var(--button-hover); }

.footer { color: var(--muted); font-size: 0.75rem; margin: 2rem 0 1.5rem; }

@media (max-width: 480px) {
  .prose, .footer { padding: 0 1.25rem; }
  .intro h1 { font-size: 1.7rem; }
}

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