/* Attrados Publisher — public site for app.attradosai.com.
   Editorial-Operator per DESIGN.md: warm carbon ground, brass accent, serif
   display, Geist body, hairlines, no shadows, no gradients. Three pages:
   index, privacy, terms. */

:root {
  --bg: #0F1012;
  --surface: #1A1C20;
  --surface-2: #242629;
  --border: #2A2C30;
  --text: #F5F3EE;
  --muted: #9A9590;
  --subtle: #5F5B57;
  --accent: #D4B483;
  --accent-dim: #A0845B;
  --accent-ink: #17130B;
  --radius: 4px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", "Helvetica Neue", sans-serif;
  --mono: "Geist Mono", "SFMono-Regular", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint film grain so surfaces don't read flat-digital */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: var(--accent-ink); }

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

/* ── Nav ── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  border-bottom: 0.5px solid var(--border);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand b { color: var(--accent); font-weight: 400; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;             /* tap target; visual size unchanged */
  font-size: 13px;
  color: var(--muted);
  transition: color 150ms ease-out;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta {
  min-height: 0;
  font-weight: 500;
  color: var(--accent-ink) !important;
  background: var(--accent);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background 150ms ease-out;
}
.nav-cta:hover { background: #E2C79A; }

/* ── Page ── */

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

.micro {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.prose-hero { padding: 160px 0 48px; }
.prose-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.015em;
  line-height: 1.02;
  text-wrap: balance;
}
.prose-hero h1 em { font-style: italic; color: var(--accent); }
.prose-hero .updated {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--subtle);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 18px;
}

.prose { max-width: 760px; padding-bottom: 128px; }
.prose h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  margin: 44px 0 12px;
  text-wrap: balance;
}
.prose p, .prose li { color: var(--muted); font-size: 16px; line-height: 1.65; }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { color: var(--accent); border-bottom: 0.5px solid var(--accent-dim); }
.prose a:hover { color: var(--text); }
.prose ol, .prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }

/* ── Footer ── */

footer .foot-legal {
  padding: 20px 32px;
  border-top: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--subtle);
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .nav { padding: 0 20px; }
  .nav-links { gap: 16px; }
  .wrap { padding: 0 20px; }
  footer .foot-legal { padding: 20px; }
}

/* small phones: brand on its own row, then the links; nothing hidden */
@media (max-width: 560px) {
  .nav { flex-wrap: wrap; height: auto; padding: 10px 20px 8px; row-gap: 2px; }
  .brand { font-size: 22px; flex-basis: 100%; }
  .nav-links { gap: 14px; }
  .nav-links a { min-height: 40px; }
  .nav-cta { padding: 6px 12px; }
}
