/* anti-brainrot website. Sky, hand-drawn clouds, navy ink. No build step. */

:root {
  --sky: #73b8ee;
  --sky-light: #b2dcfa;
  --sky-pale: #d7efff;
  --ink: #1a1a2e;
  --muted: #2c3e50;
  --cream: #eceade;
  --dark: #0a1220;
  --line: rgba(26, 26, 46, 0.14);
  --gutter: clamp(16px, 4vw, 40px);
  --font: Bahnschrift, "DIN Alternate", "Barlow", "Segoe UI", -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: #fff;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky) 0, var(--sky-light) 60vh, var(--sky-pale) 120vh, #fff 190vh) no-repeat #fff;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: rgba(26, 26, 46, 0.07);
  padding: 0.05em 0.28em;
  border-radius: 4px;
}

pre {
  margin: 0.75rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(26, 26, 46, 0.08);
  font: 0.85rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-all;
}

h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin-bottom: 0.9rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* Layout */

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) var(--gutter);
}

main { position: relative; z-index: 1; }

/* Clouds */

.cloud-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.sky {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 190vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.cloud {
  position: absolute;
  top: var(--y);
  left: 0;
  width: var(--w);
  min-width: 90px;
  max-width: 420px;
  height: auto;
  aspect-ratio: 2 / 1;
  overflow: visible;
  transform: translateX(var(--x));
  animation: drift var(--dur) linear infinite;
  animation-delay: var(--delay);
  will-change: transform;
}

.cloud.far  { opacity: 0.55; }
.cloud.mid  { opacity: 0.75; }
.cloud.near { opacity: 0.9; }

.cloud-fill { fill: var(--sky-pale); fill-opacity: 0.85; }
.cloud-line {
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.cloud-line-2 { stroke-width: 1.6; opacity: 0.75; }
.cloud-line-3 { stroke-width: 1.4; opacity: 0.6; }

@keyframes drift {
  from { transform: translateX(-36vw); }
  to   { transform: translateX(104vw); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cloud { animation: none; }
  .mark,
  .hero h1,
  .hero .tagline,
  .hero .lede,
  .hero .actions { animation: none; }
}

/* Top nav */

.top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: 1.25rem var(--gutter);
}

.top nav { display: flex; gap: 1.75rem; }

.top a {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}
.top a:hover { text-decoration: underline; }

/* Hero */

.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem var(--gutter) 5rem;
}

.mark {
  width: clamp(140px, 24vw, 240px);
  height: auto;
  margin-bottom: 2.5rem;
  transform-origin: 40% 55%;
  animation: glide 7s ease-in-out infinite, settle 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  will-change: transform;
}

/* A leaf on a slow current: up and to the right with a small lift of the
   nose, back down with a dip, never far from where it started. */
@keyframes glide {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(6px, -10px) rotate(-3deg); }
  50%  { transform: translate(0, -4px) rotate(1deg); }
  75%  { transform: translate(-5px, 6px) rotate(3deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* On arrival it comes in from the left, the way it points. */
@keyframes settle {
  from { opacity: 0; translate: -40px 8px; }
  to   { opacity: 1; translate: 0 0; }
}

.hero h1 {
  font-size: clamp(2.8rem, 9vw, 5.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s both;
}

.hero .tagline { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.55s both; }
.hero .lede,
.hero .actions { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.75s both; }

/* The words follow the leaf in: up from below, a touch tighter at first. */
@keyframes rise {
  from { opacity: 0; translate: 0 18px; letter-spacing: 0.02em; }
  to   { opacity: 1; translate: 0 0; }
}

.tagline {
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 500;
  margin: 0.6rem 0 1.25rem;
}

.lede {
  max-width: 34rem;
  font-size: 1.1rem;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.75rem;
  margin-top: 1.25rem;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.9rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  line-height: 1.2;
}
.button:hover { background: #2a2a48; text-decoration: none; }

.text-link { font-weight: 500; }

/* Features */

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem 2.5rem;
}

.features p { color: var(--muted); }

/* Steps */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  max-width: 44rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.25rem;
  margin-bottom: 1.1rem;
  min-height: 2.25rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.05rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
}

.note { font-weight: 500; }

/* Screenshots */

figure { margin: 0; }

figure img {
  border: 1px solid var(--line);
  border-radius: 12px;
}

figcaption {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.shots .pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.shots .wide { max-width: 820px; margin: 0 auto; }

.shots .phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 270px));
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.shots > p { max-width: 820px; margin: 0 0 1rem; }
.shots > .limits { max-width: 820px; margin: 0; }

figure.small { max-width: 380px; margin-top: 1.75rem; }

/* Two columns */

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
}

.columns h3 { margin-top: 1.25rem; }

.limits { padding-left: 1.2rem; margin: 0; }
.limits li { margin-bottom: 0.5rem; }

/* Install */

.install p { max-width: 44rem; }
.install .actions { justify-content: flex-start; }

/* Dark band */

.band {
  position: relative;
  z-index: 1;
  background: var(--dark);
  color: var(--cream);
}

.band .wrap { padding-top: clamp(3.5rem, 8vh, 6rem); padding-bottom: clamp(3.5rem, 8vh, 6rem); }
.band .band-mark { width: 56px; margin-bottom: 2.25rem; }
.band h2 { color: var(--cream); }
.band a { color: var(--cream); }
.band p { max-width: 36rem; }

/* Footer */

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

footer img { width: 160px; height: auto; }

/* Narrow screens */

@media (max-width: 820px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .columns { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .features { grid-template-columns: 1fr; gap: 1.75rem; }
  .shots .pair { grid-template-columns: minmax(0, 360px); gap: 1.5rem; }
  .shots .phones { grid-template-columns: minmax(0, 300px); gap: 1.5rem; }
  .hero { min-height: calc(100vh - 4.5rem); padding-bottom: 3rem; }
  .mark { margin-bottom: 1.75rem; }
  .cloud { min-width: 110px; }
  footer { justify-content: center; text-align: center; }
}
