/* Access denied page: Pasta Evangelists brand, one light look on purpose.
   Every style lives in this file (no inline style attributes) so the
   Content-Security-Policy in _headers can stay at style-src 'self'. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #FAF5EE;     /* page ground, from the sign-in page */
  --sand: #EDE4D8;      /* shadows, floor */
  --rule: #D9C9B6;      /* dashed divider */
  --brown: #6F250F;     /* logo brown: buttons, links */
  --ink: #241B17;       /* text */
  --rust: #9A4A22;      /* small accent text (contrast-safe on cream) */
  --muted: #6B5A50;     /* secondary text */
  --paper: #FFFDF9;     /* speech bubble */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brown); }
a:hover { color: var(--ink); }
a:focus-visible,
button:focus-visible { outline: 3px solid #C8794F; outline-offset: 3px; }

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.brand {
  padding: 20px clamp(16px, 5vw, 64px);
}
.brand img { display: block; height: 46px; width: auto; max-width: 100%; }

main {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px clamp(16px, 5vw, 64px) 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  /* When the two blocks stack (phones), keep them together instead of
     spreading the leftover screen height between them. */
  align-content: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 64px);
}

/* Nonna at her window (the bouncer) */
.scene {
  flex: 1 1 360px;
  max-width: 470px;
  min-width: 0;
  position: relative;
  padding-top: 64px;
}
.bubble {
  position: absolute;
  top: 0;
  right: 4%;
  max-width: 250px;
  margin: 0;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 12px 16px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
  box-shadow: 4px 4px 0 var(--sand);
}
.bubble.pop { animation: pop 0.28s ease-out; }
.bouncer-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.bouncer-button svg { display: block; width: 100%; height: auto; }
.hint {
  margin: 8px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* Nonna leans on the sill, wags her finger, and the CHIUSO sign swings. */
.lean { transform-box: fill-box; transform-origin: 50% 100%; animation: lean 3.6s ease-in-out infinite; }
.wag { transform-box: fill-box; transform-origin: 50% 100%; animation: wag 0.9s ease-in-out infinite; }
.swing { transform-box: fill-box; transform-origin: 50% 0; animation: swing 3s ease-in-out infinite; }
@keyframes lean { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes wag { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }
@keyframes swing { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes pop { 0% { transform: scale(0.92); } 70% { transform: scale(1.04); } 100% { transform: scale(1); } }

/* The words */
.copy {
  flex: 1 1 420px;
  max-width: 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
}
h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lead { margin: 0; font-size: 19px; line-height: 1.5; }
.steps {
  margin: 0;
  padding-left: 1.4em;
  display: grid;
  gap: 8px;
  font-size: 18px;
  line-height: 1.45;
}
.steps li::marker { color: var(--rust); font-weight: 700; }
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 6px;
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--brown);
  color: var(--cream);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.button:hover { background: var(--ink); color: var(--cream); }
.text-link { font-weight: 600; font-size: 16px; }
.help {
  margin: 6px 0 0;
  padding-top: 16px;
  border-top: 1.5px dashed var(--rule);
  font-size: 15px;
  color: var(--muted);
}
.help a,
.it-email { font-weight: 700; color: var(--ink); }

/* Phones: the words first, a smaller bouncer under them */
@media (max-width: 800px) {
  .copy { order: -1; }
  .scene { max-width: 340px; padding-top: 58px; }
  .bubble { font-size: 17px; max-width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .lean, .wag, .swing, .bubble.pop { animation: none; }
}
