/* Opening takes: each page is the opening panel only. Shared styles come from ../styles.css. */

@font-face { font-family: "Surfers South Sans"; src: local("SurfersSouthSans"), local("Surfers South Sans"); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.infobar a { text-decoration: none; }
.infobar a:hover { color: var(--ink); }

/* The mark rocks on its own here, since a take page doesn't scroll */
.spin { animation: rock 5s ease-in-out infinite alternate; }
@keyframes rock { from { transform: rotate(-12deg); } to { transform: rotate(6deg); } }
@keyframes turn { to { transform: rotate(360deg); } }

/* ---------- B: one line ---------- */
.take-b .hero-body { grid-template-columns: 1fr; align-content: end; gap: 5vh; padding: 5vh 0 3vh; }
.take-b .strip { display: flex; align-items: flex-end; gap: 2vw; height: 42vh; }
.take-b .strip .box { position: relative; height: 100%; width: auto; }
.take-b .strip .box:nth-child(1) { height: 82%; transform: rotate(-3deg); }
.take-b .strip .box:nth-child(2) { transform: rotate(1.5deg); }
.take-b .strip .box:nth-child(3) { height: 70%; transform: rotate(-1deg); }
.oneline {
  position: relative;
  font-weight: 700; text-transform: uppercase; white-space: nowrap;
  font-size: calc((100vw - 2 * var(--gutter)) / 7.12);
  line-height: 1.42;
}
@supports (text-box: trim-both cap alphabetic) { .oneline { text-box: trim-both cap alphabetic; } }
.oneline .mark { position: absolute; width: clamp(110px, 15vw, 230px); right: 2%; bottom: 112%; }

/* ---------- C: script over chunky ---------- */
.take-c .hero-body { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.chunky { position: relative; font-weight: 400; }
.chunky .fat {
  display: block;
  font-family: "Surfers South Sans", var(--display);
  font-size: clamp(120px, 26vw, 400px); line-height: 1;
  text-transform: uppercase; letter-spacing: -.01em;
}
@supports (text-box: trim-both cap alphabetic) { .chunky .fat { text-box: trim-both cap alphabetic; } }
.chunky .script {
  position: absolute; z-index: 2; left: 2%; top: -.62em;
  font-size: clamp(90px, 15vw, 230px);
  color: var(--peach);
  transform: rotate(-8deg);
  text-shadow: 3px 4px 0 rgba(43, 37, 35, .35);
}
.solo { position: relative; }
.solo .box { position: relative; width: 100%; transform: rotate(3deg); }
.solo .mark { position: absolute; z-index: 1; width: 40%; left: -16%; bottom: -6%; }

/* ---------- D: repeat ---------- */
.take-d .hero-body {
  position: relative; display: flex; align-items: center;
  margin: 0 calc(-1 * var(--gutter)); padding: 4vh 0; overflow: hidden;
}
.rows { width: 100%; display: grid; gap: 2.4vh; }
.row {
  display: flex; width: max-content; white-space: nowrap;
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(48px, 8.2vw, 128px); line-height: 1.42;
  animation: slide 46s linear infinite;
}
.row.back { animation-direction: reverse; animation-duration: 52s; }
.row span { padding-right: .25em; }
@supports (text-box: trim-both cap alphabetic) { .row span { text-box: trim-both cap alphabetic; } }
.row.outline { color: transparent; -webkit-text-stroke: 2px var(--pale); }
.row.script span {
  font-family: var(--script); font-weight: 400; text-transform: none; word-spacing: 0;
  font-size: 1.55em; color: var(--peach); -webkit-text-stroke: .014em currentColor;
}
.row.ink { color: var(--ink); }
.take-d .mark {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  width: clamp(170px, 23vw, 340px);
  translate: -50% -50%;
  filter: drop-shadow(6px 8px 0 rgba(43, 37, 35, .35));
}

/* ---------- E: ring ---------- */
.take-e .hero-body { position: relative; display: block; min-height: 62vh; }
.ring {
  position: absolute; left: 50%; top: 50%;
  width: min(66vh, 86vw); aspect-ratio: 1;
  translate: -50% -50%;
}
.ring svg { width: 100%; height: 100%; overflow: visible; animation: turn 36s linear infinite; }
.ring text { font: 700 56px var(--display); fill: var(--pale); }
.ring .mark { position: absolute; left: 23%; top: 23%; width: 54%; filter: drop-shadow(5px 7px 0 rgba(43, 37, 35, .35)); }
.pin { position: absolute; }
.take-e .pin-a { width: 18vw; left: 1%; top: 6%; transform: rotate(-6deg); }
.take-e .pin-b { width: 15vw; right: 2%; top: 2%; transform: rotate(5deg); }
.take-e .pin-c { width: 13vw; right: 12%; bottom: 0; transform: rotate(-3deg); }

/* ---------- Switcher: a band under the panel ---------- */
.switcher {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px var(--gutter);
  background: var(--ink); color: var(--cream);
  font: 700 17px/1 var(--display); text-transform: uppercase; letter-spacing: .06em;
}
.switcher span { margin-right: 6px; }
.switcher a { text-decoration: none; padding: 9px 12px; border-radius: 999px; }
.switcher a[aria-current] { background: var(--peach); color: var(--ink); }
.switcher a:hover:not([aria-current]) { background: rgba(242, 238, 230, .15); }
.switcher a:last-child { margin-left: 6px; opacity: .75; }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .infobar { font-size: 4.6vw; flex-wrap: wrap; gap: .5em 1em; }

  .take-b .strip { height: auto; gap: 3vw; }
  .take-b .strip { flex-wrap: wrap; justify-content: center; }
  .take-b .strip .box { height: auto; width: 54%; }
  .take-b .strip .box:nth-child(1), .take-b .strip .box:nth-child(3) { height: auto; width: 40%; }
  .take-b .hero-body { align-content: center; padding-top: 10vh; }
  .oneline .mark { width: 28vw; bottom: 140%; }

  .take-c .hero-body { grid-template-columns: 1fr; padding-top: 12vh; }
  .chunky .fat { font-size: 46vw; }
  .chunky .script { font-size: 20vw; }
  .solo { width: 70%; margin-left: auto; }

  .take-d .mark { width: 46vw; }
  .row { font-size: 15vw; }

  .take-e .hero-body { min-height: 70vh; }
  .take-e .pin-a { width: 34vw; top: auto; bottom: 0; left: 0; }
  .take-e .pin-b { width: 30vw; top: 0; }
  .take-e .pin-c { display: none; }

}
