/* ==========================================================
   Daniel Kemp — sistema visual
   Paleta KR: grafite · champanhe · marfim · terracota (pontual)
   ========================================================== */

:root {
  --ink: #131416;          /* grafite profundo (fundo) */
  --ink-2: #1b1d20;        /* superfície elevada */
  --ink-3: #25282c;        /* superfície de destaque */
  --line: rgba(205, 179, 135, 0.14);
  --line-strong: rgba(205, 179, 135, 0.36);

  --champ: #cdb387;        /* champanhe (acento) */
  --champ-hi: #e8d7b3;
  --champ-lo: #8d7853;

  --ivory: #ece7de;        /* marfim (seções claras) */
  --ivory-2: #e1d9cb;
  --terra: #a95f43;        /* terracota — só em ressalvas */

  --text: #ebe5da;
  --muted: #a29b8f;
  --text-dark: #1a1b1d;
  --muted-dark: #5d5850;

  --display: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --label: "Sora", "Outfit", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 5vw, 44px);
  --maxw: 1140px;
  --radius: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);

  /* escala tipográfica (1.25) */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.35rem, 1.1rem + 1vw, 1.6rem);
  --fs-2xl: clamp(1.8rem, 1.3rem + 2vw, 2.5rem);
  --fs-3xl: clamp(2.3rem, 1.4rem + 3.6vw, 4rem);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-md);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; text-wrap: pretty; }
em { font-style: normal; font-weight: 400; color: var(--champ); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* rótulo em versalete */
.label {
  font-family: var(--label);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--champ);
}

/* ---------- botões ---------- */
.btn {
  --btn-bg: var(--champ);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  min-height: 56px;
  padding: 0.95em 1.6em;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--label);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:hover { background: var(--champ-hi); transform: translateY(-2px); box-shadow: 0 14px 34px -14px rgba(205, 179, 135, 0.55); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: rgba(205, 179, 135, 0.1); box-shadow: none; }

.btn--block { width: 100%; }

.microcopy {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.5;
}

:focus-visible {
  outline: 2px solid var(--champ-hi);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- retrato em arco (porta / arquitetura) ---------- */
.arch {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  border-radius: 999px 999px 18px 18px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, #2c2f34 0%, var(--ink-2) 60%, var(--ink) 100%);
  isolation: isolate;
}
.arch::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line-strong);
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}
.arch img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.arch__mono {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 200;
  letter-spacing: -0.04em;
  font-size: clamp(3rem, 12vw, 6rem);
  color: var(--champ);
  opacity: 0.85;
}

/* ---------- rodapé ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 32px 40px;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
  justify-content: space-between;
}
.site-footer a { color: var(--muted); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--champ); }

/* ---------- movimento ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.rise { animation: rise 0.9s var(--ease) both; }
.rise-2 { animation-delay: 0.08s; }
.rise-3 { animation-delay: 0.16s; }
.rise-4 { animation-delay: 0.24s; }
.rise-5 { animation-delay: 0.32s; }

@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
  @keyframes reveal {
    from { opacity: 0.25; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

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