/* Shared foundation: tokens, reset, 3D buttons */
:root {
  --ink: #121314;
  --ink-2: #151c28;
  --paper: #ffffff;
  --yellow: #ffe57b;
  --yellow-2: #ffe062;
  --amber: #f59e0b;
  --blue: #0445d9;
  --blue-2: #267cfd;
  --muted: #adadad;
  --btn-dark: #191811;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); line-height: 1.4; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--yellow); color: var(--ink); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- 3D button ---------- */
.btn {
  --face: var(--yellow);
  --depth: var(--amber);
  --text: var(--ink);
  --border: transparent;
  position: relative;
  display: inline-flex;
  padding-bottom: 6px;
  text-decoration: none;
  border-radius: 20px;
  -webkit-tap-highlight-color: transparent;
}
.btn::before { /* the depth layer */
  content: "";
  position: absolute;
  inset: 6px 0 0 0;
  border-radius: 20px;
  background: var(--depth);
}
.btn__face {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 24px;
  border-radius: 20px;
  background: var(--face);
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--border);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform 120ms ease;
}
.btn__face svg, .btn__face img { width: 28px; height: 28px; flex: none; }
.btn--caps .btn__face { font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.btn:hover .btn__face { transform: translateY(-3px); } /* hover lifts the face (the ledge grows); a click presses it down */
.btn:active .btn__face { transform: translateY(6px); }
.btn:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 4px; }

.btn--outline { --face: var(--btn-dark); --text: var(--yellow); --border: var(--yellow); }
.btn--ink { --face: #3e4b66; --depth: var(--ink-2); --text: #fff; }
.btn--paper { --face: #fff; --depth: var(--ink-2); --text: #3e4b66; --border: #3e4b66; }
.btn--icon .btn__face { padding: 10px 16px; }

@media (max-width: 640px) {
  .btn__face { min-height: 48px; padding: 8px 16px; gap: 8px; font-size: 15px; border-radius: 16px; }
  .btn, .btn::before { border-radius: 16px; }
  .btn--caps .btn__face { letter-spacing: 1px; }
  .btn__face svg, .btn__face img { width: 22px; height: 22px; }
  .btn--icon .btn__face { padding: 8px 12px; }
}

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