/*
  The Teeple Record
  SC House District 116

  Single dark theme. Display type is Big Shoulders, body is Source Serif 4,
  labels and captions are IBM Plex Mono.
*/

:root {
  /* palette */
  --void: #07090d;
  --ash: #11151c;
  --slab: #181d26;
  --line: #2a313d;
  --bone: #eceae4;
  --smoke: #9aa1ab;
  --blood: #e3271c;
  --ember: #ff5a3c;
  --wash: #2a0d0b;

  /* type */
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box
}

html {
  background: var(--void)
}

body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px))
}

a {
  color: var(--ember);
  text-underline-offset: 3px
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  text-transform: uppercase;
  line-height: .9;
  margin: 0;
  text-wrap: balance;
  letter-spacing: .005em
}

p {
  margin: 0
}

.mono {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase
}

.src {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--smoke)
}

.src a {
  color: var(--smoke)
}

.red {
  color: var(--blood)
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--void);
  border-bottom: 10px solid var(--blood);
  isolation: isolate
}

.hero .shot {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(58%, 640px);
  z-index: -2
}

.hero .shot {
  overflow: hidden
}

.hero .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  filter: grayscale(1) contrast(1.7) brightness(.6);
  transform: scale(1.32);
  transform-origin: 52% 30%
}

.hero .shot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--blood);
  mix-blend-mode: multiply;
  opacity: .66
}

.hero .shot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse 34% 26% at 58% 34%, rgba(7, 9, 13, 0) 0%, rgba(7, 9, 13, .35) 60%, rgba(7, 9, 13, .85) 100%), linear-gradient(100deg, rgba(7, 9, 13, 0) 52%, rgba(7, 9, 13, .8) 92%), linear-gradient(90deg, var(--void) 0%, rgba(7, 9, 13, .78) 26%, rgba(7, 9, 13, 0) 58%), linear-gradient(0deg, var(--void) 0%, rgba(7, 9, 13, 0) 38%)
}

.hero .scan {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px);
  pointer-events: none
}

.hero .wrap {
  padding-block: clamp(48px, 9vw, 120px) clamp(40px, 6vw, 72px);
  display: grid;
  gap: 26px
}

.file {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center
}

.file .mono {
  color: var(--smoke)
}

.file b {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--void);
  background: var(--blood);
  padding: 4px 9px;
  font-weight: 500
}

.hero h1 {
  font-size: clamp(3.4rem, 10.5vw, 9rem);
  font-weight: 900;
  max-width: 11ch
}

.hero h1 em {
  font-style: normal;
  display: block;
  color: var(--blood);
  font-size: .62em;
  margin-top: .12em;
  max-width: 16ch
}

.hero .lede {
  max-width: 46ch;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--bone)
}

.stamp {
  justify-self: start;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-transform: uppercase;
  color: var(--blood);
  border: 4px solid var(--blood);
  padding: 6px 16px;
  transform: rotate(-4deg);
  letter-spacing: .04em;
  box-shadow: inset 0 0 0 2px var(--void), inset 0 0 0 4px var(--blood)
}

.nameplate {
  position: absolute;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: 22px;
  text-align: right;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--smoke)
}

.nameplate strong {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: .02em;
  color: var(--bone)
}

/* CHARGE SHEET */
.charges {
  background: var(--ash);
  border-bottom: 1px solid var(--line)
}

.charges .wrap {
  padding-block: 44px;
  display: grid;
  gap: 22px
}

.charges h2 {
  font-size: 1.1rem;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--smoke)
}

.sheet {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line)
}

.sheet a {
  background: var(--ash);
  padding: 20px;
  display: grid;
  gap: 8px;
  text-decoration: none;
  color: var(--bone);
  transition: background .2s
}

.sheet a:hover {
  background: var(--wash)
}

.sheet .n {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--blood)
}

.sheet strong {
  font-family: var(--display);
  font-size: 3.2rem;
  line-height: .9;
  color: var(--blood);
  font-variant-numeric: tabular-nums
}

.sheet span {
  font-size: .98rem
}

/* COUNTS */
.count {
  border-bottom: 1px solid var(--line);
  position: relative
}

.count .wrap {
  padding-block: clamp(56px, 8vw, 96px);
  display: grid;
  gap: 26px
}

.label {
  display: flex;
  align-items: center;
  gap: 14px
}

.label .mono {
  color: var(--blood)
}

.label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line)
}

.count h2 {
  font-size: clamp(2rem, 7vw, 5.4rem);
  font-weight: 900;
  max-width: 22ch
}

.count h2 .red {
  display: block
}

.prose {
  display: grid;
  gap: 16px;
  max-width: 64ch;
  font-size: 1.12rem
}

.prose strong {
  color: #fff
}

.giant {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(18px, 4vw, 48px);
  align-items: center
}

.giant .num {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(9rem, 26vw, 18rem);
  line-height: .78;
  color: transparent;
  -webkit-text-stroke: 3px var(--blood)
}

.giant .num.solid {
  color: var(--blood);
  -webkit-text-stroke: 0
}

.giant p {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  max-width: 28ch;
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.05
}

ol.track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px
}

ol.track li {
  background: var(--slab);
  border-top: 4px solid var(--blood);
  padding: 16px 18px;
  display: grid;
  gap: 6px;
  align-content: start
}

ol.track time {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--blood)
}

ol.track b {
  font-family: var(--display);
  font-size: 1.35rem;
  text-transform: uppercase;
  line-height: 1
}

ol.track span {
  color: var(--smoke);
  font-size: .95rem
}

.quote {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 8vw, 6.6rem);
  line-height: .88;
  color: var(--bone)
}

.quote .red {
  color: var(--blood)
}

.quote cite {
  display: block;
  margin-top: 18px;
  font-family: var(--mono);
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--smoke)
}

.pull {
  margin: 0;
  border-left: 6px solid var(--blood);
  padding: 14px 20px;
  background: var(--slab);
  font-size: 1.25rem;
  font-style: italic;
  max-width: 56ch
}

.pull cite {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-style: normal;
  font-size: .74rem;
  color: var(--smoke)
}

.steps {
  counter-reset: s;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 760px
}

.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line)
}

.steps li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--display);
  font-weight: 900;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--blood)
}

.steps b {
  display: block;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.3rem;
  line-height: 1.05;
  margin-bottom: 4px
}

/* Rubber stamp count with Statehouse photo */
.count.house {
  background: var(--void);
  overflow: hidden;
  isolation: isolate
}

.count.house .bg {
  position: absolute;
  inset: 0;
  z-index: -1
}

.count.house .bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.2) brightness(.45)
}

.count.house .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 13, .55), var(--void) 78%)
}

.ledger {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(17, 21, 28, .92)
}

table {
  border-collapse: collapse;
  width: 100%
}

@media (max-width:600px) {
  thead {
    display: none
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%
  }

  tr {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line)
  }

  td {
    border: 0;
    padding: 2px 0
  }

  td.v {
    font-size: 1.2rem
  }
}

th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top
}

th {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--smoke);
  font-weight: 500
}

tr:last-child td {
  border-bottom: 0
}

td.v {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--blood);
  text-transform: uppercase
}

.versus {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border: 1px solid var(--line)
}

.versus>div {
  padding: 26px;
  display: grid;
  gap: 12px;
  align-content: start
}

.versus .then {
  background: var(--ash)
}

.versus .now {
  background: var(--wash);
  border-left: 1px solid var(--blood)
}

.versus h3 {
  font-size: 2.2rem
}

.versus .now h3 {
  color: var(--blood)
}

.versus .mono {
  color: var(--smoke)
}

.split2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start
}

/* VERDICT */
.verdict {
  background: var(--blood);
  color: var(--void)
}

.verdict .wrap {
  padding-block: clamp(56px, 9vw, 110px);
  display: grid;
  gap: 26px
}

.verdict h2 {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  color: var(--void)
}

.verdict h2 span {
  display: block;
  color: #fff
}

.verdict .lead {
  font-size: 1.3rem;
  max-width: 50ch;
  font-weight: 600
}

.polls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px
}

.polls div {
  border-top: 3px solid var(--void);
  padding-top: 12px
}

.polls h3 {
  font-size: 1.4rem;
  margin-bottom: 6px
}

.polls ul {
  margin: 0;
  padding-left: 18px
}

.verdict a {
  color: var(--void);
  font-weight: 600
}

footer {
  background: var(--void)
}

footer .wrap {
  padding-block: 48px;
  display: grid;
  gap: 16px
}

footer h2 {
  font-size: 1.4rem;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--smoke)
}

footer ol {
  padding-left: 20px;
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: .92rem;
  color: var(--smoke)
}

.disclaimer {
  border: 1px solid var(--bone);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: .78rem;
  justify-self: start;
  max-width: 100%
}

@media (max-width:760px) {
  .hero .shot {
    width: 100%;
    opacity: .55
  }

  .hero .shot::after {
    background: linear-gradient(0deg, var(--void) 8%, rgba(7, 9, 13, .55) 60%, rgba(7, 9, 13, .3) 100%)
  }

  .nameplate {
    position: static;
    text-align: left;
    margin-top: 6px
  }

  .giant {
    grid-template-columns: 1fr
  }

  .split2 {
    grid-template-columns: 1fr
  }

  .steps li {
    grid-template-columns: 48px minmax(0, 1fr)
  }
}

@media (prefers-reduced-motion:no-preference) {
  .stamp {
    animation: slam .5s cubic-bezier(.2, 1.6, .4, 1) .3s both
  }

  @keyframes slam {
    from {
      transform: rotate(-4deg) scale(1.6);
      opacity: .2
    }

    to {
      transform: rotate(-4deg) scale(1);
      opacity: 1
    }
  }
}

@media (max-width:900px) {
  .sheet {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media (max-width:520px) {
  .sheet {
    grid-template-columns: 1fr
  }
}

.short {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  max-width: 34ch;
  line-height: 1.35
}

.short strong {
  color: #fff
}

details.more {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

details.more summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blood)
}

details.more summary::-webkit-details-marker {
  display: none
}

details.more summary::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--blood);
  font-size: 1.1rem;
  line-height: 1
}

details.more[open] summary::before {
  content: "\2212"
}

details.more summary:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 2px
}

details.more .inner {
  display: grid;
  gap: 18px;
  padding: 4px 0 24px
}

.bars {
  display: grid;
  gap: 14px;
  background: rgba(17, 21, 28, .92);
  border: 1px solid var(--line);
  padding: 20px;
  max-width: 760px
}

.bar {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 84px;
  gap: 14px;
  align-items: center
}

.bar .who b {
  display: block;
  font-family: var(--display);
  font-size: 1.3rem;
  text-transform: uppercase;
  line-height: 1
}

.bar .who span {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--smoke)
}

.bar .track {
  height: 34px;
  background: var(--slab);
  border-left: 2px solid var(--smoke)
}

.bar .track i {
  display: block;
  height: 100%;
  min-width: 3px;
  background: var(--blood)
}

.bar strong {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.7rem;
  color: var(--blood);
  text-align: right;
  font-variant-numeric: tabular-nums
}

@media (max-width:520px) {
  .bar {
    grid-template-columns: minmax(0, 1fr) auto
  }

  .bar .track {
    grid-column: 1/-1;
    grid-row: 2
  }

  .bar strong {
    grid-row: 1;
    grid-column: 2
  }
}

.post {
  margin: 0;
  display: grid;
  gap: 8px
}

.post img {
  width: 100%;
  border: 1px solid var(--line)
}

h1,
h2,
h3,
.sheet strong {
  text-wrap: balance
}

p,
li {
  text-wrap: pretty
}

.sheet strong {
  font-size: clamp(2.2rem, 4vw, 3.2rem)
}

.brag .post img {
  max-height: 640px;
  width: auto;
  max-width: 100%;
  justify-self: start
}

.edit-me {
  background: #ffe600;
  color: #000;
  padding: 0 4px
}

.sheet strong.long {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: .95;
  text-transform: uppercase
}

#slot2 h2 {
  max-width: 30ch
}

@media (max-width:520px) {
  #slot2 h2 {
    font-size: 1.75rem
  }
}

.buscam {
  max-width: 760px
}

.buscam img {
  display: block;
  width: 100%;
  border: 3px solid var(--blood)
}

:root {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px)
}

body {
  margin: 0
}

img {
  max-width: 100%
}

.sheet strong.long {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: .95;
  text-transform: uppercase
}