/* Fonts */
@font-face {
  font-family: 'castlestone';
  src: url('/fonts/CastleOfStonesRegular-rlg7.ttf') format('truetype');
}

@font-face {
  font-family: 'metamorphous';
  src: url('/fonts/Metamorphous-7wZ4.ttf') format('truetype');
}

@font-face {
  font-family: 'mountainking';
  src: url('/fonts/MountainKingRegular-woBYn.ttf') format('truetype');
}

@font-face {
  font-family: 'zelda';
  src: url('/fonts/TheWildBreathOfZelda-15Lv.ttf') format('truetype');
}


    :root {
      --header-h: 74px;
      --pad-x: 14px;
      --radius: 12px;
      --shadow: 0 10px 28px rgba(0,0,0,.18);
      --border: 1px solid rgba(0,0,0,.15);
      --bg-color: #fdfaf5;
      --text-color: #2e2e2e;
      --accent-color: #9e7c4a;
      --border-color: #d6b179;
    }

    body { 
      margin: 0; padding: 0; 
      font-family: 'metamorphous', serif;
      background-color: var(--bg-color);
      color: var(--text-color);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      position: relative;
      padding-top: var(--header-h); /* prevent content hiding under fixed header */
    }

    /* ===== Header layout: [hamburger] [title centered] [sign-in area] ===== */
    header#site-header {
      position: fixed; 
      top: 0; 
      left: 0;
      right: 0;
      z-index: 2000;
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 10px;
      height: var(--header-h);
      padding: 0 var(--pad-x);
      background: var(--color-header-bg, #faf6ee);
      backdrop-filter: blur(4px);
      margin-top: 0;
    }

    /* Left: hamburger anchor zone */
    .left-slot, .right-slot { position: relative; display: flex; align-items: center; min-width: 48px; }

    /* Centered title stays centered between left and right */
    .site-title {
      justify-self: center;
      text-align: center;
      margin: 0;
      font-size: clamp(20px, 3.2vw, 32px);
      font-weight: 600;
      letter-spacing: .5px;
      line-height: 1;
    }

    /* ===== Hamburger button ===== */
    .hamburger-btn {
      display: inline-flex; align-items: center; justify-content: center;
      width: 40px; height: 40px; border-radius: 10px;
      background: #fff; border: var(--border); cursor: pointer;
    }
    .hamburger-btn:hover { background: #f4f4f4; }
    .hamburger-icon { width: 22px; height: 22px; display: block; }

    /* ===== Popovers (hamburger & signin) ===== */
    .popover {
      position: absolute;
      top: calc(100% + 8px);
      background: #fff;
      border: var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 12px;
      display: none;
      min-width: 260px;
      max-width: min(360px, 94vw);
    }
    .popover.show { display: block; }

    /* Hamburger menu list */
    .nav-popover { left: 0; }
    .nav-popover h3 {
      margin: 4px 2px 8px;
      font-size: 15px;
      font-weight: 600;
    }
    .nav-list { list-style: none; margin: 0; padding: 4px 0; }
    .nav-list li { margin: 0; }
    .nav-list button {
      width: 100%;
      text-align: left;
      background: transparent;
      border: none;
      padding: 10px 8px;
      border-radius: 8px;
      cursor: pointer;
      font-size: 15px;
    }
    .nav-list button:hover { background: #f6f6f6; }

    /* Sign-in button & popover */
    .signin-button { 
      position: relative;
      top: 1rem;
      right: 1rem;
      padding: 0.3rem 0.6rem;
      font-size: 0.9rem;
      background-color: gold;
      color: black;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      transition: background-color 0.3s ease, box-shadow 0.3s ease;
     /* z-index: 2; */
    }

    .signin-popover { right: 0; }

    .signin-popover h3 { margin: 4px 2px 10px; font-size: 16px; font-weight: 600; }
    .signin-form-row { display: grid; gap: 6px; margin: 8px 0; }
    .signin-form-row label { font-size: 13px; opacity: .85; }
    .signin-form-row input, .signin-form-row select {
      width: 100%; padding: 9px 10px; border: 1px solid rgba(0,0,0,.2);
      border-radius: 8px; background: #fff;
    }
    .signin-actions { display: flex; gap: 8px; margin-top: 10px; }
    .btn-primary {
      background: #222; color: #fff; border: 1px solid #222;
      padding: 8px 12px; border-radius: 8px; cursor: pointer;
    }
    .btn-secondary {
      background: transparent; color: #222; border: 1px solid rgba(0,0,0,.2);
      padding: 8px 12px; border-radius: 8px; cursor: pointer;
    }
    .signin-msg { font-size: 13px; margin-top: 6px; }
    .signin-msg.error { color: #b00020; }
    .signin-msg.success { color: #0b7a0b; }


































/* Header (fixed, no divider line) */
/* 
  #site-header {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: var(--bg-color);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 1000;
}

#site-header h1 {
  font-family: 'metamorphous', serif;
  font-size: 2.4rem;
  margin: 0;
}

.signin-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.9rem;
  background-color: gold;
  color: black;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.signin-button:hover {
  background-color: goldenrod;
  box-shadow: 0 0 6px rgba(0,0,0,0.6);
}
*/

/* Remove broken overlays */
/*
body::before,
body::after,
html::before {
  content: none !important;
}

#site-purpose {
  max-width: 900px;
  margin: 2rem auto;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #222;
}
*/
