/* Professional Privacy Almanac
   Calm nonprofit research site. No third-party assets or dependencies. */

:root {
  --paper: #fbf7ef;
  --paper-2: #f3eadc;
  --ink: #24322f;
  --muted: #65736f;
  --line: #d7cbbb;
  --leaf: #3f6f5d;
  --leaf-dark: #234c41;
  --clay: #b9674f;
  --ochre: #d9a441;
  --blue: #476f8f;
  --plum: #7c5675;
  --white: #fffdf8;
  --risk-low: #3f795e;
  --risk-med: #b87930;
  --risk-high: #b95245;
  --shadow: 0 18px 50px rgba(38, 48, 43, 0.11);
  --max: 1120px;
  --radius: 8px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(217, 164, 65, 0.09), transparent 340px),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(36, 50, 47, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 50, 47, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

a {
  color: var(--leaf-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--clay); }

img, svg { max-width: 100%; }

button, input, select, textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 239, 0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, var(--white) 0 18%, transparent 19%),
    conic-gradient(from 25deg, var(--leaf), var(--ochre), var(--clay), var(--blue), var(--leaf));
  border: 1px solid rgba(36, 50, 47, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.91rem;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--leaf-dark);
  background: rgba(63, 111, 93, 0.12);
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 22px 70px;
}

.narrow { max-width: 860px; }

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 34px;
  align-items: center;
  padding: 42px 0 28px;
}

.hero-copy { max-width: 760px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 {
  letter-spacing: 0;
  line-height: 1.12;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6.9rem);
  font-weight: 500;
  color: var(--leaf-dark);
}

.page-title {
  margin-bottom: 16px;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
}

h2 {
  margin: 52px 0 16px;
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
  font-family: var(--serif);
  font-weight: 500;
  color: var(--leaf-dark);
}

h3 {
  margin: 24px 0 10px;
  font-size: 1.16rem;
  color: var(--ink);
}

.lede {
  margin: 20px 0 0;
  max-width: 760px;
  color: #3f4d49;
  font-size: clamp(1.12rem, 2vw, 1.38rem);
  line-height: 1.55;
}

.hero-actions,
.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button,
button {
  border: 1px solid var(--leaf-dark);
  border-radius: 999px;
  background: var(--leaf-dark);
  color: var(--white);
  padding: 10px 18px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.button.secondary,
button.secondary {
  background: transparent;
  color: var(--leaf-dark);
}

.button:hover,
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(35, 76, 65, 0.16);
}

.field-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.field-panel .panel-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.specimen-map {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.specimen-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 14px;
  align-items: center;
}

.specimen-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.specimen-line {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--leaf), var(--ochre), var(--clay));
}

.specimen-line.blue { background: linear-gradient(90deg, var(--blue), var(--leaf)); width: 78%; }
.specimen-line.plum { background: linear-gradient(90deg, var(--plum), var(--clay)); width: 64%; }
.specimen-line.short { width: 48%; }

.section-note,
.callout {
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  border-left: 5px solid var(--ochre);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0;
}

.callout.warning { border-left-color: var(--risk-high); }
.callout.good { border-left-color: var(--risk-low); }
.callout.blue { border-left-color: var(--blue); }

.deck {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0;
}

.card,
.document-card,
.platform-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(38, 48, 43, 0.07);
}

.platform-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.platform-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.platform-card p { margin: 0; color: var(--muted); }

.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(71, 111, 143, 0.12);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.badge.high { background: rgba(185, 82, 69, 0.12); color: var(--risk-high); }
.badge.med { background: rgba(184, 121, 48, 0.14); color: var(--risk-med); }
.badge.low { background: rgba(63, 121, 94, 0.14); color: var(--risk-low); }

.metric {
  display: grid;
  gap: 7px;
}

.meter {
  height: 9px;
  background: #e6ded2;
  border-radius: 999px;
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--clay);
}

.meter.low span { background: var(--risk-low); }
.meter.med span { background: var(--risk-med); }
.meter.high span { background: var(--risk-high); }

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 105px;
  top: 7px;
  bottom: 7px;
  width: 2px;
  background: var(--line);
}

.time-row {
  position: relative;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 44px;
}

.time-row::before {
  content: "";
  position: absolute;
  left: 99px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--clay);
}

.time-date {
  color: var(--clay);
  font-weight: 850;
}

.time-text {
  background: rgba(255, 253, 248, 0.74);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.matrix-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th, td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f2eadc;
  color: var(--leaf-dark);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

tr:last-child td { border-bottom: 0; }

.risk-low { color: var(--risk-low); font-weight: 750; }
.risk-med { color: var(--risk-med); font-weight: 750; }
.risk-high { color: var(--risk-high); font-weight: 750; }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.fact-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 10px;
}

.fact-list li {
  background: rgba(255, 253, 248, 0.68);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.split-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
}

.split-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.document-label {
  margin: 0 0 8px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  border-left: 4px solid var(--leaf);
  color: var(--leaf-dark);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.45;
}

form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

label {
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbbdab;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  padding: 12px 13px;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
}

.check-row input {
  width: auto;
  margin-top: 6px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-msg {
  min-height: 24px;
  color: var(--leaf-dark);
  font-weight: 750;
}

.newsletter {
  margin: 52px 0 0;
  background:
    linear-gradient(135deg, rgba(63, 111, 93, 0.12), rgba(217, 164, 65, 0.15)),
    var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 22px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer a {
  margin-right: 14px;
  color: var(--muted);
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  width: min(440px, calc(100vw - 36px));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: none;
}

.cookie-banner.show { display: block; }

.cookie-banner h2 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 850;
}

.cookie-banner p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.cookie-actions button {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.fine-print {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .hero,
  .two-col,
  .deck {
    grid-template-columns: 1fr;
  }

  .hero { min-height: auto; }

  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links { justify-content: flex-start; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }

  .page { padding-top: 28px; }

  .brand { white-space: normal; }

  .nav-links a {
    padding: 6px 8px;
    font-size: 0.86rem;
  }

  .form-grid,
  .split-list,
  .time-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline::before,
  .time-row::before {
    display: none;
  }

  .specimen-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .site-footer {
    display: block;
  }
}
