:root {
  --paper: #f6f1e9;
  --card: #fffdf9;
  --ink: #2e2a24;
  --muted: #7b7266;
  --olive: #6f7a55;
  --terra: #b5694a;
  --line: #e4dbcd;
  --danger: #a3402a;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Viñeta de acceso ---------- */

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(ellipse at 15% 10%, #efe4d2 0%, transparent 55%),
    radial-gradient(ellipse at 90% 95%, #e6e8da 0%, transparent 50%),
    var(--paper);
}

.card {
  width: 100%;
  max-width: 360px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 44px 36px 32px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(46, 42, 36, .04), 0 18px 40px -24px rgba(46, 42, 36, .25);
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  pointer-events: none;
}

.sprig {
  width: 96px;
  height: 32px;
  margin-bottom: 18px;
  fill: none;
  stroke: var(--olive);
  stroke-width: 1.2;
}
.sprig path:not(:first-child) { fill: rgba(111, 122, 85, .12); }

.eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: clamp(40px, 11vw, 54px);
  line-height: 1.05;
  letter-spacing: .01em;
}
h1 span {
  font-style: italic;
  color: var(--terra);
  padding: 0 .08em;
}

.lead {
  margin: 14px 0 26px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

form { display: grid; gap: 14px; text-align: left; position: relative; }

label span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

input {
  width: 100%;
  font: inherit;
  font-weight: 400;
  font-size: 16px; /* evita el zoom automático en iPhone */
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 2px;
  transition: border-color .2s;
}
input:focus { outline: none; border-bottom-color: var(--olive); }

button {
  margin-top: 12px;
  font: inherit;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--card);
  background: var(--olive);
  border: 0;
  border-radius: 2px;
  padding: 14px;
  cursor: pointer;
  transition: background .2s;
}
button:hover { background: #5d6746; }
button:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }

.error {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--danger);
}

.foot {
  margin: 26px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
}

@media (max-width: 380px) {
  .card { padding: 36px 24px 26px; }
}

/* ---------- Interior (provisional) ---------- */

.inside {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  text-align: center;
}
.inside .lead { margin-bottom: 20px; }
.inside a { color: var(--muted); font-size: 13px; }
