:root {
  --bg: #1b1a18;
  --ink: #ece6da;
  --muted: #a39b8c;
  --card: #b2dbc2;
  --card-ink: #1d1b18;
  --card-muted: #6d6556;
  --accent: #514e4e;
  --glow: rgba(143, 198, 165, 0.22);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Jost", "Futura", "Century Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.masthead {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 16px 20px;
}
.masthead h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.title-icon {
  Height: 1.5em; 
  Width: auto; 
  Vertical-align: -0.15em;
  Margin: 0 0.4em;
} 

.masthead p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.masthead a {
	color: var(--card); 
	text-decoration-color: var(--card);
	text-underline-offset: 3px;
}
.masthead a:hover {color: var(--ink);}

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.spread {
  position: relative;
  margin: 0;
  line-height: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.spread img {
  display: block;
  width: 100%;
  height: auto;
}
.overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Invisible until hovered; transparent fill still catches the pointer. */
.hotspot {
  fill: transparent;
  stroke: transparent;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  pointer-events: all;
  cursor: url("eye.png") 16 16, pointer;
  outline: none;
  transition: fill 0.2s, stroke 0.2s;
}
.hotspot:hover,
.hotspot:focus-visible,
.hotspot.is-active,
.hotspot.is-linked {
  fill: var(--glow);
  stroke: var(--accent);
}

.caption { cursor: url("eye.png") 16 16, help;  }

.hint {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Room on the left of the magazine for the button. */
.spread.has-button { margin-left: 96px; }

/* Button in the dark margin left of the magazine, level with the middle of the geometric screen.
   right: how far it sits from the magazine's edge. top: how far down. */
.look-here {
  position: absolute;
  right: calc(100% + 12px);
  top: 32%;
  width: 80px;
  transform: translateY(-50%);
  z-index: 5;
  padding: 6px 4px;
  background: var(--card);
  color: var(--card-ink);
  border-radius: 8px;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  animation: look-here-pulse 1.6s ease-in-out infinite;
}
/* On a narrow phone screen there's no room at the side, so it sits just under the magazine instead. */
@media (max-width: 700px) {
  .spread.has-button { margin-left: 0; }
  .look-here {
    position: static;
    display: inline-block;
    width: auto;
    margin-top: 10px;
    transform: none;
    padding: 6px 10px;
  }
}
.look-here:hover,
.look-here:focus-visible {
  background: var(--ink);
  animation-play-state: paused;
}
@keyframes look-here-pulse {
  0%   { opacity: 1;   box-shadow: 0 0 0 0 rgba(178, 219, 194, 0.8); }
  50%  { opacity: 0.6; }
  70%  { box-shadow: 0 0 0 14px rgba(178, 219, 194, 0); }
  100% { opacity: 1;   box-shadow: 0 0 0 0 rgba(178, 219, 194, 0); }
}

/* Second image (egret room), further down the page, with its note above. */
.second-section {
  max-width: 640px;
  margin: 48px auto 0;
  scroll-margin-top: 24px;
}
/* Same look as the masthead subtitle. */
.section-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.spread-second {
  box-shadow: none;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.bubble {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: min(340px, calc(100vw - 32px));
  padding: 16px 18px;
  background: var(--card);
  color: var(--card-ink);
  border-top: 3px solid var(--accent);
  border-radius: 2px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.bubble.is-wide { width: min(520px, calc(100vw - 32px)); }
.bubble.is-visible { opacity: 1; }
.bubble.is-interactive { pointer-events: auto; }
.bubble-text a,
.bubble-links a {
  color: inherit;
  font-weight: 500;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.bubble-text a:hover,
.bubble-links a:hover { color: var(--accent); }
.bubble[hidden] { display: none; }
.bubble-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bubble-maker {
  margin: 4px 0 10px;
  color: var(--card-muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.bubble-maker:empty { display: none; }
.bubble-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}
.bubble.is-quote .bubble-text { font-style: italic; }
.bubble.is-quote .bubble-text::before { content: "\201C"; }
.bubble.is-quote .bubble-text::after { content: "\201D"; }
.bubble-text:empty { display: none; }
.bubble-links {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  line-height: 1.5;
}
.bubble-links li + li { margin-top: 4px; }
.bubble-links:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
  .hotspot, .bubble { transition: none; }
  .look-here { animation: none; }
}
