/* Stylesheet of the Tuvilio pages: one readable column, light and dark colour schemes. */

:root {
  --bg: #fbfaf7;
  --fg: #1f2328;
  --muted: #5d6470;
  --line: #e2ded6;
  --accent: #b4532a;
  --notice-bg: #fff4dc;
  --notice-fg: #6b4b00;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171b;
    --fg: #e7e4de;
    --muted: #a2a7b0;
    --line: #2d3138;
    --accent: #f0a074;
    --notice-bg: #2f2716;
    --notice-fg: #f2d38a;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main,
.site-header,
.site-footer {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1rem;
}

a {
  color: var(--accent);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--fg);
  font-size: 1.375rem;
  font-weight: 700;
  text-decoration: none;
}

.tagline,
.breadcrumb,
.number,
.asin {
  color: var(--muted);
  font-size: 0.9375rem;
}

.breadcrumb {
  margin-top: 1.5rem;
}

h1 {
  font-size: 1.875rem;
  line-height: 1.25;
  margin: 1.25rem 0 1rem;
}

h2 {
  font-size: 1.1875rem;
  line-height: 1.35;
  margin: 0 0 0.25rem;
}

.intro {
  font-size: 1.125rem;
}

.notice {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: var(--notice-bg);
  color: var(--notice-fg);
}

.categories,
.products {
  list-style: none;
  margin: 1.5rem 0 2.5rem;
  padding: 0;
}

.categories li,
.products li {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.categories a {
  font-size: 1.1875rem;
  font-weight: 600;
}

.categories p,
.products p {
  margin: 0.25rem 0;
}

.amazon {
  font-weight: 600;
}

.asin {
  margin-left: 0.75rem;
}

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

.address-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 1rem 0;
}

.address-form label {
  width: 100%;
  font-weight: 600;
}

.address-form input {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}

.address-form button {
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
