/* EDM Tech: aço de cozinha, papel de comanda e mostarda. */
:root {
  --steel: #dce1e3;
  --steel-deep: #c3cbcf;
  --ink: #14181b;
  --muted: #4b5359;
  --paper: #fcfcfa;
  --mustard: #d9a21b;
  --mustard-soft: #f3e2b3;
  --display: 'Archivo', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --measure: 68ch;
  --gutter: clamp(1rem, 4vw, 3rem);
  --radius: 10px;
  --print: 1.6s;
}

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

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

body {
  margin: 0;
  background: var(--steel);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--display);
  font-variation-settings: 'wdth' 100;
}

a {
  color: inherit;
  text-decoration-color: var(--mustard);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 10;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Topo */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--steel-deep);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font: 800 1.2rem/1 var(--display);
  font-variation-settings: 'wdth' 125;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand::before {
  content: '';
  width: 0.85rem;
  height: 1.15rem;
  background: var(--mustard);
  border-radius: 2px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.nav a {
  display: inline-block;
  padding-block: 0.6rem;
  text-decoration: none;
}

.nav a[aria-current='page'],
.nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--mustard);
  text-decoration-thickness: 3px;
}

/* Abertura com a comanda */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-block: clamp(2.5rem, 7vw, 6rem) clamp(3rem, 7vw, 6rem);
}

.eyebrow {
  margin: 0 0 1rem;
  font: 600 0.8rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(2.3rem, 1.3rem + 3.4vw, 4.1rem);
  font-weight: 800;
  font-variation-settings: 'wdth' 112;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 40ch;
  margin: 1.5rem 0 2rem;
  font-size: 1.2rem;
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 1.4rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button.primary:hover {
  background: #2a3035;
}

.button:not(.primary):hover {
  background: var(--paper);
}

/* Impressora e comanda: a assinatura do site */
.printer {
  position: relative;
  max-width: 25rem;
  justify-self: end;
  width: 100%;
  filter: drop-shadow(0 18px 24px rgb(20 24 27 / 0.16));
}

.printer::before {
  content: '';
  display: block;
  height: 1.1rem;
  margin: 0 -0.75rem;
  background: var(--ink);
  border-radius: 6px 6px 3px 3px;
  position: relative;
  z-index: 1;
}

.slot {
  overflow: hidden;
  margin-top: -0.35rem;
  padding: 0 0 1.5rem;
}

.ticket {
  --tooth: 12px;
  background: var(--paper);
  padding: 1.6rem 1.5rem 1.9rem;
  font: 400 0.86rem/1.55 var(--mono);
  -webkit-mask:
    radial-gradient(circle at 50% 100%, transparent 5px, #000 5.5px) bottom / var(--tooth) 51% repeat-x,
    linear-gradient(#000, #000) top / 100% 50% no-repeat;
  mask:
    radial-gradient(circle at 50% 100%, transparent 5px, #000 5.5px) bottom / var(--tooth) 51% repeat-x,
    linear-gradient(#000, #000) top / 100% 50% no-repeat;
  animation: print var(--print) steps(22, end) both;
}

@keyframes print {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.ticket h2 {
  font: 800 1.35rem/1 var(--display);
  font-variation-settings: 'wdth' 125;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}

.ticket .sub {
  margin: 0.4rem 0 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  color: var(--muted);
}

.ticket hr {
  border: 0;
  border-top: 1.5px dashed var(--ink);
  margin: 1rem 0;
}

.ticket dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1rem;
  margin: 0;
}

.ticket dt {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding-top: 0.12rem;
}

.ticket dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.ticket .total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  text-transform: uppercase;
}

.ticket .total span:last-child {
  background: var(--mustard);
  padding: 0 0.4rem;
}

/* Seções */
.band {
  background: var(--paper);
  border-block: 1px solid var(--steel-deep);
}

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section > h2,
.section-head h2 {
  font-size: clamp(1.7rem, 1.1rem + 2vw, 2.6rem);
  font-weight: 800;
  font-variation-settings: 'wdth' 112;
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 22ch;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem 3rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 46ch;
}

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

.features li {
  padding: 1.5rem 1.5rem 1.75rem 0;
  border-bottom: 1px solid var(--steel-deep);
}

.features li:nth-child(odd) {
  padding-right: 2.5rem;
  border-right: 1px solid var(--steel-deep);
}

.features li:nth-child(even) {
  padding-left: 2.5rem;
}

.features h3 {
  font-size: 1.25rem;
  font-weight: 700;
  font-variation-settings: 'wdth' 105;
  margin-bottom: 0.5rem;
}

.features p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.rules {
  max-width: var(--measure);
  margin: 0;
  border-top: 2px solid var(--ink);
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.rules li {
  position: relative;
  padding: 0.9rem 0 0.9rem 2rem;
  border-bottom: 1px dashed var(--steel-deep);
}

.rules li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 0.9rem;
  height: 3px;
  background: var(--mustard);
}

.docs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.doc {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 9rem;
  padding: 1.25rem 1.25rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--steel-deep);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.doc:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.doc strong {
  font-size: 1.15rem;
  font-variation-settings: 'wdth' 108;
}

.doc span {
  color: var(--muted);
  font-size: 0.95rem;
}

.doc em {
  margin-top: auto;
  font: 600 0.78rem/1 var(--mono);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Rodapé */
.foot {
  padding-block: 2.5rem 3rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.foot .legal {
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.7;
}

.foot .nav {
  margin-bottom: 1rem;
  color: var(--ink);
}

/* Páginas de documento */
.doc-page {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.doc-title {
  grid-column: 1 / -1;
}

/* Data acima do título: respiro antes do h1. */
.doc-title .eyebrow {
  margin-bottom: 0.9rem;
}

.doc-title h1 {
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.4rem);
  font-weight: 800;
  font-variation-settings: 'wdth' 112;
  line-height: 1;
  letter-spacing: -0.015em;
}

.doc-title p {
  margin: 1rem 0 0;
  color: var(--muted);
  max-width: var(--measure);
}

.toc {
  position: sticky;
  top: 1.5rem;
  align-self: start;
  font-size: 0.92rem;
}

.toc summary {
  font: 600 0.78rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  cursor: pointer;
  padding-block: 0.5rem;
}

.toc ol {
  margin: 0.75rem 0 0;
  padding: 0 0 0 1.4rem;
}

.toc li {
  padding-block: 0.3rem;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.prose {
  max-width: var(--measure);
  background: var(--paper);
  border: 1px solid var(--steel-deep);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 3rem);
}

.prose h2 {
  font-size: 1.4rem;
  font-weight: 800;
  font-variation-settings: 'wdth' 108;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--steel-deep);
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.4rem;
}

.prose p,
.prose li {
  color: #262c30;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose .note {
  background: var(--mustard-soft);
  border-left: 4px solid var(--mustard);
  padding: 0.9rem 1.1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

@media (max-width: 52rem) {
  .hero,
  .section-head,
  .split,
  .doc-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .printer {
    justify-self: center;
    max-width: 23rem;
  }

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

  .features li:nth-child(odd),
  .features li:nth-child(even) {
    padding: 1.4rem 0;
    border-right: 0;
  }

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

  .doc {
    min-height: 0;
  }

  .toc {
    position: static;
    background: var(--paper);
    border: 1px solid var(--steel-deep);
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticket {
    animation: none;
  }

  .doc,
  .button {
    transition: none;
  }

  .doc:hover {
    transform: none;
  }
}
