/* Nashville Local. A letterpress show-bill, set in cream, ink, and stamp red. */

:root {
  --paper: #f3eadb;
  --paper-deep: #e8dbc3;
  --paper-line: #d6c6a6;
  --ink: #17130f;
  --ink-soft: #4a4139;
  --red: #b3121a;
  --red-deep: #8a0d13;
  --cream: #f6efe1;
  --display: 'League Gothic', Impact, 'Arial Narrow', sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Libre Franklin', 'Helvetica Neue', Helvetica, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.28 0 0 0 0 0.2 0 0 0 .18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

main, header, footer { position: relative; z-index: 1; }

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

a { color: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

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

.display {
  font-family: var(--display);
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: .005em;
  font-size: clamp(3.25rem, 8vw, 6.5rem);
}

.display--sm { font-size: clamp(2.75rem, 5.5vw, 4.25rem); }

.eyebrow {
  margin: 0 0 .75rem;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow i { font-style: normal; font-size: .5rem; vertical-align: .15em; margin: 0 .5em; }

/* Buttons */

.btn {
  display: inline-block;
  padding: .8rem 1.35rem;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  border: 2px solid var(--ink);
  border-radius: 2px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
}

.btn--red {
  background: var(--red);
  border-color: var(--red);
  color: var(--cream);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn--red:hover { background: var(--red-deep); border-color: var(--red-deep); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn--red:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }

.btn--lg { padding: 1.05rem 1.75rem; font-size: 1.45rem; }

/* Top bar */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--gutter);
  border-bottom: 2px solid var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--red);
}

.brand__mark { width: 52px; height: 52px; flex: none; }
.brand__mark--lg { width: 96px; height: 96px; }

.brand__name {
  font-family: var(--display);
  font-size: 1.75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}

.brand__name em { font-style: normal; color: var(--red); }

.topbar__nav { display: flex; align-items: center; gap: 1.75rem; }

.topbar__nav a:not(.btn) {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: .15rem;
}

.topbar__nav a:not(.btn):hover { border-color: var(--red); }

@media (max-width: 720px) {
  .topbar__nav a:not(.btn) { display: none; }
  .brand__name { display: none; }
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(3rem, 6vw, 5rem);
}

.hero__title {
  font-family: var(--display);
  font-size: clamp(4.5rem, 12.5vw, 11.5rem);
  line-height: .86;
  text-transform: uppercase;
  letter-spacing: .005em;
  margin: .25rem 0 1.5rem;
}

.hero__title span { display: block; }
.hero__title-red { color: var(--red); }

.hero__lede {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  line-height: 1.45;
  max-width: 34ch;
  margin: 0 0 2rem;
  color: var(--ink-soft);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__art { position: relative; margin: 0; }

.hero__art img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 3px solid var(--ink);
  box-shadow: 14px 14px 0 var(--red);
  filter: saturate(.92) contrast(1.05);
}

.hero__badge {
  position: absolute;
  right: -1.5rem;
  bottom: -2.25rem;
  width: clamp(120px, 15vw, 170px);
  aspect-ratio: 1;
  color: var(--red);
  transform: rotate(-12deg);
  filter: drop-shadow(3px 3px 0 var(--ink));
  animation: spin-in 1.1s var(--ease) both;
  animation-delay: .5s;
}

.hero__badge svg { width: 100%; height: 100%; display: block; background: var(--red); border-radius: 50%; }

@keyframes spin-in {
  from { transform: rotate(-80deg) scale(.4); opacity: 0; }
  to { transform: rotate(-12deg) scale(1); opacity: 1; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__art { order: -1; margin-bottom: 1.5rem; }
  .hero__art img { box-shadow: 10px 10px 0 var(--red); }
  .hero__badge { right: .25rem; bottom: -1.5rem; }
}

/* Load reveal */

.reveal {
  animation: rise .8s var(--ease) both;
  animation-delay: calc(var(--d, 0) * 110ms);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Marquee */

.marquee {
  overflow: hidden;
  background: var(--red);
  color: var(--cream);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: .55rem 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}

.marquee__track {
  display: inline-block;
  animation: ticker 90s linear infinite;
}

.marquee__track span { padding: 0 .25em; }
.marquee__track i { font-style: normal; font-size: .5em; vertical-align: .35em; padding: 0 .75em; opacity: .7; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* How it works */

.how {
  padding: clamp(3.5rem, 8vw, 7rem) var(--gutter);
  border-bottom: 2px solid var(--ink);
}

.how__head { max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }

.how__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
}

.how__steps li {
  padding: 1.75rem 0 2rem;
  border-right: 1px dashed var(--paper-line);
}

.how__steps li:not(:first-child) { padding-left: 1.5rem; }
.how__steps li:not(:last-child) { padding-right: 1.5rem; }
.how__steps li:last-child { border-right: 0; }

.how__num {
  display: block;
  font-family: var(--display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--red);
  margin-bottom: .75rem;
}

.how__steps h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: .5rem;
}

.how__steps p { margin: 0; color: var(--ink-soft); }

.how__cta {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}

.how__fine { margin: 0; font-size: .875rem; color: var(--ink-soft); }

@media (max-width: 760px) {
  .how__steps { grid-template-columns: 1fr; }
  .how__steps li, .how__steps li:not(:first-child), .how__steps li:not(:last-child) { padding-inline: 0; border-right: 0; border-bottom: 1px dashed var(--paper-line); }
  .how__steps li:last-child { border-bottom: 0; }
}

/* The bill */

.bill {
  padding: clamp(3.5rem, 8vw, 7rem) var(--gutter);
  background: var(--paper-deep);
  border-bottom: 2px solid var(--ink);
}

.bill__head { max-width: 46rem; margin-bottom: 2rem; }

.bill__intro { font-family: var(--serif); font-size: 1.2rem; color: var(--ink-soft); max-width: 40ch; margin: 1rem 0 0; }

.bill__filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }

.chip {
  appearance: none;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: .4rem .95rem;
  font: 700 .75rem/1 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, color .15s;
}

.chip:hover { background: var(--ink); color: var(--cream); }
.chip.is-active { background: var(--red); border-color: var(--red); color: var(--cream); }

.bill__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
}

.card {
  position: relative;
  background: var(--paper);
  padding: 1.5rem 1.4rem 1.4rem;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s var(--ease), transform .55s var(--ease), background .2s;
}

.card.is-in { opacity: 1; transform: none; }
.card[hidden] { display: none; }
.card:hover { background: var(--cream); }

.card__num {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: .08em;
  color: var(--red);
}

.card__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.1;
}

.card__loc {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: .35rem;
}

.card__addr { font-style: normal; font-size: .95rem; color: var(--ink-soft); line-height: 1.45; flex: 1; }

.card__links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .75rem;
  border-top: 1px dashed var(--paper-line);
  font-size: .85rem;
  font-weight: 500;
}

.card__links a { text-decoration: none; border-bottom: 1.5px solid var(--red); }
.card__links a:hover { color: var(--red); }

/* About */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(3.5rem, 8vw, 7rem) var(--gutter);
  border-bottom: 2px solid var(--ink);
}

.about__quote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.1;
  color: var(--red);
  align-self: start;
  position: sticky;
  top: 2rem;
}

.about__quote p { margin: 0; }
.about__quote p::before { content: "\201C"; margin-left: -.45em; }
.about__quote p::after { content: "\201D"; }

.about__body p { margin: 0 0 1.1rem; color: var(--ink-soft); }
.about__body .display { margin-bottom: 1.25rem; }
.about__body .about__sign { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink); }

@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; }
  .about__quote { position: static; }
}

/* Footer */

.foot {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}

.foot__brand { display: flex; align-items: center; gap: 1.25rem; color: var(--red); }

.foot__tag {
  margin: 0;
  font-family: var(--display);
  font-size: 2.25rem;
  line-height: .95;
  text-transform: uppercase;
  color: var(--cream);
}

.foot__col { display: flex; flex-direction: column; gap: .5rem; }

.foot__col h4 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #a2968a;
  margin-bottom: .35rem;
}

.foot__col a { text-decoration: none; font-family: var(--serif); font-size: 1.1rem; }
.foot__col a:hover { color: var(--red); text-decoration: underline; }

.foot__legal {
  grid-column: 1 / -1;
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid #3a322b;
  font-size: .8rem;
  color: #a2968a;
}

@media (max-width: 720px) {
  .foot { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

/* Motion preferences */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero__badge, .marquee__track { animation: none; }
  .card { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
