@font-face {
  font-family: "DM Sans";
  src: url("./assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Serif";
  src: url("./assets/dm-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #291c19;
  --muted: #624a42;
  --paper: #f9f3ec;
  --sand: #f1e4d8;
  --dark: #35251e;
  --border: #cdb4a5;
  --rose: #6f3d32;
  --gutter: clamp(1.125rem,5vw,4.5rem);
}

*,*::before,*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 "DM Sans",Arial,sans-serif;
}

:is(h1,h2,h3,p,figure) {
  margin: 0;
}

:where(a,summary,input):focus-visible {
  outline: 3px solid #844332;
  outline-offset: 4px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(calc(100% - var(--gutter) * 2),75rem);
  margin-inline: auto;
}

.skip {
  position: fixed;
  z-index: 5;
  inset: .5rem auto auto .5rem;
  padding: .65rem 1rem;
  background: var(--paper);
  transform: translateY(-150%);
}

.skip:focus {
  transform: none;
}

.header {
  border-bottom: 1px solid var(--border);
}

.masthead,.footer-inner {
  min-height: 4.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .25rem clamp(1rem,3.75vw,3rem);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  flex: 0 0 auto;
  min-height: 2.75rem;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  font: 400 1.66rem/1 "DM Serif",Georgia,serif;
  letter-spacing: -.04em;
}

.brand span {
  color: var(--rose);
  font: 700 .65rem/1.3 "DM Sans",sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: .12rem clamp(.75rem,3.6vw,2.5rem);
  margin-left: auto;
}

nav a,.text-link {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}

nav a:hover,.text-link:hover {
  color: var(--rose);
  text-decoration: underline;
  text-underline-offset: .27rem;
}

.button {
  display: inline-flex;
  min-height: 3.05rem;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .68rem 1.3rem;
  background: var(--dark);
  color: var(--paper);
  border-radius: 2rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  transition: background .18s ease;
}

.button:hover {
  background: var(--rose);
}

.head-action {
  min-height: 2.75rem;
  font-size: .92rem;
}

.button.light {
  background: var(--paper);
  color: var(--dark);
}

.button.light:hover {
  background: #efd9cd;
}

.hero {
  min-height: calc(88svh - 4.8rem);
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(0,.85fr);
  align-items: center;
  gap: clamp(2rem,8vw,7rem);
  padding-block: clamp(3rem,6.3vw,6.7rem);
}

.hero-copy {
  animation: enter .54s ease-out both;
}

@keyframes enter {
  from {
    transform: translateY(.65rem);
  }

  to {
    transform: translateY(0);
  }

}

h1,h2 {
  font: 400 4rem/1.04 "DM Serif",Georgia,serif;
  letter-spacing: -.035em;
  text-wrap: balance;
}

h1 {
  max-width: 13ch;
  font-size: clamp(3.15rem,6.8vw,6.5rem);
}

h2 {
  max-width: 18ch;
  font-size: clamp(2.3rem,4.7vw,4.15rem);
}

h3 {
  font-size: 1.48rem;
  line-height: 1.24;
}

.eyebrow {
  color: var(--rose);
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
}

.lead {
  font-size: clamp(1.04rem,1.4vw,1.19rem);
  color: var(--muted);
  max-width: 39ch;
  margin-top: 1.25rem;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .72rem 1.2rem;
  margin-top: 1.5rem;
}

.actions .text-link {
  text-decoration: underline;
  text-underline-offset: .27rem;
}

.portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 5/6;
  object-fit: cover;
  object-position: center 45%;
  border-radius: 50% 50% 1.1rem 1.1rem/4.5rem 4.5rem 1.1rem 1.1rem;
}

.section {
  padding-block: clamp(3.45rem,7.4vw,7rem);
  scroll-margin-top: 1rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0,.88fr) minmax(0,1.1fr);
  align-items: center;
  gap: clamp(1.5rem,5vw,5.5rem);
}

.philosophy,.comparison {
  background: var(--sand);
}

.split p,.techniques p {
  max-width: 48ch;
  color: var(--muted);
  font-size: clamp(1rem,1.55vw,1.14rem);
}

.comparison p {
  margin-top: .9rem;
}

.techniques {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: clamp(1.2rem,3.3vw,3rem);
  margin-top: clamp(1.45rem,3vw,2.8rem);
}

.techniques article {
  border: 1px solid var(--border);
  border-radius: .7rem;
  padding: clamp(1.15rem,2.5vw,2.2rem);
}

.techniques p {
  margin-top: .55rem;
}

.faq details {
  border-top: 1px solid var(--border);
  padding: .35rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  min-height: 2.75rem;
  padding: .55rem .2rem;
  font-weight: 700;
}

.faq p {
  padding: 0 .2rem .8rem 1.2rem;
}

.contact {
  background: var(--dark);
  color: var(--paper);
}

.contact :focus-visible {
  outline-color: var(--paper);
}

.contact .actions {
  margin: 0;
}

.contact .text-link:hover {
  color: #f3d8c7;
}

address {
  margin-top: 1rem;
  font-style: normal;
  color: #f1ded1;
}

footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  padding-block: .65rem;
}

.comparador {
  --divisao: 50%;
  --alca: 44px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: .7rem;
  background: var(--sand);
}

.comparador-fotos {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
}

.comparador figure {
  position: relative;
  min-width: 0;
}

.comparador img {
  width: 100%;
  height: auto;
}

.comparador figcaption {
  position: absolute;
  z-index: 2;
  inset-block-start: .5rem;
  inset-inline-start: .5rem;
  padding: .27rem .5rem;
  border-radius: .28rem;
  color: var(--paper);
  background: var(--dark);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.3;
}

.comparador-divisor {
  display: none;
}

.comparador[data-ativo] .comparador-fotos {
  display: block;
}

.comparador[data-ativo] figure:first-child {
  position: absolute;
  z-index: 1;
  inset: 0;
}

.comparador[data-ativo] figure:first-child img {
  clip-path: inset(0 calc(100% - var(--divisao)) 0 0);
}

.comparador[data-ativo] figure:last-child figcaption {
  inset-inline-start: auto;
  inset-inline-end: .5rem;
}

.comparador[data-ativo] .comparador-divisor {
  position: absolute;
  display: block;
  z-index: 3;
  inset-block: 0;
  inset-inline-start: var(--divisao);
  width: 2px;
  background: var(--paper);
  box-shadow: 0 0 0 1px #2c1c1870;
  transform: translateX(-50%);
  pointer-events: none;
}

.comparador-divisor::after {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: var(--alca);
  height: var(--alca);
  border: 1px solid var(--dark);
  border-radius: 50%;
  color: var(--dark);
  background: var(--paper);
  font-weight: 700;
  transform: translate(-50%,-50%);
  content: "↔";
}

.comparador-controle:not([hidden]) {
  position: absolute;
  z-index: 4;
  inset-block: 0;
  inset-inline-start: calc(var(--alca) / -2);
  width: calc(100% + var(--alca));
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  appearance: none;
  cursor: ew-resize;
  touch-action: pan-y;
}

.comparador-controle::-webkit-slider-runnable-track {
  height: 100%;
}

.comparador-controle::-webkit-slider-thumb {
  appearance: none;
  width: var(--alca);
  height: 100%;
}

.comparador-controle::-moz-range-track {
  height: 100%;
}

.comparador-controle::-moz-range-thumb {
  width: var(--alca);
  height: 100%;
  border: 0;
}

.comparador:focus-within {
  outline: 3px solid #844332;
  outline-offset: 4px;
}

@media(max-width:760px) {
  .masthead {
    flex-wrap: wrap;
    gap: .12rem .63rem;
    padding-top: .45rem;
  }

  nav {
    order: 3;
    margin-left: 0;
    width: 100%;
    gap: .1rem clamp(.65rem,3vw,1.33rem);
    font-size: .92rem;
  }

  .hero,.split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero {
    padding-block: 2.65rem 3.1rem;
    gap: 1.85rem;
  }

  h1 {
    font-size: clamp(2.85rem,10vw,4.8rem);
  }

  .portrait {
    aspect-ratio: 5/5.3;
    max-height: 33rem;
    object-position: center 39%;
  }

  .comparison .split {
    gap: 1.25rem;
  }

}

@media(max-width:480px) {
  .techniques {
    grid-template-columns: 1fr;
  }

}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-copy {
    animation: none;
  }

  .button {
    transition: none;
  }

}
