/* Aseedcorn website. Plain CSS, no build step, no external resources. */

:root {
  color-scheme: light dark;
  --bg: #fbf9f4;
  --surface: #ffffff;
  --ink: #1c1a15;
  --muted: #5f5a4e;
  --line: #e4dfd3;
  --accent: #1f5f3f;
  --accent-soft: #e6f0e8;
  --gold: #c98a1a;
  --todo-bg: #fff1c2;
  --todo-ink: #5a3d00;
  --todo-line: #c98a1a;
  --shadow: 0 1px 2px rgba(28, 26, 21, 0.06), 0 8px 24px rgba(28, 26, 21, 0.06);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Songti SC", "Noto Serif CJK SC", serif;
  --zh: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
    system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151410;
    --surface: #1f1d18;
    --ink: #eeeae0;
    --muted: #aaa494;
    --line: #37342c;
    --accent: #8fd0a4;
    --accent-soft: #1e2b22;
    --gold: #e2b04e;
    --todo-bg: #3d2f08;
    --todo-ink: #ffe29a;
    --todo-line: #e2b04e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

:lang(zh-Hans) {
  font-family: var(--zh);
  line-height: 1.8;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

:lang(zh-Hans) h1,
:lang(zh-Hans) h2,
:lang(zh-Hans) h3,
h1:lang(zh-Hans),
h2:lang(zh-Hans),
h3:lang(zh-Hans) {
  font-family: var(--zh);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

h1 {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
}

h3 {
  font-size: 1.15rem;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.3em;
}

li + li {
  margin-top: 0.35em;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--surface);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  z-index: 10;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.wrap {
  width: 100%;
  max-width: 66rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow {
  max-width: 46rem;
}

/* Header */

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

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand svg {
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
}

.seed-body {
  fill: var(--gold);
}

.seed-line {
  fill: none;
  stroke: var(--bg);
  stroke-width: 2;
  stroke-linecap: round;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.nav li + li {
  margin-top: 0;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0;
  display: inline-block;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* Sections */

.hero {
  padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.hero h1 {
  max-width: 18ch;
}

.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--muted);
  max-width: 40rem;
}

.section {
  padding: clamp(2.25rem, 6vw, 4rem) 0;
  border-top: 1px solid var(--line);
}

.section > .wrap > h2 {
  margin-bottom: 1.25rem;
}

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

.small {
  font-size: 0.92rem;
}

/* Product card (home) */

.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  box-shadow: var(--shadow);
}

.product-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 22.5%;
  border: 1px solid var(--line);
  flex: none;
}

.app-icon.large {
  width: 7rem;
  height: 7rem;
}

.product-head h3 {
  font-size: 1.55rem;
  margin: 0 0 0.15rem;
}

.app-name-en {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--muted);
  font-size: 0.75em;
  margin-left: 0.35em;
  white-space: nowrap;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-weight: 600;
}

.links li + li {
  margin-top: 0;
}

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

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

/* Grids */

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

.grid h3 {
  margin-bottom: 0.35rem;
}

.grid p {
  color: var(--muted);
  margin: 0;
}

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

.bilingual h3 {
  margin-top: 1.9rem;
}

.bilingual > section > :last-child {
  margin-bottom: 0;
}

@media (min-width: 46rem) {
  .product {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2.5rem;
  }

  .product-head,
  .product-foot {
    grid-column: 1 / -1;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
  }

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

/* App page */

.app-hero {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(2rem, 5vw, 3rem);
}

.app-hero-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.app-hero h1 {
  margin: 0 0 0.3rem;
  font-size: clamp(2rem, 6vw, 3rem);
}

.tagline {
  margin: 0;
  font-size: 1.1rem;
}

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

.langbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

.langbar a {
  font-weight: 600;
}

.shots {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0 1rem;
  margin: 0;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.shots figure {
  flex: 0 0 62%;
  max-width: 17rem;
  margin: 0;
  scroll-snap-align: start;
}

.shots img {
  width: 100%;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.shots figcaption {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.6rem;
  line-height: 1.45;
}

@media (min-width: 46rem) {
  .shots {
    overflow: visible;
    gap: 1.75rem;
  }

  .shots figure {
    flex: 1 1 0;
    max-width: 16rem;
  }
}

.note {
  border-left: 3px solid var(--gold);
  background: var(--surface);
  padding: 0.9rem 1.1rem;
  border-radius: 0 0.6rem 0.6rem 0;
  font-size: 0.95rem;
}

.note > :last-child {
  margin-bottom: 0;
}

/* Long-form pages (privacy, support) */

.page-head {
  padding: clamp(2.25rem, 6vw, 3.5rem) 0 1.5rem;
}

.page-head h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.doc {
  padding: 1.5rem 0 clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 1rem;
}

.doc h2 {
  margin-bottom: 0.4rem;
}

.doc h3 {
  margin-top: 1.9rem;
  margin-bottom: 0.4rem;
}

.doc .meta {
  margin-bottom: 1.25rem;
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0 1.5rem;
  box-shadow: var(--shadow);
}

.contact-box p {
  margin: 0;
}

.contact-box .email {
  font-size: 1.25rem;
  font-weight: 600;
}

/* Values that must be replaced before the site goes live. Search for data-todo. */

.todo {
  background: var(--todo-bg);
  color: var(--todo-ink);
  outline: 1px dashed var(--todo-line);
  border-radius: 0.2rem;
  padding: 0 0.25em;
  font-style: normal;
}

/* Footer */

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

.site-footer p {
  margin: 0 0 0.6rem;
  max-width: 52rem;
}

.site-footer .nav {
  margin-bottom: 1.1rem;
  font-size: 0.9rem;
}
