/* biome-ignore-all lint/style/noDescendingSpecificity: flat component styles; each component block is ordered on purpose. */
/* RingaBoo website, shared by every page. Tokens follow docs/design-guidelines.md (section 2). */

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin-wght.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fff8ec;
  --bg-deep: #fdeed6;
  --surface: #fffdf8;
  --ink: #3a2a20;
  --ink-soft: #5c4a3e; /* 7.6:1 on --bg */
  --line: #ecdcc3;
  --accent-text: #a8340a; /* small orange text on cream, about 6:1 */
  --zip: #fd751f;
  --zip-deep: #e66c1f;
  --teal: #21aca7;
  --chomp: #8fd04c;
  --chomp-deep: #749b3e;
  --lumi: #d4b1ef;
  --lumi-deep: #a386ad;
  --night: #080605;
  --amber: #d97706;
  --amber-glow: #78350f;
  --sand: #a89f91;
  --cream: #fff3dc;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px / 1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 8px;
}
h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  font-weight: 900;
}
p {
  margin: 0 0 1em;
}
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--cream);
  padding: 8px 14px;
  border-radius: 12px;
  z-index: 50;
}
.skip:focus {
  left: 8px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 248, 236, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  transition:
    background-color 0.4s ease,
    color 0.4s ease;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.site-header .brand {
  color: var(--ink);
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.nav a:hover {
  color: var(--accent-text);
}
.nav .hide-sm {
  display: none;
}
@media (min-width: 820px) {
  .nav .hide-sm {
    display: inline-flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font: 800 1rem var(--font);
  text-decoration: none;
  border: 2px solid transparent;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--zip);
  color: var(--ink);
  box-shadow: 0 5px 0 var(--zip-deep);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--zip-deep);
}
.btn-primary:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--zip-deep);
}
.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9rem;
  box-shadow: 0 3px 0 var(--zip-deep);
}
.btn-small:hover {
  box-shadow: 0 4px 0 var(--zip-deep);
}

/* Footer */
.site-footer {
  padding: 36px 0 40px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: grid;
  gap: 20px;
}
@media (min-width: 760px) {
  .site-footer .wrap {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}
.site-footer nav a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}
.site-footer nav a:hover {
  text-decoration: underline;
}
.site-footer p {
  margin: 0;
  max-width: 40rem;
}
.site-footer .footer-note {
  margin-top: 12px;
}

/* Document pages (privacy, terms, support) */
.doc {
  padding: 40px 0 80px;
}
.doc .wrap {
  max-width: 760px;
}
.doc h1 {
  font-size: clamp(2.1rem, 5vw, 2.8rem);
  margin-bottom: 0.4em;
}
.doc h2 {
  font-size: 1.4rem;
  margin-top: 2.2em;
  padding-top: 0.2em;
}
.doc h3 {
  font-size: 1.1rem;
  margin-top: 1.6em;
}
.doc ul,
.doc ol {
  padding-left: 1.3em;
}
.doc li {
  margin-bottom: 0.4em;
}
.doc code {
  background: var(--bg-deep);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.92em;
}
.doc table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
  margin: 1em 0 1.4em;
  display: block;
  overflow-x: auto;
}
.doc th,
.doc td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.75rem;
  text-align: left;
  vertical-align: top;
  background: var(--surface);
}
.doc th {
  background: var(--bg-deep);
}
.doc .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.doc .tabs a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}
.doc .tabs a[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}
.draft {
  background: #fff1cf;
  border: 1px solid #e3b955;
  padding: 0.9rem 1.1rem;
  border-radius: 16px;
}
.todo {
  background: #fde4dc;
  border: 1px solid #d9775a;
  padding: 0.7rem 1rem;
  border-radius: 14px;
}
.updated {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Not-found page */
.lost {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: radial-gradient(60% 50% at 50% 40%, #2a1608 0%, var(--night) 70%);
  color: var(--sand);
  text-align: center;
}
.lost-main {
  padding: 40px var(--gutter);
  max-width: 34rem;
}
.lost-face {
  width: 150px;
  margin: 0 auto 8px;
  filter: brightness(0.9);
}
.lost-code {
  font-weight: 900;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin: 0;
}
.lost h1 {
  color: var(--cream);
  font-size: clamp(2.2rem, 7vw, 3.4rem);
}
.lost p {
  font-size: 1.1rem;
  margin-bottom: 28px;
}
