/* things & events marketing site. Colours and type copied from the app
   (app/assets/tailwind/application.css): JetBrains Mono throughout, the same
   light and dark tokens, and the brand forest #2F6B45 from the app icon. */

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
}

/* The wordmark face, as in the app (docs/decisions/0013 there). */
@font-face {
  font-family: "Damion";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/damion-latin-400-normal.woff2") format("woff2");
}
.wordmark { font-family: "Damion", cursive; font-weight: 400; letter-spacing: 0; line-height: 1.2; }

:root {
  --font: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --brand:      #2F6B45;
  --ink:        oklch(0.22 0.01 260);
  --ink-muted:  oklch(0.48 0.01 260);
  --surface:    oklch(0.99 0.002 260);
  --surface-2:  oklch(0.965 0.004 260);
  --line:       oklch(0.90 0.006 260);
  --accent:     #2F6B45;
  --accent-ink: oklch(0.99 0.002 260);
  --danger:     oklch(0.55 0.17 25);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink:        oklch(0.93 0.006 260);
    --ink-muted:  oklch(0.72 0.008 260);
    --surface:    oklch(0.17 0.008 260);
    --surface-2:  oklch(0.21 0.010 260);
    --line:       oklch(0.30 0.010 260);
    --accent:     oklch(0.74 0.088 153.6);
    --accent-ink: oklch(0.17 0.008 260);
    --danger:     oklch(0.70 0.15 25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.35rem, 3.5vw, 1.75rem); margin: 2.5rem 0 1rem; }
h3 { font-size: 1.05rem; margin: 0 0 0.4rem; }
p { margin: 0 0 1rem; }

.wrap { width: min(100% - 2.5rem, 62rem); margin-inline: auto; }
.prose { max-width: 42rem; padding-block: 2.5rem 3rem; }
.lede { font-size: 1.1rem; color: var(--ink-muted); max-width: 40rem; }
.small, .meta { font-size: 0.85rem; color: var(--ink-muted); }
.eyebrow { font-size: 0.85rem; margin-bottom: 0.5rem; }

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--surface); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-block: 0.9rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); font-weight: 700; text-decoration: none; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.9rem; }
.site-header nav a { color: var(--ink); text-decoration: none; padding-block: 0.4rem; }
.site-header nav a:hover { color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; padding-block: 2rem; font-size: 0.85rem; color: var(--ink-muted); }
.site-footer nav { margin-bottom: 1rem; }
.site-footer nav a { color: var(--ink-muted); }

/* Buttons */
.button {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0.8rem 1.3rem;
  border: 2px solid var(--brand);
  border-radius: 0.6rem;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
}
.button:hover { filter: brightness(1.1); }
.button-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-block: 1.5rem 0.75rem; }

/* Home */
.hero { padding-block: 3rem 2rem; }
.shots h2 { margin-top: 0; }
.shot { margin: 0; }
.shot img { width: 100%; border: 1px solid var(--line); border-radius: 0.75rem; box-shadow: 0 10px 30px rgb(0 0 0 / 0.08); }
.shot figcaption { font-size: 0.88rem; color: var(--ink-muted); margin-top: 0.6rem; }
.shot figcaption strong { color: var(--ink); }
.shot-row { display: grid; gap: 1.5rem; margin-top: 2rem; }
.shot-row .shot img { max-width: 20rem; margin-inline: auto; }
.shot-row figcaption { text-align: center; }
.steps { list-style: none; padding: 0; display: grid; gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; padding-left: 2.75rem; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 0.9rem;
}
.cards { list-style: none; padding: 0; display: grid; gap: 1rem; }
.card { border: 1px solid var(--line); border-radius: 0.75rem; padding: 1.25rem; background: var(--surface); }
.card p { margin: 0; color: var(--ink-muted); font-size: 0.92rem; }
.band { background: var(--surface-2); border-block: 1px solid var(--line); padding-block: 1rem 2rem; margin-block: 3rem; }
.promises { padding-left: 1.2rem; display: grid; gap: 0.75rem; max-width: 46rem; }
.plans { display: grid; gap: 1rem; }
.plan { border: 1px solid var(--line); border-radius: 0.75rem; padding: 1.5rem; }
.plan-featured { border: 2px solid var(--brand); }
.price { font-size: 2rem; font-weight: 700; margin: 0.25rem 0 0.5rem; }
.price span { font-size: 1rem; font-weight: 400; color: var(--ink-muted); }
.fine { padding-left: 1.2rem; color: var(--ink-muted); font-size: 0.92rem; margin-top: 1.5rem; }

/* Track anything */
.anything h2 { max-width: 34rem; }
.examples { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.examples li { border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 0.5rem; padding: 0.85rem 1rem; background: var(--surface); }
.examples h3 { font-size: 1rem; margin: 0 0 0.2rem; }
.examples p { margin: 0; color: var(--ink-muted); font-size: 0.88rem; line-height: 1.5; }
.anything-note { margin: 1.25rem 0 3rem; max-width: 42rem; }

/* Waitlist */
.waitlist { border: 1px solid var(--line); border-radius: 0.75rem; padding: 1.5rem; margin-block: 3rem 1rem; background: var(--surface-2); }
.waitlist h2 { margin-top: 0; }
.waitlist label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.inline-form input {
  flex: 1 1 16rem; font: inherit; color: var(--ink); background: var(--surface);
  padding: 0.75rem 0.9rem; border: 1px solid var(--ink-muted); border-radius: 0.6rem; min-height: 44px;
}
.form-error { color: var(--danger); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Text pages */
.prose h2 { margin-top: 2.25rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-bottom: 1.5rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-list { list-style: none; padding: 0 !important; }
.post-list li { border-bottom: 1px solid var(--line); padding-block: 1rem; }
.post-list h2 { font-size: 1.2rem; margin: 0 0 0.3rem; }

@media (min-width: 40rem) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .examples { grid-template-columns: repeat(2, 1fr); }
  .shot-row { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); max-width: 40rem; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .hero { padding-block: 5rem 3rem; }
}
@media (min-width: 60rem) {
  .examples { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (max-width: 40rem) {
  /* Phone screenshots are tall: keep them a comfortable size. */
  .shot img { max-width: 17rem; margin-inline: auto; }
  .shot figcaption { text-align: center; }
}
