/* ==========================================================
   Makare Publishing: shared stylesheet
   Every page on the site links to this file, so colors and
   type only ever need to be changed here.
   ========================================================== */

/* ---------- Design tokens ---------- */
:root {
  --red: #ec1212;    /* exact red from the logo */
  --black: #111;
  --white: #f7f7f6;  /* soft white page background */
  --gray: #444;      /* secondary text */

  --font-heading: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;

  --content-width: 46rem;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  line-height: 1.7;
}

/* main is at least as tall as the window minus the footer, and centers its
   content inside that space. The footer then always sits at the bottom. */
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 5rem);
  min-height: calc(100dvh - 5rem);
}

main.container {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

a { color: var(--black); }
a:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Page title: bold black line, lighter red line beneath ---------- */
.page-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 2rem;
  text-align: center;
}
.page-title .subtitle {
  display: block;
  font-weight: 400;
  color: var(--red);
}

/* ---------- Red divider (the signature element) ---------- */
.rule {
  border: 0;
  height: 3px;
  background: var(--red);
  margin: 2.5rem 0;
}

/* ---------- Text ---------- */
h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}
.prose { text-align: center; }
.prose p { margin: 0 0 1.25rem; }
.quote { font-style: italic; }

/* ---------- Logo ---------- */
.logo {
  display: block;
  width: 200px;
  max-width: 50%;
  height: auto;
  margin: 0 auto 3rem;
}

/* ---------- Footer ---------- */
.site-footer {
  min-height: 5rem;           /* matches the 5rem subtracted in main's min-height */
  padding: 1.8rem 1rem;       /* centers the single line of text vertically */
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray);
}

/* ==========================================================
   Added later, when the full site is built:
   .site-header, .site-nav, .btn, .book-grid, etc.
   ========================================================== */