/* Nomi site. Tokens from the app (src/constants/theme.ts); fonts are the app's own files, self-hosted. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/BricolageGrotesque_800ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fbf8f3;
  --card: #ffffff;
  --fill: #f3efe8;
  --line: #eae4da;
  --edge: #e2dacd;
  --ink: #141414;
  --soft-ink: #3b3733;
  --muted: #5e5a55;
  --attention-soft: #ffe3e8;
  --bite: #ff7a1a;
  --bite-tint: #ffe7d3;
  --bite-deep: #c2560a;
  --rep: #2f8cff;
  --rep-tint: #ddebff;
  --sage: #22c55e;
  --sage-tint: #daf5e4;
  --pepper: #ff5c9a;
  --pepper-tint: #ffe0ec;
  --display: "Bricolage Grotesque", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 10px;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: var(--fill);
}
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 2px 0 var(--edge);
}

/* Type */
main {
  padding: 32px 0 48px;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}
h1 {
  font-size: 34px;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.02em;
  margin: 40px 0 10px;
}
h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 24px 0 6px;
}
p,
ul,
ol {
  margin: 0 0 14px;
}
ul,
ol {
  padding-left: 22px;
}
li {
  margin-bottom: 6px;
}
a {
  color: var(--bite-deep);
  text-underline-offset: 2px;
}
a:hover {
  color: var(--ink);
}
strong {
  font-weight: 600;
}
.meta {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
}
.lead {
  font-size: 19px;
  color: var(--soft-ink);
}

/* Table of contents */
.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 18px;
  margin: 0 0 8px;
  font-size: 15px;
}
.toc p {
  margin: 0 0 6px;
  font-weight: 600;
}
.toc ol {
  margin: 0;
  columns: 2;
  column-gap: 24px;
}
.toc li {
  margin-bottom: 2px;
  break-inside: avoid;
}
@media (max-width: 480px) {
  .toc ol {
    columns: 1;
  }
}

/* Boxes */
.box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  margin: 0 0 16px;
}
.box > :last-child {
  margin-bottom: 0;
}
.box.warm {
  background: var(--bite-tint);
  border-color: #f2c7a4;
}
.box.green {
  background: var(--sage-tint);
  border-color: #b3e6c6;
}

/* Tables become stacked cards on phones */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 0 0 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.table th,
.table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}
.table thead th {
  border-top: 0;
  background: var(--fill);
  font-weight: 600;
}
@media (max-width: 560px) {
  .table thead {
    display: none;
  }
  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }
  .table tr {
    border-top: 1px solid var(--line);
    padding: 6px 0;
  }
  .table tr:first-child {
    border-top: 0;
  }
  .table td {
    border-top: 0;
    padding: 4px 14px;
  }
  .table td:first-child {
    font-weight: 600;
  }
}

/* Owner placeholders: visible on purpose until filled in */
.todo {
  background: #fff1cf;
  color: var(--ink);
  border: 1px dashed #c98a00;
  border-radius: 6px;
  padding: 0 4px;
  font-weight: 600;
}

/* Landing */
.hero {
  text-align: center;
  padding: 16px 0 8px;
}
.hero img {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 0 0 1px var(--line), 0 4px 0 var(--edge);
}
.hero h1 {
  font-size: 40px;
  margin: 20px 0 10px;
}
.hero .lead {
  max-width: 30em;
  margin: 0 auto 14px;
}
.pill {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}
.bots {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 560px) {
  .bots {
    grid-template-columns: 1fr 1fr;
  }
}
.bot {
  border-radius: 20px;
  padding: 16px 18px;
  margin: 0;
  border: 1px solid transparent;
}
.bot h2 {
  margin: 0 0 4px;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bot h2::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dot);
  flex: none;
}
.bot p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 16px;
}
.bot .role {
  font-family: var(--body);
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0;
}
.bot.bite {
  background: var(--bite-tint);
  border-color: #f2c7a4;
  --dot: var(--bite);
}
.bot.rep {
  background: var(--rep-tint);
  border-color: #a9c8f5;
  --dot: var(--rep);
}
.bot.sage {
  background: var(--sage-tint);
  border-color: #b3e6c6;
  --dot: var(--sage);
}
.bot.pepper {
  background: var(--pepper-tint);
  border-color: #f5bcd2;
  --dot: var(--pepper);
}
.links {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}
.links a {
  display: block;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 3px 0 var(--edge);
}
.links a strong {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
}
.links a span {
  color: var(--muted);
  font-size: 15px;
}
.links a:hover,
.links a:focus-visible {
  border-color: var(--edge);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  padding: 20px 0 36px;
}
.site-footer p {
  margin: 0 0 6px;
}
.site-footer a {
  color: var(--muted);
}

:focus-visible {
  outline: 3px solid var(--rep);
  outline-offset: 2px;
}
