@font-face {
    font-family: 'geographicascript';
    src: url('../fonts/geographicascript-webfont.woff2') format('woff2'),
        url('../fonts/geographicascript-webfont.woff') format('woff');
    /* font-weight: 400; */
    /* or 700 if it’s a bold face, etc. */
    font-style: normal;
    /* or italic */
    font-display: swap;
    /* shows fallback text, then swaps when loaded */
}

html, body {
  height: 100dvh; /* dynamic viewport height */
  background-color: #CFCAB9;
  padding-top: (safe-area-inset-top);
}


body {
    margin: 0;
    background: url("../images/paper-texture.jpg") no-repeat center center fixed;
    background-size: cover;
    background-position: top;
    
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    /* Allows clicks through the canvas */
}

header {
    position: relative;
    z-index: 2;
    /* Above canvas */
    flex-direction: column;
    align-items: center;
    padding-top: 5vh;
    text-align: center;
    font-family: 'geographicascript';
    font-weight: normal;
    font-size: 4rem;
    /* line-height: 75%; */
}
	
.home-link {
  display: block;
  align-items: center;
  text-align: center;
  font-family: 'geographicascript', serif;
  font-size: 1.75rem;
  color: #222;
  text-decoration: none;
  padding: 0.25em 0.25em;
  background-color: transparent;
  border: none;
  cursor: pointer;
  z-index: 2;
  }

.home-link:hover {
  text-decoration: none;
  opacity: 0.8;
  }

.nav-container {
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 0 5rem;
  margin: 1rem auto 0;   /* <— This centers the container horizontally */
  max-width: 50rem;
  box-sizing: border-box;
  display: block;        /* <— Ensure it's not trying to act like a flexbox */
}


  nav {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

nav a {
    text-decoration: none;
    font-family: 'geographicascript', 'Georgia', serif;
    font-size: clamp(1.25rem, 4vw, 2.5rem); /* increased min and max */
    color: #222;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #222;
    bottom: 1em;
    left: 0;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}



.logo {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
    fill: #8B3E2F;
}
.logo-small {
    max-width: 80px;
    height: auto;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
    fill: #8B3E2F;
}

.date-stamp {
    position: absolute;
    top: 2vh;
    right: 3vw;
    font-family: 'geographicascript', serif;
    /* your custom font */
    font-size: clamp(1.2rem, 2vw, 2rem);
    /* responsive sizing */
    color: #222;
    opacity: 0.8;
    z-index: 3;
    /* above canvas and header */
    pointer-events: none;
    letter-spacing: 0.05em;
}

.content-section {
  max-width: 60rem;
  margin: 0 auto;
  padding: 2rem 2rem;
  font-family: 'georgia', serif;
  font-size: clamp(1.2rem, 1rem, 1.5rem);
  line-height: 1.25;
  text-align: left;
  z-index: 2;
  position: relative;
}


/*  ▲ everything you already had  */

@media (max-width: 640px) {      /* iPhone SE → large phones */
  header {
    padding-top: 10vh;           /* shrink the 15 % padding */
  }

  .nav-container {
    padding: 0.5rem 1rem;
    gap: 2.5rem;                   /* tighter gaps inside the frosted card */
  }

  nav {
    flex-wrap: wrap;             /* let links wrap instead of overflow */
    justify-content: center;
  }

  nav a {
    font-size: 2rem;           /* slightly smaller link text */
  }

  /* optional: stack the links vertically instead of wrapping 2-per-line */
  /* nav { flex-direction: column; align-items: center; } */
}
