/* ============================================================
   SITE STYLES — everything visual lives in this one file.
   The most common things you may want to tweak are marked
   with  <-- EDIT  comments.
   ============================================================ */

/* ---------- Basic settings ---------- */
:root {
  --black: #050505;                 /* page background        <-- EDIT */
  --text:  #f5f3ee;                 /* text colour (off-white) <-- EDIT */
  --fade-speed: 0.9s;               /* photo fade duration    <-- EDIT */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  background: var(--black);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;   /* title/body font <-- EDIT */
  overflow: hidden;                 /* pages are exactly one screen */
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Top navigation ---------- */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 36px;
  padding: calc(14px + env(safe-area-inset-top)) 16px 10px;
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
}

.top-nav a {
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;                  /* nav link size            <-- EDIT */
  letter-spacing: 0.22em;           /* space between letters  <-- EDIT */
  opacity: 0.75;
  min-height: 44px;                 /* comfortable touch target */
  display: inline-flex;
  align-items: center;
  transition: opacity 0.3s ease;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}

.top-nav a:hover,
.top-nav a:focus-visible { opacity: 1; }

/* ---------- Home page photo ---------- */
.home-photo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;              /* whole photo visible, black fills the rest */
}

/* ---------- Title in the middle ---------- */
.home-title {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;             /* clicks pass through to the page */
}

.home-title h1 {
  font-weight: normal;
  font-size: clamp(2rem, 6vw, 4.5rem);   /* title size        <-- EDIT */
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.75);
}

/* ---------- Two text boxes at the bottom ---------- */
.home-bottom {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(28px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 0 32px;
  pointer-events: none;
}

.bottom-box {
  max-width: 42ch;
  font-size: 14px;                  /* bottom text size       <-- EDIT */
  line-height: 1.6;
  opacity: 0.85;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}

.bottom-box:last-child { text-align: right; }

/* ---------- Gallery (theme) pages ---------- */
.gallery-page { cursor: pointer; }

.slide {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;              /* photos are never cropped */
  opacity: 0;
  transition: opacity var(--fade-speed) ease;
  pointer-events: none;
}

.slide.active { opacity: 1; }

/* Small "tap / click" hint — shown until the first tap */
.hint {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 0; right: 0;
  text-align: center;
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.45;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.hint.hidden { opacity: 0; }

/* ---------- Small screens (phones) ---------- */
@media (max-width: 640px) {
  .top-nav { gap: 4px 22px; }

  .home-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 0 24px;
  }

  .bottom-box:last-child { text-align: center; }
}
