/* House of Mahl: type and color pass. Black page, Roboto, red as the one accent. */

@font-face { font-family: "LT Carpet"; src: url("/ltcarpet.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/roboto-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/roboto-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/roboto-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/roboto-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --page: #000000;
  --panel: #0f0f0f;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --line: #3a3a3a;
  --red: #c8201a;
  --gold: #e8b923;
  --green: #7cb85a;
  --focus: #e8b923;
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mark: "LT Carpet", "Roboto", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: env(safe-area-inset-top, 0) 1.25rem env(safe-area-inset-bottom, 0);
  background: var(--page);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
}

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

.site-header, main, .site-footer { max-width: 40rem; margin: 0 auto; }

.site-header { padding: 2rem 0 0.25rem; text-align: center; }
h1 {
  margin: 0;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.2;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
h1::after {
  content: "";
  display: block;
  width: 2rem; height: 3px;
  margin: 0.7rem auto 0;
  background: var(--red);
}

h2 { margin: 0 0 0.9rem; font-size: 0.95rem; font-weight: 900; letter-spacing: 0.02em; }

.room { padding: 1.25rem 0; }

/* ---------- The front: her cutout, then small pills ---------- */

.stage { padding: 0.5rem 0 2rem; }
.frame { text-align: center; }

.stage .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.65rem; margin: 0; padding: 0; list-style: none; }
.stage .links li { display: block; }
.stage .links li:first-child { flex: 0 0 100%; margin-bottom: 0.5rem; }

/* Pills: small, rounded, thin edge, red glow on hover */
.links a, .door, button, .gate-leave {
  font: 700 0.85rem/1.2 var(--font);
  text-decoration: none;
  color: var(--text);
  background: transparent;
  border: 1.5px solid var(--text);
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.links a:hover, .door:hover, button:hover:not(:disabled), .gate-leave:hover {
  border-color: var(--red);
  box-shadow: 0 0 14px rgba(200, 32, 26, 0.55);
}
button:disabled { opacity: 0.35; cursor: not-allowed; }

/* Wordmark: LT Carpet "Anamahl", Roboto tail beside it (built by app.js) */
.mark { font-family: var(--mark); font-weight: 400; font-size: 1.45em; letter-spacing: 0.02em; line-height: 1; margin-right: 0.15em; }
.mark-tail { font-family: var(--font); font-weight: 900; font-size: 0.95em; }
.mark-farm { color: var(--green); }

/* anamahl.com: big wordmark on top, her cutout underneath, one link */
.stage .links a[data-track="anamahl"] {
  display: block;
  width: min(24rem, 94%);
  margin: 0 auto;
  padding: 0 0 41%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: url("/anamahl-cutout.webp") center bottom / 100% auto no-repeat;
  font-size: clamp(1.7rem, 8.5vw, 2.3rem);
  line-height: 1.5;
}
.stage .links a[data-track="anamahl"]:hover { box-shadow: none; }
.stage .links a[data-track="anamahl"]:hover .mark { color: var(--red); }

.stage .links a[data-track="anamahlfarm"]:hover { border-color: var(--green); box-shadow: 0 0 14px rgba(124, 184, 90, 0.45); }

/* Socials: quieter pills */
.stage .links a[data-track="youtube"],
.stage .links a[data-track="x"],
.stage .links a[data-track="instagram"] { border-color: var(--line); color: var(--muted); }
.stage .links a[data-track="youtube"]:hover,
.stage .links a[data-track="x"]:hover,
.stage .links a[data-track="instagram"]:hover { color: var(--text); }

/* Door: the one red pill */
.door { margin-top: 1.4rem; background: var(--red); border-color: var(--red); color: #fff; font-weight: 900; padding: 0.7rem 1.6rem; }
.door:hover { background: #e0291f; border-color: #e0291f; box-shadow: 0 0 18px rgba(200, 32, 26, 0.7); }
.door[hidden] { display: none; }

/* ---------- Gates ---------- */

.gate { padding: 0.5rem 0 1.25rem; text-align: center; }

.gate-toggle {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  font-weight: 900;
  padding: 0.7rem 1.6rem;
}
.gate.has-door .gate-toggle { display: none; }
.gate-dark .gate-toggle { background: transparent; border-color: var(--red); color: var(--red); }
.gate-dark .gate-toggle:hover:not(:disabled) { background: var(--red); color: #fff; }

.gate-panel {
  margin-top: 1rem;
  padding: 1.1rem 1.2rem 1.3rem;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 1.1rem;
  text-align: left;
}
.disclaimer { color: #b5b5b5; font-style: italic; }
.affirmations { border: 1.5px solid var(--line); border-radius: 0.8rem; margin: 1rem 0; padding: 0.75rem 1rem; }
.affirmations legend { padding: 0 0.35rem; font-weight: 900; font-size: 0.85rem; }
.affirmations label { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.35rem 0; }
.affirmations input { margin-top: 0.35rem; accent-color: var(--red); }

.gate-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.gate-confirm { background: var(--text); color: var(--page); border-color: var(--text); }
.gate-confirm:hover:not(:disabled) { background: var(--red); border-color: var(--red); color: #fff; }
.gate-error { color: #ff6b5e; font-weight: 700; }

/* ---------- Rooms revealed by the gates ---------- */

#rooms-1 .links, #rooms-2 .links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }

.links .soon {
  display: flex;
  gap: 0.7rem;
  padding: 0.6rem 1.2rem;
  min-height: 2.75rem;
  align-items: center;
  border: 1.5px dashed var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: default;
}
.soon-badge { font-weight: 400; font-size: 0.8rem; }

.notice, .site-footer { color: var(--muted); }
.site-footer { text-align: center; }
.quote { margin: 0 auto; max-width: 28rem; }
.quote blockquote { margin: 0; color: var(--muted); font-style: italic; font-size: 1.05rem; line-height: 1.55; }
.quote blockquote p { margin: 0; }
.quote figcaption { margin-top: 0.6rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.fine { margin: 1.5rem 0 0; font-size: 0.8rem; }
.site-footer { padding: 2rem 0 3rem; font-size: 0.9rem; }

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

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
