/* site.css — Courageous Design public pages.
   Recreation of the original WordPress look: black ground, thin Roboto, orange accent. */

@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #000;
  --text: #FFF;
  --accent: #FC7E00;
  --font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --gutter: 30px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Hero (home) ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 10px var(--gutter) 0;
  background: var(--ground) url("../img/leopard.jpg") no-repeat right top / contain;
}
.logo { display: block; width: 85px; height: 85px; }
.logo img { width: 100%; height: 100%; }
.intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: 40px 50px;
}
.intro h1 { margin: 0; font-weight: 200; font-size: 40px; line-height: 1.2; }
.intro h1 span { display: block; }
.intro h1 span + span { margin-top: 0.4em; }

.contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 20px;
  padding-block: 10px 50px;
  font-size: 14px;
  font-weight: 100;
}
.contact > * { display: flex; align-items: center; gap: 16px; color: var(--text); }
.contact > :nth-child(2) { justify-content: center; }
.contact > :nth-child(3) { justify-content: flex-end; }
.contact a:hover { color: var(--accent); }
.contact svg { width: 16px; height: 16px; flex: none; fill: var(--accent); }

/* ── Text pages (privacy) ─────────────────────────────────────── */
.page-header { padding: 10px var(--gutter) 0; }
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px var(--gutter) 96px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}
.prose h1 { font-weight: 200; font-size: 40px; line-height: 1.2; margin: 0 0 8px; color: var(--text); }
.prose h2 { font-weight: 300; font-size: 22px; letter-spacing: 1px; margin: 40px 0 8px; color: var(--text); }
.prose p { margin: 0 0 14px; }
.prose .updated { color: rgba(255, 255, 255, 0.6); font-size: 14px; }
.prose a:hover { color: var(--text); }

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  background: var(--ground) url("../img/leaf.jpg") no-repeat center / cover;
  font-size: 13px;
}
.site-footer::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.56); }
.site-footer .wrap { position: relative; max-width: 1400px; margin: 0 auto; padding: 60px var(--gutter) 40px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-bottom: 20px; }
.footer-brand img { width: 130px; height: auto; }
.footer-brand p { margin: 0; font-size: 25.6px; font-weight: 200; letter-spacing: 2.5px; color: rgba(255, 255, 255, 0.9); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  border-top: 1px dotted rgba(255, 255, 255, 0.59);
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.7);
}
.footer-base p { margin: 0; }
.footer-base .legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-base .legal a { color: rgba(255, 255, 255, 0.7); }
.footer-base .made { font-weight: 100; color: rgba(255, 255, 255, 0.85); }
.footer-base a:hover { color: var(--text); }

/* Original site's slow fade-in */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.hero, .intro > *, .contact > * { animation: fadeIn 2s ease both; }
@media (prefers-reduced-motion: reduce) {
  .hero, .intro > *, .contact > * { animation: none; }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .hero { background-size: 100% auto; }
  .logo { width: 64px; height: 64px; }
  .intro { padding-top: 55vw; }
  .intro h1 { font-size: 32px; }
  .contact { grid-template-columns: 1fr; }
  .contact > :nth-child(n) { justify-content: flex-start; }
  .prose h1 { font-size: 32px; }
}
