/* The Meowton website. Palette from docs/BRAND.md: carbon on warm white,
   persimmon for the primary action and the caret motif, sea green for
   links. System fonts only: nothing is fetched from anyone else. */

:root {
  --paper: #f6f3ea;
  --ink: #171918;
  --muted: #5a5d58;
  --line: #d9d8d2;
  --card: #fffdf7;
  --accent: #e9553d;
  --accent-deep: #c6432d;
  --green: #237a68;
  --focus: #1f5fd0;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151614;
    --ink: #edeae0;
    --muted: #b3b0a6;
    --line: #34362f;
    --card: #1d1f1b;
    --accent: #f06a52;
    --accent-deep: #d84f38;
    --green: #5fbfa6;
    --focus: #8ab4ff;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--green); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 0; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.95em;
  background: color-mix(in srgb, var(--line) 45%, transparent);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -10000px;
  top: 8px;
  background: var(--card);
  color: var(--ink);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  z-index: 10;
}
.skip:focus { left: 8px; }

.top, main, .foot {
  width: min(100% - 2rem, 68rem);
  margin-inline: auto;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}
.brand img { border-radius: 50%; }
.top nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.top nav a { color: var(--ink); text-decoration: none; padding-block: 0.25rem; }
.top nav a:hover { color: var(--accent-deep); text-decoration: underline; }

main { padding-block: 1rem 3rem; }
section { padding-block: 2.5rem; border-top: 1px solid var(--line); }
section:first-child { border-top: 0; }

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding-top: 1.5rem;
}
@media (min-width: 56rem) {
  .hero { grid-template-columns: 1.15fr 1fr; gap: 3rem; }
}
.kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-deep);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
}
.lead { font-size: 1.2rem; max-width: 40rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

.button {
  display: inline-block;
  background: var(--accent-deep);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.7rem 1.3rem;
  border: 2px solid var(--accent-deep);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}
.button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.button.quiet:hover { border-color: var(--ink); color: var(--ink); }
.button[disabled] { opacity: 0.6; cursor: wait; }

.sample { margin: 0; display: grid; gap: 1rem; justify-items: center; }
.portrait {
  width: min(100%, 260px);
  height: auto;
  border-radius: 50%;
  border: 4px solid var(--card);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}
.card {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: grid;
  gap: 0.75rem;
  overflow-x: auto;
}
.card code { font-size: 0.95rem; justify-self: start; }
math { font-size: 1.7rem; }
.sample figcaption { color: var(--muted); font-size: 0.95rem; text-align: center; max-width: 30rem; }

.prose { max-width: 44rem; }
.prose p { font-size: 1.05rem; }
.note { color: var(--muted); font-size: 0.95rem; }

.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.cards li {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
}
.cards p { margin: 0; color: var(--ink); }

.columns {
  columns: 2;
  column-gap: 2rem;
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}
@media (max-width: 30rem) { .columns { columns: 1; } }
.columns li { break-inside: avoid; padding-block: 0.15rem; }

.waitlist { max-width: 36rem; }
.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.field.check { grid-template-columns: auto 1fr; align-items: start; gap: 0.6rem; }
.field.check input { margin-top: 0.35rem; width: 1.15rem; height: 1.15rem; }
label { font-weight: 600; }
input[type="email"], select {
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--muted);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  width: 100%;
  max-width: 100%;
}
.roles { border: 1px solid var(--line); border-radius: 10px; padding: 0.75rem 1rem 0.25rem; margin: 0 0 1rem; }
.roles legend { font-weight: 600; padding-inline: 0.25rem; }
.roles .field.check { margin-bottom: 0.5rem; }
.roles .field.check label { font-weight: 400; }
.roles .field:last-child { margin-top: 0.75rem; }
input[type="text"] {
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--muted);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  width: 100%;
  max-width: 100%;
}
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.status { padding: 0.75rem 1rem; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }
.status.error { border-color: var(--accent); color: var(--accent-deep); }
.status.ok { border-color: var(--green); }
.status h3 { margin-bottom: 0.25rem; }

.state { padding-block: 2rem; }

.foot {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.foot p { margin: 0 0 0.5em; }
.foot span { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
