/* Ixencore and RiceNest site. One stylesheet, no fonts to load, no scripts.
   Palette: cream and warm greens (rice grain). No orange. */

:root {
  --bg: #faf7ef;
  --surface: #f3eee1;
  --ink: #22271f;
  --muted: #5f6458;
  --line: #e2dccb;
  --accent: #3d6a48;
  --accent-ink: #2f5439;
  --accent-soft: #e4ebdc;
  --focus: #6f9a5f;
  --max: 46rem;
  --wide: 64rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141813;
    --surface: #1c211b;
    --ink: #ebe7da;
    --muted: #a6aa9c;
    --line: #2d332b;
    --accent: #9cc49f;
    --accent-ink: #b7d6b5;
    --accent-soft: #233025;
    --focus: #9cc49f;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--bg);
  padding: 0.5rem 0.75rem;
}

.skip:focus {
  left: 1rem;
}

.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1rem;
}

.narrow {
  max-width: var(--max);
}

/* Header and footer */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
}

.wordmark {
  color: var(--ink);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.wordmark.product {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 1.05rem;
}

.wordmark .zh {
  font-weight: 500;
  margin-left: 0.15em;
}

.nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0.35rem 0;
}

.site-footer a {
  color: var(--muted);
}

/* Type */

h1,
h2,
h3 {
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 7vw, 3rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.eyebrow {
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 38rem;
}

.muted {
  color: var(--muted);
}

/* Sections */

.hero {
  padding: 3.5rem 0 2.5rem;
}

.section {
  padding: 1rem 0;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 60rem) {
  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem 1.25rem 1.1rem;
}

.card p,
.card ul {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.card ul {
  padding-left: 1.1rem;
}

.card li + li {
  margin-top: 0.25rem;
}

.icon {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 0.6rem;
  display: block;
}

.product-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.tag {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  white-space: nowrap;
}

.notice {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.notice p {
  margin: 0.25rem 0;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  border-radius: 8px;
  padding: 0.65rem 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  filter: brightness(1.08);
}

.facts {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.5rem;
}

.facts li {
  padding-left: 1.25rem;
  position: relative;
}

.facts li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 0.45rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Legal pages (generated by build-legal.mjs) */

.legal {
  padding-top: 2rem;
}

.legal h1 {
  font-size: clamp(1.8rem, 6vw, 2.4rem);
}

.legal h2 {
  font-size: 1.2rem;
  margin-top: 2.25rem;
}

.legal p,
.legal li {
  max-width: var(--max);
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li + li {
  margin-top: 0.35rem;
}

.draft {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
  line-height: 1.45;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
  min-width: 9rem;
}

th {
  background: var(--surface);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

a.card {
  display: block;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

a.card:hover {
  border-color: var(--accent);
}

a.card h3 {
  color: var(--accent-ink);
}

/* Trademark sign after the wordmark: plain-text ™ (never ®) until the mark is registered. */
.tm {
  font-size: 0.6em;
  font-weight: 500;
  vertical-align: 0.6em;
  line-height: 0;
  margin-left: 0.05em;
}
