/* One button palette for the site and the email preferences page. */
:root {
  --action-ink: #171717;
  --action-gold: #ffd36b;
  --action-paper: #fff;
  --action-subtle: #d7dce3;
}

body :is(#home, #vip, #yard-dialog) .button,
body :is(.button, .friend-meet, .compact-actions button, .preview-link,
  .greeting-replay, .rocky-name-trigger, .close, header nav a, .language-switch button,
  .site-footer .instagram-follow, .email-preferences form button, .return-home),
body #yard-dialog .yard-close,
body #books .purchase-options a,
body #bring-home .set-individual-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 9px 15px;
  border: 1px solid var(--action-edge, var(--action-ink));
  border-radius: 999px;
  background: var(--action-fill, var(--action-ink));
  color: var(--action-text, #fff);
  box-shadow: var(--action-shadow, 0 3px 0 #000);
  font: 800 .9375rem/1.25 Nunito, Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  white-space: normal;
}

body :is(.preview-link, .greeting-replay, .rocky-name-trigger, .close, .return-home, .site-footer .instagram-follow),
body #yard-dialog .yard-close,
body #home .hero-actions .vip-link,
body #vip .vip-freebie .button,
body #books .purchase-options a:first-child,
body #bring-home .set-individual-link {
  --action-fill: var(--action-paper);
  --action-edge: var(--action-ink);
  --action-text: var(--action-ink);
  --action-shadow: none;
}

body #home .hero-actions .vip-link { --action-fill: transparent; }

body #books .purchase-options a:last-child { --action-edge: #fff; }

body #vip .vip-form button,
body header nav a[href="#vip"] {
  --action-fill: var(--action-gold);
  --action-edge: #b78427;
  --action-text: var(--action-ink);
  --action-shadow: none;
}

body header nav a:not([href="#vip"]),
body .language-switch button[aria-pressed="false"] {
  --action-fill: var(--action-paper);
  --action-edge: var(--action-subtle);
  --action-text: var(--action-ink);
  --action-shadow: none;
}

body .language-switch button[aria-pressed="true"] { --action-shadow: none; }
body header nav { row-gap: 7px; }
body header nav a {
  border-radius: 14px;
  font-size: clamp(.78rem, 1.4vw, .9rem);
  padding-inline: 10px;
}

body .language-switch { background: #f7f8fa; border-color: var(--action-subtle); }
body .language-switch button { padding: 7px 10px; }

body :is(a, button, summary):focus-visible { outline: 3px solid #b06c00; outline-offset: 4px; }
body button:disabled { opacity: .65; cursor: wait; }

body :is(.button, .compact-actions button, .preview-link, .set-individual-link, .greeting-replay,
  .rocky-name-trigger, .yard-close, .close, header nav a, .language-switch button,
  .site-footer .instagram-follow, .email-preferences form button, .return-home,
  .purchase-options a):active:not(:disabled) { filter: brightness(.92); }

body .close,
body #yard-dialog .yard-close { width: 44px; height: 44px; padding: 0; font-size: 24px; }

body #look-inside .preview-choice {
  background: var(--action-paper);
  border: 1px solid var(--action-subtle);
  border-radius: 16px;
  color: var(--action-ink);
}

body #look-inside .preview-choice small { color: var(--action-ink); }
body #look-inside .preview-choice[aria-pressed="true"] {
  background: #fff3d6;
  border-color: #b78427;
}

body .yard-entrance .entrance-sign {
  background: var(--action-ink);
  border-color: var(--action-ink);
  border-radius: 14px;
  box-shadow: 0 3px 0 #000;
  color: #fff;
  text-shadow: none;
}
body .yard-entrance .entrance-sign :is(strong, small) { color: #fff; }

@media (max-width: 600px) {
  .compact-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  body .compact-actions :is(button, .preview-link) { padding: 7px 8px; font-size: .875rem; }
}
