/* Página de recuperación: identidad de Cerro de Jah, sin dependencia de app.js. */
:root {
  color-scheme: light;
  --cream: #f5ecde;
  --ink: #272822;
  --muted: #685f54;
  --clay: #a64f30;
  --button: #9f5034;
  --gutter: clamp(24px, 4vw, 76px);
  font-family: 'DM Sans', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #e9dcc9;
  color: var(--ink);
}

a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

a:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 5px;
}

.error-header {
  padding: max(24px, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 0
    max(var(--gutter), env(safe-area-inset-left));
}

.error-logo-filter {
  position: absolute;
}

.error-brand {
  display: inline-block;
  line-height: 0;
}

.error-brand img {
  display: block;
  width: clamp(140px, 14vw, 200px);
  max-width: 100%;
  height: auto;
  filter: url('#error-logo-ink');
}

.error-main {
  max-width: 54rem;
  margin-inline: auto;
  padding: clamp(48px, 9vh, 96px) max(var(--gutter), env(safe-area-inset-right))
    max(64px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
}

h1 {
  margin: 0;
  max-width: 15ch;
  font:
    500 clamp(2.75rem, 6vw, 5rem) / 1.02 'Cormorant Garamond',
    Georgia,
    serif;
  letter-spacing: -0.025em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

p {
  margin: 24px 0 32px;
  max-width: 60ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.error-home {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 13px 24px;
  border-radius: 2px;
  background: var(--button);
  color: #fff9f0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  text-align: center;
}

@media (hover: hover) and (pointer: fine) {
  .error-home:hover {
    background: #88432c;
  }
}

.error-home:active {
  background: #88432c;
}
