:root {

  font-family: "Google Sans Flex", sans-serif;
    
  font-family: "Google Sans Code", monospace;

  font-family: "Gaegu", sans-serif;

  --white:  #FFFFFF;
  --black:  #000000;
  --pink:   #D74181;
  --green:  #368612;
  --red:    #FC0000;
  --hero-gradient-fade-start: 42rem;
  --hero-gradient-fade-end: 52rem;
  
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  /* border: red 1px solid; */
}

body {
  position: relative;
  isolation: isolate;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background-color: var(--white);
  text-transform: uppercase;
}

p {
  font-weight: 700;
  font-size: 20px;
}

.tight-paragraph-apostrophe {
  margin-right: -0.06em;
}

button,
input,
select,
textarea,
option {
  text-transform: uppercase;
}

input::placeholder,
textarea::placeholder {
  text-transform: uppercase;
}

body::before {
  position: absolute;
  inset: 0 0 auto;
  height: 150vh;
  z-index: -1;
  background-image: url("assets/background-gradient.png");
  background-size: auto 100%;
  background-position: center top;
  background-repeat: repeat-x;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  content: "";
  pointer-events: none;
}

a {
  color: var(--pink);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1.25rem, 5vw, 4rem);
  background: var(--white);
  z-index: 5;
}

.site-brand {
  font-family: "Google Sans Flex", sans-serif;
  text-transform: uppercase;
  color: var(--pink);
  font-size: 34px;
  font-weight: 800;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-header nav a {
  font-family: inherit;
  color: var(--black);
  font-size: 16px;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--pink);
}

main {
  width: min(100% - 2.5rem, 68rem);
  margin: 0 auto;
}

.intro {
  
}

.hero {
  --hero-title-size: clamp(3.8rem, 16vw, 9rem);
  position: relative;
  display: grid;
  width: min(100%, 50rem);
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "eyebrow"
    "overlap"
    "tagline";
  align-items: center;
  gap: 0;
  padding: 0.5rem 0 3rem;
  font-size: var(--hero-title-size);
}

.column1{
  flex: 1;
}

.hero .column1,
.hero .column2 {
  display: contents;
}

.eyebrow {
  font-family: inherit;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#page-title{
  color: var(--white);
  text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.5);
  font-weight: 800;
}

.hero .column1 > p:not(.eyebrow) {
  color: var(--white);
}

h1 {
  font-family: "Google Sans Flex", sans-serif;
  margin: 0 0 0.75rem;
  font-size: 144px;
  line-height: 123px;
}

.hero .arrow {
  position: absolute;
  top: -0.25em;
  left: -0.45em;
  z-index: -10;
  width: 0.9em;
  transform: rotate(-10deg);
  animation: peek-arrow-turn 850ms cubic-bezier(0.25, 0.8, 0.25, 1) 1s both;
}

.hero .column2 img {
  grid-area: overlap;
  z-index: 2;
  align-self: start;
  justify-self: center;
  width: clamp(9rem, 36vw, 18rem);
  max-height: clamp(10rem, 35vw, 18rem);
  object-fit: contain;
}

.hero .eyebrow {
  grid-area: eyebrow;
  z-index:3;
  margin: 0;
  padding: 1.75rem 0 0.5rem;
  font-size: clamp(0.65rem, 2vw, 1.5rem);
  text-align: center;
}

.hero #page-title {
  grid-area: overlap;
  align-self: end;
  margin: 0;
  font-size: var(--hero-title-size);
  line-height: 0.82;
  text-align: center;
}

.hero .word-dump,
.hero .word-chuck {
  display: block;
  position: relative;
}

.hero .word-dump {
  display: flex;
  z-index: 1;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  justify-content: center;
  gap: 0.12em;
}

.hero .word-chuck {
  z-index: 3;
}

.hero .column1 > p:not(.eyebrow) {
  grid-area: tagline;
  justify-self: center;
  width: max-content;
  max-width: 100%;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  overflow: hidden;
  /* font-size: clamp(0.65rem, 2vw, 1.5rem); */
  text-align: left;
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
  animation: type-hero-subtext 2.4s steps(33, end) 1s both;
}

h2 {
  font-family: "Google Sans Flex", sans-serif;
  margin: 0 0 0.75rem;
  color: var(--black);
  line-height: 1.15;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  text-align: center;
}

#representatives-title {
  font-size: 20px;
  display: flow-root;
  max-width: 56.25rem;
  margin: 0 auto 1.5rem;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(4rem, 4vw, 3rem);
  color: var(--black);
  font-weight: 700;
  line-height: 1.25;
  background-image: url("assets/paper.png");
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

#representatives-title .representative-parenthetical {
  display: inline-block; /* Required for transforms on inline elements */
  transform: skewX(-14deg);
  /* color: var(--red); */
    color: #D74181;
    /* text-shadow: 0.5px 0 0 D74181, -0.5px 0 0 D74181; */
  /* font-family: "Crafty Girls", cursive; */
  /* text-transform: lowercase; */
  /* transform: rotate(var(--parenthetical-tilt, 0deg)); */
}

h3{
  font-family: "Google Sans Flex", sans-serif;
  margin: 0 0 0.75rem;
  color: var(--black);
  line-height: 1.15;
  font-size: clamp(1.5rem, 2vw, 1.75rem);
  text-align: left;
}

.intro > p:last-child,
.content-section p {
  font family: "Google Sans Code", monospace;
  color: var(--black);
  line-height: 1.7;
}

#about,
#contact {
  text-align: center;
}

#contact .contact-trigger {
  display: block;
  width: min(100%, 20rem);
  margin: 0 auto;
  padding: 0.6rem 1rem;
  font-family: inherit;
  font-size: 1.1rem;
  line-height: 1.2;
}

.about-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 4vw, 2rem);
  max-width: 44rem;
  margin: 1.25rem auto 0;
}

.about-actions #contact {
  display: flex;
  flex: 1 1 0;
  justify-content: flex-start;
  margin: 0;
}

.about-actions #contact .contact-trigger,
.about-actions > .button {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 3.25rem;
  margin: 0;
  padding: 0.65rem 1rem;
  box-sizing: border-box;
  text-align: center;
}

.contact-lightbox {
  width: min(42rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  color: var(--black);
  background: var(--white);
  border: 2px solid var(--pink);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.35);
}

.contact-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.contact-lightbox-header {
  position: relative;
  margin-bottom: 1.5rem;
}

.contact-lightbox-header h3 {
  margin: 0;
  padding: 0 2.5rem;
  text-align: center;
}

.contact-lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 2.5rem;
  min-height: 2.5rem;
  max-width: 2.5rem;
  place-items: center;
  padding: 0;
  font-family: "Google Sans Flex", sans-serif;
  font-size: 1.75rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
}

.contact-trigger:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 3px;
}

.contact-lightbox-close:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

#about::before,
#all::before,
#about::after {
  display: block;
  width: 3rem;
  border-top: 2px solid var(--pink);
  content: "";
  margin-inline: auto;
}

#about::before,
#all::before {
  margin-bottom: 1rem;
}

#about::after {
  margin-top: 1rem;
}

#about h3,
#contact h3,
#call > .step {
  text-align: center;
}

.column2{
  flex: 1;
}

.column2 img{
  width: 75%;
}

.look-up{
  display: flex;
  flex-direction: horizontal;
}

.content-section {
  padding: 1rem 0;
}

.section-selection{
  display: flex;
  flex-direction: horizontal;
  justify-content: space-between;
  align-items: center;  
  
}

button{
  font-family: "Google Sans Code", monospace;
  color: var(--white);
  font-size: 23px;
  font-weight: 700;
  padding: 20px;
  background-color: var(--pink);
  border-radius: 100px;
  border: none;
  width: 500px;
}

button:hover{
  color: var(--pink);
  background-color: var(--white);
  box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.5);
}

.button{
  font-family: "Gaegu", sans-serif;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  padding: 20px;
  background-color: var(--pink);
  border-radius: 100px;
  border: none;
  width: 500px;
  text-decoration:none;
}

.button:hover{
  color: var(--pink);
  background-color: var(--white);
  box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.5);
}

#call p{
  text-align: center;
}

.call-columns{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.phone-script {
  max-width: 56rem;
  margin: 1.5rem auto 0;
  padding: clamp(1rem, 3vw, 1.75rem);
  background-image: url("assets/paper.png");
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  text-align: center;
}

.phone-script h3 {
  margin: 0 0 0.75rem;
}

.phone-script p {
  margin: 0;
}

.senator1{
  background-color: var(--pink);
  padding: 25px;
  width: 40%;
}

.senator2{
  background-color: var(--pink);
  padding: 25px;
  width: auto;
  min-width: 0;
}

.senator2 .res-name {
  color: var(--white);
}

.senator2 .support-heart {
  filter: invert(1);
}

.senator2 .circle-container {
  border-radius: 50%;
  flex: 0 0 100px;
}

.senator2 .res-stance,
.card .stance {
  margin: 0.5rem 0;
  padding: 0.65rem 0.9rem;
  color: var(--black);
  font-weight: 700;
  text-align: center;
  background-image: url("assets/paper.png");
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.senator2 .res-stance.stance-supports,
.card .stance.stance-supports {
  color: #b42318;
}

.senator2 .res-stance.stance-uncertain,
.card .stance.stance-uncertain {
  color: #8a6d00;
}

.senator2 .res-stance.stance-opposes,
.card .stance.stance-opposes {
  color: #237a3b;
}

.senator2 .res-quote {
  display: block;
  min-height: 3rem;
  margin: 0.5rem 0 1rem;
  color: var(--white);
  font-size: 18px;
  text-align: center;
}

.id{
  display: flex;
  flex-direction: horizontal;
  align-items: center;
  justify-content: space-evenly;
  color: var(--white);
}

.senator1 p{
  color: var(--white);
  font-size: 13px;
  text-align: center;
}

.senator2 button{
  display: block;
  width: min(100%, 16rem);
  max-width: 16rem;
  margin-inline: auto;
  font-family: inherit;
  color: var(--pink);
  font-size: 17px;
  padding: 0.55rem 0.8rem;
  background-color: var(--white);
  border-radius: 100px;
  border: none;
}

.senator2 .res-phone-hint {
  display: block;
  margin-top: 0.5rem;
  color: var(--white);
  font-size: 15px;
  line-height: 1;
  text-align: center;
}

.circle-container {
  width: 100px;
  height: 100px;
  /* border-radius: 50%; */
  overflow: hidden;
}

.circle-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.circle-container img.face-placeholder {
  transform: scale(0.75);
}

.script{
  max-width: 1000px;
  padding: 50px;
  background-image: url("assets/paper-texture.jpeg");
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 3px 3px 3px rgba(0, 0, 0, .5);
}

.shortcut-icon {
  width: 1.2em;
  height: 1.2em;
  margin: 0 0.25em;
  object-fit: contain;
  vertical-align: middle;
}

.shortcut-preview {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0.75rem auto 0;
  object-fit: contain;
}

@media (min-width: 768px) {
  .shortcut-preview {
    width: 50%;
    max-width: 50%;
  }
}

li p {
  text-align: left !important;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 25px;
}

.at-inner header {
    display: none;
}

.card{
  background-color: var(--white);
  padding: 25px;
  width: auto;
  min-width: 0;
  box-shadow: 3px 3px 3px rgba(0, 0, 0, .5)
}

.rep-id{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.rep-id .circle-container {
  flex: 0 0 100px;
}

.rep-id .card-content {
  min-width: 0;
}

.support-heart {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.15em;
  object-fit: contain;
  vertical-align: -0.12em;
}

.rep-details {
  margin-top: 1rem;
}

.card .quote,
.card .supports {
  display: block;
  margin-top: 0.75rem;
}

.card .quote {
  font-size: 18px;
}

.card-content h3 {
  font-size: 26px;
  margin-bottom: 0.2rem;
}

.card-content .state {
  margin-top: 0;
  margin-bottom: 0;
}

.card-content .senator-elect {
  color: #777777;
}

.the-rest-title {
  text-transform: uppercase;
  text-align: center;
}

.site-footer {
  min-width: 320px;
  margin-top: 25px;
  padding: clamp(3rem, 8vh, 6rem) clamp(1.25rem, 5vw, 4rem) 2rem;
  font-size: 0.9rem;
  background-image: url("assets/paper-footer.jpg");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}



.site-footer h1 {
  font-family: "Google Sans Flex", sans-serif;
  font-size: 89px;
  text-align: center;
  color: var(--black);
}

.faq-item{
  text-align: left;
  border-bottom: 1px solid var(--black);
  padding: 10px;
}

.faq-question{
  font-size: 21px;
}

.script .faq-question {
  font-weight: 800;
}

.faq-answer{
  font-size: 16px;
  text-align: left;
  padding: 25px;
}

.script ol > li > strong:first-child {
  font-size: 1.2em;
  font-weight: 800;
}

.column1-break-gap {
  display: block;
  height: 10px;
  font-size: 0;
  line-height: 0;
}

.site-footer p {
  text-align: center;
}

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.lookup-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lookup-controls input,
.lookup-controls select,
.lookup-controls button {
  min-height: 2.75rem;
  padding: 15px;
  /* border: 1px solid rgba(0, 0, 0, .5); */
  border-radius: 0.4rem;
  font-family: "Google Sans Code", monospace;
  text-align: center;
  font-size: 16px;
}

.lookup-controls input,
.lookup-controls select {
  width: min(100%, 14rem);
  background: var(--white);
}

.lookup-controls button {
  width: fit-content;
  max-width: 100%;
  align-self: center;
  min-height: 2.5rem;
  padding: 10px 20px;
  font-family: inherit;
  color: var(--white);
  font-size: 18px;
  background: var(--pink);
  cursor: pointer;
  border-radius: 100px;
}

#call:has(.senator2) .lookup-controls button {
  margin-bottom: 1rem;
}

.lookup-controls button:hover {
  color: var(--pink);
  background: var(--white);
  box-shadow: 3px 3px 3px rgba(0, 0, 0, .5);
  transition: .2s;
}

#lookup-status {
  min-height: 1.5rem;
}

#representative-results {
  max-width: 100%;
  overflow-x: auto;
  padding: 1rem;
  color: #374151;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.4rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .about-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .about-actions #contact,
  .about-actions > .button {
    flex: 0 1 auto;
    width: min(100%, 20rem);
  }

  .about-actions #contact {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  :root {
    --hero-gradient-fade-start: 17rem;
    --hero-gradient-fade-end: 22rem;
  }

  .hero {
    align-content: center;
    padding: 0.25rem 0 0.5rem;
  }

  .hero .eyebrow {
    padding: 0.75rem 0 0.25rem;
  }

  .hero .column1 > p:not(.eyebrow) {
    margin-top: 0.75rem;
  }

  .intro + #representatives {
    padding-top: 0;
  }

  body {
    font-size: clamp(0.9375rem, 3.8vw, 1rem);
    line-height: 1.4;
  }

  #representatives-title,
  .content-section p {
    line-height: 1.4;
  }

  #representatives-title {
    padding: 3.5rem 2.5rem;
  }

  h2 {
    font-size: clamp(1.25rem, 6vw, 1.65rem);
  }

  h3,
  #about-title {
    font-size: clamp(1.1rem, 5.2vw, 1.4rem);
  }

  .card-content h3 {
    font-size: clamp(1.05rem, 5vw, 1.3rem);
  }

  button {
    font-size: clamp(1rem, 4.2vw, 1.15rem);
    padding: 0.65rem 0.85rem;
  }

  .senator2 button {
    font-size: 1.05rem;
    padding: 0.55rem 0.8rem;
  }

  .site-footer h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1;
  }

  .faq {
    width: 100%;
    margin: 2rem 0;
  }

  .site-footer {
    padding-right: 0;
    padding-left: 0;
  }

  .site-footer > p {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .faq-question {
    font-size: clamp(1rem, 4.5vw, 1.15rem);
  }

  .faq-answer {
    font-size: 0.95rem;
    padding: 0.75rem;
  }

  .script {
    padding: clamp(1rem, 5vw, 1.5rem);
  }

  .lookup-controls select {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    min-height: 3.25rem;
    padding: 0.85rem 1rem;
    font-size: 1em;
  }

  .script ol {
    counter-reset: instruction-step;
    list-style: none;
    padding-inline-start: 0;
  }

  .script ol > li {
    counter-increment: instruction-step;
  }

  .script ol > li > strong:first-child::before {
    content: counter(instruction-step) ". ";
  }

  .script ol > li > strong:first-child {
    font-size: clamp(1.05rem, 4.5vw, 1.2rem);
  }

  body::before {
    background-size: 100% 100%;
    background-position: center top;
    background-repeat: no-repeat;
  }

  .site-header {
    display: none;
  }

}

@media (min-width: 768px) {
  .hero {
    padding: clamp(3rem, 6vw, 5rem) 0 3rem;
  }

  .hero .arrow {
    width: 1.1em;
  }

  .hero .column2 img {
    width: clamp(18rem, 28vw, 24rem);
    max-height: clamp(18rem, 28vw, 24rem);
  }
}

@keyframes type-hero-subtext {
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes peek-arrow-turn {
  from {
    transform: rotate(-10deg);
  }

  to {
    transform: rotate(-220deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .arrow {
    animation: none;
  }

  .hero .column1 > p:not(.eyebrow) {
    animation: none;
    clip-path: none;
  }
}

.callout {
  color: #D74181;
}