/* Stravan Labs: one static page, no scripts. Colours come from the logo. */

@font-face {
  font-family: "Sora";
  src: url("/fonts/sora-latin-wght.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --navy-0: #0a101b;
  --navy: #0e1626;
  --off: #e4e0dc;
  --slate: #63758a;
  --slate-text: #95a5b8;
  --orange: #d9893f;
  --rule: rgb(99 117 138 / 0.38);
  --ghost: rgb(99 117 138 / 0.28);
  --font: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--off);
  background-color: var(--navy-0);
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 22%, rgb(99 117 138 / 0.16), transparent 70%),
    radial-gradient(ellipse 120% 80% at 50% 0%, var(--navy) 40%, var(--navy-0) 100%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
svg { display: block; }

.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }


:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 2px; }

/* top bar: one quiet link to the contact section */
.top { position: absolute; inset: 0 0 auto; z-index: 1; }
.top .wrap { display: flex; justify-content: flex-end; padding-block: 1.75rem; }
.top a { font-size: 0.9375rem; font-weight: 500; color: var(--slate-text); text-decoration: none; padding: 0.35rem 0; }
.top a:hover { color: var(--off); }

/* hero: the lit sign */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 5rem 6rem;
}
.hero-inner { display: grid; justify-items: center; gap: 2.75rem; }
.lockup { display: grid; justify-items: center; gap: 1.75rem; }
.lockup .mark { width: clamp(7.5rem, 16vw, 11rem); height: auto; filter: drop-shadow(0 6px 28px rgb(228 224 220 / 0.1)); }
.lockup .word { width: clamp(15rem, 34vw, 23rem); height: auto; }
.hero h1 { font-size: clamp(2.25rem, 5.2vw, 4.25rem); max-width: 16ch; margin-top: 1rem; }
.lede { max-width: 38rem; color: var(--slate-text); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); }

/* signature: the mark's three bands slide into place along its 2:1 axis */
.mark .band { animation: band-in 900ms var(--ease-out) both; }
.mark .band-1 { --dx: -28px; --dy: -14px; animation-delay: 80ms; }
.mark .band-2 { --dx: -28px; --dy: 14px; animation-delay: 200ms; }
.mark .band-3 { --dx: 28px; --dy: 14px; animation-delay: 320ms; }
@keyframes band-in { from { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mark .band { animation: none; } }

/* sections */
.section { padding-block: 7rem; border-top: 1px solid var(--rule); }
.section h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

.how h2 { margin-bottom: 3.5rem; }
.how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.how li { display: grid; gap: 0.85rem; align-content: start; }
.how h3 { font-size: 1.25rem; display: flex; align-items: center; gap: 0.85rem; }
.how p { color: var(--slate-text); max-width: 34ch; }

/* marker: the whole mark, with one band lit for each principle */
.marker { width: 1.5rem; height: auto; flex: none; }
.marker use { fill: var(--ghost); }
.marker use.on { fill: currentColor; }
.marker-1 { color: var(--off); }
.marker-2 { color: var(--slate); }
.marker-3 { color: var(--orange); }

/* products: unused until a Products section is added (see snippets/) */
.products ul { list-style: none; margin: 3.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 2.5rem 3rem; }
.products li { display: grid; gap: 0.6rem; align-content: start; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.products h3 { font-size: 1.25rem; }
.products h3 a { text-decoration: none; }
.products h3 a:hover { color: var(--orange); }
.products p { color: var(--slate-text); max-width: 40ch; }

.contact { padding-bottom: 8rem; }
.contact-inner { display: grid; gap: 1.25rem; justify-items: center; text-align: center; }
.contact-inner > p { color: var(--slate-text); }

[hidden] { display: none !important; }

/* contact form */
.contact-form {
  width: min(100%, 38rem);
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  text-align: left;
}
.field { display: grid; gap: 0.45rem; min-width: 0; }
.field-wide, .turnstile, .form-foot, .form-status, .contact-form noscript { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--off);
  background: var(--navy-0);
  border: 1px solid var(--slate);
  border-radius: 4px;
  padding: 0.75rem 0.9rem;
  transition: border-color 200ms var(--ease-out);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--slate-text); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--navy-0); }

/* honeypot: off-screen, never shown to people */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.turnstile { min-height: 65px; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; }
.button {
  font: inherit;
  font-weight: 600;
  color: var(--navy);
  background: var(--orange);
  border: 0;
  border-radius: 4px;
  padding: 0.85rem 1.6rem;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out);
}
.button:hover { background: #e59a55; }
.button:disabled { opacity: 0.6; cursor: progress; }
.form-note { font-size: 0.8125rem; color: var(--slate-text); }
.form-note a { text-underline-offset: 0.2em; }
.form-note a:hover { color: var(--off); }
.form-status { font-size: 0.9375rem; color: var(--slate-text); }
.form-status:empty { display: none; }
.form-status.is-error { color: #f4a28c; }

.sent { margin-top: 1.75rem; display: grid; gap: 0.5rem; }
.sent:focus { outline: none; }
.sent-title { font-size: clamp(1.25rem, 2.4vw, 1.5rem); font-weight: 600; color: var(--off); }
.sent p:not(.sent-title) { color: var(--slate-text); }

/* plain text link with the orange underline */
.link {
  font-weight: 500;
  text-decoration: none;
  background-image: linear-gradient(var(--orange), var(--orange));
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 0.15em;
  transition: color 200ms var(--ease-out);
}
.link:hover { color: var(--orange); }

footer { border-top: 1px solid var(--rule); padding-block: 2rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; font-size: 0.875rem; color: var(--slate-text); }

/* 404 */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.lost .wrap { display: grid; justify-items: center; gap: 1.5rem; }
.lost .mark { width: 5rem; height: auto; }
.lost h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.lost p { color: var(--slate-text); }

@media (max-width: 760px) {
  .how ol { grid-template-columns: 1fr; gap: 2.5rem; }
  .section { padding-block: 5rem; }
  .contact { padding-bottom: 6rem; }
  .contact-form { grid-template-columns: 1fr; }
}
