/* Dominada — the site. Hand-written, no build step: it should still be
   editable in five years by opening it. Colours follow the app's icon. */

:root {
  --felt: #104e30;
  --felt-deep: #0b3a24;
  --wood: #be8442;
  --ivory: #f7f3e8;
  --ink: #16261d;
  --muted: #5c6b62;
  --rule: #d9d3c4;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--ivory);
}

.hero {
  background: var(--felt);
  color: var(--ivory);
  text-align: center;
  padding: 56px 20px 48px;
  border-bottom: 6px solid var(--wood);
}

.hero-icon {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  display: block;
  margin: 0 auto 18px;
}

.hero h1 {
  margin: 0;
  font-size: 2.6rem;
  letter-spacing: 0.01em;
}

.tagline {
  margin: 10px auto 0;
  max-width: 34ch;
  font-size: 1.15rem;
  color: #cfe3d7;
}

.lang { margin: 22px 0 0; }
.lang a { color: var(--ivory); }

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 8px 20px 48px;
}

section { padding: 28px 0; border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: 0; }

h2 {
  font-size: 1.5rem;
  margin: 0 0 14px;
  color: var(--felt-deep);
}

h3 {
  font-size: 1.1rem;
  margin: 26px 0 6px;
}

p { margin: 0 0 14px; }

ul { margin: 0 0 14px; padding-left: 1.2em; }
li { margin-bottom: 6px; }

a { color: #0e6b3f; }

figure {
  margin: 18px 0 24px;
  text-align: center;
}

figure img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--rule);
  background: #fff;
}

figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* The org landing page. Deliberately plainer than a product page: its job is
   to point somewhere, not to sell. */
.landing .hero { padding: 72px 20px 60px; }
.landing .hero h1 { font-size: 3rem; }

.product {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: border-color 0.15s, transform 0.15s;
}

.product:hover,
.product:focus-visible {
  border-color: var(--wood);
  transform: translateY(-2px);
}

.product img { border-radius: 18px; flex: 0 0 auto; }
.product h3 { margin: 0 0 6px; font-size: 1.25rem; color: var(--felt-deep); }
.product p { margin: 0 0 8px; }
.product .meta { font-size: 0.9rem; color: var(--muted); margin: 0; }

footer {
  background: var(--felt-deep);
  color: #cfe3d7;
  text-align: center;
  padding: 26px 20px 34px;
}

footer a { color: var(--ivory); }
.small { font-size: 0.85rem; opacity: 0.8; margin: 6px 0 0; }

@media (prefers-color-scheme: dark) {
  :root { --ivory: #14231b; --ink: #e6ece8; --muted: #9fb0a6; --rule: #26382d; }
  body { background: var(--ivory); }
  figure img { background: #1b2c22; }
  .product { background: #1b2c22; }
  .product h3 { color: #bfe6cf; }
  a { color: #7fd3a4; }
  h2 { color: #bfe6cf; }
}
