/* giveaway.rootedmechanical.com
   Rooted brand (Libre Franklin, Barlow Condensed, orange #FA6600 as the accent) with a
   Christmas palette: evergreen, warm cream, and the warm light of the campaign video. */

@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/libre-franklin-roman-latin.52e605852c.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Franklin";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/libre-franklin-italic-400-latin.a3d7ad6c5c.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-600-latin.215a93c696.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-700-latin.3787a5a419.woff2") format("woff2");
}

:root {
  --green-950: #0e251c;
  --green-900: #12301f;
  --green-800: #163a2c;
  --green-700: #1f4d3a;
  --cream-50: #fffdf9;
  --cream-100: #fbf6ee;
  --cream-200: #f4ecdf;
  --line: #e2d6c3;
  --line-strong: #c9baa2;
  --ink: #1b1b1b;
  --muted: #57544c;
  --on-dark: #fbf6ee;
  --on-dark-muted: #d9d2c4;
  --gold: #f3c58e;
  --orange: #fa6600;
  --orange-hover: #c2550c;
  --error: #b3261e;
  --error-bg: #fdf1ef;
  --ok: #1f6b43;
  --radius: 6px;
  --wrap: 1120px;
  --gutter: 20px;
  --f-body: "Libre Franklin", "Franklin Gothic Book", Arial, sans-serif;
  --f-label: "Barlow Condensed", "Arial Narrow", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream-100);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0; }
p { margin: 0 0 1em; }
button, input, textarea, select { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 720px; }
.wrap--form { max-width: 744px; } /* form content about 680px wide on desktop */

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 10; padding: 10px 14px;
  background: var(--cream-50); color: var(--ink); border-radius: var(--radius); font-weight: 700;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- campaign state switching: [data-show] lists the states an element appears in ---------- */
body[data-state="open"] [data-show]:not([data-show~="open"]),
body[data-state="coming_soon"] [data-show]:not([data-show~="coming_soon"]),
body[data-state="closed"] [data-show]:not([data-show~="closed"]),
body[data-state="completed"] [data-show]:not([data-show~="completed"]) { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 12px 26px; border-radius: var(--radius); border: 2px solid transparent;
  font-weight: 700; font-size: 1.1875rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-hover); }
.btn--primary[disabled] { background: #9b8f80; cursor: progress; }
.btn--secondary { background: var(--cream-50); color: var(--green-800); border-color: var(--green-700); font-size: 1.0625rem; min-height: 48px; }
.btn--secondary:hover { background: var(--green-800); color: var(--on-dark); }

/* ---------- masthead + hero ---------- */
.hero {
  position: relative;
  color: var(--on-dark);
  background-color: var(--green-800);
  background-image:
    linear-gradient(180deg, rgba(18, 48, 31, .80) 0%, rgba(22, 58, 44, .90) 55%, rgba(18, 48, 31, .97) 100%),
    url("/assets/img/bokeh-christmas-2026.408486201e.webp");
  background-size: cover;
  background-position: center top;
  overflow: hidden;
}
.masthead { padding: 18px 0 0; }
.gw-home .masthead { position: absolute; top: var(--banner-h, 0px); left: 0; right: 0; z-index: 2; }
.masthead__logo { width: 120px; height: auto; }
.hero__grid { display: grid; gap: 40px; padding: 120px var(--gutter) 64px; }
.eyebrow {
  font-family: var(--f-label); font-weight: 600; text-transform: uppercase; letter-spacing: .16em;
  font-size: 1.0625rem; color: var(--gold); margin: 0 0 14px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--orange); flex: none; }
.hero h1 { font-size: clamp(2.75rem, 9vw, 4.75rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.02; margin: 0 0 22px; }
.hero__sub { font-size: clamp(1.45rem, 4.6vw, 2.05rem); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: var(--on-dark); margin: -6px 0 18px; }
.hero__lede { font-size: 1.1875rem; line-height: 1.6; color: var(--on-dark-muted); max-width: 36rem; margin: 0 0 12px; }
.hero__nominate { font-size: 1.125rem; font-weight: 700; color: var(--gold); max-width: 36rem; margin: 0 0 28px; }
.hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero__meta { margin: 0; color: var(--on-dark-muted); font-size: .98rem; }
.hero__meta strong { color: var(--on-dark); font-weight: 700; }
.hero__state { border-left: 3px solid var(--gold); padding: 4px 0 4px 16px; max-width: 34rem; }
.hero__state h2 { font-size: 1.5rem; margin-bottom: 8px; }
.hero__state p { margin: 0; color: var(--on-dark-muted); }

.hero__video { margin: 0; justify-self: center; width: min(100%, 340px); }
.video-frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden;
  background: #0b1a13; border: 1px solid rgba(251, 246, 238, .16);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .65);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; background: #0b1a13; }
.hero__video figcaption { margin-top: 14px; font-size: .95rem; color: var(--on-dark-muted); }
.video-label { font-family: var(--f-label); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--on-dark); }
.transcript { margin-top: 6px; }
.transcript summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: var(--on-dark); width: max-content; }
.transcript__body { margin-top: 12px; padding: 14px 16px; background: rgba(14, 37, 28, .7); border-radius: var(--radius); font-size: .95rem; line-height: 1.55; }
.transcript__body p:last-child { margin: 0; }

.video-sound {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 1px solid rgba(251, 246, 238, .35); border-radius: var(--radius);
  background: rgba(14, 37, 28, .82); color: var(--on-dark); font-weight: 700; font-size: .98rem; cursor: pointer;
}
.video-sound:hover { background: rgba(14, 37, 28, .95); }

.review-banner {
  margin: 0; padding: 8px var(--gutter); background: #fff4e6; color: var(--ink);
  border-bottom: 1px solid #e0a45c; font-size: .9rem; font-weight: 600; text-align: center;
  position: relative; z-index: 3;
}

/* ---------- the gift: three benefits ---------- */
.gift { padding: 56px 0 0; }
.gift__panel { background: var(--cream-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 20px 22px; text-align: center; }
.gift__title { font-size: clamp(1.5rem, 4vw, 1.9rem); font-weight: 800; letter-spacing: -.01em; color: var(--green-800); margin: 0 0 22px; }
.gift__benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.gift__benefit { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.gift__icon { color: var(--orange); margin-bottom: 6px; }
.gift__value { font-size: clamp(2rem, 6vw, 2.5rem); font-weight: 800; line-height: 1.1; color: var(--green-800); }
.gift__label { font-weight: 700; font-size: 1.0625rem; }
.gift__note { font-size: .9rem; color: var(--muted); }
.gift__scope { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .98rem; }
.gift__scope a { color: var(--green-800); font-weight: 600; text-underline-offset: 3px; }

/* ---------- sharing ---------- */
.share { margin-top: 22px; }
.share__heading { font-size: 1.25rem; margin: 0 0 6px; color: var(--green-800); }
.share__lead { margin: 0 0 12px; color: var(--muted); }
.share__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.share__actions .btn { font-size: 1rem; min-height: 46px; padding: 10px 18px; }
.share__status { margin: 10px 0 0; font-size: .95rem; color: var(--ok); font-weight: 600; overflow-wrap: anywhere; }
.share__status:empty { display: none; }
.thanks .share { margin: 36px auto 0; padding-top: 28px; border-top: 1px solid var(--line); max-width: 34rem; }
.thanks .share__actions { justify-content: center; }
.thanks .share__lead { margin-left: auto; margin-right: auto; }
.thanks__follow { margin-top: 18px !important; font-size: 1rem !important; }
.thanks__follow a { color: var(--green-800); font-weight: 600; text-underline-offset: 3px; }

/* ---------- optional service request ---------- */
.optin { margin-top: 14px; padding: 12px 14px; background: var(--cream-50); border: 1px solid var(--line); border-radius: var(--radius); }
.optin .choice { padding: 0; }
.optin__note { margin: 6px 0 0 34px; font-size: .9rem; color: var(--muted); }

/* ---------- about ---------- */
.about { background: var(--cream-100); border-top: 1px solid var(--line); padding: 64px 0; }
.about__grid { display: grid; gap: 28px; }
.about .section-title { margin-bottom: 14px; }
.about__body { max-width: 40rem; font-size: 1.0625rem; }
.about__facts { margin: 0; padding-left: 1.2em; color: var(--muted); }
.about__facts li { margin-bottom: 4px; }
.about__help { border-left: 3px solid var(--orange); padding-left: 20px; align-self: center; }
.about__lead { font-weight: 700; font-size: 1.125rem; margin: 0 0 12px; }
.about__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0 0; }
.about__links a { color: var(--green-800); font-weight: 600; text-underline-offset: 3px; }

/* ---------- how to enter ---------- */
.steps { padding: 64px 0 24px; }
.section-title { font-size: clamp(1.75rem, 4.5vw, 2.25rem); font-weight: 800; letter-spacing: -.01em; margin: 0 0 28px; }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps__item { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 4px 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.steps__item::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2; font-family: var(--f-label); font-weight: 700; font-size: 2.25rem; line-height: 1; color: var(--orange);
}
.steps__item h3 { font-size: 1.1875rem; font-weight: 700; }
.steps__item p { margin: 0; color: var(--muted); }
.steps__note { margin: 20px 0 0; font-weight: 600; color: var(--green-800); }
.steps__closes { margin: 6px 0 0; color: var(--muted); }

.quote { padding: 40px 0 64px; }
.quote blockquote { margin: 0; padding: 0 0 0 22px; border-left: 3px solid var(--orange); max-width: 46rem; }
.quote blockquote p { font-size: clamp(1.35rem, 3.6vw, 1.75rem); line-height: 1.4; font-style: italic; margin: 0 0 10px; color: var(--green-800); }
.quote cite { font-style: normal; font-family: var(--f-label); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* ---------- entry form ---------- */
.enter { background: var(--cream-200); border-top: 1px solid var(--line); padding: 64px 0 80px; scroll-margin-top: 0; }
.enter__intro { color: var(--muted); font-size: 1.125rem; margin-bottom: 18px; }
.enter__eligibility { margin: 0 0 18px; padding-left: 1.2em; color: var(--muted); }
.form-note { font-size: .95rem; color: var(--muted); margin: 24px 0 8px; }

.group { border: 0; padding: 0; margin: 26px 0 0; min-width: 0; }
.group > legend { font-family: var(--f-label); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 1rem; color: var(--green-800); padding: 0; margin-bottom: 6px; }
.row { display: grid; gap: 0 16px; }

.field { margin: 18px 0 0; }
.field > label:not(.choice):not(.btn):not(.dropzone), .field .label { display: block; font-weight: 600; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
.hint { font-size: .95rem; color: var(--muted); margin: -2px 0 8px; }

.input {
  width: 100%; min-height: 50px; padding: 11px 14px; background: #fff; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 1.0625rem; line-height: 1.4;
  appearance: none; -webkit-appearance: none;
}
textarea.input { min-height: 150px; resize: vertical; }
.input:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(250, 102, 0, .35); }
.input[aria-invalid="true"] { border-color: var(--error); background: var(--error-bg); }
.counter { display: block; text-align: right; font-size: .85rem; color: var(--muted); margin-top: 4px; }

.field__error { display: flex; gap: 8px; align-items: flex-start; color: var(--error); font-weight: 600; font-size: .95rem; margin: 8px 0 0; }
.field__error::before { content: "!"; flex: none; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--error); color: #fff; font-size: .8em; line-height: 1.3em; text-align: center; margin-top: .15em; }

.choice-group { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.choice-group > legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; cursor: pointer; line-height: 1.45; }
.choice input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green-800); cursor: pointer; }
.choice a { color: var(--green-800); font-weight: 600; text-underline-offset: 3px; }
.choices--inline { display: flex; flex-wrap: wrap; gap: 0 28px; }

.consent { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.privacy-note { font-size: .95rem; color: var(--muted); margin: 10px 0 0; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* photos */
.story-block { margin-top: 22px; }
.story-block #story { min-height: 200px; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 150px; padding: 24px 16px; text-align: center; cursor: pointer;
  background: var(--cream-50); color: var(--green-800);
  border: 2px dashed var(--line-strong); border-radius: var(--radius);
  transition: border-color .15s ease, background-color .15s ease;
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--green-700); background: #fff; }
.dropzone__icon { margin-bottom: 4px; }
.dropzone__title { font-weight: 700; font-size: 1.125rem; color: var(--ink); }
.dropzone__hint { font-size: .92rem; color: var(--muted); }
.dropzone[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.photos { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.photos:empty { display: none; }
.photos__privacy { margin-top: 10px; }
.photo { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.photo__thumb { width: 64px; height: 64px; border-radius: 4px; overflow: hidden; background: var(--cream-200); display: grid; place-items: center; }
.photo__thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo__placeholder { font-family: var(--f-label); font-weight: 700; letter-spacing: .08em; color: var(--muted); font-size: .9rem; }
.photo__meta { min-width: 0; }
.photo__name { display: block; font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo__status { display: block; font-size: .9rem; color: var(--muted); }
.photo--error .photo__status { color: var(--error); font-weight: 600; }
.photo--done .photo__status { color: var(--ok); }
.photo__bar { display: block; height: 4px; margin-top: 6px; background: var(--cream-200); border-radius: 2px; overflow: hidden; }
.photo__bar span { display: block; height: 100%; width: 0; background: var(--green-700); transition: width .2s linear; }
.photo--done .photo__bar, .photo--error .photo__bar { display: none; }
.photo__actions { display: flex; flex-direction: column; gap: 6px; }
.photo__actions button {
  min-height: 36px; padding: 4px 12px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: #fff; font-size: .92rem; font-weight: 600; cursor: pointer;
}
.photo__actions .photo__retry { border-color: var(--green-700); color: var(--green-800); }
.photo__actions button:hover { background: var(--cream-100); }
.photos__input:focus-visible + .dropzone { outline: 3px solid var(--orange); outline-offset: 2px; }
.photos__count { font-size: .92rem; color: var(--muted); margin: 8px 0 0; }

.error-summary { margin: 18px 0 0; padding: 16px 18px; background: var(--error-bg); border: 2px solid var(--error); border-radius: var(--radius); }
.error-summary h3 { font-size: 1.125rem; color: var(--error); margin-bottom: 6px; }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary a { color: var(--error); font-weight: 600; }

.submit { margin-top: 28px; }
.submit .btn { width: 100%; }
.submit__reassurance { margin: 10px 0 0; text-align: center; font-size: .92rem; color: var(--muted); }
.form-status { margin: 14px 0 0; font-weight: 600; }
.form-status--error { color: var(--error); }

.state-message { background: var(--cream-50); border-left: 3px solid var(--orange); padding: 22px 24px; border-radius: 0 var(--radius) var(--radius) 0; }
.state-message h2 { font-size: 1.6rem; margin-bottom: 8px; }
.state-message p { margin: 0; color: var(--muted); }

.thanks { text-align: center; padding: 8px 0; outline: none; }
.thanks__logo { width: 168px; height: auto; margin: 0 auto 22px; }
.thanks h2 { font-size: clamp(1.9rem, 5vw, 2.5rem); font-weight: 800; letter-spacing: -.01em; margin-bottom: 18px; color: var(--green-800); }
.thanks p { font-size: 1.125rem; max-width: 34rem; margin: 0 auto 1em; }
.thanks__blessing { font-style: italic; color: var(--green-800); }
.thanks__ref { font-size: .95rem !important; color: var(--muted); margin-top: 24px !important; }

noscript p { background: var(--error-bg); border: 1px solid var(--error); padding: 14px 16px; border-radius: var(--radius); }

/* ---------- footer ---------- */
.site-footer { background: var(--green-950); color: var(--on-dark-muted); padding: 48px 0 40px; font-size: .95rem; }
.footer__grid { display: grid; gap: 28px; }
.footer__logo { width: 132px; height: auto; }
.scripture { margin: 0; max-width: 34rem; }
.scripture p { font-style: italic; font-size: 1.125rem; line-height: 1.55; color: var(--on-dark); margin: 0 0 8px; }
.scripture cite { font-style: normal; font-family: var(--f-label); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.footer__links a { color: var(--on-dark); text-underline-offset: 3px; }
.footer__fine { font-size: .875rem; line-height: 1.55; margin: 0; max-width: 46rem; }

/* ---------- document pages (rules, privacy) ---------- */
.doc-head { background: var(--green-800); color: var(--on-dark); padding: 18px 0 36px; }
.doc-head h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; margin-top: 26px; }
.doc-head p { color: var(--on-dark-muted); margin: 10px 0 0; }
.doc { padding: 40px 0 72px; }
.doc h2 { font-size: 1.375rem; margin: 34px 0 10px; color: var(--green-800); }
.doc ol, .doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: .5em; }
.doc a { color: var(--green-800); font-weight: 600; text-underline-offset: 3px; }
.doc .back { display: inline-block; margin-top: 28px; }
.draft-banner { background: #fff4e6; border: 2px solid #e0a45c; border-radius: var(--radius); padding: 14px 16px; margin: 0 0 24px; font-weight: 600; }
mark.confirm { background: #ffe8c7; color: var(--ink); padding: 0 .2em; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- larger screens ---------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .row { grid-template-columns: 1fr 1fr; }
  .row--zip { grid-template-columns: 1fr 180px; }
  .hero__actions { flex-direction: row; align-items: center; gap: 22px; }
}

@media (min-width: 900px) {
  .masthead { padding-top: 26px; }
  .masthead__logo { width: 150px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: center; gap: 72px; padding: 152px var(--gutter) 88px; }
  .hero__video { width: 360px; }
  .steps { padding: 88px 0 32px; }
  .steps__list { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .steps__item { grid-template-columns: 1fr; padding-top: 22px; }
  .steps__item::before { grid-row: auto; margin-bottom: 10px; }
  .quote { padding: 48px 0 88px; }
  .enter { padding: 88px 0 104px; }
  .gift { padding-top: 80px; }
  .gift__panel { padding: 34px 32px 24px; }
  .gift__benefits { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .about { padding: 80px 0; }
  .about__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; }
  .footer__grid { grid-template-columns: 140px 1fr; column-gap: 48px; }
  .footer__grid > :not(:first-child) { grid-column: 2; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
