
/* ============== Global ============== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  background: #f5f2e9;
  color: #2b2116;
}

a {
  color: #a16226;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ============== Layout Shell ============== */

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: 30px 16px 40px;
  max-width: 1000px;
  margin: 0 auto;
}

h1, h2, h3 {
  color: #3a2713;
}

/* ============== Top Navigation ============== */

.topnav {
  background: #fdf8f0;
  border-bottom: 1px solid #e0d4c4;
  padding: 8px 16px;
}

.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a.active {
  border-bottom: 2px solid #a16226;
  padding-bottom: 2px;
}

/* ============== Hero Header (all pages can reuse this) ============== */

.hero {
  background: url("hero-bg.jpg") center/cover no-repeat;
  padding: 40px 16px 60px;
  border-bottom: 4px solid #c8a878;
  position: relative;
  text-align: center;
  color: #2b2116;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.35),
    rgba(245, 242, 233, 0.95)
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-crest {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid #e0c899;
  margin-bottom: 10px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.7);
  padding: 6px;
}

.hero-title {
  font-size: 2.4rem;
  margin: 6px 0 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 18px;
  line-height: 1.6;
}

/* ============== Hero Buttons ============== */

.hero-buttons {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: #a16226;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: #874f1f;
}

.btn-outline {
  background: transparent;
  color: #a16226;
  border: 2px solid #a16226;
}

.btn-outline:hover {
  background: #a16226;
  color: #fff;
}

/* ============== Home Page Cards ============== */

.intro {
  margin-bottom: 28px;
  line-height: 1.7;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e1d5c3;
  padding: 18px 16px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  border-color: #c8a878;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.card p {
  margin: 4px 0;
  font-size: 0.95rem;
}

/* ============== Generic Sections / Lists ============== */
.early-years-intro {
  max-width: 520px;       /* roughly one poem column */
  margin: 3.5rem auto 0; /* centers it */
  text-align: left;
}

.section-intro {
  margin-bottom: 20px;
  line-height: 1.7;
}

.year-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.year-list li {
  margin-bottom: 8px;
}

.year-label {
  font-weight: 600;
  margin-right: 6px;
}

.parental-line {
  list-style: none;
  margin: 1.75rem 0 0.75rem;
  padding-bottom: 0.3rem;

  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;

  color: #5b4630;

  border-bottom: 1px solid rgba(140, 110, 75, 0.45);
}


/* ============== Footer ============== */

.footer {
  border-top: 1px solid #e0d4c4;
  text-align: center;
  padding: 18px;
  font-size: 0.85rem;
  color: #7a6a55;
  background: #fdf8f0;
  display: inline;
}


/* =======================
   Inline Audio Links
   ======================= */
.audio-icon::before {
  content: "\1F3A7";  /*  */
}

.audio-link {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;

  font: inherit;
  color: #2a4b8d;
  cursor: pointer;
  display: inline;

  border-bottom: 1px dotted rgba(42, 75, 141, 0.4);
}

.audio-link:focus {
  outline: none;
}


.audio-link:hover {
  color: #163566 !important;
}

.audio-icon {
  margin-left: 0.25em;
  font-size: 0.85em;

  color: #2b2116;     /* darker brown, matches your site palette */
  opacity: 0.85;      /* darker without being harsh */

  transition: opacity 0.2s ease, transform 0.15s ease;
}


.audio-link:hover .audio-icon {
  opacity: 1;
  transform: scale(1.05);
}




/* ============== Responsive ============== */

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.9rem;
  }
  main {
    padding: 24px 14px 30px;
  }
}
/* ============== Mini-Hero (Subpage Header) ============== */

.mini-hero {
  background: url("hero-bg.jpg") center/cover no-repeat;
  padding: 28px 16px 32px;
  border-bottom: 3px solid #c8a878;
  position: relative;
  text-align: center;
}

.mini-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.35),
    rgba(245, 242, 233, 0.95)
  );
  pointer-events: none;
}

.mini-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.mini-hero-crest {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid #e0c899;
  margin-bottom: 6px;
  object-fit: contain;
  background: rgba(255,255,255,0.75);
  padding: 4px;
}

.mini-hero-title {
  font-size: 1.8rem;
  margin: 6px 0 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #3a2713;
}

.mini-hero-subtitle {
  font-size: 1rem;
  color: #5b4630;
  margin: 0;
}
/* Poem 3-column layout */
/* =======================
   Poem layout (3 columns)
   ======================= */

.poem-columns{
  max-width: 1200px;
  margin: 1rem auto 1rem;
  padding: 0 1rem;
}

.poem-columns h2{
  text-align: center;
  margin: 0.75rem 0 1rem;        /* tighter spacing around poem title */
  font-size: 1.9rem;
}

.poem-grid{
  max-width: 1300px;
  margin: 0 auto;                /* centers the poem box */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2.25rem;

  border: 1px solid rgba(140, 110, 75, 0.35);
  border-radius: 10px;
  padding: 1.25rem 1.75rem;

  background: rgba(255, 255, 255, 0.35);
}

.stanza p{
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.35;             /* tighter line spacing */
  margin: 0.35rem 0;
}

.poem-credit{
  margin-top: 0.75rem;
  font-style: italic;
  opacity: 0.9;
}
/* =======================
   Early Years intro
   ======================= */

.early-years-intro{
  max-width: 900px;
  margin: 1.25rem auto 2.25rem;   /* controlled spacing from poem */
  padding: 0 1rem;
  text-align: center;
}

.early-years-intro h2{
  margin-top: 0;                 /* prevents margin stacking */
  margin-bottom: 0.75rem;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  color: #3a2713;
}

.early-years-intro p{
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  color: #5b4630;
  max-width: 42rem;
  margin-inline: auto;
}
.early-years-intro::before{
  content: "";
  display: block;
  width: 120px;
  height: 1px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(
    to right,
    transparent,
    rgba(120, 95, 65, 0.45),
    transparent
  );
}
/* =======================
   Travel entries
   ======================= */

.year-list{
  list-style: none;
  padding: 0;
  margin: 0;
}

.travel-year{
  margin-bottom: 1.5rem;
}

.travel-entry{
  margin-bottom: 2.25rem;
  text-align: left;
}

.travel-location{
  margin: 0.75rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.travel-location a{
  color: #8b5a2b;
  text-decoration: none;
}

.travel-location a:hover{
  text-decoration: underline;
}

/* =======================
   Photo link overlay
   ======================= */
.photo-link{
  position: relative;
  max-width: 400px;          /* CONTROLS PHOTO SIZE */
  margin: 0 auto;
}

.photo-link img:not(.film-photo) {
  display: block;
  width: 100%;
  border-radius: 8px;
}

/* Globe icon */
.photo-icon{
  position: absolute;
  bottom: 12px;
  right: 12px;

  width: 40px;
  height: 40px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(140, 110, 75, 0.6);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.photo-icon img{
  width: 22px;
  height: 22px;
}

/* =======================
   Horizontal film strip
   ======================= */

.film-strip {
  --s: 8px; /* sprocket size */

  display: flex;
  gap: calc(var(--s) * 2);

  padding:
    calc(var(--s) * 2.5)
    calc(var(--s) * 3);

  background:
    repeating-linear-gradient(
      to right,
      #eee 0,
      #eee var(--s),
      transparent var(--s),
      transparent calc(var(--s) * 2)
    ) top / 100% var(--s) no-repeat,

    repeating-linear-gradient(
      to right,
      #eee 0,
      #eee var(--s),
      transparent var(--s),
      transparent calc(var(--s) * 2)
    ) bottom / 100% var(--s) no-repeat,

    #222;

  border: var(--s) solid #222;

  margin: 2rem auto;
  max-width: 100%;
  overflow-x: auto;

  filter: sepia(1) brightness(0.9) grayscale(0.2);
}

/* Film photos inside strip */
.film-strip img {
  height: 180px;      /* controls frame height */
  width: auto;
  display: block;
}




/* Mobile: stack columns */
@media (max-width: 900px){
  .poem-grid{
    grid-template-columns: 1fr;
  }
}
