/* style.css - updated for header-as-home button with left offset */

/* predictable sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Georgia, serif;
  background-color: transparent;
  width: 100%;
}

/* Site title box as a full-width fixed homepage button.
   Grid columns: 1fr (left) | auto (center) | 1fr (right)
   Padding provides the 20px left offset you requested. */
.site-title-box {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 999;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 20px;             /* 20px left offset */
  text-decoration: none;
  color: black;
  font-size: 0.8rem;
  cursor: pointer;
  user-select: none;
  background: transparent;     /* keep transparent unless you want a bar */
}

/* the three slots */
.site-title-box .site-left  { text-align: left;  }
.site-title-box .site-center{ text-align: center; }
.site-title-box .site-right { text-align: right; }

/* keyboard focus for accessibility */
.site-title-box:focus {
  outline: 3px solid rgba(0,0,0,0.12);
  outline-offset: 2px;
}

/* ensure page content starts below the fixed header */
body {
  /* adjust this if you change top / padding / font-size of .site-title-box */
  padding-top: 64px;
}

/* popup area */
.popup {
  position: relative;
  margin: 60px 80px 0 20px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: black;
}

/* landing image */
#landing-img {
  position: relative; /* normal flow */
  display: block;
  margin: 20px 0 0 0; /* optional top spacing */
  width: 150px;
  height: auto;
  cursor: pointer;
}

/* footnote */
.footnote-wrapper {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  color: black;
  font-size: 0.8rem;
}

/* content-grid (preserved for pages that use it) */
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;

  max-width: 1200px;
  margin: 60px 0 0 20px; /* left edge 20px from page */
  padding: 2rem;

  line-height: 1.5;
  text-align: left;
  align-items: start;
}

.column {
  line-height: 1.5;
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
    margin: 40px 20px;
    padding: 1rem;
    gap: 1.5rem;
  }
}

/* small screen tweaks for header text size or collapsing */
@media (max-width: 420px) {
  .site-title-box {
    font-size: 0.75rem;
    padding: 0 12px;
  }

  /* optionally hide the right word on very small screens:
  .site-title-box .site-right { display: none; } */
}
