/* abigwhy.com: the app's palette and type on the web. Warm ground, white surfaces, ink, one blue. */
:root {
  --ground: #f6f1ea;
  --surface: #ffffff;
  --ink: #20222b;
  --ink-soft: #6b6660;
  --line: #e2dbd1;
  --accent: #5b7cfa;
  --accent-wash: #e6ebfe;
  --people: #ff8a7a;
  --honey: #ffd166;
  --danger: #c2483e;
  --radius: 22px;
  --rounded: ui-rounded, 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.55 var(--text);
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 19px/1 var(--rounded);
  color: var(--ink);
  text-decoration: none;
}

.mark::before {
  content: '';
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, #fff 0 8%, transparent 32%),
    radial-gradient(circle at 70% 75%, rgba(255, 209, 102, 0.9), transparent 55%),
    radial-gradient(circle at 25% 72%, rgba(255, 138, 122, 0.85), transparent 50%), radial-gradient(circle at 60% 30%, #9db4ff, #5b7cfa 72%);
}

/* The orb */
.orb {
  position: relative;
  width: min(62vw, 280px);
  aspect-ratio: 1;
  margin: 24px auto 8px;
}

.orb::before,
.orb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

/* The halo */
.orb::before {
  inset: -22%;
  background: radial-gradient(circle, rgba(91, 124, 250, 0.22), rgba(255, 138, 122, 0.08) 45%, transparent 70%);
  animation: halo 5.5s ease-in-out infinite;
}

/* The sphere */
.orb::after {
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.95) 0 5%, transparent 28%),
    radial-gradient(circle at 72% 74%, rgba(255, 209, 102, 0.85), transparent 52%),
    radial-gradient(circle at 24% 70%, rgba(255, 138, 122, 0.8), transparent 48%),
    radial-gradient(circle at 62% 32%, #9db4ff, #5b7cfa 70%, #4a68e0);
  box-shadow: inset -12px -18px 40px rgba(32, 34, 43, 0.12);
  animation: breathe 5.5s ease-in-out infinite;
}

@keyframes breathe {
  50% {
    transform: scale(1.015);
    filter: hue-rotate(-8deg) saturate(1.08);
  }
}

@keyframes halo {
  50% {
    opacity: 0.7;
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb::before,
  .orb::after {
    animation: none;
  }
}

/* Landing */
.hero {
  text-align: center;
  padding-block: 8px 40px;
}

h1,
h2,
h3 {
  font-family: var(--rounded);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hero h1 {
  font-size: clamp(28px, 6vw, 40px);
  margin: 24px auto 12px;
  max-width: 18em;
}

.lede {
  color: var(--ink-soft);
  margin: 0 auto 28px;
  max-width: 32em;
}

.join {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}

.join input[type='email'] {
  flex: 1;
  min-width: 0;
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.join input[type='email']:focus-visible,
.join button:focus-visible {
  outline: 3px solid var(--accent-wash);
  outline-offset: 2px;
}

.join button {
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: 600 17px/1 var(--text);
  cursor: pointer;
}

.join button[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* The honeypot: present for bots, absent for people. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fine {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  margin: 12px auto 0;
  max-width: 30em;
}

.status {
  min-height: 1.5em;
  margin: 14px 0 0;
  font-weight: 600;
}

.status.error {
  color: var(--danger);
}

.beats {
  display: grid;
  gap: 14px;
  padding-block: 8px 40px;
}

.beat {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
}

.beat h2 {
  font-size: 20px;
  margin: 2px 0 6px;
}

.beat p {
  margin: 0;
  color: var(--ink-soft);
}

.glyph {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--accent-wash);
}

.glyph .mini {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, #fff 0 8%, transparent 32%),
    radial-gradient(circle at 70% 75%, rgba(255, 209, 102, 0.9), transparent 55%),
    radial-gradient(circle at 25% 72%, rgba(255, 138, 122, 0.85), transparent 50%), radial-gradient(circle at 60% 30%, #9db4ff, #5b7cfa 72%);
}

.glyph.page {
  background: #ffe9e5;
}

.glyph.note {
  background: #fff4d6;
}

.sample {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ground);
  color: var(--ink);
  font-size: 15px;
}

.sample b {
  display: block;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 2px;
}

/* Legal and help pages */
.doc {
  padding-block: 8px 40px;
}

.doc h1 {
  font-size: clamp(28px, 5vw, 36px);
  margin: 12px 0 4px;
}

.doc .updated {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 24px;
}

.doc h2 {
  font-size: 21px;
  margin: 32px 0 8px;
}

.doc h3 {
  font-size: 17px;
  margin: 20px 0 6px;
}

.doc p,
.doc li {
  max-width: 40em;
}

.doc ul {
  padding-left: 1.2em;
}

.doc li {
  margin: 4px 0;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 16px 0;
}

.card.alert {
  border: 2px solid var(--danger);
}

.card p:first-child {
  margin-top: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
}

.table th,
.table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.table tr:first-child th {
  border-top: 0;
}

.scroll {
  overflow-x: auto;
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 24px 40px;
  color: var(--ink-soft);
  font-size: 14px;
}

.foot p {
  margin: 0 0 12px;
  max-width: 40em;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 12px;
}

.foot nav a {
  color: var(--ink-soft);
}

@media (max-width: 480px) {
  .join {
    flex-direction: column;
  }
  .beat {
    grid-template-columns: 1fr;
  }
}
