/* tiptv.org: system fonts and nothing loaded from other servers, so the privacy policy stays short. */

:root {
  color-scheme: light dark;
  --bg: #f5f5f2;
  --surface: #ffffff;
  --text: #1c1c1e;
  --secondary: #5c5c61;
  --border: #e3e3de;
  --accent: #506b3d;
  --measure: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0d;
    --surface: #1a1a1a;
    --text: #f2f2f2;
    --secondary: #a1a1a6;
    --border: #2c2c2e;
    --accent: #abc297;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Header with the wordmark on the legal pages */

.site-header {
  width: 100%;
  max-width: calc(var(--measure) + 2rem);
  margin: 0 auto;
  padding: 1.5rem 1rem 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* English · Deutsch. Plain links, so every language has its own URL and nothing needs JavaScript. */
.lang {
  display: flex;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.lang a {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  color: var(--secondary);
  text-decoration: none;
}

.lang a:hover {
  color: var(--text);
}

.lang a[aria-current="page"] {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

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

.brand img {
  width: 32px;
  height: 32px;
}

main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--measure) + 2rem);
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

/* Legal pages */

h1 {
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
}

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

h3 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.25rem;
}

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

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

address {
  font-style: normal;
}

.updated,
.note {
  color: var(--secondary);
  font-size: 0.94rem;
}

.lede {
  font-size: 1.1rem;
  color: var(--secondary);
}

/* Home */

.home main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* The icon artwork has its own rounded shape and transparent corners. */
.home-icon {
  width: 128px;
  height: 128px;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.22));
  margin-bottom: 1.75rem;
}

.home h1 {
  font-size: clamp(2.5rem, 9vw, 3.5rem);
}

.home .lede {
  max-width: 28rem;
  margin: 0.5rem auto 1.5rem;
}

.badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--secondary);
  font-size: 0.94rem;
}

.support {
  margin-top: 2.5rem;
  color: var(--secondary);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 1rem 2rem;
  text-align: center;
  color: var(--secondary);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
  margin-bottom: 0.5rem;
}

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

/* Pointer from the website's legal pages to the app's own documents */

.app-note {
  margin-top: 3rem;
  padding: 1.25rem 1.25rem 0.25rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.app-note h2 {
  margin-top: 0;
  font-size: 1.1rem;
}
