/* Pem: coming soon site. Shared by index.html and admin.html.
   Brand: mid-century printed TV guide, modernized. Dark page, newsprint clippings,
   Montserrat for titles and labels, News Cycle for descriptions, square corners, print rules. */

@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/OpenSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "News Cycle"; src: url("fonts/NewsCycle-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  /* the dark page (Theme.paper, ink, field, accent from the apps) */
  --paper: #0e0e0e;
  --ink: #e6e4dc;
  --soft: #8c8a84;
  --field: #1c1c1e;
  --rule: #3a3a3a;
  --accent: #4da3ff;
  --go: #7fc496;
  --stop: #e3735f;
  /* the newsprint clipping (Theme.card light palette) */
  --news: #e6e4dc;
  --news-ink: #201f1c;
  --news-soft: #6d6b64;
  --news-rule: #bdbab0;
  --news-field: #d6d3c9;
  --news-accent: #0a6bdb;

  --display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --text: "News Cycle", "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  --max: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--accent); color: #000; }

/* Clippings: sections set in the light printed palette */
.news {
  --paper: var(--news);
  --ink: var(--news-ink);
  --soft: var(--news-soft);
  --rule: var(--news-rule);
  --field: var(--news-field);
  --accent: var(--news-accent);
  --go: #2e6b3f;
  --stop: #b23a2a;
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */
.kicker {
  font-family: var(--display); font-weight: 800; font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--soft);
  margin: 0 0 14px;
}
.kicker.accent { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.01em; margin: 0; }
h1 { font-weight: 800; font-size: clamp(40px, 5.6vw, 72px); line-height: 0.98; }
h2 { font-weight: 800; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.02; }
h3 { font-weight: 800; font-size: 20px; line-height: 1.1; }
.light { font-weight: 500; }
p { margin: 0 0 14px; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.45; max-width: 36em; }
.muted { color: var(--soft); }

/* Print devices */
.double-rule { border-top: 3px solid var(--ink); position: relative; height: 7px; }
.double-rule::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 1px solid var(--ink); }
.hair { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.leader { flex: 1; border-bottom: 2px dotted var(--soft); margin: 0 10px 0.32em; min-width: 20px; opacity: 0.8; }

/* Logo (K34: the scan-line frame with Pem inside; the last right dash is Pem's period, in blue) */
.pem-mark { display: block; height: 40px; width: auto; }
.pem-mark .frame, .pem-mark text { fill: var(--ink); }
.pem-mark .period { fill: var(--accent); }

/* Buttons and fields: square corners, small bold caps */
.btn {
  font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.16em;
  text-transform: uppercase; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
  padding: 0 24px; height: 54px; border-radius: 0; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.outline { background: transparent; color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: var(--paper); }
.btn:focus-visible, .field:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn[disabled] { opacity: 0.5; cursor: wait; }
.field {
  font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: 0.01em;
  background: var(--field); color: var(--ink); border: 1.5px solid var(--field); border-radius: 0;
  height: 54px; padding: 0 18px; width: 100%; min-width: 0;
}
.field::placeholder { color: var(--soft); }
.field:focus { border-color: var(--ink); outline: none; }

.tag {
  display: inline-block; font-family: var(--display); font-weight: 800; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; border: 1.5px solid currentColor;
  padding: 3px 6px 2px; line-height: 1; vertical-align: 0.2em;
}
.tag.accent { color: var(--accent); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
