/* ringjoy.app: one stylesheet, no frameworks. Light and dark follow the system. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f6f3f4;
  --text: #1b1a1a;
  --muted: #545052;
  --border: #e3dde0;
  --accent: #8a2f55;
  --accent-text: #ffffff;
  --focus: #1f5fd1;
  --max: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141213;
    --surface: #1f1c1e;
    --text: #f3eff1;
    --muted: #bdb5b9;
    --border: #36302f;
    --accent: #f2a7c6;
    --accent-text: #2a0f1c;
    --focus: #8fb5ff;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 1;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}

.brand svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
}

nav ul {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0;
}

nav a:hover,
nav a[aria-current="page"] {
  text-decoration: underline;
}

main {
  flex: 1;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 2rem 0 0.5rem;
}

p,
ul {
  margin: 0 0 1rem;
}

.hero {
  padding-top: 2.5rem;
}

.lede {
  font-size: 1.25rem;
  color: var(--text);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.75rem;
  border: 2px dashed var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

.callout {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

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

button {
  font: inherit;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
}

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

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer ul {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
