/* Pietas Kids — brand home. Palette from branding.md. */

:root {
  --navy: #003366;
  --navy-dark: #002244;
  --gold: #B8860B;
  --parchment: #F5F2EC;
  --taupe: #E2D7C5;
  --white: #FFFFFF;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  color: var(--navy);
  background-color: var(--parchment);
}

h1, h2, h3 {
  font-family: "EB Garamond", Georgia, serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: 2.75rem; margin: 0 0 1rem; }
h2 { font-size: 2rem; margin: 0 0 0.5rem; }

p {
  margin: 0 0 1.25rem;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 200;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.site-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--taupe);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.35rem;
}

.logo img {
  width: 48px;
  height: 48px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1.5rem;
}

.main-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--navy-dark);
  text-decoration: underline;
}

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

.hero {
  background-color: var(--white);
  padding: 3.5rem 0 2.75rem;
  text-align: center;
}

.hero-content {
  max-width: 640px;
  margin: 0 auto;
}

.hero-imprint {
  font-size: 1.15rem;
  max-width: 34em;
  margin: 0 auto;
}

.book {
  padding: 3.5rem 0 5rem;
}

.book-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.book-cover {
  margin: 0 auto 1.75rem;
  max-width: 420px;
}

.book-cover img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 10px 28px rgba(0, 34, 68, 0.16);
}

.book-author {
  font-style: italic;
  margin-bottom: 1.75rem;
}

.book-story {
  text-align: left;
  max-width: 36em;
  margin: 0 auto;
}

.book-format {
  font-style: italic;
}

.book-status {
  margin-top: 1.5rem;
  margin-bottom: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
}

.site-footer {
  background-color: var(--navy-dark);
  color: var(--taupe);
  padding: 2.5rem 0;
  font-size: 0.95rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  width: 36px;
  height: 36px;
}

.footer-links a {
  color: var(--taupe);
  margin-left: 1.5rem;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--white);
  text-decoration: underline;
}

@media (max-width: 640px) {
  h1 { font-size: 2.2rem; }
  .hero { padding: 2.75rem 0 2rem; }
}

@media (max-width: 380px) {
  h1 { font-size: 1.9rem; }
  .container { padding: 0 1rem; }
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-links a { margin-left: 0; margin-right: 1rem; }
}
