/* Shmglna website: the same colours as the app (mobile/src/theme.ts). */

:root {
  --bg: #fbf6f1;
  --card: #ffffff;
  --sand: #f6f1ea;
  --line: #ede3d8;
  --heading: #17130f;
  --ink: #17130f;
  --ink-soft: #4a4540;
  --muted: #6b635b;
  /* Dark panels: the header, the footer and the privacy band. */
  --plum: #2a1620;
  --plum-soft: #4a2a3a;
  --cream: #fbf6f1;
  /* The accent keeps its old name, terracotta, so every page picks up plum. */
  --terracotta: #7a2e52;
  --terracotta-ink: #7a2e52;
  --accent-hover: #5e2340;
  --accent-soft: #e7b3cb;
  --accent-tint: #f5e8ee;
  --rose: #d98ba9;
  --gold: #e8a93c;
  --gold-tint: #fff6e6;
  --teal: #2e6e73;
  --leaf: #3f8a4a;
  --danger: #c0392b;
  --good-tint: #e6f3ef;
  --warm-tint: #fbf1f5;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 8px 24px rgba(28, 25, 23, 0.06);

  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Plus Jakarta Sans", "Noto Sans Ethiopic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ethiopic: "Noto Sans Ethiopic", "Plus Jakarta Sans", system-ui, sans-serif;
  --ethiopic-serif: "Noto Serif Ethiopic", "Noto Sans Ethiopic", serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 28px;
  --wrap: 1200px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17130f;
    --card: #221c1f;
    --sand: #1e1819;
    --line: #3a2f33;
    --heading: #f5f2ee;
    --ink: #f5f2ee;
    --ink-soft: #d9cfd3;
    --muted: #a39b94;
    --terracotta: #9c4670;
    --terracotta-ink: #e7b3cb;
    --accent-hover: #b35a86;
    --accent-tint: #33202a;
    --gold-tint: #3a2e18;
    --good-tint: #173430;
    --warm-tint: #33202a;
    --danger: #f07a6b;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17130f;
  --card: #221c1f;
  --sand: #1e1819;
  --line: #3a2f33;
  --heading: #f5f2ee;
  --ink: #f5f2ee;
  --ink-soft: #d9cfd3;
  --muted: #a39b94;
  --terracotta: #9c4670;
  --terracotta-ink: #e7b3cb;
  --accent-hover: #b35a86;
  --accent-tint: #33202a;
  --gold-tint: #3a2e18;
  --good-tint: #173430;
  --warm-tint: #33202a;
  --danger: #f07a6b;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--terracotta-ink);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--heading);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}
h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
}
/* Small headings read better in the sans. */
h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1em;
}
.ge {
  font-family: var(--ethiopic);
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}
.narrow {
  max-width: 680px;
}
.muted {
  color: var(--muted);
}
.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34em;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--card);
  padding: 8px 14px;
}

/* ───────── buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font: 700 1rem/1 var(--sans);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--terracotta);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-quiet {
  border-color: var(--line);
  color: var(--heading);
  background: transparent;
}
.btn-quiet:hover {
  border-color: var(--heading);
}
.btn-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.92rem;
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ───────── header: deep plum on every page, so the logo stands out ───────── */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #2a1620;
  color: #fbf6f1;
}
.top.scrolled {
  box-shadow: 0 6px 20px rgba(42, 22, 32, 0.25);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}
/* The plain brand (the moderators' page): dark text on a light bar. */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--heading);
  margin-right: auto;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.brand b {
  font-family: var(--ethiopic-serif);
  font-size: 1.3rem;
  color: var(--terracotta-ink);
  font-weight: 700;
}
.brand span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
}
/* The public pages: the rings logo and the spaced wordmark on deep plum. */
.top .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fbf6f1;
  margin-right: auto;
}
.top .brand img {
  width: 66px;
  height: auto;
  border-radius: 0;
}
.top .brand-words {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.top .brand .brand-latin {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.32em;
}
.top .brand b {
  font-family: var(--ethiopic-serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: #e7b3cb;
  margin-top: 5px;
  letter-spacing: 0.08em;
}
.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  color: #f5e8ee;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.top .btn-primary {
  background: #e7b3cb;
  color: #2a1620;
}
.top .btn-primary:hover {
  background: #f5e8ee;
}
@media (max-width: 860px) {
  .nav {
    display: none;
  }
}
@media (max-width: 420px) {
  .top .brand img {
    width: 52px;
  }
  .top .brand .brand-latin {
    font-size: 1.05rem;
    letter-spacing: 0.24em;
  }
}

/* ───────── divider: a hairline with a gold diamond, as in the app ───────── */
.tibeb {
  height: 1px;
  background: var(--line);
  position: relative;
}
.tibeb::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: translateX(-50%) rotate(45deg);
}
.diamonds {
  display: flex;
  gap: 14px;
  margin: 18px 0 26px;
}
.diamonds i {
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  background: var(--rose);
}
.diamonds i:nth-child(even) {
  background: var(--gold);
}
.center .diamonds {
  justify-content: center;
}

/* ───────── sections ───────── */
section {
  padding: 88px 0;
}
.center {
  text-align: center;
}
.center .lead {
  margin-left: auto;
  margin-right: auto;
}

/* ───────── footer ───────── */
.foot {
  background: var(--plum);
  color: #d9c9d0;
}
.foot .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 48px;
}
.foot h3 {
  color: var(--cream);
  font-size: 1.05rem;
  font-family: var(--sans);
  margin-bottom: 10px;
}
.foot a {
  color: #fbf5ec;
  text-decoration: none;
  display: block;
  padding: 3px 0;
}
.foot a:hover {
  text-decoration: underline;
}
.foot .word {
  font-family: var(--ethiopic-serif);
  font-size: 2rem;
  font-weight: 700;
  color: #e7b3cb;
  line-height: 1.1;
}
.foot small {
  display: block;
  padding: 18px 20px 28px;
  max-width: var(--wrap);
  margin: 0 auto;
  color: #c9aeb9;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 720px) {
  .foot .wrap {
    grid-template-columns: 1fr;
  }
}

/* ───────── simple pages (privacy, terms, support…) ───────── */
.page {
  padding: 56px 0 72px;
}
.page h1 {
  margin-bottom: 0.3em;
}
.page h2 {
  font-size: 1.5rem;
  margin-top: 1.8em;
}
.page li {
  margin-bottom: 0.4em;
}
.draft {
  background: var(--gold-tint);
  border: 1px solid var(--gold);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin: 18px 0 28px;
  color: var(--ink);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.lines {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.lines li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 18px;
}
.lines li > span {
  flex: 1 1 260px;
}
.lines li {
  align-items: center;
}
.lines strong {
  color: var(--heading);
}
.lines .num {
  font-weight: 800;
  color: var(--terracotta-ink);
  white-space: nowrap;
  text-decoration: none;
}
.lines .urgent {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
}
.lines .urgent strong,
.lines .urgent .num {
  color: #fff;
}

/* ───────── store buttons ───────── */
.stores,
.stores-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}
.store {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 200px;
  padding: 10px 22px 12px;
  border-radius: 16px;
  background: #17130f;
  color: #ffffff;
  text-decoration: none;
  font: 700 1.3rem/1.15 var(--sans);
}
.store span {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.85;
}
.store small {
  font-size: 0.78rem;
  color: var(--gold);
}
.store small:empty {
  display: none;
}
.store.soon {
  opacity: 0.7;
  cursor: default;
}

.stores-row {
  justify-content: flex-start;
  margin: 8px 0 32px;
}
