@font-face {
  font-family: "Barlow Condensed";
  src: url("./fonts/BarlowCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("./fonts/BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("./fonts/Barlow-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("./fonts/Barlow-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Tokens */
:root {
  --cream: #FAF4E6;
  --soot: #1C1B1A;
  --brick: #9E3B2C;
  --mustard: #E3A92B;
  --steel: #55606A;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;

  --border: 3px solid var(--soot);
  --shadow-card: 6px 6px 0 var(--soot);
  --shadow-button: 4px 4px 0 var(--soot);

  --font-head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", system-ui, Arial, sans-serif;

  --header-height: 72px;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--soot);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(3rem, 10vw, 6.5rem); line-height: 0.95; }
h2 { font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1; }
h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.1; }

p { margin: 0 0 var(--space-4); }

a {
  color: var(--brick);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--brick);
  outline-offset: 3px;
}
/* On Brick and Soot backgrounds the focus ring is Cream. */
.hero :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--cream);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.section { padding-block: var(--space-8); }
@media (min-width: 960px) {
  .section { padding-block: var(--space-9); }
}

.section__title { margin-bottom: var(--space-6); }

/* Utilities */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--mustard);
  color: var(--soot);
  border: var(--border);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

/* Header */
.site-header {
  position: relative;
  background: var(--cream);
  border-bottom: var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-height);
}

.logo { display: block; }
.logo img { height: 56px; width: auto; }

.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }

.menu__list {
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: var(--space-4) clamp(16px, 4vw, 32px) var(--space-5);
  list-style: none;
  background: var(--cream);
  border-bottom: var(--border);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--soot);
}
.nav-link:hover {
  color: var(--brick);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.3em;
}
.nav-link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.3em;
}

@media (min-width: 960px) {
  .menu summary { display: none; }
  .menu::details-content {
    content-visibility: visible;
    display: block;
  }
  .menu__list {
    position: static;
    display: flex;
    align-items: center;
    gap: var(--space-5);
    padding: 0;
    background: none;
    border: 0;
  }
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--space-5);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--soot);
  background: var(--mustard);
  border: var(--border);
  border-radius: 0;
  box-shadow: var(--shadow-button);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}
.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--soot);
  text-decoration: none;
}
.button:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}
.button--secondary { background: var(--cream); }
.button:disabled,
.button[aria-disabled="true"] {
  background: var(--cream);
  color: var(--steel);
  border: 3px dashed var(--steel);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:hover,
  .button:active { transform: none; }
}

/* Hero */
.hero {
  background: var(--brick);
  color: var(--cream);
  border-bottom: var(--border);
  padding-block: var(--space-8);
}
.hero__inner {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
.hero h1 span { display: block; }
.hero h1 .rotator { display: grid; }
.rotator__item {
  grid-area: 1 / 1;
  opacity: 0;
  animation: rotate 12s infinite backwards;
  animation-delay: calc(var(--i) * 2.4s);
}
.rotator__item:nth-child(1) { --i: 0; opacity: 1; }
.rotator__item:nth-child(2) { --i: 1; }
.rotator__item:nth-child(3) { --i: 2; }
.rotator__item:nth-child(4) { --i: 3; }
.rotator__item:nth-child(5) { --i: 4; }
@keyframes rotate {
  0%   { opacity: 0; transform: translateY(40%); }
  3%   { opacity: 1; transform: none; }
  17%  { opacity: 1; transform: none; }
  20%  { opacity: 0; transform: translateY(-40%); }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rotator__item { animation: none; }
  .rotator__item:not(:first-child) { display: none; }
}
.hero__text > * + * { margin-top: var(--space-5); }
.hero__lead {
  max-width: 36rem;
  margin-bottom: 0;
  font-size: 1.25rem;
  line-height: 1.5;
}
.hero__text p:last-child { margin-bottom: 0; }

@media (min-width: 960px) {
  .hero { padding-block: var(--space-9); }
  .hero__inner { grid-template-columns: 1fr auto; }
}

/* Cards */
.cards {
  display: grid;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  position: relative;
  padding: var(--space-5);
  background: var(--cream);
  border: var(--border);
  box-shadow: var(--shadow-card);
}
.card h3 { margin-bottom: var(--space-2); }
.card p:last-child { margin-bottom: 0; }

.card__number {
  display: block;
  margin-bottom: var(--space-3);
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brick);
}

@media (min-width: 960px) {
  .cards--services { grid-template-columns: repeat(3, 1fr); }
}

/* Service and work cards press down on hover, like the buttons. */
.cards--services .card,
.cards--work .card { transition: transform 0.1s, box-shadow 0.1s; }
.cards--services .card:hover,
.cards--work .card:hover {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 var(--soot);
}
@media (prefers-reduced-motion: reduce) {
  .cards--services .card,
  .cards--work .card { transition: none; }
  .cards--services .card:hover,
  .cards--work .card:hover { transform: none; }
}

/* Work cards */
.cards--work { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .cards--work { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .cards--work { grid-template-columns: repeat(3, 1fr); }
}

.card--work {
  display: flex;
  flex-direction: column;
  padding: 0;
}
.card__body { padding: var(--space-5); }
.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--brick);
  border-bottom: var(--border);
}
.duotone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: multiply;
}

.badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  padding: var(--space-1) var(--space-3);
  background: var(--mustard);
  color: var(--soot);
  border: var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Step strip */
.steps {
  background: var(--mustard);
  border-block: var(--border);
  padding-block: var(--space-7);
}
.steps__list {
  display: grid;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps__item { counter-increment: step; }
.steps__item p { margin: 0; }
.steps__title {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}
.steps__title::before { content: counter(step) ". "; }
@media (min-width: 640px) {
  .steps__list { grid-template-columns: repeat(3, 1fr); }
}

/* Contact form */
.section--contact { border-top: var(--border); }
.contact { display: grid; gap: var(--space-6); }
@media (min-width: 960px) {
  .contact { grid-template-columns: 1fr 1.4fr; gap: var(--space-8); }
}

.form {
  display: grid;
  gap: var(--space-5);
  max-width: 40rem;
}
.field { display: grid; gap: var(--space-2); }
.field label {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
input,
textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  font: inherit;
  font-size: 1rem;
  color: var(--soot);
  background: var(--cream);
  border: var(--border);
  border-radius: 0;
}
textarea { min-height: 10rem; resize: vertical; }
input:user-invalid,
textarea:user-invalid { border-color: var(--brick); }

/* Footer */
.site-footer {
  background: var(--soot);
  color: var(--cream);
  border-top: var(--border);
  padding-block: var(--space-8);
}
.site-footer a { color: var(--mustard); }
.site-footer p { margin-bottom: var(--space-3); }
.site-footer__inner { display: grid; gap: var(--space-6); }
.site-footer__wordmark {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.site-footer__list {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 960px) {
  .site-footer__inner { grid-template-columns: 1.2fr 1fr 1fr; }
}

.g-recaptcha, [data-netlify-recaptcha] { min-height: 78px; }

/* Void Horse credit: small logo beside the link text. */
.void-horse {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.void-horse img { width: 48px; height: auto; }
