/* ==========================================================
   Berta Pride Dad - styles.css
   Change the colours and fonts in :root and the whole page updates.
   ========================================================== */

:root {
  --bg: #161616;          /* page background */
  --bg-alt: #1f1f2e;      /* alternate section background */
  --navy: #191970;        /* brand colour */
  --accent: #7676cc;      /* links and highlights */
  --accent-light: #d8d8f7;
  --text: #f7f7f7;
  --muted: #a4a4a4;
  --line: #2a2a2a;

  --font-body: "Source Sans Pro", Arial, sans-serif;
  --font-head: "Karla", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: var(--accent); }
a:hover { color: var(--accent-light); }

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; max-width: 65ch; }

.wrap {
  width: min(1100px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(22, 22, 22, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
}
.brand img { height: 56px; width: auto; }

.nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.nav a {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-color: var(--accent); color: var(--text); }

/* ---------- Hero ---------- */
.hero { padding-block: 4rem; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-text .lead { font-size: 1.25rem; color: var(--accent-light); }
.hero-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border: 1px solid var(--text);
  border-radius: 48px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background-color 0.3s, color 0.3s;
}
.btn:hover { background: var(--text); color: #000; }

/* ---------- Sections ---------- */
.section { padding-block: 4rem; }
.section.alt { background: var(--bg-alt); }
.section.brand-bg { background: var(--navy); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.card {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 1.5rem;
  border-radius: 6px;
}
.card .date { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }

/* ---------- Social ---------- */
.social { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 1rem; }
.social a {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.social a:hover { color: var(--accent-light); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer p { margin-inline: auto; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; }
.footer-links a { color: var(--text); text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--accent-light); }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding-block: 2.5rem; }
  .section { padding-block: 2.5rem; }
  .site-header .wrap { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
