/* Windowsill: a warm wall by day, a night sky in dark mode. */

:root {
  --bg: #f6ead8;
  --bg-2: #efdcc3;
  --card: rgba(255, 255, 255, 0.6);
  --text: #2b2420;
  --muted: #6f6359;
  --accent: #2f7be6;
  --accent-text: #ffffff;
  --sky-top: #5d9cf5;
  --sky-bottom: #bfe0ff;
  --cloud: #ffffff;
  --shadow: 0 18px 40px rgba(80, 50, 20, 0.18);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141a2e;
    --bg-2: #0e1222;
    --card: rgba(255, 255, 255, 0.06);
    --text: #eef1f8;
    --muted: #a3abc2;
    --accent: #6aa8ff;
    --accent-text: #0e1222;
    --sky-top: #1d2550;
    --sky-bottom: #3b3f79;
    --cloud: #7d87b3;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: linear-gradient(var(--bg), var(--bg-2)) fixed;
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header and footer */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 18px;
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 22%; }

.nav-links { display: flex; gap: 22px; font-size: 15px; }
.nav-links a { color: var(--muted); }
.nav-links a[aria-current="page"] { color: var(--text); }

.footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 48px;
  font-size: 14px;
  color: var(--muted);
}
.footer a { color: var(--muted); }

/* Hero */

.hero {
  position: relative;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 24px;
}

.hero-icon {
  display: block;
  margin: 0 auto 20px;
  border-radius: 22%;
  filter: drop-shadow(0 10px 22px rgba(80, 50, 20, 0.22));
}

h1 {
  margin: 0 auto 14px;
  max-width: 640px;
  font-size: clamp(32px, 6vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.lede {
  margin: 0 auto 28px;
  max-width: 560px;
  font-size: 19px;
  color: var(--muted);
}

.cta { margin-bottom: 44px; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn.is-soon { opacity: 0.75; cursor: default; }

/* The menu, sitting in a little window of sky with clouds drifting by. */
.shot {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 28px 70px 0;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(var(--sky-top), var(--sky-bottom));
  box-shadow: var(--shadow);
}
.shot picture { position: relative; display: block; }
.shot img {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cloud {
  position: absolute;
  left: -130px;
  width: 110px;
  height: 36px;
  border-radius: 36px;
  background: var(--cloud);
  opacity: 0.85;
  animation: drift 26s linear infinite;
}
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}
.cloud::before { width: 54px; height: 54px; left: 18px; top: -26px; }
.cloud::after { width: 68px; height: 68px; left: 46px; top: -38px; }
.c1 { top: 60px; }
.c2 { top: 190px; scale: 0.7; animation-duration: 34s; animation-delay: -17s; }
.c3 { top: 320px; scale: 0.85; animation-duration: 30s; animation-delay: -8s; }

@keyframes drift {
  to { translate: 600px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cloud { animation: none; }
  .c1 { left: 10px; }
  .c2 { left: auto; right: 6px; }
  .c3 { left: 4px; }
}

/* Gallery */

.gallery {
  display: grid;
  gap: 24px;
  margin: 56px auto 40px;
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 0;
}
.feature {
  padding: 22px;
  border-radius: 18px;
  background: var(--card);
  backdrop-filter: blur(8px);
}
.feature h2 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; font-size: 15px; color: var(--muted); }

@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
}

/* Contact (from EyeSpy's contact page) */

.contact-form {
  display: grid; gap: 20px; padding: 26px; margin-top: 24px;
  background: var(--card); border-radius: 18px; backdrop-filter: blur(8px);
}
.contact-form[hidden], .contact-result[hidden] { display: none; }
.contact-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-form label { display: block; font-weight: 600; font-size: 15px; }
.contact-form .optional, .contact-form .field-help { color: var(--muted); font-size: 13px; font-weight: 400; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; margin-top: 7px; padding: 11px 13px; border-radius: 10px;
  border: 1px solid rgba(120, 100, 80, 0.25); background: var(--bg); color: var(--text); font: inherit; font-size: 16px;
}
.contact-form input, .contact-form select { height: 47px; }
.contact-form label .field-help { display: block; margin-top: 7px; }
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact-form [aria-invalid="true"] { border-color: #d64545; }
.contact-form .btn { border: 0; cursor: pointer; justify-self: start; font: inherit; font-weight: 600; }
.contact-form .btn:disabled { opacity: 0.6; cursor: wait; }
.contact-human-check { display: grid; gap: 10px; font-weight: 600; font-size: 15px; }
.contact-human-check .turnstile { min-height: 65px; }
.contact-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-status { margin: -12px 0 0; min-height: 1.5em; }
.contact-status[data-kind="error"] { color: #c53b3b; }
.contact-email { margin-top: 24px; color: var(--muted); }

/* The panel that replaces the form once the server answers. */
.contact-result {
  display: grid; justify-items: center; gap: 6px; text-align: center; margin-top: 24px;
  padding: 40px 26px 34px; border-radius: 18px; background: var(--card);
  animation: result-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.contact-result:focus { outline: none; }
.result-weather { width: 110px; height: auto; margin-bottom: 10px; }
.contact-result[data-kind="ok"] .result-rain, .contact-result[data-kind="error"] .result-sun { display: none; }
.result-rays { transform-origin: 60px 60px; animation: result-spin 12s linear infinite; }
.result-drops { animation: result-fall 0.9s linear infinite; }
.result-title { margin: 0; font-size: clamp(26px, 4vw, 32px); }
.contact-result .result-text { margin: 0 auto; max-width: 440px; color: var(--muted); }
.result-actions { margin-top: 20px; }
.result-actions .btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
@keyframes result-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
@keyframes result-spin { to { transform: rotate(360deg); } }
@keyframes result-fall { from { transform: translateY(-4px); opacity: 1; } to { transform: translateY(8px); opacity: 0.2; } }
@media (prefers-reduced-motion: reduce) {
  .contact-result, .result-rays, .result-drops { animation: none; }
}
@media (max-width: 600px) {
  .contact-form { padding: 20px; }
  .contact-form-row { grid-template-columns: 1fr; }
}

/* Documents (privacy, 404) */

.doc { max-width: 680px; padding-top: 24px; }
.doc h1 { text-align: left; margin-left: 0; font-size: 36px; }
.doc h2 { margin: 30px 0 6px; font-size: 20px; }
.doc p { color: var(--text); }
.doc .updated { color: var(--muted); margin-top: 0; }
.doc.centered { text-align: center; padding-top: 80px; }
.doc.centered h1 { text-align: center; }
