/* House of Arclain: temporary holding page */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f4ef;
  --ink: #1c1b19;
  --muted: #5d5a54;        /* 6.4:1 on --bg */
  --grid: rgba(28, 27, 25, 0.055);
  --grid-major: rgba(28, 27, 25, 0.085);
  --accent: #e6510d;
  --heading: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  /* Graph-paper grid: fine 24px cells, stronger line every 120px */
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: center center;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 2rem;
}

.logo {
  display: block;
  width: clamp(210px, 30vw, 340px);
  max-width: 100%;
  height: auto;
  margin-bottom: 2.25rem;
}

h1 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 400;
  font-size: clamp(1.5rem, 4.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rule {
  display: block;
  width: 48px;
  height: 1px;
  margin: 1.75rem auto;
  background: var(--accent);
}

.lede {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
}

.wing {
  margin: 2.5rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
a:hover { color: var(--accent); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 1px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.5rem clamp(1.5rem, 4vw, 3rem);
  color: var(--muted);
  font-size: 0.8125rem;
}
.footer p { margin: 0; }
.footer a { border-bottom-color: transparent; }
.footer a:hover, .footer a:focus-visible { border-bottom-color: currentColor; }
.heart { vertical-align: -1px; margin: 0 0.1em; }

/* Gentle staggered fade-in */
.hero > *, .footer {
  animation: rise 1s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}
.hero > :nth-child(2) { animation-delay: 0.12s; }
.hero > :nth-child(3) { animation-delay: 0.24s; }
.hero > :nth-child(4) { animation-delay: 0.32s; }
.hero > :nth-child(5) { animation-delay: 0.4s; }
.footer { animation-delay: 0.55s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

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

/* Tablet */
@media (max-width: 768px) {
  .hero { padding-top: 3rem; }
  .logo { margin-bottom: 1.75rem; }
}

/* Mobile */
@media (max-width: 480px) {
  body { background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px; }
  .hero { padding: 2.5rem 1.25rem 1.5rem; }
  .rule { margin: 1.5rem auto; }
  .wing { margin-top: 2rem; letter-spacing: 0.18em; }
  .footer { flex-direction: column; align-items: center; text-align: center; padding: 1.25rem; }
}
