/* Tollgate Realty. Yard-sign design: white page, sign-yellow blocks, black type and bars. */

:root {
  --white: #ffffff;
  --yellow: #ffd60a;
  --black: #111111;
  --grey: #6b6b6b;
  --rule: 4px;
  --gutter: 16px;
  --display: "Barlow Condensed", "Arial Narrow", Arial, Helvetica, sans-serif;
  --body: "Barlow", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.container {
  width: min(100% - (var(--gutter) * 2), 72rem);
  margin-inline: auto;
}

.prose { max-width: 32rem; }

a { color: inherit; }

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 3px;
}

/* Type */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 1rem;
  overflow-wrap: break-word;
}

h1 {
  font-weight: 800;
  font-size: clamp(2rem, 9vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.9rem, 7vw, 3.25rem);
  max-width: 20ch;
}

.lede {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  background: var(--black);
  color: var(--white);
  border: var(--rule) solid var(--black);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  max-width: 100%;
}

.btn:hover { background: var(--yellow); color: var(--black); }

.btn--yellow { background: var(--yellow); color: var(--black); }
.btn--yellow:hover { background: var(--white); }

.btn--ghost { background: var(--white); color: var(--black); }
.btn--ghost:hover { background: var(--yellow); }

.btn--outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--black); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--black);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
  text-decoration-color: var(--yellow);
}

.text-link:hover { text-decoration-color: var(--black); }

/* Header */

.site-header { border-bottom: var(--rule) solid var(--black); }

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 64px;
  padding-block: 0.5rem;
}

.site-header .btn {
  font-size: 1rem;
  padding: 0.4rem 0.75rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  white-space: nowrap;
}

.wordmark__mark {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  outline: 3px solid var(--black);
}

/* Sections */

main > section {
  padding-block: 3rem;
  border-top: var(--rule) solid var(--black);
}

main > section:first-child { border-top: 0; }

section > .container > .prose { margin-bottom: 2rem; }

/* Hero: the yard sign */

.hero__grid {
  display: grid;
  gap: 2.5rem;
}

figure { margin: 0; }

figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--grey);
  max-width: 27rem;
}

.sign-figure { max-width: 34rem; }

.sign {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) 14px;
  grid-template-rows: 14px 32px auto 24px auto 40px;
  column-gap: 12px;
}

.sign__post {
  grid-row: 1 / -1;
  background: var(--black);
}

.sign__post--l { grid-column: 1; }
.sign__post--r { grid-column: 3; }

.sign__bar {
  grid-column: 1 / -1;
  grid-row: 1;
  background: var(--black);
}

.sign__hang {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  padding-inline: 14%;
}

.sign__hang span {
  display: block;
  width: 4px;
  background: var(--black);
}

.sign__hang--top { grid-row: 2; }
.sign__hang--rider { grid-row: 4; padding-inline: 26%; }

.sign__panel {
  grid-column: 2;
  grid-row: 3;
  background: var(--yellow);
  border: var(--rule) solid var(--black);
  padding: 1rem;
}

.sign__panel h1 { margin: 0; }

.sign__eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--black);
  padding-bottom: 0.4rem;
}

.sign__rider {
  grid-column: 2;
  grid-row: 5;
  margin: 0 12%;
  background: var(--white);
  border: var(--rule) solid var(--black);
  padding: 0.35rem 0.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

.sign__ground {
  grid-column: 1 / -1;
  grid-row: 6;
  align-self: end;
  height: var(--rule);
  background: var(--black);
}

/* Translator table */

.table-figure { max-width: 50rem; }

.table-wrap {
  overflow-x: auto;
  border: var(--rule) solid var(--black);
}

.glossary {
  width: 100%;
  border-collapse: collapse;
}

.glossary thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.glossary tr, .glossary td { display: block; }

.glossary tr { border-top: 2px solid var(--black); }
.glossary tr:first-child { border-top: 0; }
.glossary tbody tr:nth-child(odd) { background: var(--yellow); }

.glossary td { padding: 0.25rem 0.65rem; }
.glossary td:first-child {
  padding-top: 0.9rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.1;
  text-transform: uppercase;
}
.glossary td:last-child { padding-bottom: 0.9rem; }

/* Two listings */

.listings {
  display: grid;
  gap: 1.5rem;
}

.card {
  border: var(--rule) solid var(--black);
  display: flex;
  flex-direction: column;
}

.card__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.6rem 1rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.card--old .card__head { background: var(--black); color: var(--white); }
.card--new .card__head { background: var(--yellow); color: var(--black); border-bottom: var(--rule) solid var(--black); }

.card__body { padding: 0.75rem 0.65rem; }
.card__body p { max-width: 31rem; }
.card--old .card__body { color: var(--grey); }

/* The fee */

.fee {
  display: grid;
  gap: 1.5rem;
}

.fee__number {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--yellow);
  border: var(--rule) solid var(--black);
  padding: 1rem 1.25rem 1.25rem;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fee__number strong {
  font-weight: 800;
  font-size: clamp(6rem, 32vw, 11rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
}

.fee figcaption { grid-column: 1 / -1; }

/* Showing sheet */

.sheet {
  border: var(--rule) solid var(--black);
  max-width: 38rem;
}

.sheet__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.6rem 1rem;
  background: var(--black);
  color: var(--white);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sheet ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: item;
}

.sheet li {
  counter-increment: item;
  display: block;
  padding: 0.9rem 0.75rem;
  border-top: 2px solid var(--black);
}

.sheet li:first-child { border-top: 0; }

.sheet li::after { content: ""; display: block; clear: both; }

.sheet li::before {
  content: counter(item, decimal-leading-zero);
  float: left;
  min-width: 2.6rem;
  margin: 0.05rem 0.75rem 0.25rem 0;
  align-self: start;
  background: var(--yellow);
  border: 3px solid var(--black);
  padding: 0.15rem 0;
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
}

.showing .prose { margin-top: 2rem; }

/* The town */

.town__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: line;
  max-width: 36rem;
}

.town__list li {
  counter-increment: line;
  display: block;
  padding: 1rem 0;
  border-top: 2px solid var(--black);
}

.town__list li::after { content: ""; display: block; clear: both; }

.town__list li:first-child { border-top: var(--rule) solid var(--yellow); }

.town__list li::before {
  content: counter(line);
  float: left;
  min-width: 2.25rem;
  margin: 0.1rem 0.75rem 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.75rem;
  line-height: 0.9;
  color: var(--black);
}

/* Questions */

.qa {
  margin: 0;
  max-width: 31rem;
}

.qa dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.1;
  text-transform: uppercase;
  padding-top: 1.25rem;
  border-top: 2px solid var(--black);
}

.qa dt:first-child { border-top: 0; padding-top: 0; }

.qa dd {
  margin: 0.5rem 0 1.25rem;
}

/* Final call */

.cta {
  background: var(--black);
  color: var(--white);
}

.cta h2 { color: var(--yellow); }

.cta__grid {
  display: grid;
  gap: 1.5rem;
}

.cta .actions { margin-top: 0; align-content: start; }

.cta a:focus-visible,
.cta .btn:focus-visible { outline-color: var(--yellow); }

/* Footer */

.site-footer {
  border-top: var(--rule) solid var(--black);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-brand p {
  margin-top: 0.75rem;
  max-width: 24rem;
  color: var(--grey);
}

.footer-col h3 {
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  margin: 0 0 0.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--yellow);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--black);
  text-decoration: none;
}

.footer-col a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 2px solid var(--black);
  font-size: 0.95rem;
  color: var(--grey);
}

.legal p { margin: 0; }

.legal a {
  display: inline-block;
  padding-block: 13px;
  margin-block: -13px;
  color: var(--black);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Wider phones and tablets */

@media (min-width: 640px) {
  :root { --gutter: 24px; }

  body { font-size: 1.0625rem; }

  main > section { padding-block: 4rem; }

  .lede { font-size: 1.3rem; }

  .site-header__row { gap: 1rem; min-height: 72px; }
  .site-header .btn { font-size: 1.125rem; padding: 0.5rem 1.25rem; }
  .wordmark { font-size: 1.5rem; }
  .wordmark__mark { width: 28px; height: 28px; }

  .card__body { padding: 1rem; }

  .sheet li {
    display: grid;
    grid-template-columns: 2.6rem minmax(0, 1fr);
    gap: 0.9rem;
    padding: 0.9rem 1rem;
  }

  .sheet li::before { float: none; margin: 0; }

  .town__list li {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .town__list li::before { float: none; margin: 0; }

  .glossary thead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
  }

  .glossary tr { display: table-row; border-top: 0; }
  .glossary td { display: table-cell; }

  .glossary th {
    padding: 0.75rem 1rem;
    background: var(--black);
    color: var(--yellow);
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: left;
  }

  .glossary td {
    padding: 0.9rem 1rem;
    vertical-align: top;
    border-top: 2px solid var(--black);
  }

  .glossary td:first-child {
    width: 32%;
    padding-top: 0.9rem;
  }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* Desktop */

@media (min-width: 960px) {
  :root { --gutter: 32px; }

  body { font-size: 1.125rem; }

  main > section { padding-block: 5rem; }

  .hero__grid {
    grid-template-columns: minmax(0, 30rem) minmax(0, 32rem);
    align-items: start;
    gap: 4rem;
  }

  .hero__copy { padding-top: 1rem; }

  .listings { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .fee {
    grid-template-columns: minmax(0, 20rem) minmax(0, 32rem);
    align-items: stretch;
  }

  .cta__grid {
    grid-template-columns: minmax(0, 32rem) auto;
    align-items: center;
    gap: 3rem;
  }

  .cta .actions { flex-direction: column; align-items: stretch; }

  .footer-grid { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: auto; }
}
