/*
Theme Name: GPGOP
Description: Candidate site for Gene J. Parini for MassGOP Chairman. Layout follows Gene's own mockup (9/23/2026 email).
Version: 2.0
Author: Sync-Elect
*/
:root {
  --navy: #0a2a5e;
  --navy-d: #071c40;
  --red: #c8102e;
  --red-d: #9e0b22;
  --ink: #0b1b33;
  --mute: #4a5568;
  --paper: #f7f5f0;
  --line: #e3e6ec;
  --tbd: #f0a019;
  --serif: "Libre Caslon Text", Georgia, serif;
  --sans: Inter, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font: 400 17px/1.65 var(--sans); color: var(--ink); background: #fff; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
section, .band { scroll-margin-top: 84px; }

/* ---------- draft layer ---------- */
.draft-note, .tbd { display: none; }
body.draft .draft-note { display: block; background: #fff4df; border: 1px solid #ecd3a6; color: #6b4a12;
  font-size: 14px; padding: 10px 14px; border-radius: 6px; margin: 18px auto 0; max-width: 1124px; }
body.draft .tbd { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--tbd);
  margin-left: 6px; vertical-align: 1px; cursor: help; box-shadow: 0 0 0 2px #fff; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 700 14px var(--sans); letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--red); border: 2px solid var(--red); padding: 14px 24px; border-radius: 3px; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--red-d); border-color: var(--red-d); }
.btn.ghost { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }
.btn.sm { padding: 11px 18px; font-size: 13px; }
.btn.light { background: transparent; color: #fff; border-color: #fff; }
.btn.light:hover { background: #fff; color: var(--navy); }

/* ---------- header ---------- */
header.site { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 4px 18px -12px rgba(10,42,94,.35); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand .logo { display: block; height: 54px; width: auto; max-width: none; }
footer .brand .logo { height: 60px; }
.brand .b1 { font: 700 30px/1 var(--serif); color: var(--navy); text-transform: uppercase; letter-spacing: .01em; }
.brand .b1 em { font-style: normal; color: var(--red); }
.brand .b2 { font: 600 11.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--navy); margin-top: 6px;
  display: flex; align-items: center; gap: 8px; }
.brand .b2::before { content: ""; width: 22px; height: 6px; background: linear-gradient(var(--red) 0 2px, transparent 2px 4px, var(--red) 4px 6px); }
.brand.light .b1 { color: #fff; } .brand.light .b2 { color: #cdd6e6; }
.menu { display: flex; align-items: center; gap: 30px; }
.menu a:not(.btn) { font: 600 13.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--navy); text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:not(.btn):hover { border-color: var(--red); }
.navt, .burger { display: none; }

/* ---------- hero ---------- */
/* hero = State House cinemagraph banner (dome, flag, moving clouds unobstructed) with copy + Gene below it */
.hero { position: relative; overflow: hidden; background: #fff; }
/* Banner box; the scene inside behaves like object-fit: cover with object-position 50% var(--oy). */
.hero-bg { position: absolute; left: 0; top: 0; width: 100%; height: 440px; z-index: 0; overflow: hidden;
  container-type: size; --oy: .06; background: #4a8fd0; }
.hero-scene { position: absolute; left: 50%; transform: translateX(-50%);
  width: max(100cqw, 100cqh * 1.50602); aspect-ratio: 2000 / 1328;
  top: calc((100cqh - max(100cqw, 100cqh * 1.50602) / 1.50602) * var(--oy)); }
/* Sky: two 3250-px periods side by side, drifting right one period every 217 s (= 12 px/s on a 1600-wide scene),
   then wrapping onto an identical frame. It never jumps back, so there is no loop to see. */
.hero-sky { position: absolute; left: 0; top: 0; width: 325%; height: 75.3%;
  background-repeat: repeat-x; background-size: 50% 100%; will-change: transform;
  animation: gpsky 217s linear infinite; }
@keyframes gpsky { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.hero-bldg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; max-width: none; }

.hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0, rgba(255,255,255,0) 290px, #fff 440px, #fff 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; z-index: 2;
  background: linear-gradient(90deg, var(--navy) 0 66%, #fff 66% 67%, var(--red) 67%); }
.hero-grid { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 440px; grid-template-areas: "copy photo" "rail photo";
  column-gap: 56px; padding-top: 350px; padding-bottom: 70px; align-items: start; }
.hero-copy { grid-area: copy; }
.eyebrow { font: 700 14px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--navy); display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--red); }
.hero h1 { font: 700 70px/1.02 var(--serif); color: var(--navy); letter-spacing: -.015em; }
.hero .lead { font: 400 20px/1.55 var(--serif); color: var(--ink); max-width: 30em; margin: 22px 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-rail { grid-area: rail; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.hero-rail p { font: 700 13px/1.7 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--navy); }
.hero-rail p span { color: var(--red); }

/* ---------- Gene photo card: one clean frame, shimmer lives in the border only ---------- */
.hero-photo { grid-area: photo; margin-top: -10px; }
/* Solid red border the whole time (Eric pin #3). Two soft pale glints drift through it on 9 s and 14 s
   cycles, so passes land at uneven, random-feeling moments (gaps 0.5-5.5 s); each pass takes ~3.6-3.9 s (slow). */
/* BONDED frame (Eric 11/11 "rests on the red border"): the photo fills the card edge to edge and the red ring is
   drawn ON TOP of the photo's edge (padding-box ring, mask-composite exclude), so frame and photo read as one piece,
   not a photo sitting on a red plate. ::before = solid red ring; ::after = the same ring carrying both glints. */
.gene-card { position: relative; margin: 0; width: 100%; padding: 0; border-radius: 20px; overflow: hidden;
  background: var(--navy); isolation: isolate;
  box-shadow: 0 1px 0 rgba(7,28,64,.10), 0 22px 44px -24px rgba(7,28,64,.55); }
.gene-card::before, .gene-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 5px;
  z-index: 2; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.gene-card::before { background: var(--red); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.gene-card::after { background-repeat: no-repeat; background-size: 300% 100%, 300% 100%; background-position: 100% 0, 0% 0;
  background-image: linear-gradient(115deg, rgba(255,232,236,0) 42%, rgba(255,232,236,.9) 50%, rgba(255,232,236,0) 58%),
                    linear-gradient(70deg, rgba(255,232,236,0) 40%, rgba(255,232,236,.6) 50%, rgba(255,232,236,0) 60%);
  animation: gpglintAB 9s ease-in-out infinite; }
.gene-card img { position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; /* Gene's own headshot + brand footer (brand/make_hero_photo.py) */
  border-radius: 0; margin: 0; max-width: 100%; filter: none; }
@keyframes gpglintAB { 0% { background-position: 100% 0, 0% 0; } 40% { background-position: 0% 0, 100% 0; } 100% { background-position: 0% 0, 100% 0; } }
@keyframes gpglintA { 0% { background-position: 100% 0; } 40% { background-position: 0% 0; } 100% { background-position: 0% 0; } }
@keyframes gpglintB { 0% { background-position: 0% 0; } 28% { background-position: 100% 0; } 100% { background-position: 100% 0; } }

/* ---------- sections ---------- */
main section { padding: 92px 0; }
main section.alt { background: var(--paper); }
.kicker { font: 700 13px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--red); }
main h2 { font: 700 46px/1.1 var(--serif); color: var(--navy); letter-spacing: -.01em; margin-bottom: 20px; }
.sub { font-size: 19px; color: var(--mute); max-width: 44em; margin-bottom: 40px; }

.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: start; }
.about .quote { font: 400 26px/1.5 var(--serif); color: var(--navy); border-left: 5px solid var(--red); padding-left: 24px; margin: 6px 0 26px; }
.about p { margin-bottom: 14px; }
.facts { list-style: none; border-top: 3px solid var(--navy); }
.facts li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 130px 1fr; gap: 16px; }
.facts b { font: 700 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--red); padding-top: 4px; }
.facts span { font-weight: 600; color: var(--navy); }
.facts small { display: block; font-weight: 400; color: var(--mute); font-size: 15px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: c; }
.cards > div { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--red); padding: 28px 24px 26px; counter-increment: c;
  box-shadow: 0 14px 30px -24px rgba(10,42,94,.45); }
.cards > div:nth-child(2n) { border-top-color: var(--navy); }
.cards > div::before { content: counter(c, decimal-leading-zero); display: block; font: 700 34px/1 var(--serif); color: #d7dce5; margin-bottom: 14px; }
.cards h3 { font: 700 19px/1.3 var(--sans); color: var(--navy); margin-bottom: 10px; }
.cards p { font-size: 15.5px; color: var(--mute); line-height: 1.6; }

.tour { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.tour .box { background: var(--navy); color: #fff; padding: 40px 38px; border-radius: 4px; position: relative; overflow: hidden; }
.tour .box::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border: 26px solid rgba(200,16,46,.55); border-radius: 50%; }
.tour .box > * { position: relative; z-index: 1; }
.tour .box::after { z-index: 0; }
.tour .box h3 { font: 700 26px/1.25 var(--serif); margin-bottom: 12px; position: relative; }
.tour .box p { color: #cdd6e6; margin-bottom: 22px; position: relative; }

.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.three > a { display: block; text-decoration: none; background: #fff; border: 1px solid var(--line); padding: 30px 26px; transition: transform .15s, box-shadow .15s; }
.three > a:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -22px rgba(10,42,94,.55); }
.three h3 { font: 700 20px var(--serif); color: var(--navy); margin-bottom: 8px; }
.three p { font-size: 15.5px; color: var(--mute); }
.three .go { display: inline-block; margin-top: 14px; font: 700 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }

.band { background: linear-gradient(120deg, var(--navy-d), var(--navy) 60%, #12397a); color: #fff; padding: 84px 0; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; opacity: .08;
  background: repeating-linear-gradient(-24deg, #fff 0 2px, transparent 2px 22px); }
.band .wrap { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.band h2 { font: 700 42px/1.15 var(--serif); color: #fff; margin-bottom: 14px; }
.band p { color: #cdd6e6; font-size: 18px; }
.band .cta { justify-content: flex-end; }

/* ---------- footer ---------- */
.site-foot { background: var(--navy-d); color: #cdd6e6; padding: 54px 0 26px; border-top: 6px solid var(--red); }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.tagline { font: italic 400 17px var(--serif); margin-top: 12px; color: #fff; }
.fnav { display: flex; gap: 24px; flex-wrap: wrap; }
.fnav a, .fine a { color: #cdd6e6; text-decoration: none; font: 600 13px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.fnav a:hover, .fine a:hover { color: #fff; }
.fine { display: flex; gap: 18px; align-items: center; margin-top: 38px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13.5px; }
.fine a { margin-left: auto; font-size: 12px; }

/* Facebook Page link (11/11): official mark, white on navy; footer + contact band */
.fb-follow { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: #fff; text-decoration: none;
  font: 600 13px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.fb-follow img { width: 22px; height: 22px; flex: none; }
.fb-follow:hover { color: #E6D9A6; }
.band .fb-follow { margin-top: 20px; }

/* Side gutter tab (11/11): quick access to the press release from every page except /press/ itself */
.gutter-tab { position: fixed; right: 0; top: 350px; z-index: 60; /* below the Tour Map badge (top 190px) */
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 11px 20px;
  background: var(--navy); color: #fff; text-decoration: none; border-left: 4px solid var(--red);
  border-radius: 10px 0 0 10px; box-shadow: -6px 8px 22px -8px rgba(10,42,94,.55); transition: padding .2s, background .2s; }
.gutter-tab .gt-t { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 12.5px var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.gutter-tab .gi { width: 22px; height: 22px; }
.gutter-tab:hover { background: var(--navy-d); padding-right: 15px; }
@media (max-width: 860px) {
  .gutter-tab { top: auto; bottom: 120px; transform: none; /* clears the phone Tour badge (bottom 18px, 84px tall) */ padding: 12px 8px 14px; gap: 8px; }
  .gutter-tab .gt-t { font-size: 10.5px; letter-spacing: .12em; }
  .gutter-tab .gi { width: 18px; height: 18px; }
}
/* second gutter tab (11/14): Write your members (/write/), stacked under the Press release tab (measured live: press tab ~210 px tall) */
.gutter-tab.gt-2 { top: 576px; border-left-color: var(--gold, #B8A05A); }
@media (max-width: 860px) { .gutter-tab.gt-2 { top: auto; bottom: 290px; } }
@media print { .gutter-tab { display: none; } }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr 360px; column-gap: 40px; padding-top: 320px; }
  .hero-bg { height: 400px; }
  .hero::before { background: linear-gradient(180deg, rgba(255,255,255,0) 0, rgba(255,255,255,0) 260px, #fff 400px, #fff 100%); }
  .hero h1 { font-size: 62px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .menu { gap: 20px; }
}
/* ---------- phones ---------- */
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .bar { height: 66px; }
  .brand .b1 { font-size: 24px; }
  .brand .logo { height: 44px; }
  footer .brand .logo { height: 50px; }
  .brand .b2 { font-size: 10px; letter-spacing: .16em; }
  .burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; margin-right: -10px; }
  .burger span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; }
  .menu { display: none; position: absolute; top: 66px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px -14px rgba(10,42,94,.4); }
  .menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 14px; justify-content: center; }
  .navt:checked ~ .menu { display: flex; }
  .hero-bg { height: 330px; --oy: .12; }
  .hero::before { background: linear-gradient(180deg, rgba(255,255,255,0) 0, rgba(255,255,255,0) 200px, #fff 300px, #fff 100%); }
  .tour .box::after { width: 110px; height: 110px; right: -50px; top: -50px; border-width: 18px; }
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "photo" "rail"; gap: 0; padding-top: 250px; padding-bottom: 40px; }
  .hero-copy { padding: 0 0 30px; }
  .hero-photo { margin-top: 0; }
  .gene-card { max-width: 330px; margin: 0 auto; }
    .hero h1 { font-size: 46px; }
  .hero .lead { font-size: 18px; }
  .eyebrow { font-size: 12px; letter-spacing: .2em; }
  main section { padding: 64px 0; }
  main h2 { font-size: 34px; }
  .about, .tour, .band .wrap { grid-template-columns: 1fr; gap: 34px; }
  .cards, .three { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 1fr; gap: 4px; }
  .band { padding: 60px 0; }
  .band h2 { font-size: 32px; }
  .band .cta { justify-content: flex-start; }
  .fine { flex-wrap: wrap; }
  .fine a { margin-left: 0; }
  .btn { padding: 13px 20px; }
}

/* ---------- icons (Gold accent set, brand/export_site_icons.py) : always beside their word ---------- */
.menu a:not(.btn) { display: inline-flex; align-items: center; gap: 7px; }
.menu .gi { width: 19px; height: 19px; }
.btn .gi { width: 19px; height: 19px; margin-left: -2px; }
.kicker .gi { width: 24px; height: 24px; }
.kicker:has(.gi)::before { display: none; }
.gi.ci { display: block; width: 44px; height: 44px; margin-bottom: 16px; }
.cards > div:has(.ci)::before { display: none; }
@media (max-width: 860px) { .menu .gi { width: 22px; height: 22px; } .menu a:not(.btn) { gap: 10px; } }
/* 7 nav links since Press (11/11): tighten between phone and full desktop so the bar never overflows */
.menu .btn { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1240px) {
  .menu { gap: 16px; }
  .menu a:not(.btn) { font-size: 12px; letter-spacing: .06em; gap: 5px; white-space: nowrap; }
  .menu .gi { width: 16px; height: 16px; }
  .brand .logo { height: 46px; }
}
@media (min-width: 861px) and (max-width: 1060px) { .menu a:not(.btn) .gi { display: none; } .menu { gap: 14px; } }
