/* Echoes of Madrigal - website. Sky-world palette, rounded type (Fredoka for headings, Nunito for text). */
:root {
  --night: #0f2338;      /* deep evening sky: page background */
  --sky: #2e7bb4;        /* daylight sky: links, panels */
  --cloud: #eef6fb;      /* text on dark */
  --mist: #a9c3d8;       /* secondary text */
  --sun: #ffc75a;        /* the one call to action */
  --leaf: #6cc36e;       /* online, success */
  --ember: #f08a6b;      /* errors */
  --panel: rgba(255, 255, 255, 0.06);
  --line: rgba(238, 246, 251, 0.14);
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --text: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--cloud); font: 17px/1.6 var(--text); }
a { color: #8fd0ff; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; }

/* ---------- top bar ---------- */
.bar { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: center; gap: 24px;
  padding: 18px clamp(16px, 4vw, 48px); }
.brand { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--cloud); text-decoration: none; margin-right: auto; }
.bar nav { display: flex; gap: 22px; align-items: center; }
.bar nav a { color: var(--cloud); text-decoration: none; font-weight: 700; font-size: 15px; }
.bar nav a:hover { color: var(--sun); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mist); white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #6b7c8c; }
.status.up .dot { background: var(--leaf); box-shadow: 0 0 0 4px rgba(108, 195, 110, 0.18); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border-radius: 26px; font: 600 18px var(--display); text-decoration: none; border: 0; cursor: pointer; }
.btn-play { background: var(--sun); color: #3a2400; box-shadow: 0 8px 24px rgba(255, 199, 90, 0.28); }
.btn-play:hover { background: #ffd47c; }
.btn-ghost { background: rgba(15, 35, 56, 0.55); color: var(--cloud); border: 2px solid rgba(238, 246, 251, 0.55); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--cloud); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end;
  background: url(img/hero.jpg) center 40% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 35, 56, 0.55) 0%, rgba(15, 35, 56, 0) 22%, rgba(15, 35, 56, 0) 45%, rgba(15, 35, 56, 0.92) 88%, var(--night) 100%),
    linear-gradient(90deg, rgba(15, 35, 56, 0.62) 0%, rgba(15, 35, 56, 0.25) 45%, rgba(15, 35, 56, 0) 70%); }
.hero-inner { position: relative; width: 100%; max-width: 1180px; margin: 0 auto; padding: 110px clamp(16px, 4vw, 48px) clamp(56px, 9vh, 96px); }
.hero h1 { font-size: clamp(46px, 8.4vw, 104px); letter-spacing: -0.01em; text-shadow: 0 4px 30px rgba(10, 25, 40, 0.55); max-width: 11ch; }
.hero p { font-size: clamp(18px, 2.1vw, 22px); max-width: 34em; margin: 18px 0 30px; color: #f4f9fc; text-shadow: 0 2px 12px rgba(10, 25, 40, 0.8); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.fine { margin-top: 18px; font-size: 14px; color: var(--mist); }

/* the cloud edge under the hero */
.clouds { display: block; width: 100%; height: 70px; margin-top: -69px; position: relative; z-index: 2; }

/* ---------- sections ---------- */
main section { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 48px); }
.lede { max-width: 38em; color: var(--mist); margin: 14px 0 0; }
h2 { font-size: clamp(30px, 4vw, 44px); }

/* jobs */
.jobs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.job { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; }
.job img { width: 76px; height: 76px; border-radius: 18px; border: 2px solid rgba(255, 199, 90, 0.6); image-rendering: auto; }
.job h3 { font-size: 22px; }
.job p { margin: 2px 0 0; font-size: 15px; color: var(--mist); line-height: 1.4; }

/* feature splits */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split + .split { margin-top: clamp(48px, 7vw, 88px); }
.split.flip .shot { order: 2; }
.shot { border-radius: 22px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); }
.split h2 { font-size: clamp(28px, 3.4vw, 38px); }
.split ul { margin: 18px 0 0; padding: 0; list-style: none; }
.split li { padding: 9px 0 9px 30px; position: relative; color: #dbe8f1; }
.split li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--sky); box-shadow: 0 0 0 3px rgba(46, 123, 180, 0.3); }

/* monsters */
.mobs { display: flex; gap: 10px; margin-top: 30px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.mob { flex: 0 0 auto; width: 118px; text-align: center; font-size: 14px; color: var(--mist); }
.mob img { width: 96px; height: 96px; margin: 0 auto 6px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)); }

/* server panel */
.server { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px; }
.big { font: 600 54px/1 var(--display); color: var(--cloud); }
.panel h3 { font-size: 20px; margin-bottom: 10px; }
.panel .muted { color: var(--mist); font-size: 15px; margin: 6px 0 0; }
.notes { margin: 8px 0 0; color: #dbe8f1; }

footer { border-top: 1px solid var(--line); padding: 28px clamp(16px, 4vw, 48px) 40px; color: var(--mist); font-size: 14px;
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; max-width: 1180px; margin: 0 auto; }

/* ---------- register ---------- */
.reg { min-height: 100vh; display: grid; grid-template-columns: 1fr minmax(320px, 520px); }
.reg-art { position: relative; background: url(img/hero-small.jpg) center / cover no-repeat; }
.reg-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 35, 56, 0.1), rgba(15, 35, 56, 0.85) 92%, var(--night)); }
.reg-art div { position: absolute; left: clamp(16px, 4vw, 48px); bottom: 48px; right: 30%; z-index: 1; }
.reg-art h2 { text-shadow: 0 3px 20px rgba(10, 25, 40, 0.6); }
.reg-art p { color: #f0f6fa; text-shadow: 0 2px 10px rgba(10, 25, 40, 0.8); max-width: 26em; }
.reg-form { padding: 110px clamp(20px, 4vw, 52px) 48px; display: flex; flex-direction: column; justify-content: center; }
.reg-form h1 { font-size: clamp(32px, 3.6vw, 42px); }
.reg-form .lede { margin-bottom: 26px; }
label { display: block; font-weight: 700; margin: 18px 0 6px; }
.hint { font-weight: 400; color: var(--mist); font-size: 14px; margin-left: 6px; }
input[type=text], input[type=password] { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; font: 600 17px var(--text);
  color: var(--cloud); background: rgba(255, 255, 255, 0.07); border: 2px solid rgba(238, 246, 251, 0.18); }
input:hover { border-color: rgba(238, 246, 251, 0.35); }
input.bad { border-color: var(--ember); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: #dbe8f1; font-size: 15px; margin-top: 22px; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--sun); }
.msg { min-height: 26px; margin: 16px 0 6px; font-weight: 700; }
.msg.err { color: var(--ember); }
.reg-form .btn { width: 100%; margin-top: 6px; }
.reg-form .btn[disabled] { opacity: 0.55; cursor: wait; }
.done h1 { color: var(--leaf); }
.small { font-size: 15px; color: var(--mist); margin-top: 22px; }

/* ---------- phones ---------- */
@media (max-width: 900px) {
  .jobs { grid-template-columns: 1fr 1fr; }
  .split, .server { grid-template-columns: 1fr; }
  .split.flip .shot { order: 0; }
  .reg { grid-template-columns: 1fr; }
  .reg-art { min-height: 260px; }
  .reg-art div { right: 16px; bottom: 22px; }
  .reg-art p { display: none; }
  .reg-form { padding-top: 32px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .bar nav a.hide-sm { display: none; }
  .brand { font-size: 17px; }
  .hero { min-height: 0; }
  .hero-inner { padding-top: 96px; }
  .bar { gap: 12px; }
  .jobs { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
  .big { font-size: 44px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero p, .hero .actions { animation: rise 0.9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero p { animation-delay: 0.12s; }
  .hero .actions { animation-delay: 0.24s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
