/* ============================================================
   Larenas & Cía — Sitio institucional
   ============================================================ */

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

:root {
  --bg:        #f3efe8;
  --text:      #181818;
  --secondary: #5c5855;
  --tertiary:  #706c69;
  --accent:    #8a171a;
  --font:      'Jost', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding-bottom mayor que padding-top para empujar el bloque
     levemente por encima del centro visual */
  padding: 4rem 2.5rem 20vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ——— Contenedor principal ——— */

.page {
  width: 100%;
  max-width: 580px;
  text-align: center;
}

.inner {
  display: inline-block;
}

/* ——— Wordmark ——— */

.wordmark {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.32em;
  font-size: clamp(1.75rem, 7.5vw, 3.75rem);
  line-height: 1;
  white-space: nowrap;
}

.wordmark-name {
  font-weight: 500;
  letter-spacing: 0.22em;
  /* Compensa el espacio de tracking que CSS añade tras el último carácter */
  margin-right: -0.22em;
}

.wordmark-suffix {
  font-size: 0.43em;
  font-weight: 300;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ——— Tagline ——— */

.tagline {
  margin-top: 1rem;
  font-size: clamp(0.58rem, 1.65vw, 0.75rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--secondary);
  /* Compensa el tracking en el último carácter para centrado óptico */
  text-indent: 0.22em;
}

/* ——— Separador burdeos ——— */

.divider {
  border: none;
  height: 1px;
  width: 1.75rem;
  background-color: var(--accent);
  margin: 1.85rem auto;
}

/* ——— Bloque de contacto ——— */

.contact {
  font-style: normal;
  font-size: clamp(0.62rem, 1.6vw, 0.74rem);
  font-weight: 300;
  letter-spacing: 0.07em;
  color: var(--secondary);
  line-height: 2.1;
}

.contact-email {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-email:hover {
  color: var(--text);
}

.contact-address {
  display: block;
}

/* ——— Enlace secundario (omnitax) ——— */

.secondary-link {
  display: block;
  margin-top: 2.75rem;
  font-size: clamp(0.57rem, 1.4vw, 0.67rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--tertiary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.secondary-link:hover {
  color: var(--secondary);
}

/* ——— Foco accesible ——— */

:focus-visible {
  outline: 1.5px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ——— Responsive: mobile ——— */

@media (max-width: 480px) {
  body {
    padding-top: 3rem;
    padding-bottom: 14vh;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }

  .wordmark-name {
    letter-spacing: 0.14em;
    margin-right: -0.14em;
  }

  .tagline {
    letter-spacing: 0.15em;
    text-indent: 0.15em;
  }

  .divider {
    margin: 1.5rem auto;
  }

  .secondary-link {
    margin-top: 2.25rem;
  }
}

/* ——— Respeta preferencia de sin animaciones ——— */

@media (prefers-reduced-motion: reduce) {
  .contact-email,
  .secondary-link {
    transition: none;
  }
}
