@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans:wght@500;700&family=Barlow+Condensed:wght@500;600;700&family=Handlee&display=swap');

:root {
  --paper: #f4ecd8;
  --paper-deep: #ead9b9;
  --ink: #342719;
  --muted: #6f604d;
  --line: #c5ab79;
  --accent: #7b3429;
  --accent-soft: #f2e4c7;
  --max-width: 920px;
  --font-lore: 'Handlee', cursive;
  --font-heading: 'Alegreya Sans', Tahoma, Verdana, sans-serif;
  --font-ui: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 250, 233, 0.82), transparent 32rem),
    radial-gradient(circle at 82% 20%, rgba(199, 166, 104, 0.11), transparent 30rem),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  color: var(--ink);
  font-family: var(--font-lore);
  line-height: 1.55;
}

body.home-page {
  min-height: 100vh;
  background: #1b130d;
}

body.home-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 14, 9, 0.42), rgba(20, 14, 9, 0.08) 42%, rgba(20, 14, 9, 0.36)),
    linear-gradient(180deg, rgba(244, 236, 216, 0.03), rgba(20, 14, 9, 0.24)),
    url('media/Eadria.jpeg') center / cover no-repeat;
}

a { color: inherit; }

.site-header {
  border-bottom: 1px solid rgba(111, 92, 67, 0.24);
  background: rgba(244, 236, 216, 0.88);
  backdrop-filter: blur(6px);
}

.nav {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 0.85rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.brand,
.nav-links a,
.menu-toggle { text-decoration: none; }

.brand {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.nav-menu { margin-left: auto; }

.menu-toggle {
  display: none;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}

.menu-toggle::-webkit-details-marker { display: none; }

.nav-links {
  display: flex;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 1rem;
}

.nav-links a:hover,
.nav-links a:focus,
.menu-toggle:hover,
.menu-toggle:focus { color: var(--accent); }

.page-shell {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 7vh 0;
}

.home-shell {
  min-height: 100vh;
  padding-top: 8vh;
  padding-bottom: 8vh;
  display: flex;
  align-items: center;
}

.hero,
.article { max-width: 740px; }

.home-shell .hero { max-width: var(--max-width); }

.home-page .hero {
  padding: clamp(1.25rem, 4vw, 3rem) 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  color: rgba(255, 250, 233, 0.96);
  text-shadow: 0 3px 18px rgba(20, 14, 9, 0.78);
}

.home-page .lede { color: rgba(255, 250, 233, 0.9); }

.image-plate { margin: 0 0 1.5rem; }

.image-plate .hero-image { margin-bottom: 0.25rem; }

.image-plate figcaption {
  margin: 0;
  text-align: right;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  margin: 0 0 1.5rem;
  border: 1px solid rgba(111, 92, 67, 0.38);
  box-shadow: 0 16px 34px rgba(75, 49, 20, 0.12);
}

.map-image {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.04;
}

h1 {
  margin: 0;
  font-size: clamp(3.2rem, 10vw, 6.5rem);
}

h2 {
  margin: 1.6rem 0 0.45rem;
  font-size: clamp(1.75rem, 4.6vw, 2.55rem);
}

h3 {
  margin: 1.25rem 0 0.35rem;
  font-size: clamp(1.35rem, 3.6vw, 1.9rem);
}

.page-title { font-size: clamp(2.7rem, 7.5vw, 4.75rem); }

.hero h1 { font-size: clamp(3.25rem, 10vw, 6.25rem); }

.lede {
  max-width: 43rem;
  margin-top: 0.95rem;
  color: var(--muted);
  font-size: clamp(1.35rem, 3.7vw, 1.9rem);
  line-height: 1.32;
}

.article p {
  font-size: clamp(1.2rem, 3.4vw, 1.55rem);
  line-height: 1.45;
}

blockquote {
  margin: 1.6rem 0;
  padding: 1.15rem 1.3rem;
  border: 1px solid rgba(111, 92, 67, 0.32);
  border-left: 5px solid var(--accent);
  border-radius: 0.9rem;
  background: rgba(255, 250, 233, 0.42);
  box-shadow: 0 12px 26px rgba(75, 49, 20, 0.08);
  color: var(--ink);
  font-family: var(--font-heading);
}

blockquote p,
.article blockquote p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.8vw, 1.38rem);
  line-height: 1.35;
}

blockquote footer {
  margin-top: 0.65rem;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.button-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.button-card {
  display: block;
  min-height: 7.1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(111, 92, 67, 0.34);
  background: rgba(255, 250, 233, 0.28);
  box-shadow: 0 10px 24px rgba(75, 49, 20, 0.06);
  text-decoration: none;
}

.home-page .button-card {
  border-color: rgba(111, 92, 67, 0.42);
  background: rgba(244, 236, 216, 0.78);
  box-shadow: 0 14px 30px rgba(20, 14, 9, 0.28);
  text-shadow: none;
}

.home-page .button-card:hover,
.home-page .button-card:focus {
  background: rgba(255, 247, 223, 0.9);
  border-color: var(--accent);
}

.home-page .button-card span,
.home-page .button-card small { color: #120c07; }
.home-page .button-icon { color: var(--accent); }

.button-card > img.button-icon,
.button-icon {
  display: block;
  width: 1.25rem !important;
  height: 1.25rem !important;
  max-width: 1.25rem !important;
  max-height: 1.25rem !important;
  margin-bottom: 0.45rem;
  object-fit: contain;
}

.button-card span {
  display: block;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button-card small {
  display: block;
  margin-top: 0.38rem;
  color: var(--muted);
  font-size: 1.06rem;
}

.button-card:hover,
.button-card:focus {
  border-color: var(--accent);
  background: rgba(255, 250, 233, 0.48);
}

.back-link { display: none; }

.placeholder {
  margin-top: 1.6rem;
  padding: 1.1rem;
  border-left: 4px solid var(--accent);
  background: rgba(255, 250, 233, 0.32);
  color: var(--muted);
}

@media (max-width: 640px) {
  .nav {
    align-items: center;
    flex-direction: row;
    position: relative;
  }

  .nav-menu { margin-left: 0; }

  .menu-toggle {
    display: block;
    padding: 0.35rem 0 0.35rem 0.75rem;
    font-size: 1.35rem;
    line-height: 1;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 10;
    min-width: 13rem;
    flex-direction: column;
    gap: 0;
    padding: 0.35rem;
    border: 1px solid rgba(111, 92, 67, 0.28);
    background: rgba(244, 236, 216, 0.97);
    box-shadow: 0 12px 24px rgba(75, 49, 20, 0.12);
  }

  .nav-menu[open] .nav-links { display: flex; }

  .nav-links a {
    padding: 0.65rem 0.75rem;
    text-align: right;
  }

  .page-shell { padding: 5vh 0; }

  .home-shell {
    min-height: 100vh;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .home-page .hero { padding: 1.15rem 0; }

  .image-plate {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .hero-image {
    aspect-ratio: 16 / 9;
    margin-bottom: 1.1rem;
    border-left: 0;
    border-right: 0;
  }

  .map-image {
    aspect-ratio: auto;
    height: auto;
  }

  .image-plate .hero-image { margin-bottom: 0.2rem; }

  .image-plate figcaption { padding-right: 1rem; }

  .button-row { grid-template-columns: 1fr; }
}
