/* Estils compartits per totes les pàgines web de texty.social */

:root {
  --paper: oklch(0.985 0.008 85);
  --ink: oklch(0.22 0.010 75);
  --ink-soft: oklch(0.50 0.010 75);
  --ink-quiet: oklch(0.72 0.010 75);
  --line: oklch(0.92 0.008 85);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

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

a:hover { color: var(--ink-soft); }

/* Logo mono */
.logo-mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo-mono .bracket { color: var(--ink-quiet); }

/* Landing (home) */
.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.hero {
  width: min(100%, 680px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 44px;
}
.home .logo {
  font-size: clamp(40px, 9vw, 120px);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.1em;
}
.tagline {
  width: min(100%, 460px);
  margin: 22px 0 28px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(22px, 5vw, 34px);
  line-height: 1.15;
  color: var(--ink);
}
.store-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.store-button {
  min-width: 172px;
  min-height: 58px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 9px 18px 10px 15px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: var(--paper);
  background: var(--ink);
  text-decoration: none;
}
.store-button:hover {
  color: var(--paper);
  background: var(--ink-soft);
  border-color: var(--ink-soft);
}
.store-icon {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
}
.apple-icon {
  fill: currentColor;
}
.play-blue { fill: #5bb9f7; }
.play-green { fill: #62d981; }
.play-yellow { fill: #ffd05c; }
.play-red { fill: #ff6b6b; }
.store-kicker {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
}
.store-name {
  display: block;
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
}
.home .footer {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}
.home .footer a {
  color: var(--ink-soft);
  text-decoration: none;
  margin: 0 8px;
}
.home .footer a:hover { color: var(--ink); }

/* Legal pages (privacy, terms) */
.doc {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 28px 80px;
}
.doc-head {
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.doc-head .back {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  text-decoration: none;
  color: var(--ink-soft);
}
.doc-head .back:hover { color: var(--ink); }
.doc-head .lang {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-quiet);
}
.doc-head .lang a { color: var(--ink-soft); }

.doc h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 6px;
  color: var(--ink);
}
.doc .rev {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.doc h2 {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 500;
  font-size: 16px;
  margin: 30px 0 8px;
  color: var(--ink);
}
.doc p {
  margin: 0 0 4px;
  color: var(--ink);
}
.doc .foot-note {
  margin-top: 40px;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}
