/* Cheah Seeds website (cheahseeds.com). System fonts only, so no visitor data goes to a font service.
   Class names match website/swap141/assets/site.css, so the copied Swap141 pages render without changes. */
:root {
  --bg: #F7F8F5; --surface: #FFFFFF; --surface2: #EEF2EE; --text: #1C2420; --muted: #5C6A63; --line: #E1E6E2;
  --accent: #16794F; --accent-ink: #FFFFFF; --accent-soft: #E3F4EB; --accent-text: #11603F;
  --note-soft: #FFF6DB; --note-text: #6B5310;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121614; --surface: #1B211E; --surface2: #232B27; --text: #EEF3F0; --muted: #A3B2AA; --line: #2B3430;
    --accent: #7FDDB3; --accent-ink: #0D2A1D; --accent-soft: #173A2C; --accent-text: #9BE8C5;
    --note-soft: #3A3115; --note-text: #F2D98A;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent-text); text-underline-offset: 3px; }
img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand img { width: 36px; height: 36px; display: block; }
.brand b { font-size: 19px; letter-spacing: -.01em; }
nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 2px; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }

/* Type */
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.015em; }
h1 { font-size: clamp(32px, 6vw, 46px); }
h2 { font-size: 26px; margin-top: 44px; }
h3 { font-size: 19px; margin-top: 24px; }
p, ul, ol { margin: 12px 0 0; }
li + li { margin-top: 6px; }
.muted { color: var(--muted); }
.lead { font-size: 20px; color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }

/* Home */
.hero { padding: 56px 0 8px; }
.hero .lead { max-width: 560px; }
.apps { display: grid; gap: 14px; margin-top: 18px; }
.app { display: grid; grid-template-columns: 64px 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
.app-icon { width: 64px; height: 64px; display: block; border-radius: 15px; }
.app h3 { margin: 0; }
.app p { margin-top: 4px; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.links a { background: var(--surface2); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; border-radius: 999px; padding: 6px 12px; }
.links a:hover { background: var(--accent-soft); color: var(--accent-text); }
.tag { display: inline-block; vertical-align: middle; margin-left: 8px; background: var(--surface2); color: var(--muted); border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 700; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; }
.card h3 { margin-top: 0; font-size: 17px; }
.card p { margin-top: 6px; color: var(--muted); font-size: 15px; }
@media (max-width: 480px) { .app { grid-template-columns: 1fr; } }

/* Notes */
.note { background: var(--note-soft); color: var(--note-text); border-radius: 16px; padding: 14px 16px; margin-top: 18px; }
.ok { background: var(--accent-soft); color: var(--accent-text); border-radius: 16px; padding: 14px 16px; margin-top: 18px; }
.copy-of { background: var(--surface2); color: var(--muted); border-radius: 14px; padding: 10px 14px; margin-top: 16px; font-size: 14px; }

/* Legal and help pages */
.doc { padding-top: 40px; padding-bottom: 24px; }
.doc .updated { color: var(--muted); margin-top: 8px; }
.doc h2 { font-size: 22px; margin-top: 36px; }
.toc { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 20px; margin-top: 20px; }
.toc ol { margin: 6px 0 0; padding-left: 22px; }
table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 700; }
.table-scroll { overflow-x: auto; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; margin-top: 10px; }
summary { font-weight: 700; cursor: pointer; }
details p { color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; gap: 10px; }
footer nav a { font-size: 14px; }
