/* ============================================================
   L'origine du thé — Base layer
   Light reset + element defaults + a few brand helpers
   (graph-paper grid, eyebrow, handwritten note, seal stamp).
   Consumers get this for free via styles.css.
   ============================================================ */

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

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

body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
  background-color: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--selection-bg); color: var(--selection-fg); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  line-height: var(--leading-tight);
  color: var(--text-strong);
  margin: 0;
  letter-spacing: var(--tracking-tight);
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

button { font: inherit; color: inherit; }

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

/* ---------- Brand helpers ---------- */

/* Letter-spaced sans eyebrow, often paired with a 汉字 marker */
.odt-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* « la main de Lijun » — handwritten accent */
.odt-hand {
  font-family: var(--font-script);
  font-weight: var(--weight-regular);
  line-height: 1.3;
  color: var(--ink-700);
}

/* Cream graph-paper surface — the tea-card / notebook motif */
.odt-graph-paper {
  background-color: var(--paper-100);
  background-image:
    linear-gradient(var(--graph-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--graph-line) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -1px -1px;
}

/* Vermilion seal stamp — round chop with a 汉字 inside */
.odt-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid var(--seal-600);
  border-radius: var(--radius-sm);
  color: var(--seal-600);
  font-family: var(--font-display);
  font-size: var(--text-md);
  line-height: 1;
  transform: rotate(-3deg);
}
.odt-seal--round { border-radius: var(--radius-circle); }

/* Thin hairline divider in ink */
.odt-rule {
  border: none;
  border-top: 1px solid var(--rule-ink);
  margin: 0;
}
