/* The public landing page at the bare domain. Same cottagecore tokens as
   the web app (frontend/resources/public/css/style.css), copied rather
   than shared since this page is deployed on its own with no build step. */

:root {
  --bg-deep:      #ffffff;
  --bg-card:      #f4efe8;
  --border:       #e3d9cb;
  --brand:        #3e6e8e;
  --brand-glow:   #2f5670;
  --on-brand:     #fff;
  --oak:          #8b5e3c;
  --text:         #3a2618;
  --text-muted:   #6e5440;
  --text-hint:    #8a7360;
  --font-body:    "Karla", "Segoe UI", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --wash: url("img/washes-light.svg");
  --vine: url("img/vine-light.svg");
  color-scheme: light;
}

/* Light unless the visitor picks dark with the header toggle (theme.js);
   the device's own setting is deliberately ignored. */
:root[data-theme="dark"] {
    --bg-deep:    #1c1a17;
    --bg-card:    #302c27;
    --border:     #443e37;
    --brand:      #7fa7c4;
    --brand-glow: #9abfd8;
    --on-brand:   #1c1a17;
    --oak:        #d1a072;
    --text:       #f1ebe2;
    --text-muted: #beb2a4;
    --text-hint:  #8f8477;
    --wash: url("img/washes-dark.svg");
    --vine: url("img/vine-dark.svg");
    color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  background-color: var(--bg-deep);
  background-image: var(--wash);
  background-repeat: repeat-y;
  background-position: top center;
  background-size: 390px 844px;
}

body {
  margin: 0 auto;
  max-width: 960px;
  padding: 0 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

a { color: var(--brand); }
a:hover { color: var(--brand-glow); }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

h1, h2 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--oak);
  font-weight: 600;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--oak);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-link {
  font-weight: 600;
  text-decoration: none;
}

/* Shown only once theme.js has run, since it does nothing without it. */
.theme-toggle {
  display: none;
  padding: 0.35rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

:root[data-js] .theme-toggle { display: inline-block; }
.theme-toggle:hover { border-color: var(--brand); }
.theme-toggle:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.hero {
  text-align: center;
  padding: 2rem 0 1.5rem;
  max-width: 40rem;
  margin: 0 auto;
}

.hero-mark { display: block; margin: 0 auto 1rem; }

.hero h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.lede {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin: 0 0 2rem;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.store {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 11rem;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-muted);
  line-height: 1.2;
  text-align: left;
}

.store-small { font-size: 0.75rem; }
.store-name { font-size: 1.15rem; font-weight: 700; color: var(--text); }

/* A store's official badge, once its listing is live: shown as-is, since
   the store's art sets its own colors. */
.store-badge { display: block; }
.store-badge img { display: block; height: 48px; width: auto; }

.button {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  text-decoration: none;
}

.button:hover { background: var(--brand-glow); color: var(--on-brand); }

.hint {
  color: var(--text-hint);
  font-size: 0.9rem;
  margin: 0.75rem 0 0;
}

.beta {
  font-size: 0.95rem;
  margin: 1rem 0 0;
}
.beta a { font-weight: 600; }

.launching {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--oak);
  margin: 0;
}

.vine {
  height: 16px;
  margin: 2rem 0;
  background-image: var(--vine);
  background-repeat: repeat-x;
  background-size: 300px 16px;
}

/* Four cards: two by two, or one column on a phone, so none is left
   alone on a row. */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 34rem) {
  .features {
    grid-template-columns: 1fr;
  }
}

.features article {
  padding: 1.25rem;
  border-radius: 16px;
  background: var(--bg-card);
}

.features h2 {
  font-size: 1.3rem;
  margin: 0.5rem 0;
}

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

.more {
  text-align: center;
  margin: 2rem 0;
  font-weight: 600;
}

footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  text-align: center;
  color: var(--text-hint);
  font-size: 0.9rem;
}

footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

footer p { margin: 0; }
footer .trademarks { margin-top: 0.5rem; font-size: 0.75rem; }


.about {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 0 1rem;
}

.about h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.about .lede { margin-bottom: 1rem; }

.about section {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border-radius: 16px;
  background: var(--bg-card);
}

.about h2 {
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
}

.about section p {
  margin: 0;
  color: var(--text-muted);
}

.about .cta {
  text-align: center;
  margin: 2rem 0;
}

/* The privacy policy (privacy.html, built by docs/legal/publish-privacy.sh). */
.legal .notice {
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: var(--bg-card);
}

.legal h2 { margin-top: 2rem; }

.legal table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.legal th,
.legal td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.languages {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.languages a[aria-current] {
  color: var(--text);
  text-decoration: none;
}

.wordmark, .top-link, .theme-toggle { white-space: nowrap; }

@media (max-width: 420px) {
  .wordmark { font-size: 1.2rem; gap: 0.35rem; }
  .wordmark img { width: 28px; height: 28px; }
  .top-actions { gap: 0.6rem; }
  .theme-toggle { padding: 0.3rem 0.6rem; font-size: 0.8rem; }
  .top-link { font-size: 0.95rem; }
}
