:root {
  --yellow: #f5c400;
  --yellow-deep: #d4a800;
  --black: #0a0a0a;
  --black-soft: #141414;
  --stripe: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: "DM Sans", system-ui, sans-serif;
  background-color: var(--black);
  background-image: repeating-linear-gradient(
    -45deg,
    var(--black) 0,
    var(--black) var(--stripe),
    var(--yellow) var(--stripe),
    var(--yellow) calc(var(--stripe) * 2)
  );
  color: #f5f5f5;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.tape {
  position: fixed;
  left: 0;
  right: 0;
  height: 28px;
  z-index: 10;
  background: repeating-linear-gradient(
    90deg,
    var(--yellow) 0,
    var(--yellow) 14px,
    var(--black) 14px,
    var(--black) 28px
  );
  box-shadow: 0 0 0 3px var(--black);
}

.tape--top {
  top: 0;
}

.tape--bottom {
  bottom: 0;
}

.barrier-row {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 2vw, 24px);
  padding: 48px 16px 24px;
  flex-wrap: wrap;
}

.barrier {
  width: 8px;
  height: clamp(100px, 18vh, 160px);
  background: linear-gradient(180deg, #ffcc00 0%, var(--yellow-deep) 100%);
  border-radius: 2px;
  box-shadow:
    0 0 0 2px var(--black),
    inset 0 -20px 0 rgba(0, 0, 0, 0.15);
  position: relative;
}

.barrier::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--black);
}

.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 40px;
}

.sign {
  position: relative;
  max-width: 520px;
  width: 100%;
  border: 6px solid var(--black);
  border-radius: 4px;
  box-shadow:
    0 0 0 4px var(--yellow),
    12px 12px 0 rgba(0, 0, 0, 0.45);
  overflow: hidden;
  background: var(--black-soft);
}

.sign__stripes {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background: repeating-linear-gradient(
    -33deg,
    transparent 0,
    transparent 8px,
    var(--yellow) 8px,
    var(--yellow) 16px
  );
  pointer-events: none;
}

.sign__content {
  position: relative;
  padding: clamp(28px, 6vw, 48px) clamp(24px, 5vw, 40px);
  text-align: center;
}

.sign__label {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--yellow);
}

.sign__title {
  margin: 0 0 16px;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2rem, 8vw, 3.25rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 3px 3px 0 var(--black);
}

.sign__text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #c8c8c8;
  max-width: 36ch;
  margin-inline: auto;
}

.cones {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 28px;
}

.cone--mirror {
  transform: scaleX(-1);
}

.footer {
  padding: 0 0 40px;
}

.caution-tape {
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-top: 4px solid var(--black);
  border-bottom: 4px solid var(--black);
  overflow: hidden;
  white-space: nowrap;
}

.caution-tape--inline .caution-tape__text {
  display: inline-block;
  padding: 10px 0;
  animation: scroll-tape 22s linear infinite;
}

@keyframes scroll-tape {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.caution-tape__text::after {
  content: "OBRA EM ANDAMENTO — OBRA EM ANDAMENTO — OBRA EM ANDAMENTO — ";
}

@media (prefers-reduced-motion: reduce) {
  .caution-tape__text {
    animation: none;
    text-align: center;
    width: 100%;
    white-space: normal;
    padding: 12px 16px;
  }

  .caution-tape__text::after {
    content: "";
  }
}
