/* ============================================================
   main.css — shared base styles for every page
   Keep site-wide tokens, resets, nav, and footer here.
   ============================================================ */

:root {
  --ink: #141414;
  --paper: #f7f5f0;
  --accent: #3b5bdb;      /* placeholder — swap for your brand color */
  --max-width: 1100px;
  --font-body: "Georgia", "Times New Roman", serif; /* placeholder */
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

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

/* ---- Accessibility helpers ---- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---- Shared page shell (inner pages) ---- */
.page-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Back-to-homepage arrow (top-left of every inner page). */
.back-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.back-home:hover,
.back-home:focus {
  background: var(--accent);
  color: #fff;
  transform: translateX(-2px);
}

.site-header .brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
}
.site-nav a { text-decoration: none; }
.site-nav a:hover,
.site-nav a:focus { text-decoration: underline; }

.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  max-width: var(--max-width);
  margin: 3rem auto 0;
  padding: 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.65);
}
