:root {
  --bg: #161A13;
  --surface: #1F2619;
  --surface-alt: #2B3324;
  --border: #343D2B;
  --text: #F3F4F1;
  --text-muted: #8E9179;
  --accent: #9E9C77;
  --on-accent: #161A13;
  --success: #5CA86B;
  --danger: #E07470;
  --warning: #C79A2E;
  --scrim: #161A13;
  --decor-oxblood: #614438;
  --decor-taupe: #574A41;
  --decor-olive: #435239;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #E3E0CF;
    --surface: #EFEDE3;
    --surface-alt: #D6D2BE;
    --border: #C4BFA6;
    --text: #161A13;
    --text-muted: #5B5E48;
    --accent: #5E5C3F;
    --on-accent: #F3F4F1;
    --success: #2F6A3B;
    --danger: #A43A34;
    --warning: #7A590C;
    --scrim: #161A13;
    --decor-oxblood: #614438;
    --decor-taupe: #574A41;
    --decor-olive: #435239;
  }
}

/*
 * The values above are src/theme/colors.ts, pinned by
 * __tests__/theme/webPalette.test.ts. Below this line, colour is var(--...) only.
 */

:root {
  color-scheme: dark light;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: var(--text);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

main {
  padding: 32px 0 48px;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 1.6em 0 0.5em;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

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

li {
  margin-bottom: 0.35em;
}

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

/* Header: the carp, filled with the text colour so it reads on both grounds. */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.brand span {
  font-weight: 600;
}

.carp {
  display: block;
  flex: none;
  width: 36px;
  aspect-ratio: 100 / 92;
  background: var(--text);
  -webkit-mask: url("/img/carp.png") center / contain no-repeat;
  mask: url("/img/carp.png") center / contain no-repeat;
}

/* Promo */

.hero {
  text-align: center;
  padding: 24px 0 8px;
}

.hero .carp {
  width: 96px;
  margin: 0 auto 16px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 34px;
}

.hero .tagline {
  color: var(--text-muted);
  font-size: 19px;
  margin: 0 0 24px;
}

.pill {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 600;
  cursor: default;
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 32px 0;
  padding: 0;
  list-style: none;
}

.shots li {
  margin: 0;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

@media (min-width: 640px) {
  .shots {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 20px 8px;
  margin: 0 0 16px;
}

.card h2 {
  margin-top: 16px;
}

.features li::marker {
  color: var(--accent);
}

/* Footer */

footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 32px;
  color: var(--text-muted);
  font-size: 15px;
}

footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

footer li {
  margin: 0;
}

/* konto/: the e-mail link landing */

[hidden] {
  display: none !important;
}

.account-form label {
  display: block;
  margin: 16px 0 6px;
  font-weight: 600;
}

.account-form input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.button {
  display: block;
  width: 100%;
  margin: 24px 0 16px;
  padding: 14px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.button:disabled {
  opacity: 0.6;
  cursor: default;
}

@media (min-width: 640px) {
  .account-form {
    max-width: 400px;
  }
}
