/* ======================================================
   Welcome to colors!
   ====================================================== */


.accessibility-flag {
  display: none; /*inline-flex;*/
}

.wishlist-flag {
  display: none; /*inline-flex;*/
}


/* Main Area */
:root {
  /* Core surfaces */
  --bg: rgb(216, 238, 255);
  --surface: rgba(255, 255, 255, 0.98);
  --surface-soft: rgba(255, 255, 255, 0.55);

  /* Text */
  --text: #222;
  --text-soft: #555;
  --text-link: #222;
  --text-muted: #777;

  /* Accents */
  --border: rgba(0, 0, 0, 0.08);
  --shadow: rgba(0, 0, 0, 0.08);

  /* Character-friendly highlight */
  --highlight: #e8efe9; /* soft sage / loom tone */
  --content-width: 720px; /* or whatever you decide later */
}


:root[data-theme="dark"] {
  --bg: rgba(9, 24, 57, 1);

  --surface: rgba(38, 56, 92, 0.98);     /* primary card */
  --surface-soft: rgba(25, 38, 64, 0.70); /* inner panels */

  --text: rgba(214, 221, 232, 0.95);
  --text-soft: rgba(188, 204, 220, 0.8);
  --text-muted: rgba(160, 175, 190, 0.7);

  --text-link: rgba(243, 237, 146, 0.85);

  --border: rgba(255, 255, 255, 0.08);
  --shadow: rgba(0, 0, 0, 0.6);
}


/* Modal Image Stuff */
:root {
  --modal-surface: rgba(255, 255, 255, 0.95);
  --modal-backdrop: rgba(0, 0, 0, 0.6);
}

:root[data-theme="dark"] {
  --modal-surface: rgba(24, 26, 25, 0.95);
  --modal-backdrop: rgba(0, 0, 0, 0.8);
}

/* Beta Stuff */
:root {
  --beta-surface: rgb(230, 217, 242);     /* lavender panel */
  --beta-soft: rgba(230, 217, 242, 0.30); /* outer glow */
}

:root[data-theme="dark"] {
  --beta-surface: rgb(58, 72, 112);       /* indigo dusk panel */
  --beta-soft: rgba(58, 72, 112, 0.25);   /* outer glow */
}

:root {
  --divider: rgba(0, 0, 0, 0.08);
}

:root[data-theme="dark"] {
  --divider: rgba(255, 255, 255, 0.12);
}




/* =========================
   SITE HEADER (NAV ONLY)
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(0,0,0,0.15);
}

.site-header .dropdown,
.site-header .nav-dropdown {
  position: absolute; /* or fixed if your menu needs it */
  z-index: 1100;
}

/*
.site-header,
.site-header * {
  overflow: visible;
}*/

:root {
  --site-header-height: 4.5rem; /* adjust once */
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  overflow-x: visible;
}

main.container {
  padding-top: 1rem;
}

.site-main {
  flex: 1;
}

dialog {
  border: none;
  padding: 0;
  background: transparent;
  cursor: default;
}

dialog img {
  max-width: min(90vw, 100%);
  max-height: 90vh;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

.image-modal,
dialog {
  z-index: 1000;
}





h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

a {
  color: var(--text-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

nav.debug ul {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.container {
  position: relative;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  max-width: 70ch;   /* or 65–75ch depending on feel */
}

.hero-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
}


.content-image {
  max-width: 60ch;   /* or 100%, or 800px — your choice */
  width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  cursor: zoom-in;
}

.image-modal {
  padding: 0;
  border: none;
  max-width: 90vw;
  max-height: 90vh;
}

.image-modal::backdrop {
  /*background: rgba(0, 0, 0, 0.65);*/
  background: var(--surface);
  color: var(--text);

}

.image-modal img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  margin: auto;
}

.modal-frame {
  /*background: #f8f8f8;         light panel */
  background: var(--modal-surface);
  color: var(--text);
  padding: 1rem;
  border-radius: 14px;
  max-width: 92vw;
  max-height: 92vh;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.modal-frame img {
  max-width: 100%;
  max-height: 80vh;
  height: auto;
  background: transparent;
}


.clickable {
  cursor: zoom-in;
  /*cursor: url("/images/cursor-magnify-gold.png") 16 16, zoom-in; <- Add my own later (32×32 or 48×48)*/
}

.modal-close {
  margin-top: 0.75rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}


.intro {
  font-size: 1.05rem;
  line-height: 1.6;
}

.quiet {
  color: var(--text);
  font-size: 0.9rem;
  max-width: 60ch;
}


.logo {
  /*max-width: 800px;*/
  width: 100%;
  height: auto;
}

.nav-main {
  background: var(--surface);
 /*color: var(--text);*/

}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;

  position: relative;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  position: relative; /* 👈 THIS is the anchor */
}


.nav-list a {
  top: 100%; /* directly under nav-bar */
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  display: block;
  color: var(--text-soft);
  font-weight: 600;
}

.nav-list {
  display: none;


  top: calc(100% - 0.5rem);
  left: 0;
  /*right: 0;*/

  list-style: none;
  margin: 0;
  padding: 0;

  flex-direction: column;
  background: var(--surface);
  /*color: var(--text);*/

  /*padding: 0.25rem 0.25rem 0.5rem;*/

  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-radius: 0 0 12px 12px;
  z-index: 999;
}

.nav-list li {
  list-style: none;
}

.nav-list li::marker {
  content: none;
}

  .nav-toggle {
    display: none; /* hidden on desktop */
    z-index: 1000;
    position: relative;
  }

.nav-logo-wrap {
  position: relative;
  display: inline-block;
}

/* Desktop dropdown: hover */
@media (min-width: 769px) {

  .nav-bar {
    justify-content: flex-start;
    padding-bottom: 0.75rem; /* creates breathing room */
  }

  .nav-logo-wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* space between logo and nav */
  }

  .nav-list {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 1.25rem;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }

  .has-dropdown {
    position: relative;
  }

  .has-dropdown > .dropdown {
    position: absolute;
    top: 100%;          /* attach directly below parent */
    left: 0;
    margin-top: 0;      /* IMPORTANT: no gap */
    padding-top: 0.5rem; /* internal spacing instead */
  }

  .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--surface);
    /*color: var(--text);*/

    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    border: 1px solid var(--surface);
    min-width: 200px;
    top: calc(100% + 10px);
  }

  .has-dropdown:hover .dropdown {
    display: block;
  }

  .has-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    height: 8px;
    width: 100%;
  }


  /* 🔑 IMPORTANT: hide hamburger on desktop */
  .nav-toggle {
    display: none;
  }
/* Desktop: footer spreads out slightly */
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
}

/* Mobile dropdown */
@media (max-width: 768px) {
  :root[data-theme="dark"] .site-header {
    --surface: rgb(38, 56, 92);
  }

  .dropdown {
    background: var(--surface);
    backdrop-filter: none;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;          /* directly under nav bar */
    left: 0;            /* align with logo */
    width: 100%;        /* same width as nav-bar */

    /*background: white;*/
    background: var(--surface);

    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 0 0 12px 12px;
    z-index: 999;
  }

  .nav-list.open {
    display: flex;
    flex-direction: column;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.4rem;

    /*background: white;*/
    background: var(--surface);


    border: 1px solid #ddd; 
    border-radius: 10px;

    padding: 0.25rem 0.55rem;   /* 👈 tighter, lighter feel */

    margin-left: auto;
    cursor: pointer;
  }

  .nav-list li + li {
    border-top: 1px solid #eee;
  }

  .nav-toggle:focus-visible {
    outline: 2px solid #355B4A;
    outline-offset: 2px;
  }

  .theme-toggle {
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.5rem 0.65rem;
  }

  .has-dropdown:hover .dropdown {
    display: none;
  }
  .has-dropdown {
    position: static;
  }

  .has-dropdown .dropdown {
    position: static;
    display: none;
    width: 100%;
    background: var(--surface);
    opacity: 1;              /* 🔑 kill see-through */
    box-shadow: none;        /* cleaner on mobile */
    border-radius: 0 0 12px 12px;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }
  .site-header {
    --surface: rgb(255, 255, 255);
  }
/*
  .hero-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
  }*/

}

/* Mobile accordion control */
.has-dropdown .dropdown {
  display: none;
}

.has-dropdown.open .dropdown {
  display: block;
} 

/* Dropdown Bars */
.dropdown li {
  position: relative;
  padding: 0.5rem 0;
}

.dropdown li + li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;          /* controls left inset */
  right: 1.5rem;         /* controls right inset */
  height: 1px;
  background: var(--divider);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #121413;
    --surface: rgba(28, 30, 29, 0.85);
    --surface-soft: rgba(32, 34, 33, 0.75);

    --text: #e6e6e6;
    --text-soft: #cfcfcf;
    --text-muted: #aaa;

    --border: rgba(255, 255, 255, 0.08);
    --shadow: rgba(0, 0, 0, 0.6);

    --highlight: #2a3a34; /* deep sage */
  }
}


/* Kill browser default list bullets completely */
#primary-nav,
#primary-nav li {
  list-style: none;
  /*margin: 0;
  padding: 0;
  padding-top: 2px;*/
}

/*
#primary-nav {
  top: -6px;
}*/

#primary-nav li:first-child a {
  padding-top: 6px;
}

#primary-nav li::marker {
  content: none;
}

.nav-logo {
  opacity: 0.9;
}

.nav-logo img {
  height: 24px;     /* controls vertical size */
  width: auto;      /* preserves aspect ratio */
  display: block;
}

/* Debug navigation (temporary / dev only) */
nav.debug ul {
  list-style-position: outside;
  list-style: disc;
  padding: 0;
  margin-top: 2rem;
  padding-left: 1.25rem;
}

nav.debug ul ul {
  list-style: circle;
}

nav.debug ul ul ul {
  list-style: square;
}

nav.debug li {
  margin-top: 0.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.debug {
  display: none;
}

body.dev .debug {
  display: block;
}


.beta-note {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem; /* was likely ~2–3rem */
  align-items: stretch;

  /*background: rgba(230, 217, 242, 0.4);  faint lavender */
  padding: .4rem 0 .75rem .75rem; /* top right bottom left */
  border-radius: 18px;
  margin-top: 3rem;
}
/*
.beta-figure img {
  max-height: 300px;
  object-fit: contain;
  margin-left: -0.25rem;  tiny tuck-in 
  pointer-events: none;  she’s informational, not clickable 
}*/

.beta-figure {
  position: absolute;
  right: 1rem;
  bottom: 0;

  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.beta-figure img {
  max-height: 200px;   /* match the content box 220 */
  width: auto;
  object-fit: contain;
  pointer-events: none;
  bottom: -6px;
}


.beta-note h2 {
  font-size: 1.4rem; /* smaller, calmer */
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #9b8211; /* soft gold */
}

.beta-note p {
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  color: #b79570; /* Text */
}

.beta-content {
  position: relative;

  /*background: #e6d9f2;*/
  padding: .5rem 9.5rem .5rem 1.25rem; /* top right bottom left */
  border-radius: 14px;

  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.6),
    inset -1px -1px 0 rgba(0,0,0,0.08),
    0 6px 16px rgba(0,0,0,0.12);

  border: 1px solid rgba(160, 130, 190, 0.35);
  min-height: 220px;
}

:root[data-theme="dark"] .beta-content {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    0 8px 20px rgba(0,0,0,0.55);

  border: 1px solid rgba(255,255,255,0.12);
}


.beta-note {
  background: var(--beta-soft);
}

.beta-content,
.beta-figure {
  background: var(--beta-surface);
  color: var(--text);
  /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);*/
}







/* Feet Stuff */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--surface-soft);
  padding: 1rem 0;
}

.footer-inner {
  max-width: 60ch;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-left {
  font-size: 0.9rem;
  color: var(--text);
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-nav a {
  text-decoration: none;
  color: var(--link-text);
  font-weight: 500;
}

.footer-nav a:hover {
  text-decoration: underline;
}


.site-footer {
  position: relative;
}

.footer-icons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-icons img {
  width: 22px;
  height: 22px;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-icons a:hover img,
.footer-icons a:focus-visible img {
  opacity: 1;
  transform: translateY(-1px);
}


.footer-icons a {
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-icons a:hover {
  opacity: 1;
  transform: translateY(-1px);
}






.accessibility-flag {
  display: none;
}

body.show-accessibility .accessibility-flag {
  display: inline-flex;
}



@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .footer-icons {
    align-self: flex-end;
  }
}

/* Toggles */


.theme-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;

  z-index: 900; /* below modals, above content */

  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;

  padding: 0.45rem 0.6rem;
  font-size: 0.95rem;

  cursor: pointer;

  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.4),
    0 4px 12px var(--shadow);

  opacity: 0.6;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


.theme-toggle:hover,
.theme-toggle:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
}

html,
body {
  height: 100%;
  transform: none !important;
  contain: none !important;
}

html {
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transform: none !important;
  contain: none !important;
}
