/* Farmers Insurance Skins Game Black Friday Sweepstakes */

@font-face {
  font-family: "Paloma";
  src: url("/assets/fonts/PPPaloma-Heavy.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farmers brand toolkit, August 2026 */
  --dark-blue: #00276e;
  --pink: #fec6e9;
  --bright-blue: #dae7ff;
  --magenta: #d40163;
  --magenta-dark: #b00152;
  --yellow: #f9d23b; /* from the Skins Game logo */
  --white: #ffffff;
  --black: #000000;

  --display: "Paloma", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Open Sans", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --max: 1120px;
  --radius: 24px;
}

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--white);
  color: var(--dark-blue);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Main grows so the footer always sits at the bottom of the screen. */
main {
  flex: 1 0 auto;
}

.footer {
  flex: none;
}

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

a {
  color: inherit;
  text-underline-offset: 0.15em;
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--dark-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--white);
  border-radius: 8px;
}

/* ---------- Type ---------- */

.eyebrow {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.4vw, 1.0625rem);
  letter-spacing: 0.01em;
}

.headline {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3rem, 7.4vw, 5.5rem);
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.intro {
  margin: clamp(18px, 2.4vw, 28px) 0 0;
  max-width: 34em;
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  line-height: 1.45;
  font-weight: 600;
  text-wrap: pretty;
}

.section-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1;
  text-wrap: balance;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--pink);
  padding: clamp(28px, 4.5vw, 56px) 0 clamp(150px, 16vw, 210px);
}

.hero__grid {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.hero__logo {
  width: clamp(150px, 38vw, 200px);
  margin-left: -6px;
}

@media (min-width: 860px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }

  .hero__logo {
    order: 2;
    width: 100%;
    max-width: 400px;
    margin: 0 0 0 auto;
  }
}

/* ---------- Entry form ---------- */

.entry {
  margin-top: calc(clamp(150px, 16vw, 210px) * -1 + clamp(40px, 5vw, 64px));
  padding-bottom: clamp(48px, 7vw, 88px);
}

.entry__card {
  max-width: 940px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 0 rgba(0, 39, 110, 0.06), 0 24px 48px -20px rgba(0, 39, 110, 0.35);
  overflow: hidden;
}

.entry__head {
  padding: clamp(22px, 3.2vw, 36px) clamp(20px, 3.4vw, 40px) 0;
}

.entry__head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  line-height: 1.05;
}

.entry__head p {
  margin: 8px 0 0;
  font-size: 1rem;
}

.entry__frame {
  padding: clamp(8px, 1.6vw, 16px) clamp(4px, 1.6vw, 20px) clamp(12px, 2vw, 24px);
}

/* Fallback heights; the form can override them by reporting its own height. */
#sweeps-iframe {
  display: block;
  width: 100%;
  height: 760px;
  border: 0;
}

@media (max-width: 768px) {
  #sweeps-iframe {
    height: 1080px;
  }
}

@media (max-width: 568px) {
  #sweeps-iframe {
    height: 1240px;
  }
}

/* ---------- Prizes ---------- */

.prizes {
  padding-bottom: clamp(56px, 8vw, 104px);
}

.prizes__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.prizes__head p {
  margin: 0;
  font-weight: 600;
}

.prizes__list {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .prizes__list {
    grid-template-columns: 1fr 1fr;
  }
}

.prize {
  position: relative;
  padding: clamp(24px, 3.4vw, 40px);
  background: var(--bright-blue);
  border-radius: var(--radius);
}

.prize .prize__tag {
  display: block;
  width: fit-content;
  margin: 0 0 18px;
  padding: 6px 14px;
  background: var(--yellow);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.875rem;
  line-height: 1.2;
}

.prize h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  line-height: 1.02;
}

.prize p {
  margin: 0;
  max-width: 30em;
}

/* ---------- Message pages (coming soon, over, thank you) ---------- */

.message {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.message__main {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--pink);
  padding: clamp(40px, 7vw, 88px) 0;
}

.message__main .hero__logo {
  margin-bottom: clamp(8px, 2vw, 0px);
}

.message__date {
  display: inline-block;
  margin: clamp(22px, 3vw, 32px) 0 0;
  padding: 12px 22px;
  background: var(--dark-blue);
  color: var(--white);
  border-radius: 999px;
  font-weight: 700;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.3;
}

.button {
  display: inline-block;
  margin-top: clamp(22px, 3vw, 32px);
  padding: 15px 30px;
  background: var(--magenta);
  color: var(--white);
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--magenta-dark);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--bright-blue);
  padding: clamp(32px, 5vw, 56px) 0;
}

.footer__grid {
  display: grid;
  gap: 24px clamp(32px, 6vw, 80px);
  align-items: start;
}

@media (min-width: 760px) {
  .footer__grid {
    grid-template-columns: 150px minmax(0, 1fr);
  }
}

.footer__logo {
  width: 150px;
}

.legal {
  margin: 0;
  color: var(--black);
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
  font-size: 0.9375rem;
}

/* ---------- Review banner (only shown with ?preview=...) ---------- */

.is-preview body::before {
  content: "Preview mode: showing the \201C" attr(data-preview) "\201D  state regardless of date. Add ?preview=off to the URL to exit.";
  display: block;
  padding: 8px var(--gutter);
  background: var(--dark-blue);
  color: var(--white);
  font-size: 0.8125rem;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
