/* Lorksmoor landing page. No scripts and no third-party requests: everything is served from this host. */

:root {
  --ink: #0b1214;
  --ink-2: #111c1f;
  --ink-3: #172629;
  --mist: #c9d4d2;
  --mist-dim: #8fa09e;
  --gold: #e7bf6a;
  --gold-deep: #b98a3a;
  --bog: #7fd6a0;
  --accord: #6f9fd8;
  --dominion: #8fcf74;
  --line: rgba(201, 212, 210, 0.14);
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --display: "Trajan Pro", "Cinzel", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--mist);
  font: 18px/1.65 var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; color: #eef3f1; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: 0.01em; }
h3 { font-size: 1.25rem; letter-spacing: 0.03em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

.eyebrow {
  font: 600 0.78rem/1 var(--serif);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1em;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.sky {
  position: absolute; inset: 0; z-index: -5;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(231, 191, 106, 0.16), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 62%, rgba(127, 214, 160, 0.10), transparent 70%),
    linear-gradient(180deg, #050a0c 0%, #0b1a1f 45%, #16302f 78%, #0b1214 100%);
}

.moon {
  position: absolute; z-index: -4;
  top: 9%; left: 50%;
  width: 180px; height: 180px; margin-left: -90px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 36%, rgba(255, 255, 255, 0.5), transparent 30%),
    radial-gradient(circle at 62% 58%, rgba(120, 140, 130, 0.35), transparent 22%),
    radial-gradient(circle at 40% 66%, rgba(120, 140, 130, 0.25), transparent 16%),
    radial-gradient(circle at 45% 42%, #f1efe0 0%, #c3cdc4 60%, #8a9c95 100%);
  box-shadow: 0 0 60px 20px rgba(220, 230, 215, 0.10), 0 0 260px 110px rgba(170, 205, 195, 0.08);
  opacity: 0.32;
  filter: blur(1.5px);
}

.fog {
  position: absolute; left: -50%; width: 200%; pointer-events: none;
  background-repeat: repeat-x;
}
.fog-back {
  z-index: -3; bottom: 18%; height: 45%;
  background-image:
    radial-gradient(ellipse 22% 40% at 12% 60%, rgba(190, 210, 205, 0.18), transparent 70%),
    radial-gradient(ellipse 26% 45% at 38% 50%, rgba(190, 210, 205, 0.14), transparent 70%),
    radial-gradient(ellipse 20% 38% at 63% 62%, rgba(190, 210, 205, 0.16), transparent 70%),
    radial-gradient(ellipse 24% 42% at 88% 52%, rgba(190, 210, 205, 0.13), transparent 70%);
  animation: drift 90s linear infinite;
}
.fog-front {
  z-index: 1; bottom: -6%; height: 42%;
  background-image:
    radial-gradient(ellipse 25% 50% at 20% 70%, rgba(200, 215, 210, 0.30), transparent 70%),
    radial-gradient(ellipse 22% 46% at 50% 75%, rgba(200, 215, 210, 0.24), transparent 70%),
    radial-gradient(ellipse 28% 52% at 80% 68%, rgba(200, 215, 210, 0.28), transparent 70%),
    linear-gradient(180deg, transparent 30%, var(--ink) 100%);
  animation: drift 55s linear infinite reverse;
}
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(25%); } }

.wisps { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.wisps i {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: #d9ffe6;
  box-shadow: 0 0 10px 3px rgba(127, 214, 160, 0.75), 0 0 30px 8px rgba(127, 214, 160, 0.25);
  opacity: 0;
  animation: wisp 9s ease-in-out infinite;
}
.wisps i:nth-child(1)  { left: 8%;  top: 64%; animation-delay: 0s; }
.wisps i:nth-child(2)  { left: 17%; top: 72%; animation-delay: 2.1s; animation-duration: 11s; }
.wisps i:nth-child(3)  { left: 29%; top: 58%; animation-delay: 4.3s; }
.wisps i:nth-child(4)  { left: 41%; top: 76%; animation-delay: 1.2s; animation-duration: 12s; }
.wisps i:nth-child(5)  { left: 53%; top: 66%; animation-delay: 6.1s; }
.wisps i:nth-child(6)  { left: 62%; top: 80%; animation-delay: 3.4s; animation-duration: 10s; }
.wisps i:nth-child(7)  { left: 71%; top: 61%; animation-delay: 5.2s; }
.wisps i:nth-child(8)  { left: 83%; top: 70%; animation-delay: 0.8s; animation-duration: 13s; }
.wisps i:nth-child(9)  { left: 92%; top: 63%; animation-delay: 7.0s; }
.wisps i:nth-child(10) { left: 35%; top: 84%; animation-delay: 8.1s; animation-duration: 10s; }
.wisps i:nth-child(11) { left: 76%; top: 86%; animation-delay: 2.7s; }
.wisps i:nth-child(12) { left: 4%;  top: 82%; animation-delay: 5.8s; animation-duration: 12s; }
.wisps i:nth-child(3n) { background: #fff0c8; box-shadow: 0 0 10px 3px rgba(231, 191, 106, 0.7), 0 0 30px 8px rgba(231, 191, 106, 0.22); }
@keyframes wisp {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.6); }
  20%  { opacity: 0.95; }
  50%  { transform: translate(18px, -26px) scale(1); }
  80%  { opacity: 0.8; }
  100% { opacity: 0; transform: translate(-10px, -60px) scale(0.5); }
}

.hero-art {
  position: absolute; z-index: 0; bottom: 4%;
  height: min(72vh, 700px); width: auto;
  opacity: 0.8;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 96%);
}
.hero-left  { left: max(-14vw, calc(50% - 900px)); filter: drop-shadow(0 0 40px rgba(111, 159, 216, 0.22)) saturate(0.7) brightness(0.48) contrast(1.05); }
.hero-right { right: max(-14vw, calc(50% - 900px)); transform: scaleX(-1); filter: drop-shadow(0 0 40px rgba(143, 207, 116, 0.2)) saturate(0.7) brightness(0.44) contrast(1.05); }
.hero-post {
  position: absolute; z-index: 0; bottom: 10%; right: 24%;
  height: min(36vh, 340px); width: auto; opacity: 0.55;
  filter: brightness(0.6) drop-shadow(0 0 30px rgba(127, 214, 160, 0.35));
}

.hero-copy {
  position: relative; z-index: 2;
  width: 100%; max-width: 1100px; padding: 0 24px; text-align: center;
  margin-top: 6vh;
}

.wordmark {
  font-family: var(--display);
  font-size: clamp(2.4rem, 8.4vw, 8rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0 -0.08em 0.12em 0; /* balance the trailing letter-spacing */
  white-space: nowrap;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff6d8 0%, #f0cf86 38%, #c48f3e 72%, #8a5c22 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.6)) drop-shadow(0 0 28px rgba(231, 191, 106, 0.28));
}

.tagline {
  font: italic 400 clamp(1.4rem, 3vw, 2.1rem)/1.2 var(--serif);
  color: #eef3f1;
  margin-bottom: 0.9em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.lede {
  color: var(--mist);
  max-width: 600px; margin: 0 auto 1.8em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
}

.soon {
  display: inline-flex; align-items: center; gap: 0.75em;
  padding: 0.75em 1.5em;
  border: 1px solid rgba(231, 191, 106, 0.45);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(231, 191, 106, 0.12), rgba(231, 191, 106, 0.03));
  color: #f6e3b6;
  font: 600 0.82rem/1 var(--serif);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  box-shadow: 0 0 40px rgba(231, 191, 106, 0.12), inset 0 0 20px rgba(231, 191, 106, 0.06);
  backdrop-filter: blur(4px);
}

.flame {
  width: 10px; height: 10px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 70%, #fff7d6, #f0b84a 60%, #c46a1e);
  box-shadow: 0 0 12px 4px rgba(240, 184, 74, 0.6);
  animation: flicker 2.6s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { opacity: 1; transform: scale(1); }
  40% { opacity: 0.75; transform: scale(0.88) translateY(1px); }
  60% { opacity: 0.95; transform: scale(1.06); }
}

.scroll-cue {
  position: absolute; z-index: 2; bottom: 28px; left: 50%;
  width: 26px; height: 42px; margin-left: -13px;
  border: 1px solid rgba(201, 212, 210, 0.4); border-radius: 14px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--gold);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */

main section { position: relative; padding: clamp(72px, 10vw, 130px) 0; }

.world {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}
.world p { font-size: 1.12rem; color: var(--mist); }
.world h2 + p::first-letter {
  float: left; font: 600 4.2em/0.8 var(--display); color: var(--gold);
  padding: 0.08em 0.12em 0 0;
}

.factions { background: var(--ink-2); }
.faction-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 48px;
}
.faction {
  position: relative; display: grid; grid-template-columns: 42% 1fr; align-items: end;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  min-height: 420px;
  background: linear-gradient(160deg, var(--ink-3), var(--ink));
}
.faction::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 20% 90%, var(--tint), transparent 70%);
  opacity: 0.35;
}
.accord { --tint: var(--accord); }
.dominion { --tint: var(--dominion); }
.faction img { position: relative; align-self: end; max-height: 420px; width: auto; margin: 0 auto -8px; filter: drop-shadow(0 20px 30px rgba(0,0,0,.6)); }
.faction-copy { position: relative; padding: 32px 30px 32px 6px; }
.faction h3 { font-size: 1.55rem; color: #fff; }
.faction .motto { font-style: italic; color: var(--tint); margin-bottom: 0.9em; }
.faction p:last-child { color: var(--mist-dim); font-size: 1rem; margin: 0; }

.threats { background: linear-gradient(180deg, var(--ink-2), #0a1416); }
.threat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 48px; }
.threat { margin: 0; }
.threat-art {
  aspect-ratio: 3 / 4; display: grid; place-items: end center; padding: 18px 12px 0;
  border-radius: 16px; border: 1px solid var(--line);
  background: radial-gradient(ellipse 70% 55% at 50% 75%, rgba(127, 214, 160, 0.14), transparent 70%), linear-gradient(180deg, #0f1c1f, #0a1214);
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.threat-art img { max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(0,0,0,.7)); transition: transform 0.6s ease; }
.threat:hover .threat-art { border-color: rgba(127, 214, 160, 0.4); transform: translateY(-4px); }
.threat:hover .threat-art img { transform: scale(1.04); }
.threat.boss .threat-art {
  border-color: rgba(231, 191, 106, 0.4);
  background: radial-gradient(ellipse 70% 55% at 50% 75%, rgba(231, 191, 106, 0.18), transparent 70%), linear-gradient(180deg, #17201c, #0a1214);
}
.threat figcaption { padding: 14px 4px 0; font-size: 0.95rem; color: var(--mist-dim); }
.threat figcaption b { color: #eef3f1; font-weight: 600; }
.threat.boss figcaption b { color: var(--gold); }

.pillars { background: #0a1416; }
.pillar-grid {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.pillar-grid li { background: #0c1719; padding: 32px 28px; }
.pillar-grid h3 { color: var(--gold); font-size: 1.1rem; }
.pillar-grid p { color: var(--mist-dim); font-size: 0.98rem; margin: 0; }

.closing {
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(231, 191, 106, 0.12), transparent 70%),
    linear-gradient(180deg, #0a1416, var(--ink));
}
.closing-arch {
  position: absolute; left: 50%; bottom: -40px; transform: translateX(-50%);
  height: 120%; width: auto; max-width: none; opacity: 0.09; pointer-events: none;
}
.closing .wrap { position: relative; }
.closing p { color: var(--mist); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px; text-align: center;
  color: var(--mist-dim); font-size: 0.85rem;
}
.site-footer p { margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .threat-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .faction-grid { grid-template-columns: 1fr; }
  .hero-post { display: none; }
}

@media (max-width: 700px) {
  body { font-size: 17px; }
  .hero-art { height: 50vh; opacity: 0.45; bottom: 6%; }
  .hero-left { left: -30vw; }
  .hero-right { right: -30vw; }
  .faction { grid-template-columns: 1fr; min-height: 0; }
  .faction img { max-height: 280px; margin-top: 24px; }
  .faction-copy { padding: 18px 22px 26px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .soon { letter-spacing: 0.14em; font-size: 0.74rem; }
  .moon { width: 120px; height: 120px; margin-left: -60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .wisps i { opacity: 0.6; }
}
