/* wheelofpigs.com -- the only stylesheet on this domain.
   Written for this host. Nothing here is copied from another site in the network, and
   the filename carries a digest of these bytes so the server can cache it for a long
   window: change the file, rename it, update src/lib/site.ts. */

:root {
  --wop-ink: #f6ecf4;
  --wop-dim: #c3a9bd;
  --wop-pit: #22101f;
  --wop-pit-2: #2e1729;
  --wop-pit-3: #3a1e33;
  --wop-gold: #ffb94e;
  --wop-mint: #6fe3c4;
  --wop-rose: #ff8fb4;
  --wop-rule: #4b2a42;
  --wop-wide: 61rem;
  --wop-gap: 1.6rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.wop-sheet {
  margin: 0;
  padding: 0 1rem 3rem;
  background: var(--wop-pit);
  color: var(--wop-ink);
  font: 400 1.0625rem/1.68 "Segoe UI", Candara, Optima, "Trebuchet MS", sans-serif;
  text-rendering: optimizeLegibility;
}

a { color: var(--wop-mint); }
a:hover,
a:focus-visible { color: var(--wop-gold); }

:focus-visible {
  outline: 3px solid var(--wop-gold);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ---- header: the door first, then the wordmark, then the ways ---------- */

.wop-top {
  max-width: var(--wop-wide);
  margin: 0 auto;
  padding: 1.1rem 0 1.4rem;
  border-bottom: 2px dashed var(--wop-rule);
}

/* The operator door. It is the conversion element of every page, so it sits above
   <main>, carries its own plate, and on a phone it is a full-width block rather than
   a chip squeezed next to a menu. */
.wop-door {
  display: block;
  padding: 1.05rem 1.3rem;
  border: 0;
  border-radius: 1.1rem;
  background: linear-gradient(104deg, var(--wop-gold), #ff8b3d 78%);
  box-shadow: 0 0.6rem 1.5rem rgba(0, 0, 0, 0.42);
  color: #2b1205;
  text-decoration: none;
  text-align: center;
}

.wop-door:hover,
.wop-door:focus-visible {
  background: linear-gradient(104deg, #ffd184, var(--wop-gold) 78%);
  color: #2b1205;
}

.wop-door strong {
  display: block;
  font-size: clamp(1.18rem, 4.6vw, 1.56rem);
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1.22;
}

.wop-door small {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.84;
}

.wop-mark {
  display: block;
  margin: 1.25rem 0 0.9rem;
  text-decoration: none;
  color: inherit;
}

.wop-mark b {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: var(--wop-rose);
}

.wop-mark i {
  display: block;
  font-size: 0.82rem;
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wop-dim);
}

.wop-ways {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.15rem;
  font-size: 0.95rem;
}

.wop-ways a { text-decoration: none; }
.wop-ways a:hover { text-decoration: underline; }

.wop-ways em {
  font-style: normal;
  font-weight: 700;
  color: var(--wop-gold);
  border-bottom: 2px solid var(--wop-gold);
}

/* ---- breadcrumb: its own landmark, between header and main ------------- */

.wop-trail {
  display: flex;
  gap: 0.45rem;
  align-items: baseline;
  max-width: var(--wop-wide);
  margin: 0.9rem auto 0;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wop-dim);
}

.wop-trail a { text-decoration: none; }
.wop-trail b { color: var(--wop-rule); font-weight: 400; }
.wop-trail em { font-style: normal; color: var(--wop-ink); }

/* ---- main -------------------------------------------------------------- */

.wop-floor {
  max-width: var(--wop-wide);
  margin: 0 auto;
}

.wop-floor h1 {
  margin: 1.3rem 0 0.7rem;
  font-size: clamp(1.75rem, 6.1vw, 2.65rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.wop-lede {
  margin: 0 0 1.6rem;
  font-size: clamp(1.06rem, 2.4vw, 1.2rem);
  color: #e8d6e3;
}

.wop-frame {
  margin: 0 0 1.5rem;
}

.wop-frame img {
  width: 100%;
  border-radius: 1.2rem;
  border: 1px solid var(--wop-rule);
}

.wop-frame figcaption {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  color: var(--wop-dim);
}

/* The fact strip. Deliberately short on every page: the content rule for this
   network caps text inside list items at a fraction of the page, and the point of
   these lines is to be scanned rather than read. */
.wop-tally {
  margin: 0 0 2rem;
  padding: 1rem 1.15rem 1rem 2.3rem;
  border-left: 5px solid var(--wop-rose);
  border-radius: 0 0.9rem 0.9rem 0;
  background: var(--wop-pit-2);
  font-size: 0.95rem;
  list-style: "\25B8\00a0\00a0";
}

.wop-tally li { margin: 0.3rem 0; }

.wop-act {
  margin: 0 0 2.2rem;
}

.wop-act h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.26rem, 3.9vw, 1.6rem);
  font-weight: 750;
  line-height: 1.26;
  color: var(--wop-gold);
  text-wrap: balance;
}

.wop-act p { margin: 0 0 0.95rem; }
.wop-act b { color: #fff3dd; }
.wop-act em { color: var(--wop-mint); font-style: italic; }
.wop-act i { color: var(--wop-rose); }

.wop-plus {
  margin: 1.15rem 0 0;
  padding: 0.9rem 1.1rem 0.9rem 2.1rem;
  border: 1px dotted var(--wop-rule);
  border-radius: 0.8rem;
  background: var(--wop-pit-3);
  font-size: 0.93rem;
  list-style: square;
}

.wop-plus li { margin: 0.25rem 0; }

/* The colour portraits, used once, on the page about the colours. */
.wop-herd {
  display: grid;
  gap: 1rem;
  margin: 0 0 2.2rem;
}

.wop-herd h2 {
  margin: 0;
  font-size: 1.26rem;
  font-weight: 750;
  color: var(--wop-gold);
}

.wop-herd figure {
  margin: 0;
  padding: 0.9rem;
  border-radius: 1rem;
  background: var(--wop-pit-2);
  text-align: center;
}

.wop-herd img {
  margin: 0 auto;
  width: 9rem;
  height: auto;
}

.wop-herd figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wop-dim);
}

/* Questions as headings: this domain ships no <details> and no <dl> at all. */
.wop-asks {
  margin: 2.6rem 0 1.8rem;
  padding-top: 1.4rem;
  border-top: 2px dashed var(--wop-rule);
}

.wop-asks h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.26rem, 3.9vw, 1.6rem);
  font-weight: 750;
  color: var(--wop-rose);
}

.wop-asks h3 {
  margin: 1.35rem 0 0.4rem;
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--wop-ink);
}

.wop-asks p {
  margin: 0;
  color: #e3d1de;
}

.wop-tail {
  margin: 2rem 0 0;
  padding: 1.05rem 1.2rem;
  border-radius: 0.9rem;
  background: var(--wop-pit-2);
  font-size: 0.93rem;
  color: var(--wop-dim);
}

/* ---- footer ----------------------------------------------------------- */

.wop-base {
  max-width: var(--wop-wide);
  margin: 2.8rem auto 0;
  padding-top: 1.5rem;
  border-top: 4px double var(--wop-rule);
  font-size: 0.89rem;
  color: var(--wop-dim);
}

.wop-feet {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-bottom: 1.1rem;
  font-size: 0.9rem;
}

.wop-feet a { text-decoration: none; }
.wop-feet a:hover { text-decoration: underline; }

.wop-base p { margin: 0 0 0.85rem; }
.wop-help b { color: var(--wop-mint); white-space: nowrap; }

/* ---- the age question ------------------------------------------------- */

/* Without the open attribute a <dialog> is display:none, so this block costs
   nothing in layout and contributes no shift. */
.wop-check {
  width: min(31rem, calc(100vw - 2rem));
  padding: 1.5rem 1.4rem 1.6rem;
  border: 2px solid var(--wop-gold);
  border-radius: 1.2rem;
  background: var(--wop-pit-3);
  color: var(--wop-ink);
}

.wop-check::backdrop {
  background: rgba(14, 5, 12, 0.78);
}

.wop-check-kick {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wop-dim);
}

.wop-check h2 {
  margin: 0 0 0.7rem;
  font-size: 1.44rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--wop-gold);
}

.wop-check p {
  margin: 0 0 1.1rem;
  font-size: 0.97rem;
}

.wop-check-go,
.wop-check-stop {
  display: block;
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.82rem 1rem;
  border-radius: 0.8rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.wop-check-go {
  border: 0;
  background: var(--wop-gold);
  color: #2b1205;
}

.wop-check-stop {
  border: 1px solid var(--wop-rule);
  background: transparent;
  color: var(--wop-dim);
}

.wop-check-go:hover { background: #ffd184; }
.wop-check-stop:hover { color: var(--wop-ink); border-color: var(--wop-dim); }

/* ---- wider screens --------------------------------------------------- */

@media (min-width: 46rem) {
  body.wop-sheet { padding-inline: 2rem; }

  .wop-top {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "mark door" "ways door";
    align-items: center;
    column-gap: 2rem;
  }

  .wop-door {
    grid-area: door;
    max-width: 21rem;
    padding: 1.15rem 1.6rem;
    text-align: left;
  }

  .wop-mark { grid-area: mark; margin: 0; }
  .wop-ways { grid-area: ways; margin-top: 0.7rem; }

  .wop-frame img { max-height: 27rem; object-fit: cover; }

  .wop-herd { grid-template-columns: repeat(3, 1fr); }
  .wop-herd h2 { grid-column: 1 / -1; }

  .wop-check-go,
  .wop-check-stop { width: auto; min-width: 13rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
