/* Lyteral — minimal static site */
:root {
  --bg: #0a0a0b;
  --surface: #141416;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --border: #27272a;
  --accent: #e87969;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Instrument Sans", var(--font);
  --max: 42rem;
  --content: 52rem;
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  font-weight: 400;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Layout */
.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-size: 1.125rem;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--text);
  opacity: 0.9;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, #c45c4e 100%);
  flex-shrink: 0;
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

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

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

/* Home */
.hero {
  margin-bottom: 3rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 1rem;
  max-width: var(--max);
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0;
  max-width: var(--max);
}

section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

section h2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

section p,
.legal p,
.legal ul {
  color: var(--muted);
  margin: 0 0 0.75rem;
  max-width: var(--max);
}

.legal li {
  margin-bottom: 0.35rem;
}

.legal p:last-child,
.legal ul:last-child {
  margin-bottom: 0;
}

ul.plain {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.plain li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
}

ul.plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.8;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  max-width: var(--max);
  margin-top: 0.5rem;
}

.contact-box p {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-box a {
  font-weight: 500;
  word-break: break-all;
}

.meta-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
  opacity: 0.85;
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

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

/* Legal pages */
.legal-page main {
  max-width: 40rem;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.last-updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.legal h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
}

.legal a {
  word-break: break-word;
}

.back {
  display: inline-block;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* SMS / carrier compliance (e.g. Twilio opt-in workflow) */
.sms-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0 1.5rem;
  max-width: var(--max);
}

.sms-box p {
  margin: 0 0 0.6rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
}

.sms-box p:last-child {
  margin-bottom: 0;
}

.sms-box strong {
  color: var(--text);
  font-weight: 600;
}

.sms-commands {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.sms-commands li {
  margin-bottom: 0.35rem;
  padding-left: 0;
}

.sms-commands kbd,
.sms-box kbd {
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.45em;
  color: var(--text);
}

.sms-fine {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1rem;
  line-height: 1.5;
}

.sms-url-line {
  margin-top: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
