/* Kindred Keepsakes: shared styles for every page */

/* Lora, hosted on this site (no requests to Google). Licensed under the SIL Open Font License. */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-italic.woff2') format('woff2');
}

:root {
  --charcoal: #393E41;
  --cream: #F2EADC;
  --terracotta: #C96E4E;
  --terracotta-dark: #A9573A;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta-dark); }

h1, h2, h3 { font-style: italic; font-weight: 600; line-height: 1.25; }
h1 { font-size: 2.3rem; margin: 0 0 .5rem; }
h2 { font-size: 1.7rem; margin: 2.2rem 0 .6rem; }

/* The shared menu and footer (built by js/site.js) */
site-header, site-footer { display: block; }

/* ---------- Menu across the top ---------- */
.site-header { background: var(--charcoal); }
.site-header .inner {
  max-width: 1000px; margin: 0 auto; padding: .8rem 1.2rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem;
}
.brand { color: var(--cream); font-size: 1.3rem; font-style: italic; font-weight: 600; text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }
.site-header nav a { color: var(--cream); text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover { border-bottom-color: var(--terracotta); }
.site-header nav a.current { border-bottom-color: var(--terracotta); }

/* ---------- Layout ---------- */
main { max-width: 1000px; margin: 0 auto; padding: 2rem 1.2rem 3rem; }
.narrow { max-width: 700px; }

.hero { text-align: center; padding: 1rem 0 0; }
.hero .tagline { font-size: 1.3rem; font-style: italic; margin: 0 0 1.5rem; }
.hero img { margin: 0 auto 1.5rem; max-height: 480px; width: auto; border-radius: 6px; }

.split { display: grid; gap: 2rem; align-items: center; margin: 2rem 0; }
@media (min-width: 760px) { .split { grid-template-columns: 1fr 1fr; } }
.split img { border-radius: 6px; margin: 0 auto; max-height: 520px; width: auto; }

/* About page: same-size square photos, staggered left/right on wide screens.
   On phones the grid is one column, so each photo sits above its paragraph. */
.split img.about-photo { width: 100%; max-height: none; aspect-ratio: 1 / 1; object-fit: cover; }
@media (min-width: 760px) { .split.reverse img { order: 2; } }

.cards { display: grid; gap: 1.5rem; margin: 2rem 0; }
@media (min-width: 760px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: var(--white); border-radius: 8px; padding: 1.2rem; text-align: center; }
.card img { border-radius: 6px; margin: 0 auto 1rem; max-height: 340px; width: auto; }
.card h2 { margin-top: 0; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block; background: var(--terracotta); color: var(--white);
  padding: .8rem 1.8rem; border-radius: 6px; text-decoration: none; font-weight: 600;
}
.button:hover { background: var(--terracotta-dark); }

/* ---------- FAQ ---------- */
details { background: var(--white); border-radius: 8px; padding: .8rem 1.2rem; margin: .8rem 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: .6rem 0 0; }

.note { font-size: .95rem; opacity: .8; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: var(--cream); text-align: center; padding: 1.5rem 1.2rem; font-size: .95rem; }
.site-footer p { margin: .2rem 0; }
.site-footer a { color: var(--cream); }
