/*
  Belltower Digital

  Palette: limestone ground, slate ink, verdigris (the green patina of old bronze
  and copper cupolas) and bell bronze.
  Type: Big Shoulders Display, the City of Chicago's civic typeface, for display;
  Public Sans, the U.S. Web Design System typeface, for everything else.
*/

:root {
  --ground: #f1f4f2;
  --surface: #ffffff;
  --tint: #e3ebe7;
  --ink: #15222b;
  --ink-2: #435359;
  --rule: #c3cec9;
  --patina: #1b6656;
  --patina-strong: #124a3f;
  --on-patina: #ffffff;
  --bronze: #85561a;
  --shadow: #c3cec9;

  --band: #15222b;
  --band-ink: #eef3f1;
  --band-ink-2: #b6c5c1;
  --band-rule: #34454d;
  --band-patina: #74c8b2;
  --band-accent: #e8b56b;
  --on-band-accent: #15222b;

  --focus: #b35900;
  --band-focus: #f4b35e;

  --font-display: "Big Shoulders Display", Bahnschrift, "DIN Alternate", "Arial Narrow", sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.3rem, 1.15rem + 0.6vw, 1.55rem);
  --step-3: clamp(2.1rem, 1.55rem + 2.4vw, 3.25rem);
  --step-4: clamp(2.9rem, 1.7rem + 5.2vw, 5.5rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 4px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0f171b;
    --surface: #152026;
    --tint: #142124;
    --ink: #e5edea;
    --ink-2: #a9b9b5;
    --rule: #2d3d43;
    --patina: #74c8b2;
    --patina-strong: #a3dccd;
    --on-patina: #0b1a16;
    --bronze: #e0a95f;
    --shadow: #05090b;

    --band: #0a1013;
    --band-ink: #e5edea;
    --band-ink-2: #a9b9b5;
    --band-rule: #25343a;
    --band-patina: #74c8b2;
    --band-accent: #e0a95f;
    --on-band-accent: #0a1013;

    --focus: #f4b35e;
    --band-focus: #f4b35e;

    color-scheme: dark;
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--patina);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--patina-strong);
  text-decoration-thickness: 2px;
}

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

main:focus {
  outline: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.1;
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.01em;
}

h3 {
  font-size: var(--step-1);
  font-weight: 700;
}

p {
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  max-width: 48rem;
}

.skip {
  position: absolute;
  top: 0.5rem;
  left: var(--gutter);
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-250%);
}

.skip:focus {
  transform: none;
}

.eyebrow {
  margin-bottom: 0.9rem;
  color: var(--bronze);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1.35rem;
  border: 2px solid var(--patina);
  border-radius: var(--radius);
  background: var(--patina);
  color: var(--on-patina);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.btn:hover {
  border-color: var(--patina-strong);
  background: var(--patina-strong);
  color: var(--on-patina);
}

.btn-quiet {
  background: transparent;
  color: var(--patina);
}

.btn-quiet:hover {
  background: var(--tint);
  color: var(--patina-strong);
}

/* ---------- Mark and masthead ---------- */

.mark {
  flex: none;
  width: 1.9rem;
  height: auto;
}

.m-roof {
  fill: var(--mark-roof, var(--patina));
}

.m-tower {
  fill: var(--mark-tower, var(--ink));
}

.m-bell {
  fill: var(--mark-bell, var(--bronze));
}

.masthead {
  border-bottom: 1px solid var(--rule);
}

.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 0.85rem;
}

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

.brand:hover {
  color: var(--ink);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.035em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark b {
  font-weight: 800;
}

.wordmark span {
  color: var(--patina);
  font-weight: 600;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-block;
  padding-block: 0.55rem;
  color: var(--ink);
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover {
  color: var(--patina);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.nav .nav-cta {
  padding: 0.45rem 0.95rem;
  border: 2px solid var(--patina);
  border-radius: var(--radius);
  color: var(--patina);
}

.nav .nav-cta:hover {
  background: var(--patina);
  color: var(--on-patina);
  text-decoration: none;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem);
}

.hero-grid {
  display: grid;
  gap: 2rem clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero h1 {
  max-width: 13ch;
  font-size: var(--step-4);
  line-height: 0.95;
}

.lede {
  max-width: 34em;
  margin-top: 1.4rem;
  color: var(--ink-2);
  font-size: var(--step-1);
}

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

.hero-art {
  justify-self: center;
  width: min(62%, 15rem);
}

@media (min-width: 54rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }

  .hero-art {
    width: min(100%, 23rem);
  }
}

.tower {
  display: block;
  width: 100%;
  height: auto;
}

.t-roof {
  fill: var(--patina);
}

.t-seam {
  fill: none;
  stroke: var(--ground);
  stroke-width: 2;
  opacity: 0.28;
}

.t-body {
  fill: var(--ink);
}

.t-bell {
  fill: var(--bronze);
}

.t-face {
  fill: var(--surface);
  stroke: var(--bronze);
  stroke-width: 4;
}

.t-hand {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-width: 4;
}

.t-arc {
  fill: none;
  stroke: var(--bronze);
  stroke-linecap: round;
  stroke-width: 6;
}

.t-arc-2 {
  opacity: 0.6;
}

.t-arc-3 {
  opacity: 0.32;
}

@media (prefers-reduced-motion: no-preference) {
  .t-swing {
    transform-box: view-box;
    transform-origin: 180px 137px;
    animation: t-swing 1.8s ease-in-out 0.3s 2;
  }

  .t-arc {
    animation: t-ring 1.8s ease-out 0.3s 2;
  }

  .t-arc-2 {
    animation-delay: 0.45s;
  }

  .t-arc-3 {
    animation-delay: 0.6s;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@keyframes t-swing {
  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(8deg);
  }

  75% {
    transform: rotate(-8deg);
  }
}

@keyframes t-ring {
  0%,
  100% {
    stroke-width: 6;
  }

  35% {
    stroke-width: 10;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(3.25rem, 8vw, 6rem);
}

.section-tint {
  background: var(--tint);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
  font-size: var(--step-3);
}

.section-head .intro {
  margin-top: 1rem;
  color: var(--ink-2);
  font-size: var(--step-1);
}

/* The deadline notice: the one object on the page that is lifted off the ground. */

.notice {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 8px 8px 0 var(--shadow);
}

.notice-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding: 0.65rem clamp(1rem, 3vw, 2.25rem);
  background: var(--band);
  color: var(--band-ink);
}

.notice-kind {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.notice-subject {
  color: var(--band-ink-2);
  font-size: var(--step--1);
  letter-spacing: 0.02em;
}

.notice-body {
  display: grid;
  gap: 1.6rem;
  padding: clamp(1.4rem, 4vw, 2.75rem) clamp(1rem, 3vw, 2.25rem);
}

.notice h2 {
  max-width: 18ch;
  font-size: var(--step-3);
}

.notice-lede {
  max-width: 42em;
  font-size: var(--step-1);
}

.dates {
  display: grid;
  margin: 0;
  border-block: 2px solid var(--ink);
}

.date {
  padding-block: 1.25rem;
}

.date + .date {
  border-top: 1px solid var(--rule);
}

.date dt {
  max-width: 24em;
  color: var(--ink-2);
  font-weight: 600;
}

.date dd {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.9rem + 3vw, 4rem);
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 800;
  line-height: 1;
}

.notice-cols {
  display: grid;
  gap: 1rem 2.5rem;
}

.notice-cols p {
  color: var(--ink-2);
}

.notice-cols strong {
  color: var(--ink);
}

.notice-note {
  max-width: 60em;
  color: var(--ink-2);
}

.notice-note strong {
  color: var(--ink);
}

.notice-foot {
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: var(--step--1);
}

@media (min-width: 46rem) {
  .dates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .date + .date {
    padding-left: clamp(1rem, 3vw, 2rem);
    border-top: 0;
    border-left: 1px solid var(--rule);
  }
}

@media (min-width: 50rem) {
  .notice-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Services */

.services {
  display: grid;
  gap: 2.25rem 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.services li {
  padding-top: 1rem;
  border-top: 3px solid var(--patina);
}

.services h3 {
  margin-bottom: 0.5rem;
}

.services p {
  color: var(--ink-2);
}

@media (min-width: 40rem) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* WCAG success criteria */

.criteria {
  display: grid;
  column-gap: 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.criteria li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  column-gap: 1rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--rule);
}

.sc {
  padding-top: 0.1rem;
  color: var(--patina);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1;
}

.sc-name {
  font-weight: 700;
}

.sc-level {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0 0.4rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  vertical-align: 0.15em;
}

.sc-plain {
  color: var(--ink-2);
}

.sc-stat {
  margin-top: 0.3rem;
  color: var(--bronze);
  font-size: var(--step--1);
  font-weight: 600;
}

.source {
  margin-top: 1.5rem;
  color: var(--ink-2);
  font-size: var(--step--1);
}

@media (min-width: 60rem) {
  .criteria {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Process: a real sequence, so the steps carry their numbers. */

.steps {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  align-content: start;
  column-gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  counter-increment: step;
}

.steps li::before {
  grid-row: 1 / span 2;
  color: var(--bronze);
  content: counter(step);
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 0.9;
}

.steps h3 {
  margin-bottom: 0.35rem;
}

.steps p {
  color: var(--ink-2);
}

@media (min-width: 64rem) {
  .steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2rem;
  }

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

  .steps li::before {
    grid-row: auto;
    margin-bottom: 0.75rem;
  }
}

/* About */

.about-grid {
  display: grid;
  gap: 1.25rem 4rem;
}

.about-grid h2 {
  font-size: var(--step-3);
}

.prose {
  display: grid;
  gap: 1.1rem;
  max-width: 65ch;
}

.about-grid .prose p {
  font-size: var(--step-1);
}

@media (min-width: 54rem) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  }
}

/* Contact band */

.contact {
  background: var(--band);
  color: var(--band-ink);
}

.contact-grid {
  display: grid;
  gap: 2rem 4rem;
  align-items: center;
}

.contact h2 {
  font-size: var(--step-3);
}

.contact p {
  max-width: 38em;
  margin-top: 1rem;
  color: var(--band-ink-2);
  font-size: var(--step-1);
}

.contact-card {
  display: grid;
  justify-items: start;
  gap: 0.9rem;
}

.contact .contact-meta {
  margin: 0;
  font-size: var(--step-0);
}

.btn-band {
  border-color: var(--band-accent);
  background: var(--band-accent);
  color: var(--on-band-accent);
  font-size: var(--step-1);
}

.btn-band:hover {
  border-color: var(--band-ink);
  background: var(--band-ink);
  color: var(--band);
}

@media (min-width: 54rem) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
}

/* Footer */

.colophon {
  padding-block: 2.5rem;
  border-top: 1px solid var(--band-rule);
  background: var(--band);
  color: var(--band-ink-2);
  font-size: var(--step--1);
}

.colophon .mark {
  --mark-roof: var(--band-patina);
  --mark-tower: var(--band-ink);
  --mark-bell: var(--band-accent);
}

.colophon-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.colophon-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.colophon-brand p {
  line-height: 1.5;
}

.colophon strong {
  color: var(--band-ink);
  font-size: var(--step-0);
}

.colophon ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.colophon a {
  display: inline-block;
  padding-block: 0.2rem;
  color: var(--band-ink);
}

.colophon a:hover {
  color: var(--band-accent);
}

.fine {
  flex-basis: 100%;
  padding-top: 1.25rem;
  border-top: 1px solid var(--band-rule);
}

.contact :focus-visible,
.colophon :focus-visible {
  outline-color: var(--band-focus);
}

/* Inner pages */

.page {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 8vw, 6rem);
}

.page h1 {
  font-size: var(--step-3);
}

.page .prose h2 {
  margin-top: 1.25rem;
  font-family: var(--font-body);
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: 0;
}

.page .prose ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.25rem;
}

.meta {
  color: var(--ink-2);
}

.page-lg h1 {
  max-width: 16ch;
  font-size: var(--step-4);
  line-height: 0.95;
}

/* Example sites: the home-page teaser and the /work/ page */

.teaser {
  display: grid;
  align-items: end;
  gap: 1.5rem 3rem;
  justify-items: start;
}

.teaser h2 {
  font-size: var(--step-3);
}

.teaser .intro {
  max-width: 40em;
  margin-top: 1rem;
  color: var(--ink-2);
  font-size: var(--step-1);
}

@media (min-width: 54rem) {
  .teaser {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.features {
  display: grid;
  column-gap: 2.5rem;
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.5rem;
  border-top: 1px solid var(--rule);
  font-weight: 600;
}

.features li::before {
  position: absolute;
  top: 1.35rem;
  left: 0;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--bronze);
  content: "";
}

@media (min-width: 40rem) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.buying {
  display: grid;
  gap: 0.75rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: 1.25rem clamp(1rem, 3vw, 1.75rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}

.buying ul {
  display: grid;
  gap: 0.4rem 2.5rem;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-2);
}

@media (min-width: 54rem) {
  .buying ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.work-list {
  display: grid;
  gap: clamp(3rem, 7vw, 4.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.work {
  display: grid;
  align-items: center;
  gap: 1.75rem clamp(2rem, 4vw, 3.5rem);
}

.work-shot {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 8px 8px 0 var(--shadow);
}

.work-body {
  display: grid;
  justify-items: start;
  gap: 0.85rem;
}

.work-body h2 {
  font-size: var(--step-3);
}

.work-kind {
  color: var(--bronze);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-shows {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 0.4rem;
  padding-left: 1.2rem;
  color: var(--ink-2);
}

.work-note {
  max-width: 48rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

@media (min-width: 56rem) {
  .work {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}

@media print {
  .skip,
  .nav,
  .hero-art {
    display: none;
  }

  body,
  .section-tint,
  .contact,
  .colophon {
    background: #fff;
    color: #000;
  }

  a,
  .contact p,
  .colophon a {
    color: #000;
  }
}
