/* lollygag.dev — coming-soon page. Palette and metrics sampled from design/lollygag.dev.png (1536x1024). */

:root {
  --bg: #fbf9fc;
  --bg-fade: 251, 248, 250;
  --ink: #1b1834;
  --ink-body: #45455a;
  --ink-muted: #80808f;
  --ink-footer: #7a7480;
  --accent: #745cab;
  --accent-dark: #614b9c;
  --accent-ink: #4b3d70;
  --dot: #765bae;
  --wordmark: #32215a;
  --line: #e8e2f0;
  --placeholder: #a8a7b4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; }

body {
  min-height: 100%;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink-body);
  background: linear-gradient(180deg, #fcfafd 0%, #f9f5f8 60%, #f1ebef 100%) fixed, var(--bg);
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

/* right-hand beach illustration, blended into the page background on its left edge */
.scene {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  aspect-ratio: 996 / 1024;
  max-width: 100%;
  background:
    linear-gradient(90deg, rgb(var(--bg-fade)) 0%, rgba(var(--bg-fade), 0.72) 8%, rgba(var(--bg-fade), 0) 26%),
    url("hero.jpg") right center / cover no-repeat;
}

.top,
.hero {
  position: relative;
  z-index: 1;
  padding-left: clamp(20px, 4.95vw, 76px);
  padding-right: clamp(20px, 4.95vw, 76px);
}

/* header */
.top {
  display: flex;
  align-items: center;
  gap: 17px;
  padding-top: min(8.3vh, 85px);
}

.logo { width: 52px; height: 52px; }

.wordmark {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--wordmark);
}

/* hero column */
.hero { margin-top: clamp(44px, 10vh, 103px); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 20px 11px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(253, 251, 254, 0.85);
  box-shadow: 0 1px 3px rgba(60, 40, 100, 0.06);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1;
  color: var(--accent-ink);
}

.badge::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dot);
}

h1 {
  margin-top: 40px;
  font-family: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(46px, 5.3vw, 80px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.028em;
  color: var(--ink);
}

h1 .accent { color: var(--accent); }

.lede {
  margin-top: 18px;
  font-size: 20px;
  line-height: 1.63;
  color: var(--ink-body);
  max-width: 34em;
}

/* email form */
.signup { margin-top: 48px; }

.notify {
  display: flex;
  gap: 16px;
}

/* server-side validation hints, toggled by the redirect fragment (/#invalid, /#error) */
.form-hint {
  display: none;
  margin-bottom: 14px;
  font-size: 15px;
  color: #a9544b;
}

.form-hint:target { display: block; }

/* success message (/#notified): replaces the form, styled like the input card */
.notice {
  display: none;
  align-items: flex-start;
  gap: 14px;
  max-width: 451px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(60, 40, 100, 0.06);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-body);
}

.notice .check {
  flex: none;
  width: 28px;
  height: 28px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
}

.notice strong {
  display: block;
  margin-bottom: 2px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

#notified:target { display: flex; }

#notified:target ~ .notify,
#notified:target ~ .form-hint { display: none; }

.notify input {
  width: 305px;
  height: 56px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(60, 40, 100, 0.04);
  font: inherit;
  font-size: 18px;
  color: var(--ink);
}

.notify input::placeholder { color: var(--placeholder); }

.notify input:focus-visible,
.notify button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.notify button {
  height: 56px;
  padding: 0 27px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}

.notify button:hover { background: var(--accent-dark); }

.nospam {
  margin-top: 23px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  color: var(--ink-muted);
}

.nospam svg { color: #6f6f7d; flex: none; }

/* footer */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 28px 20px 46px;
  text-align: center;
}

.site-footer small {
  font-size: 15px;
  color: #6d6772;
}

/* narrow screens: illustration flows below the content instead of sitting beside it */
@media (max-width: 980px) {
  .scene {
    position: static;
    aspect-ratio: auto;
    width: 100%;
    height: min(62vw, 470px);
    margin-top: 48px;
    background:
      linear-gradient(180deg, rgb(var(--bg-fade)) 0%, rgba(var(--bg-fade), 0) 30%),
      url("hero.jpg") 62% 30% / cover no-repeat;
  }

  .top { padding-top: 36px; }

  .hero { margin-top: 52px; }

  .lede br { display: none; }

  .site-footer { padding: 26px 20px 34px; }
}

@media (max-width: 560px) {
  .wordmark { font-size: 28px; }

  .logo { width: 44px; height: 44px; }

  .notify {
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
  }

  .notify input { width: 100%; }

  .lede { font-size: 18px; }

  .scene { height: 72vw; }
}
