/* The hidden Sector Four page. Palette from the Sector Four cover:
   limestone cream, near-black, forest green, pecan brown, wall stone. */

body.s4 {
  --paper: #EDE7DA;
  --ink: #13171B;
  --ink-soft: #5A554C;
  --accent: #3F6B3C;
  --link: #2F5A2D;
  --pecan: #8E5A2B;
  --stone: #D2C6AE;
  background: var(--paper);
  color: var(--ink);
}

.s4-main { max-width: 52rem; margin: 0 auto; padding: 3rem 1rem 2rem; text-align: center; }
.s4-series {
  margin: 0 0 0.6rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--accent);
}
.s4-title { margin: 0; font-weight: 900; text-transform: uppercase; line-height: 0.92; font-size: clamp(3rem, 12vw, 6.5rem); }
.s4-rule { border-top: 2px solid var(--ink); max-width: 30rem; margin: 1.2rem auto 0; }
.s4-sub { margin: 0.6rem 0 0; font-style: italic; font-size: 1.15rem; }

.s4-emblem { margin: 2rem auto 0; width: min(18rem, 70vw); }
.s4-emblem svg { width: 100%; height: auto; display: block; overflow: visible; }
.s4-two { cursor: help; outline: none; }
.s4-two:hover circle, .s4-two:focus circle { stroke: var(--pecan); }
.s4-two:hover text, .s4-two:focus text { fill: var(--pecan); }

/* Quotes: a quiet list without JavaScript; a drifting field with it */
.s4-field { margin: 2.5rem auto 0; }
.s4-quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.s4-quote { margin: 0; }
.s4-quote blockquote { margin: 0; font-style: italic; font-size: 1.2rem; line-height: 1.45; }
.s4-quote .s4-who {
  display: block; margin-top: 0.4rem; font-size: 0.72rem; font-weight: 700; font-style: normal;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent);
}
.s4-quote .s4-book { display: block; margin-top: 0.15rem; font-size: 0.75rem; color: var(--ink-soft); font-style: italic; }
.s4-quote.is-featured blockquote { font-size: 1.55rem; }

.s4-field.is-floating { position: relative; height: 30rem; overflow: hidden; }
@media (max-width: 559px) { .s4-field.is-floating { height: 34rem; } }
.s4-field.is-floating .s4-quotes { display: block; position: absolute; inset: 0; }
.s4-field.is-floating .s4-quote {
  position: absolute; width: min(22rem, 80%); opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 2.2s ease;
  animation: s4-drift 14s ease-in-out infinite alternate;
}
.s4-field.is-floating .s4-quote.is-visible { opacity: 1; }
@keyframes s4-drift {
  from { translate: 0 0; }
  to { translate: var(--dx, 12px) var(--dy, -18px); }
}

.s4-scale {
  height: 12px; max-width: 30rem; margin: 2.5rem auto 0;
  border-bottom: 2px solid var(--ink);
  background-image:
    linear-gradient(to right, var(--ink) 2px, transparent 2px),
    linear-gradient(to right, var(--ink) 1px, transparent 1px);
  background-size: 25% 12px, 6.25% 6px;
  background-position: 0 0, 0 6px;
  background-repeat: repeat-x;
  box-shadow: inset -2px 0 0 var(--ink);
}
.s4-back { margin: 1.2rem 0 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.s4-back a { color: var(--pecan); }
.s4-footer { text-align: center; font-size: 0.8rem; color: var(--ink-soft); padding: 0 1rem 2rem; }
.s4-footer a { color: var(--link); }

@media (prefers-reduced-motion: reduce) {
  .s4-field.is-floating .s4-quote { animation: none; transition: none; }
}
