/* Programie Labs web — shared styles for programielabs.com and tya.programielabs.com.
   Fonts are self-hosted (no Google Fonts requests, so no visitor IPs leave the site). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("fonts/playfair-display-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("fonts/playfair-display-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("fonts/playfair-display-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url("fonts/playfair-display-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url("fonts/playfair-display-cyrillic-wght-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* Tokens — mirror theme.ts. Brand red is identity and severity only (one primary accent per page). */
:root {
  --brand-red: #C63A2B;
  --ink: #1F1A17;
  --ink-soft: #5B524C;
  --paper: #FAF6F2;
  --paper-deep: #F2EBE4;
  --rule: #E4DAD1;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 40rem;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--brand-red); }
:focus-visible { outline: 2px solid var(--brand-red); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header { padding: 1.5rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { font: 600 1.375rem/1 var(--serif); letter-spacing: -0.01em; text-decoration: none; }
.wordmark:hover { color: var(--ink); }
.nav { display: flex; gap: 1.25rem; font-size: 0.9375rem; }
.nav a { text-decoration: none; color: var(--ink-soft); padding: 0.75rem 0; } /* ≥44px tap height */
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

main { flex: 1; }

/* Hero */
.hero { padding-block: clamp(4rem, 12vw, 9rem) clamp(3rem, 8vw, 6rem); }
.eyebrow { font: 500 0.8125rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 1.5rem; }
.display { font: 500 clamp(2.75rem, 7.5vw, 5.5rem)/1.04 var(--serif); letter-spacing: -0.02em; margin: 0 0 1.75rem; max-width: 16ch; text-wrap: balance; }
.display em { font-style: italic; color: var(--brand-red); }
.lede { font-size: clamp(1.125rem, 2vw, 1.3125rem); color: var(--ink-soft); max-width: 34rem; margin: 0; }
.tag { display: inline-block; margin-top: 2.25rem; padding: 0.6rem 1rem; border: 1px solid var(--rule); border-radius: 999px; font-size: 0.875rem; color: var(--ink-soft); background: #fff; }

/* Sections and cards */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--rule); }
.section h2 { font: 500 1.75rem/1.2 var(--serif); margin: 0 0 1.25rem; }
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.75rem; }
.card h3 { font: 500 1.375rem/1.25 var(--serif); margin: 0 0 0.5rem; }
.card p { margin: 0 0 1rem; color: var(--ink-soft); }
.card p:last-child { margin-bottom: 0; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 2rem; margin: 0; }
dl.facts dt { color: var(--ink-soft); font-size: 0.9375rem; }
dl.facts dd { margin: 0; }
@media (max-width: 36rem) { dl.facts { grid-template-columns: 1fr; gap: 0.15rem; } dl.facts dd { margin-bottom: 0.75rem; } }

/* Long-form legal / support pages */
.doc { max-width: var(--measure); padding-block: clamp(2.5rem, 7vw, 5rem) 4rem; }
.doc h1 { font: 500 clamp(2.25rem, 5vw, 3.25rem)/1.1 var(--serif); letter-spacing: -0.015em; margin: 0 0 0.75rem; }
.doc .meta { color: var(--ink-soft); font-size: 0.9375rem; margin: 0 0 2.5rem; }
.doc h2 { font: 500 1.5rem/1.25 var(--serif); margin: 2.75rem 0 0.75rem; }
.doc h3 { font: 600 1.0625rem/1.4 var(--sans); margin: 1.75rem 0 0.5rem; }
.doc ul, .doc ol { padding-left: 1.25rem; }
.doc li { margin: 0.35rem 0; }
.toc { background: var(--paper-deep); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 0 0 2rem; }
.toc ol { margin: 0; }
.toc a { text-decoration: none; }

/* Placeholder marker — remove the .draft-banner once the lawyer signs off */
.draft-banner { background: #fff; border: 1px dashed var(--brand-red); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 2.5rem; font-size: 0.9375rem; }
.draft-banner strong { color: var(--brand-red); }
.ph { background: var(--paper-deep); border-radius: 4px; padding: 0 0.3em; color: var(--ink-soft); font-style: italic; }

.callout { border-left: 3px solid var(--ink); padding: 0.25rem 0 0.25rem 1.25rem; margin: 1.5rem 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 2.5rem 0 3rem; font-size: 0.875rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-footer a { text-decoration: none; display: inline-block; padding: 0.6rem 0; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 0.6rem 0; }

@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise 700ms cubic-bezier(.2,.7,.2,1) both; }
  .hero > *:nth-child(2) { animation-delay: 80ms; }
  .hero > *:nth-child(3) { animation-delay: 160ms; }
  .hero > *:nth-child(4) { animation-delay: 240ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
