/* gojohngo.app — the inside of a lava lamp */
:root {
  --liquid-top: #2B1240;
  --liquid-bottom: #160A24;
  --wax-hot: #FF7B39;
  --wax-deep: #FF3E7A;
  --glow: #FFC857;
  --text: #FFF2E8;
  --muted: #DCCBE6;
  --glass: rgba(26, 11, 40, 0.62);
  --lift: 0 2px 14px rgba(22, 10, 36, 0.85);
  --glass-edge: rgba(255, 242, 232, 0.18);
  --display: "Bagel Fat One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 66ch;
}

* { box-sizing: border-box; }

html { background: var(--liquid-bottom); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  background: linear-gradient(180deg, var(--liquid-top), var(--liquid-bottom)) fixed;
  -webkit-font-smoothing: antialiased;
}

/* the lamp: a full-window canvas behind everything */
#lava {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

a { color: var(--glow); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 6px; }

/* top bar */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
}
.wordmark {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.site-head nav { display: flex; gap: 20px; font-size: 1rem; }
.site-head nav a { color: var(--muted); text-decoration: none; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--text); }

/* home hero */
.hero {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0 64px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(4rem, 15vw, 11rem);
  line-height: 0.88;
  margin: 0;
  letter-spacing: -0.01em;
  text-shadow: 0 6px 40px rgba(255, 62, 122, 0.35);
}
.hero p,
.app-hero .lede,
.more,
.section.prose > p,
.site-foot { text-shadow: var(--lift); }

.hero p {
  max-width: 34ch;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  color: var(--text);
  margin: 28px 0 0;
}

h2 {
  text-shadow: var(--lift);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  margin: 0 0 20px;
}
h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.1;
  margin: 0 0 8px;
}

/* glass panels: content floats in the liquid */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 28px;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* project list on the home page */
.projects { display: grid; gap: 20px; }
.project {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.project:hover { border-color: var(--glow); background: rgba(43, 18, 64, 0.78); color: inherit; }
.project img { width: 96px; height: 72px; object-fit: cover; border-radius: 16px; }
.project p { margin: 0; color: var(--muted); max-width: 52ch; }
.status {
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-edge);
  color: var(--glow);
  white-space: nowrap;
}
.more { color: var(--muted); margin: 8px 4px 0; }

/* app page */
.app-hero { padding: 48px 0 40px; }
.app-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.95;
  margin: 0 0 20px;
}
.app-hero .lede { font-size: clamp(1.2rem, 2.2vw, 1.4rem); color: var(--text); max-width: 46ch; margin: 0; }
.availability { margin-top: 24px; display: inline-block; background: rgba(26, 11, 40, 0.62); }

.shot { margin: 8px 0 56px; padding: 12px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 18px; }
.shot figcaption { color: var(--muted); font-size: 0.95rem; padding: 12px 8px 4px; }

.section { margin: 0 0 56px; }
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.features li { padding: 24px; }
.features p { margin: 0; color: var(--muted); }

.prose { max-width: var(--measure); }
.prose p, .prose li { color: var(--text); }
.prose .quiet { color: var(--muted); }
.prose ul { padding-left: 1.2em; }
.prose h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-top: 40px; }

.text-panel { padding: 32px; }

.site-foot {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 24px 40px;
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.site-foot a { color: var(--muted); }

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .project { grid-template-columns: 64px 1fr; gap: 16px; padding: 18px; }
  .project img { width: 64px; height: 48px; border-radius: 12px; }
  .project .status { grid-column: 2; justify-self: start; }
  .text-panel { padding: 22px; }
  .site-head nav { gap: 14px; }
}
