/* animaai.io — one page, no build. Linen grey and bottle green around the panel's own cream. */

:root {
  --paper: #f2f2ee;
  --ink: #1e1f1b;
  --muted: #666a62;
  --line: #d6d8d0;
  --green: #2d5f4f;
  --green-soft: #e3ebe6;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, Georgia, serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --measure: 62ch;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141614;
    --ink: #e5e6e0;
    --muted: #8f948b;
    --line: #2a2d29;
    --green: #8ec5ae;
    --green-soft: #1d2a24;
  }
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding: 0 16px;
}
@media (min-width: 700px) { body { padding: 0 32px; } }

a { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }

code, pre { font-family: var(--mono); font-size: 0.86em; }
code { background: var(--green-soft); padding: 0.05em 0.28em; border-radius: 4px; }
pre.cmd {
  margin: 0.6em 0 1em;
  padding: 0.7em 1em;
  background: var(--green-soft);
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.9em;
}

h1, h2, h3 { font-weight: 400; margin: 0; letter-spacing: -0.012em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.4rem); line-height: 1.08; max-width: 14ch; }
h2 { font-size: 1.75rem; line-height: 1.2; margin-bottom: 0.7em; }
h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: 0.3em; }
p { margin: 0 0 1em; max-width: var(--measure); }
em { font-style: italic; }

/* top */
.top {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 0 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}
.wordmark { font-size: 1.45rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.top nav { display: flex; gap: 22px; font-size: 0.95rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); text-decoration: underline; }

main { max-width: 1120px; margin: 0 auto; }
section { padding: 56px 0 8px; }
section + section { border-top: 1px solid var(--line); margin-top: 40px; }

/* hero */
.hero { padding-top: 72px; display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) {
  .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); gap: 56px; padding-top: 96px; }
}
.lead { font-size: 1.2rem; line-height: 1.5; margin-top: 1.2em; max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin: 1.6em 0 1.1em; }
.button {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  padding: 0.62em 1.15em;
  border-radius: 6px;
  font-size: 1.02rem;
}
.button:hover { background: var(--green); color: #fff; text-decoration: none; }
@media (prefers-color-scheme: dark) { .button:hover { color: #0f1511; } }
.quiet { font-size: 1.02rem; }
.fine { color: var(--muted); font-size: 0.95rem; max-width: 40ch; }

/* the folder */
.folder { margin: 0; }
.tree {
  font-family: var(--mono);
  font-size: 0.97rem;
  line-height: 1.8;
  border-left: 2px solid var(--line);
  padding-left: 10px;
  margin-top: 0.3em;
  display: grid;
  grid-template-columns: 7.5em minmax(0, max-content) auto;
  column-gap: 1.6em;
  justify-content: start;
  align-items: baseline;
}
.tree .dir { color: var(--muted); grid-column: 1 / -1; }
.tree .row { display: contents; }
.tree .f { color: var(--ink); padding-left: 20px; }
.tree .n { color: var(--muted); }
.tree .w { color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 0.95rem; }
.tree .t .f { font-weight: 600; }
.tree .t .w { color: var(--ink); }
.tree .y .f { color: var(--green); font-weight: 600; }
.tree .y .w { color: var(--green); }
.tree .m .f { color: var(--muted); }
@media (max-width: 420px) {
  .tree { font-size: 0.84rem; grid-template-columns: max-content minmax(0, 1fr) auto; column-gap: 0.9em; }
  .tree .f { padding-left: 12px; }
}
.folder figcaption { color: var(--muted); font-size: 0.95rem; line-height: 1.5; margin-top: 1.1em; max-width: 44ch; }

/* the picture */
.shot { margin: 0 0 1.4em; }
.shot img {
  max-width: 100%;
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f4ef;
}
.shot figcaption { color: var(--muted); font-size: 0.95rem; margin-top: 0.6em; }

/* steps — the one real sequence on the page */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; max-width: 72ch; }
.steps > li { counter-increment: step; position: relative; padding-left: 2.6em; margin-bottom: 2em; }
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.05em;
  width: 1.7em; height: 1.7em; line-height: 1.7em;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 0.95rem;
}

.ladder { border-collapse: collapse; margin: 0.4em 0 1em; font-size: 0.95rem; max-width: 100%; }
.ladder th, .ladder td { text-align: left; padding: 0.35em 1.2em 0.35em 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.ladder th { font-weight: 400; color: var(--muted); }
.ladder td:first-child { white-space: nowrap; }
.ladder td:nth-child(3), .ladder td:nth-child(4) { font-family: var(--mono); font-size: 0.9em; vertical-align: baseline; white-space: nowrap; }
@media (max-width: 520px) {
  .ladder td code { font-size: 0.8em; }
  .ladder th, .ladder td { padding-right: 0.7em; }
  .ladder td:nth-child(4) { white-space: normal; }
}

/* senses — a definition list, not cards */
.senses { display: grid; gap: 18px 40px; grid-template-columns: 1fr; margin: 1.4em 0 0; max-width: 72ch; }
@media (min-width: 700px) { .senses { grid-template-columns: 1fr 1fr; } }
.senses div { border-top: 1px solid var(--line); padding-top: 10px; }
.senses dt { font-size: 1.1rem; margin-bottom: 0.2em; }
.senses dd { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.5; }

/* footer */
footer {
  max-width: 1120px; margin: 72px auto 0; padding: 28px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.95rem;
}
footer p { max-width: none; margin-bottom: 0.5em; }
footer p:first-child { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
