/* DDEF Studios site — shared styles.
   Static, no build step (site/README.md): what is committed is what is served. */

:root {
  --paper: #faf9f7;
  --paper-tint: #f3f0e9;
  --ink: #1a1917;
  --body: #3c3a35;
  --muted: #6b6862;
  --rule: #e4e0d8;
  --rule-strong: #ddd9d1;
  --accent: #2f5b91;
  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --sans: Helvetica, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1120px; margin: 0 auto; }

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--ink);
}
.site-nav {
  display: flex;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* ---------- shared type ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.eyebrow--accent { color: var(--accent); }

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.01;
  letter-spacing: -0.025em;
  margin: 0;
}
h1 em { font-style: italic; color: var(--accent); }

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 38px);
  line-height: 1.05;
  margin: 0;
}

h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.15;
  margin: 0;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.7vw, 25px);
  line-height: 1.45;
  color: var(--body);
  margin: 18px 0 0;
  max-width: 44ch;
  text-wrap: pretty;
}
.note {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 10px 0 0;
}
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 8px;
}

/* ---------- buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn,
.btn-ghost {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 22px;
  text-align: center;
  min-height: 48px;
}
.btn { background: var(--ink); color: var(--paper); }
.btn:hover { background: var(--accent); color: var(--paper); }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: #eae6de; color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  background: var(--paper-tint);
  border-bottom: 1px solid var(--rule);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 40px 24px 56px;
}
.hero--title .wrap {
  grid-template-columns: 1fr 300px;
  align-items: start;
}

/* the "today's fold" card — no device bezel, it is already on a device */
.fold-card {
  background: var(--paper);
  border: 1px solid #e2ded5;
  overflow: hidden;
  position: relative;
  max-width: 320px;
  margin: 0 auto;
  width: 100%;
}
.fold-card__sweep {
  position: absolute;
  inset: 0 0 auto 0;
  height: 26%;
  background: linear-gradient(180deg, rgba(47, 91, 145, 0.12), rgba(47, 91, 145, 0));
  animation: sweep 7s linear infinite;
  pointer-events: none;
}
.fold-card__head { padding: 22px 20px 12px; }
.fold-card__date {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.fold-card__title {
  font-family: var(--serif);
  font-size: 26px;
  margin-top: 2px;
}
.fold-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  padding: 4px 20px 0;
}
.fold-grid i {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: #eeeae2;
  border: 1px solid #e2ded5;
  animation: pulse 3.6s ease-in-out infinite;
}
.fold-grid i:nth-child(even) { background: #e6ecf4; border-color: #d7e0ec; }
.fold-grid i:nth-child(2) { animation-delay: 0.25s; }
.fold-grid i:nth-child(3) { animation-delay: 0.5s; }
.fold-grid i:nth-child(4) { animation-delay: 0.75s; }
.fold-grid i:nth-child(5) { animation-delay: 1s; }
.fold-grid i:nth-child(6) { animation-delay: 1.25s; }
.fold-grid i:nth-child(7) { animation-delay: 1.5s; }
.fold-grid i:nth-child(8) { animation-delay: 1.75s; }
.fold-grid i:nth-child(9) { animation-delay: 2s; }
.fold-card__foot {
  margin-top: 16px;
  padding: 14px 20px 18px;
  border-top: 1px solid #eeeae2;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.fold-card__foot b { color: var(--accent); font-weight: 400; }

@keyframes pulse {
  0%, 100% { opacity: 0.28; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}
@keyframes sweep {
  from { transform: translateY(-100%); }
  to { transform: translateY(320%); }
}
@media (prefers-reduced-motion: reduce) {
  .fold-grid i, .fold-card__sweep { animation: none; }
  .fold-grid i { opacity: 1; }
}

/* ---------- placeholders (replace with real art) ---------- */

.ph {
  border: 1px solid var(--rule);
  background: repeating-linear-gradient(135deg, #efece5 0 7px, #e5e1d8 7px 14px);
  display: flex;
  align-items: flex-end;
  padding: 10px;
}
.ph span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  background: var(--paper);
  padding: 3px 5px;
}
.ph--icon { aspect-ratio: 1 / 1; border-radius: 20px; border-color: var(--rule-strong); }
.ph--screen { aspect-ratio: 9 / 19.5; }
.ph--wide { aspect-ratio: 9 / 16; }

/* ---------- generic blocks ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 36px 24px 40px;
}

.cols {
  display: grid;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cols--3 { grid-template-columns: repeat(3, 1fr); }
.cols--2 { grid-template-columns: 1fr 1fr; }
.cols--4 { grid-template-columns: repeat(4, 1fr); }
.cols > * {
  padding: 34px 28px;
  border-right: 1px solid var(--rule);
}
.cols > *:last-child { border-right: 0; }
.step-no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.cards > div { border: 1px solid var(--rule); padding: 18px 16px 20px; }
.cards h3 { font-size: 24px; }

.list > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.list h3 { font-size: 24px; }
.list .note { margin-top: 4px; }
.list-more {
  padding-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.steps > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.steps > div:last-child { border-bottom: 0; }
.steps span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  padding-top: 6px;
}

.facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
}
.facts dt,
.facts .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts .v { font-family: var(--serif); font-size: 17px; color: var(--ink); }

.callout {
  padding: 20px;
  background: var(--paper-tint);
  border: 1px solid var(--rule);
}
.callout > p:not(.eyebrow) { font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--body); margin: 0 0 14px; }
.callout > p:last-child { margin-bottom: 0; }
.callout .btn { display: block; }

.split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  padding: 44px 24px 48px;
}

/* ---------- policy / long-form (privacy pages, built by build.py) ---------- */

.policy {
  max-width: 46rem;
  margin: 0 auto;
  padding: 52px 24px 76px;
}
.policy .backlink {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 30px;
}
.policy h1 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 6px; }
.policy h2 { font-size: clamp(24px, 3vw, 31px); margin: 42px 0 10px; }
.policy h3 { font-size: clamp(19px, 2.2vw, 23px); margin: 30px 0 8px; }
.policy p,
.policy li {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
}
.policy p { margin: 14px 0; }
.policy ul { padding-left: 1.3rem; margin: 12px 0; }
.policy li { margin: 6px 0; }
.policy strong { color: var(--ink); }
.policy hr { border: 0; border-top: 1px solid var(--rule); margin: 40px 0; }
.policy blockquote {
  border-left: 3px solid var(--rule-strong);
  margin: 18px 0;
  padding: 2px 0 2px 18px;
  color: var(--muted);
}
.policy code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--paper-tint);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
/* the source pages' subtitle + date lines */
.policy .muted,
.policy .updated {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 4px 0 0;
}
.draft-banner {
  background: #b3261e;
  color: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 26px;
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.5;
}

/* ---------- footer ---------- */

.site-foot { border-top: 1px solid var(--rule); }
.site-foot .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  padding: 26px 24px 34px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--accent); }

/* ---------- mobile ---------- */

@media (max-width: 900px) {
  .site-head .wrap { padding: 14px 20px; }
  .site-nav { gap: 14px; font-size: 10px; }
  .site-nav a:nth-child(n + 3) { display: none; }

  .hero .wrap,
  .hero--title .wrap {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 26px 20px 32px;
  }
  .hero--title .ph--icon {
    width: 64px;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    padding: 0;
    order: -1;
  }
  .hero--title .ph--icon span { display: none; }
  .actions { flex-direction: column; }
  .actions .btn, .actions .btn-ghost { display: block; width: 100%; }

  .fold-grid i:nth-child(n + 7) { display: none; }

  .shots {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 150px;
    gap: 10px;
    padding: 20px;
    overflow-x: auto;
  }

  .cols--3, .cols--2, .cols--4 { grid-template-columns: 1fr; }
  .cols > * { border-right: 0; border-bottom: 1px solid var(--rule); padding: 24px 20px; }
  .cols > *:last-child { border-bottom: 0; }

  .cards { grid-template-columns: 1fr; gap: 0; }
  .cards > div { border: 0; border-bottom: 1px solid var(--rule); padding: 16px 0; }

  .list > div { grid-template-columns: 1fr; gap: 0; padding: 14px 0; }

  .split { grid-template-columns: 1fr; gap: 32px; padding: 26px 20px 32px; }

  .policy { padding: 32px 20px 48px; }

  .site-foot .wrap { flex-direction: column; gap: 10px; padding: 22px 20px 28px; }
}
