/* Plantlore's public pages. The colours are the app's own (plant-app/styles/plantlore.css);
   the type is whatever the device has, so no page asks another server for a font. */
:root {
  color-scheme: light dark;
  --bg: #E9EFE8;
  --surface: #FBFCF9;
  --line: #CBD6CA;
  --ink: #11231A;
  --mute: #4A5E53;
  --faint: #5C6F63;
  --brand: #17603D;
  --brand-ink: #FFFFFF;
  --brand-soft: #D5EBDD;
  --tile-shadow: 0 18px 40px -18px rgba(17, 35, 26, .45);
  --display: 'Avenir Next', 'Segoe UI', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --ui: system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1410;
    --surface: #131E18;
    --line: #22322A;
    --ink: #E7F0E9;
    --mute: #A0B3A7;
    --faint: #8A9E92;
    --brand: #62CE92;
    --brand-ink: #062414;
    --brand-soft: #143525;
    --tile-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
  }
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--ui); overflow-wrap: anywhere; }
.shell { max-width: 1120px; margin: auto; padding: 0 48px; }

a { color: var(--brand); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 4px; }
.skip { position: absolute; left: 20px; top: -100px; z-index: 5; padding: 12px 20px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); }
.skip:focus { top: 12px; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; gap: 12px; font: 700 24px/1.2 var(--display); letter-spacing: -.4px; color: var(--ink); text-decoration: none; }
.wordmark img { display: block; border-radius: 8px; flex-shrink: 0; }
nav { display: flex; flex-wrap: wrap; gap: 28px; }
nav a { font-size: 15px; text-decoration: none; color: var(--mute); padding: 10px 0; }
nav a[aria-current=page] { color: var(--ink); text-decoration: underline; text-underline-offset: 8px; text-decoration-color: var(--brand); text-decoration-thickness: 2px; }
nav a.lang { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
nav a.lang:hover { border-color: var(--brand); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 160px; align-items: center; gap: 56px; padding: 64px 0 56px; }
.eyebrow { font-size: 12px; letter-spacing: 1.6px; font-weight: 700; text-transform: uppercase; color: var(--faint); margin: 0 0 20px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); }
h1 { font-size: clamp(38px, 5vw, 58px); font-weight: 700; line-height: 1.1; letter-spacing: -1.4px; margin: 0 0 22px; text-wrap: balance; }
p { line-height: 1.75; margin: 0 0 18px; }
.intro { max-width: 560px; font-size: 19px; line-height: 1.6; color: var(--mute); margin-bottom: 22px; }
.updated { font-size: 14px; color: var(--faint); margin: 0; }
.tile { display: block; width: 160px; height: 160px; border-radius: 36px; box-shadow: var(--tile-shadow); }

.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; border-top: 1px solid var(--line); padding-top: 40px; }
.contents nav { position: sticky; top: 32px; display: block; }
.contents .eyebrow { margin-bottom: 14px; }
.contents ol { list-style: none; margin: 0; padding: 0; }
.contents a { display: flex; gap: 12px; font-size: 14px; line-height: 1.5; padding: 8px 0; color: var(--mute); }
.contents a:hover { color: var(--brand); }
.index { font-size: 12px; line-height: 1.75; color: var(--faint); font-variant-numeric: tabular-nums; min-width: 18px; }

article { min-width: 0; max-width: 720px; }
article section { border-bottom: 1px solid var(--line); padding: 0 0 28px; margin-bottom: 32px; scroll-margin-top: 24px; }
.section-number { display: block; font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: 1px; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
h2 { font-size: 26px; font-weight: 700; line-height: 1.25; letter-spacing: -.4px; margin: 0 0 18px; }
article p, article li { font-size: 17px; line-height: 1.75; color: var(--mute); }
article p:last-child { margin-bottom: 0; }
article section.summary { padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.summary .eyebrow { margin-bottom: 8px; color: var(--brand); }
.summary ul { list-style: none; margin: 0; padding: 0; }
.summary li { position: relative; padding: 13px 0 13px 22px; border-top: 1px solid var(--line); line-height: 1.6; }
.summary li:first-child { border-top: 0; padding-top: 0; }
.summary li:last-child { padding-bottom: 0; }
.summary li::before { content: ''; position: absolute; left: 0; top: 24px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.summary li:first-child::before { top: 11px; }

.contact-button { display: inline-flex; align-items: center; gap: 20px; min-height: 52px; padding: 12px 22px; border-radius: 16px; text-decoration: none; background: var(--brand); color: var(--brand-ink); font-size: 17px; font-weight: 600; }
.contact-button:hover { color: var(--brand-ink); filter: brightness(1.08); }
.contact-help { font-size: 14px; line-height: 1.6; color: var(--faint); margin: 16px 0 0; }
.doc-end { display: flex; justify-content: flex-end; margin: 0 0 56px; font-size: 14px; }

.features, .more { border-top: 1px solid var(--line); padding: 40px 0 16px; }
.features ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.features li { padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.features h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.2px; margin: 0 0 10px; }
.features p { font-size: 16px; line-height: 1.6; color: var(--mute); margin: 0; }
.more { padding-bottom: 56px; }
.more ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 36px; }
.more a { font-size: 17px; }

footer { border-top: 1px solid var(--line); padding: 32px 0 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; }
.footer-brand { font: 700 20px/1.3 var(--display); }
footer p { font-size: 14px; color: var(--faint); margin: 6px 0 0; }
footer p a { color: inherit; }
.copyright { grid-column: 1 / -1; font-size: 13px; }

@media (max-width: 900px) {
  .shell { padding: 0 28px; }
  .hero { grid-template-columns: minmax(0, 1fr) 112px; gap: 28px; }
  .tile { width: 112px; height: 112px; border-radius: 26px; }
  .doc { grid-template-columns: 190px minmax(0, 1fr); gap: 32px; }
  .features ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .shell { padding: 0 20px; }
  .site-header { flex-wrap: wrap; gap: 8px; padding: 18px 0 10px; }
  .site-header nav { width: 100%; gap: 22px; align-items: center; }
  .site-header nav a.lang { margin-left: auto; }
  .hero { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 24px; padding: 32px 0 34px; }
  .tile { width: 72px; height: 72px; border-radius: 17px; }
  h1 { font-size: 36px; letter-spacing: -.9px; }
  .intro { font-size: 17px; }
  .doc { display: block; padding-top: 28px; }
  .contents { display: none; }
  h2 { font-size: 23px; }
  article p, article li { font-size: 16px; }
  article section.summary { padding: 22px 20px; }
  .features ul { grid-template-columns: minmax(0, 1fr); }
  .contact-button { max-width: 100%; font-size: 16px; }
  footer { grid-template-columns: minmax(0, 1fr); padding: 28px 0; }
  .doc-end { margin-bottom: 36px; }
}
@media print {
  body { background: white; }
  .shell { max-width: none; padding: 0; }
  .tile, .contents, .skip, .doc-end, .site-header nav, footer nav { display: none; }
  .hero, .doc { display: block; padding: 16px 0; }
  article section { break-inside: avoid; }
  a { color: inherit; }
}
