html {
  font-size: 110%;
}
body {
  margin: 0;
  font-family: 'Crimson Pro', serif;
  background-color: #f5f0e9;
  color: #3b2f2f;
  line-height: 1.6;
}
/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: #fff;
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--brand);
  border-radius: 6px;
  z-index: 10000;
}
/* Tokens */
:root {
  --bg: #f5f0e9;
  --text: #3b2f2f;
  --text-weak: #4a3028;
  --brand: #5b3a2e;
  --brand-2: #7b3f00;
  --surface: #e5d3c0;
  --surface-2: #ede4d6;
  --radius: 10px;
  --shadow-sm: 0 1px 6px rgba(0,0,0,0.15);
  --shadow-md: 0 2px 10px rgba(0,0,0,0.2);
}
header {
  background-color: #5b3a2e;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}
header h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 1px;
}
header p {
  margin: 0.5rem 0 0;
  font-size: 1.1rem;
  font-style: italic;
  opacity: 0.9;
}
/* Sticky nav with shadow on scroll */
nav {
  background-color: var(--surface);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.6rem 1rem;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
body.is-scrolled nav {
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
nav a {
  text-decoration: none;
  color: #3b2f2f;
  font-weight: 600;
  transition: color 0.2s ease;
}
nav a:hover {
  color: #7b3f00;
}
nav a.active,
nav a[aria-current="page"] {
  color: var(--brand-2);
  text-decoration: underline;
}
/* Mobile toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--text);
  color: var(--text);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-weight: 700;
}
.nav-toggle,
nav a,
.button,
button,
input,
textarea,
select { font-family: 'Lato', 'Crimson Pro', serif; }
.nav-links { display: contents; }
main {
  max-width: 850px;
  margin: 2rem auto;
  padding: 0 1rem;
}
section {
  margin-bottom: 3rem;
}
h2 {
  border-bottom: 2px solid #c9b8a8;
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #4a3028;
}
/* Accessible hero figure */
.hero-figure {
  margin: 0 0 2rem;
  text-align: center;
}
.hero-figure img {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 3 / 4;
  height: auto;
  display: inline-block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.hero-caption {
  font-size: 0.9rem;
  color: var(--text-weak);
  margin-top: 0.5rem;
}
.quote {
  font-style: italic;
  background-color: #ede4d6;
  padding: 1rem;
  border-left: 4px solid #7b3f00;
  margin: 1.5rem 0;
}
footer {
  background-color: #5b3a2e;
  color: #fff;
  text-align: center;
  padding: 1.2rem;
  font-size: 0.9rem;
}
footer a {
  color: #f1e8d5;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* Buttons */
.button {
  background: #7b3f00;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
}
.button:hover {
  background: #693600;
}

/* Forms */
label {
  font-weight: 600;
}
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  max-width: 600px;
  padding: 0.5rem;
  border: 1px solid #c9b8a8;
  border-radius: 4px;
  font-family: inherit;
  box-sizing: border-box;
}
textarea { resize: vertical; }

button[type="submit"],
form button {
  background: #5b3a2e;
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
button[type="submit"]:hover,
form button:hover {
  background: #4a3028;
}

/* Focus styles for accessibility */
.button:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
  outline: 2px solid #7b3f00;
  outline-offset: 2px;
}

/* Thumbnails */
.thumb {
  width: 140px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.15);
  margin: 0.5rem 0 1rem;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Saints side-by-side layout */
.saint {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.saint .thumb {
  width: 140px;
  flex: 0 0 140px;
}
.saint-body {
  flex: 1 1 auto;
}
@media (max-width: 700px) {
  .saint {
    flex-direction: column;
  }
  .saint .thumb {
    width: 60%;
    max-width: 260px;
  }
}

/* Type scale tweaks */
@media (min-width: 480px) {
  header h1 { font-size: clamp(2rem, 2vw + 1rem, 2.4rem); }
}

/* Mobile nav behavior */
@media (max-width: 768px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    width: 100%;
    display: none;
    justify-content: center;
    gap: 1rem;
  }
  nav.open .nav-links { display: flex; }
}
