/* ============================================================
   WriteTut — shared page shell
   ------------------------------------------------------------
   Design tokens, nav, footer, buttons, section + prose typography.
   Used by the standalone pages (about / articles / cookies).

   index.html still carries its own copy of these rules inline; it
   was left untouched deliberately so this file can't break the
   live landing page. If index.html is ever migrated onto this
   stylesheet, delete the duplicated blocks there — don't edit
   both. Values below are copied verbatim from index.html so the
   two stay visually identical.
   ============================================================ */

:root {
  --bg: #FAFAFA;
  --bg-subtle: #F4F4F5;
  --surface: #FFFFFF;
  --surface-2: #F9FAFB;

  --ink: #09090B;
  --ink-2: #18181B;
  --ink-soft: #3F3F46;
  --ink-muted: #71717A;
  --ink-faint: #A1A1AA;
  --rule: #E4E4E7;
  --rule-strong: #D4D4D8;

  --violet: #6D28D9;
  --violet-deep: #4C1D95;
  --violet-soft: #8B5CF6;
  --violet-pale: #EDE9FE;

  --magenta: #DB2777;
  --magenta-pale: #FCE7F3;

  --orange: #EA580C;
  --orange-pale: #FFEDD5;

  --grad: linear-gradient(135deg, #6D28D9 0%, #DB2777 55%, #EA580C 100%);
  --grad-soft: linear-gradient(135deg, #EDE9FE 0%, #FCE7F3 55%, #FFEDD5 100%);

  --success: #16A34A;
  --warn: #CA8A04;
  --error: #DC2626;

  --radius: 6px;
  --radius-lg: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.mono { font-family: 'Geist Mono', ui-monospace, monospace; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }

/* ---------- Nav ---------- */
.nav {
  border-bottom: 1px solid var(--rule);
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.04em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.wordmark .mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--grad);
  display: inline-block;
  position: relative;
}
.wordmark .mark::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 5px;
  width: 12px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  color: var(--ink-muted);
  text-decoration: none;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-subtle); }
.nav-cta {
  background: var(--ink);
  color: #FFF !important;
}
.nav-cta:hover { background: var(--ink-2) !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.12s ease;
  letter-spacing: -0.005em;
}
.btn-primary { background: var(--ink); color: #FFF; border-color: var(--ink); }
.btn-primary:hover { background: var(--ink-2); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--rule); }
.btn-secondary:hover { background: var(--bg-subtle); }
.btn-grad { background: var(--grad); color: #FFF; }
.btn-grad:hover { opacity: 0.92; }
.btn-large { padding: 14px 24px; font-size: 15px; }
.btn-arrow::after { content: " →"; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--violet);
  margin-bottom: 16px;
  font-weight: 500;
}
.section-title {
  font-size: clamp(34px, 4.5vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 760px;
}
.section-title .grad,
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-intro {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 640px;
  line-height: 1.55;
  margin-bottom: 56px;
}

/* ---------- Page header (standalone pages) ---------- */
.page-head { padding: 80px 0 48px; border-bottom: 1px solid var(--rule); }
.page-title {
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin-bottom: 18px;
}
.page-lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 660px;
  line-height: 1.55;
}
.page-meta {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 24px;
}

/* ---------- Long-form prose (legal pages, articles) ---------- */
.prose { padding: 64px 0 96px; }
.prose h2 {
  font-size: 26px;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 48px 0 14px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 18px;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 32px 0 10px;
}
.prose p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 16px;
}
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 8px;
}
.prose a { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--violet-deep); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 48px 0; }

/* Data table used by the cookie inventory */
.table-wrap { overflow-x: auto; margin: 0 0 24px; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}
.data-table th {
  text-align: left;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 16px 10px 0;
  border-bottom: 1px solid var(--rule-strong);
}
.data-table td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  line-height: 1.55;
  vertical-align: top;
}
.data-table td:first-child {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
}

/* Callout box for the "how to opt out" style notes */
.callout {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--violet);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Image slots (placeholder art) ---------- */
.img-slot {
  background: var(--grad-soft);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.img-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-slot-label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--violet-deep);
  text-align: center;
  padding: 16px;
  line-height: 1.6;
}
.img-slot-16x9 { aspect-ratio: 16 / 9; }
.img-slot-4x3  { aspect-ratio: 4 / 3; }
.img-slot-1x1  { aspect-ratio: 1 / 1; }

/* Placeholder text tint — makes lorem obviously provisional */
.is-placeholder { color: var(--ink-muted); }

/* ---------- Footer ---------- */
footer { padding: 60px 0 40px; background: var(--bg); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
}
.footer-brand .wordmark { margin-bottom: 16px; }
.footer-brand p {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
  max-width: 280px;
}
.footer-col-title {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--ink-muted);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { padding: 4px 0; }
.footer-col ul li a {
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
}
.footer-col ul li a:hover { color: var(--ink); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--ink-muted);
}

@media (max-width: 900px) {
  .container, .container-narrow { padding: 0 20px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 72px 0; }
  .page-head { padding: 56px 0 36px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* Site-wide offer announcement bar (OFFER-COPY) — mirrors index.html's inline copy. */
.offer-bar {
  display: block;
  background: var(--grad);
  color: #FFF;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 9px 16px;
  text-decoration: none;
}
.offer-bar:hover {
  filter: brightness(1.07);
}
.offer-bar .offer-bar-arrow {
  display: inline-block;
  margin-left: 6px;
}
