/* ==========================================================================
   titopedrosa.com — página de entrada ("Brevemente")
   Tipografia editorial sobre tinta escura e ouro. Sem JavaScript, sem
   pedidos a terceiros: tudo servido a partir deste domínio.
   ========================================================================== */

:root {
  --ink: #0b0c0e;
  --ink-soft: #101215;
  --ivory: #f5f1e9;
  --text: #d6d1c7;
  --muted: #9d9a93;
  --gold: #c2a05a;
  --gold-hi: #e8cd93;
  --line: rgba(245, 241, 233, 0.12);
  --pad: clamp(22px, 5vw, 76px);
  --shell: 1320px;
  --ease: cubic-bezier(0.22, 0.68, 0.16, 1);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
}

/* Duas luzes muito suaves: dão profundidade ao fundo sem textura de imagem. */
.page::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -30%;
  height: 120vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46% 46% at 22% 18%, rgba(194, 160, 90, 0.11) 0%, rgba(194, 160, 90, 0) 62%),
    radial-gradient(38% 40% at 92% 88%, rgba(194, 160, 90, 0.07) 0%, rgba(194, 160, 90, 0) 70%);
}

/* ------------------------------------------------------------------ topo */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: var(--pad) var(--pad) 0;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ivory);
}

.mark__monogram {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(194, 160, 90, 0.55);
  border-radius: 50%;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--gold-hi);
}

.mark__word {
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.topbar__note {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------------ herói */

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  column-gap: clamp(24px, 4vw, 72px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 64px) var(--pad);
}

.hero__text {
  max-width: 40rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(22px, 3vw, 34px);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow__rule {
  display: block;
  width: clamp(28px, 5vw, 56px);
  height: 1px;
  background: linear-gradient(90deg, rgba(194, 160, 90, 0.9), rgba(194, 160, 90, 0));
}

.title {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 20px);
  margin: 0;
}

.title__name {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-size: clamp(0.72rem, 0.95vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ivory);
}

.title__soon {
  font-family: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 0;
  font-size: clamp(3.1rem, 9vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: -0.028em;
  color: var(--gold-hi);
  background: linear-gradient(104deg, #f3e2bd 0%, var(--gold-hi) 32%, var(--gold) 68%, #9c7f3c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* O ponto fica sempre visível: se o gradiente falhar, herda a cor de ouro. */
.title__dot {
  color: var(--gold);
}

.lead {
  max-width: 33rem;
  margin: clamp(22px, 3vw, 34px) 0 0;
  font-size: clamp(1.02rem, 1.15vw, 1.12rem);
  font-weight: 400;
  line-height: 1.7;
  color: #e0dbd1;
  text-wrap: pretty;
}

.status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: clamp(30px, 4vw, 46px) 0 0;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(194, 160, 90, 0.45);
  animation: pulse 3.6s var(--ease) infinite;
}

.status__sep {
  width: 22px;
  height: 1px;
  background: var(--line);
}

.status__year {
  color: var(--gold);
}

/* ------------------------------------------------------------------ arte */

.hero__art {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.art {
  width: 100%;
  max-width: clamp(300px, 36vw, 560px);
  height: auto;
  max-height: min(72vh, 620px);
  overflow: visible;
}

.art__sweep {
  transform-origin: 210px 264px;
  animation: sweep 34s linear infinite;
}

/* --------------------------------------------------------------- rodapé */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(18px, 2.4vw, 26px) var(--pad);
  border-top: 1px solid var(--line);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

/* -------------------------------------------------------------- animações */

@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(194, 160, 90, 0.45);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(194, 160, 90, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(194, 160, 90, 0);
  }
}

.eyebrow,
.title__soon,
.lead,
.status {
  animation: rise 1s var(--ease) both;
}

.eyebrow {
  animation-delay: 0.06s;
}
.title__soon {
  animation-delay: 0.2s;
}
.lead {
  animation-delay: 0.42s;
}
.status {
  animation-delay: 0.56s;
}

.hero__art {
  animation: rise 1.6s var(--ease) 0.2s both;
}

/* ------------------------------------------------------- página de erro */

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

.hero--single .title__soon {
  font-size: clamp(2.1rem, 5.4vw, 4rem);
}

.hero--single .lead {
  max-width: 38rem;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid rgba(194, 160, 90, 0.55);
  border-radius: 999px;
  color: var(--gold-hi);
  text-decoration: none;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease),
    color 0.3s var(--ease);
}

.back:hover,
.back:focus-visible {
  border-color: var(--gold-hi);
  background: rgba(194, 160, 90, 0.1);
  color: var(--ivory);
}

.back:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
}

/* --------------------------------------------------------------- contacto */

.cta {
  margin: clamp(26px, 3vw, 34px) 0 0;
}

.contact {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 92px) var(--pad);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}

.contact__title {
  margin: 0 0 18px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ivory);
}

.contact__text {
  margin: 0;
  max-width: 26rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text);
}

.contact__note {
  margin: 18px 0 0;
  max-width: 26rem;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--muted);
}

.form {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 22px);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.4vw, 28px);
}

.form label {
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.form input[type='text'],
.form input[type='email'],
.form input[type='tel'],
.form textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ivory);
  background: rgba(245, 241, 233, 0.03);
  border: 1px solid rgba(245, 241, 233, 0.14);
  border-radius: 2px;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.form input::placeholder,
.form textarea::placeholder {
  color: rgba(245, 241, 233, 0.3);
}

.form input:focus-visible,
.form textarea:focus-visible {
  outline: none;
  border-color: rgba(194, 160, 90, 0.8);
  background: rgba(245, 241, 233, 0.05);
}

.form textarea {
  min-height: 128px;
  resize: vertical;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.consent input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--gold);
  flex: none;
}

.consent label {
  font-size: 0.86rem;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.55;
  color: var(--muted);
}

.form button.back {
  align-self: flex-start;
  margin-top: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
}

/* armadilha para robôs — fora do ecrã, ignorada por leitores de ecrã */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.errors {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: #e7b6a4;
  font-size: 0.95rem;
  line-height: 1.6;
}

.errors li {
  margin-bottom: 6px;
}

/* ------------------------------------------------------------- responsivo */


@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    row-gap: clamp(28px, 6vw, 44px);
    padding-top: clamp(40px, 8vw, 64px);
  }

  .hero__art {
    justify-content: flex-start;
    order: 2;
  }

  .contact {
    grid-template-columns: minmax(0, 1fr);
    row-gap: clamp(28px, 5vw, 40px);
  }

  .art {
    max-width: 190px;
    max-height: 240px;
    opacity: 0.85;
  }

  .topbar__note {
    display: none;
  }
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .mark__word {
    font-size: 0.7rem;
    letter-spacing: 0.24em;
  }

  .mark__monogram {
    width: 36px;
    height: 36px;
    font-size: 0.74rem;
  }

  .title__soon {
    font-size: clamp(2.9rem, 14vw, 4rem);
  }

  .footer {
    font-size: 0.6rem;
    letter-spacing: 0.16em;
  }
}

@media (max-height: 640px) and (min-width: 901px) {
  .art {
    max-height: 380px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .art__sweep {
    display: none;
  }
}
