@font-face {
  font-family: Gloock;
  src: url("./assets/gloock.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("./assets/source-sans-3.ttf") format("truetype");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --linho: #f5efe8;
  --petroleo: #1f3a3d;
  --terracota: #b0562f;
  --argila: #d9a88c;
  --marrom: #2b2523;
  --papel: #fffbf5;
  --borda: #8d7e72;
  color-scheme: light;
  color: var(--petroleo);
  background: var(--linho);
  font-family: "Source Sans 3", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 1.125rem; line-height: 1.5; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
a { color: var(--petroleo); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--terracota); outline-offset: 4px; }
.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.site-header, .site-footer { border-block: 1px solid #ded3c8; }
.header-inner, .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  min-height: 5rem;
  font-size: .975rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: start;
  gap: clamp(2.25rem, 6.2vw, 5.75rem);
  padding-block: clamp(3rem, 6vw, 6rem);
}

.eyebrow {
  color: #9e4929;
  font-size: .825rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  color: var(--marrom);
  font-family: Gloock, Georgia, serif;
  font-weight: 400;
  line-height: 1.09;
}

h1 { margin-block: .85rem 1.25rem; font-size: clamp(2.5rem, 5.1vw, 4.6rem); }
h1 em { display: block; color: var(--terracota); font-style: normal; }
h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); }
.lead { max-width: 39ch; margin-bottom: 1.75rem; font-size: clamp(1.12rem, 1.7vw, 1.32rem); }
.field { min-width: 0; }
.contact-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .8rem; margin-block: .8rem 1rem; }
label { display: block; margin-bottom: .36rem; font-size: .975rem; font-weight: 700; }
input {
  width: 100%;
  min-height: 3.1rem;
  padding: .65rem .8rem;
  border: 1px solid var(--borda);
  border-radius: .5rem;
  color: var(--marrom);
  background: var(--papel);
  font: inherit;
  font-size: 1rem;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .65rem;
  min-height: 3.125rem;
  padding: .62rem 1.25rem;
  border: 0;
  border-radius: .5rem;
  color: white;
  background: #9e4929;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.button:hover { background: #80391f; }
.button:disabled { opacity: .7; cursor: wait; }
.button[hidden] { display: none; }
.fine { margin-top: .7rem; max-width: 53ch; font-size: .88rem; }
.status { margin-top: .6rem; font-weight: 600; }
.status:empty { margin-top: 0; }
.status[data-error] { color: #963716; }

.visual {
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid #d7c4b5;
  border-radius: .75rem;
  overflow: hidden;
  background: var(--papel);
}
.visual img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.visual figcaption { padding: 1.3rem clamp(1.25rem, 3vw, 2rem) 1.6rem; }
.visual figcaption p { margin-top: .55rem; color: var(--marrom); font-size: clamp(1.05rem, 1.65vw, 1.25rem); }
.how { padding-block: 3.5rem; background: var(--petroleo); color: var(--linho); }
.how h2 { color: var(--linho); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; margin: 1.75rem 0 0; }
.steps div { border-top: 1px solid #73898b; padding-top: 1rem; }
.steps dt { color: var(--argila); font-weight: 700; }
.steps dd { margin: .28rem 0 0; }
.footer-inner { flex-wrap: wrap; padding-block: 1.1rem; }

.content { max-width: 50rem; padding-block: clamp(2.65rem, 7vw, 5.5rem); }
.content p + p, .content p + a { margin-top: 1.15rem; }
.content p + a { display: inline-block; }
.example { padding: clamp(1.25rem, 4vw, 2.25rem); border: 1px solid #d7c4b5; border-radius: .75rem; background: var(--papel); }
.example pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; margin-block: 1.25rem; }
.filled-example { margin-top: 2.75rem; }
.filled-example p { margin-top: .8rem; }

@media (max-width: 50rem) {
  .hero { grid-template-columns: 1fr; max-width: 40rem; }
  .visual { max-width: 35rem; }
  .steps { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 31rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 4.1rem; }
  .contact-fields { grid-template-columns: 1fr; }
  .intro .button { width: 100%; }
  .footer-inner { flex-direction: column; align-items: start; gap: .7rem; }
}
