/* ============================================================
   Signal & Echo — site styles
   Extracted from the design canvas (design/Signal and Echo.html).
   Single responsive stylesheet using @media queries instead of
   the canvas's separate .mobile classes.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Cool paper — observatory grey-cream, not the warm bone of an editorial press */
  --paper:        #f5f4ef;
  --paper-2:      #e9e7de;
  --paper-3:      #dcd9cd;
  --rule:         #d6d3c5;

  /* Cool near-black ink, slight blue tint — neutral-leaning */
  --ink:          #16191e;
  --ink-2:        #2c3137;
  --ink-3:        #5e646c;
  --ink-4:        #8a909a;

  /* Single accent — matte cobalt, dialed back from classic Pantone
     cobalt a notch. Less saturation (drifts toward slate), slightly
     darker. Reads as a real ink color at small sizes without the 90s
     hyperlink-blue intensity. */
  --signal:       #1a3a85;
  --signal-deep:  #122a64;

  /* Type — Source Serif 4 for display + body, Inter Tight for everything
     else (utility, eyebrow, meta, footer copy). No mono — the monospaced
     editorial-manual look has been retired. */
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter Tight", -apple-system, "Segoe UI", Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

/* Cool paper grain — subtle radial-stipple, never noisy. */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(rgba(22,25,30,.022) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 1;
}

main, header, footer, section { position: relative; z-index: 2; }

a { color: var(--signal); text-decoration: none; }
a:hover { color: var(--signal-deep); }

/* ---------- Header / nav ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 56px 22px;
  border-bottom: 1px solid var(--rule);
  gap: 24px;
}
.lockup { display: flex; align-items: center; gap: 12px; }
.lockup .mark { width: 28px; height: 28px; flex: 0 0 auto; color: var(--ink); }
.lockup .wm {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav {
  display: flex; gap: 28px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.nav a { color: inherit; text-decoration: none; padding-bottom: 2px; }
.nav a.active { border-bottom: 1px solid var(--signal); color: var(--signal); }
.nav a:hover { color: var(--signal); }

.header-meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.02em;
}
.header-meta a { color: var(--ink-2); text-decoration: none; border-bottom: 1px dotted var(--ink-4); }
.header-meta a:hover { color: var(--signal); border-bottom-color: var(--signal); }

/* Mobile nav toggle (hidden by default; shown via media query) */
.nav-toggle {
  display: none;
  font-family: var(--sans);
  font-size: 16px;
  background: none;
  border: none;
  color: var(--ink-2);
  cursor: pointer;
  padding: 4px 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 28px 56px 32px;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 32px;
  align-items: end;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.site-footer .col-title {
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-4);
  margin-bottom: 6px;
}
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--signal); }
.site-footer .copy { color: var(--ink-4); font-family: var(--sans); font-size: 10px; }

/* ---------- Dateline strip ---------- */
.dateline {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 56px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  flex-wrap: wrap;
}
.dateline .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(26,58,133,.5);
  animation: pulse 2.4s ease-out infinite;
  flex: 0 0 auto;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(26,58,133,.5); }
  70%  { box-shadow: 0 0 0 6px rgba(26,58,133,0); }
  100% { box-shadow: 0 0 0 0 rgba(26,58,133,0); }
}
.dateline .label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--signal);
  font-weight: 500;
}
.dateline .item { color: var(--ink-2); }
.dateline a.item { text-decoration: none; border-bottom: 1px dotted var(--ink-4); }
.dateline a.item:hover { color: var(--signal); border-bottom-color: var(--signal); }
.dateline .sep { color: var(--ink-4); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 460px;
  overflow: hidden;
  background: #1a1815;
  border-bottom: 1px solid var(--rule);
}
.hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.55) contrast(1.08) brightness(0.78);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(20,18,15,0.0)  0%,
      rgba(20,18,15,0.0)  35%,
      rgba(20,18,15,0.55) 70%,
      rgba(20,18,15,0.85) 100%);
}
.hero-copy {
  position: absolute;
  left: 56px; bottom: 56px;
  z-index: 2;
  color: var(--paper);
  max-width: 560px;
  text-shadow: 0 1px 24px rgba(0,0,0,0.6);
}
.hero-copy .eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.85);
  margin-bottom: 14px;
}
.hero-copy h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: #fbf6ec;
}
.hero-copy h1 em { font-style: italic; color: #fbf6ec; }
.hero-copy p {
  font-family: var(--serif);
  font-size: 17px;
  color: rgba(251,246,236,0.95);
  margin: 0;
}

/* ---------- Triage cards (home) ---------- */
.foyer { padding: 64px 56px 80px; }

.foyer-intro { max-width: 720px; margin: 0 0 56px; }
.foyer-intro .label {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-4);
  margin-bottom: 14px;
}
.foyer-intro p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0 0 12px;
  text-wrap: pretty;
}

.triage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--paper-2);
  border-top: 1px solid var(--ink);
  padding: 32px 28px 28px;
  display: flex; flex-direction: column;
  min-height: 280px;
  position: relative;
  transition: background .15s, border-color .15s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.card:hover { background: #e1ddd0; border-top-color: var(--signal); }
.card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.05;
  margin: 0 0 10px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.card p {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-3);
  margin: 0 0 18px;
  line-height: 1.5;
}
.card .card-cta {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--signal);
  display: flex; align-items: center; gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}
.card .card-cta::after { content: "→"; }

.contact-strip {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.contact-strip .lede {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink-2);
  margin: 0;
  max-width: 36em;
  text-wrap: pretty;
}
.contact-strip .reach {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.9;
}
.contact-strip .reach a { color: var(--signal); text-decoration: none; }
.contact-strip .reach > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.contact-strip .reach .k {
  color: var(--ink-4);
  flex: 0 0 110px;
}
.contact-strip .reach .v {
  flex: 1;
  min-width: 0;
}

/* ---------- Page head (interior pages) ---------- */
.page-head {
  padding: 56px 56px 40px;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: end;
}
.page-head .eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 12px;
}
.page-head h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ink);
}
.page-head .description {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.55;
  max-width: 30em;
}

/* ---------- Catalog list (books / games) ---------- */
.catalog { padding: 24px 56px 64px; }
.catalog-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px 110px;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.catalog-row .title {
  font-family: var(--serif);
  font-size: 26px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 4px;
  letter-spacing: -0.005em;
}
.catalog-row .title.upright { font-style: normal; }
.catalog-row .title a { color: inherit; text-decoration: none; transition: color .15s; }
.catalog-row .title a:hover { color: var(--signal); }
.catalog-row .byline {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 8px;
}
.catalog-row .blurb {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-3);
  margin: 0;
  max-width: 36em;
  line-height: 1.5;
}
.catalog-row .meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.7;
}
.catalog-row .meta .k { color: var(--ink-4); display: inline-block; width: 64px; }
.catalog-row .meta a { color: var(--signal); text-decoration: none; }
.catalog-row .meta a:hover { text-decoration: underline; }
.catalog-row .status {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-align: right;
}
.catalog-row .status.out  { color: var(--signal); }
.catalog-row .status.soon { color: var(--ink-3); }
.catalog-row .status.dev  { color: var(--ink-4); }

.catalog-row.empty .title {
  color: var(--ink-4);
  font-style: normal;
  font-weight: 300;
}
.catalog-row.empty .blurb { color: var(--ink-4); }

/* ---------- Section heading inside catalog ---------- */
.catalog-section {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-4);
  padding: 32px 0 8px;
  border-bottom: 1px solid var(--rule);
}
.catalog-section:first-of-type { padding-top: 0; }

/* ---------- Inline notice block (used on /games, /chris) ---------- */
.notice-block {
  margin: 32px 0 0;
  padding: 22px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-2);
  flex-wrap: wrap;
}
.notice-block .label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 4px;
}

/* ---------- /chris ---------- */
.chris-cols {
  padding: 48px 56px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 64px;
  align-items: start;
}

.chris-bio p {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 18px;
  text-wrap: pretty;
}
.chris-bio p:last-child { margin-bottom: 0; }

.chris-aside {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.aside-cta {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 24px;
}
.aside-cta .badge {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
  border: 1px solid var(--signal);
  padding: 3px 8px;
  display: inline-block;
  margin-bottom: 16px;
}
.aside-cta h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.aside-cta p {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
  margin: 0 0 18px;
}

.aside-elsewhere {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-3);
}
.aside-elsewhere .aside-title {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 14px;
}
.aside-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.9;
}
.aside-row .k { color: var(--ink-4); flex: 0 0 76px; }
.aside-row .v { flex: 1; min-width: 0; color: var(--ink-2); }
.aside-row .v a { color: var(--signal); text-decoration: none; }
.aside-row .v a:hover { color: var(--signal-deep); text-decoration: underline; }

/* ---------- /press ---------- */
.press-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  padding: 48px 56px 64px;
}
.press-toc {
  position: sticky; top: 24px;
  font-family: var(--sans);
  font-size: 13px;
  align-self: start;
}
.press-toc .col-title {
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-4);
  margin-bottom: 12px;
}
.press-toc ul { list-style: none; padding: 0; margin: 0; }
.press-toc li { padding: 6px 0; }
.press-toc a { color: var(--ink-2); text-decoration: none; }
.press-toc a:hover { color: var(--signal); }

.press-section { margin-bottom: 48px; }
.press-section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.press-section .lead {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-3);
  max-width: 36em;
  margin: 0 0 20px;
}

.boilerplate {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 22px 24px;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 14px;
}
.boilerplate strong {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-4);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.asset-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 13px;
}
.asset-table th {
  text-align: left;
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-4);
  font-weight: 500;
  padding: 0 12px 8px 0;
  border-bottom: 1px solid var(--rule);
}
.asset-table td {
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
  vertical-align: middle;
}
.asset-table .thumb {
  width: 48px; height: 48px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
}
.asset-table .name { font-family: var(--serif); font-size: 15px; color: var(--ink); }
.asset-table .dim  { font-family: var(--sans); font-size: 11px; color: var(--ink-4); }
.asset-table .dl   { font-family: var(--sans); font-size: 12px; color: var(--signal); text-decoration: none; }
.asset-table .dl:hover { text-decoration: underline; }

/* ---------- /about ---------- */
.about-cols {
  padding: 64px 56px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.about-cols h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}
.about-cols p {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-2);
  margin: 0 0 16px;
  line-height: 1.6;
  text-wrap: pretty;
}
.about-cols .colophon {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.9;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 22px 24px;
}
.about-cols .colophon-title {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 12px;
}
.about-cols .colophon .k {
  color: var(--ink-4);
  display: inline-block;
  width: 110px;
}
.about-cols .pressmark {
  margin-top: 24px;
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--ink);
}
.about-cols .pressmark img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.5) contrast(1.05);
}
.about-cols .pressmark .caption {
  position: absolute;
  left: 18px; bottom: 14px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.8);
}
.about-cols .contact-block {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-2);
}
.about-cols .contact-block a { color: var(--signal); text-decoration: none; border-bottom: 1px solid currentColor; }
.about-cols .contact-block > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.about-cols .contact-block .k {
  color: var(--ink-4);
  flex: 0 0 110px;
}
.about-cols .contact-block .v {
  flex: 1;
  min-width: 0;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
}
.btn:hover { background: var(--ink-2); color: var(--paper); }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--ink); color: var(--paper); }
.btn.accent { background: var(--signal); border-color: var(--signal); color: var(--paper); }
.btn.accent:hover { background: var(--signal-deep); border-color: var(--signal-deep); color: var(--paper); }

.link-inline { color: var(--signal); text-decoration: none; border-bottom: 1px solid currentColor; }
.link-inline:hover { color: var(--signal-deep); }

/* ============================================================
   Responsive — mobile overrides at narrow viewports
   ============================================================ */
@media (max-width: 760px) {
  body { font-size: 16px; }

  .site-header { padding: 16px 20px; gap: 12px; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 12px 20px;
    gap: 10px;
    z-index: 10;
  }
  .nav-toggle { display: block; }
  .header-meta { display: none; }

  .site-footer {
    padding: 24px 20px 28px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .dateline { padding: 10px 20px; font-size: 10px; }

  .hero { height: 320px; }
  .hero-copy { left: 20px; right: 20px; bottom: 24px; }
  .hero-copy h1 { font-size: 36px; }
  .hero-copy p { font-size: 15px; }

  .foyer { padding: 32px 20px 40px; }
  .foyer-intro { margin-bottom: 32px; }
  .foyer-intro p { font-size: 18px; }
  .triage { grid-template-columns: 1fr; gap: 16px; }
  .card { min-height: 180px; padding: 22px; }
  .card h3 { font-size: 26px; margin-top: 20px; }

  .contact-strip { grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
  .contact-strip .lede { font-size: 16px; }
  .contact-strip .reach { font-size: 11px; }
  .contact-strip .reach .k { width: 88px; }

  .page-head { padding: 32px 20px 24px; grid-template-columns: 1fr; gap: 16px; }
  .page-head h1 { font-size: 44px; }

  .catalog { padding: 16px 20px 36px; }
  .catalog-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }
  .catalog-row .title { font-size: 20px; }
  .catalog-row .meta { font-size: 10px; margin-top: 6px; }
  .catalog-row .status { display: none; }

  .chris-cols { padding: 24px 20px 36px; grid-template-columns: 1fr; gap: 32px; }
  .chris-aside { position: static; }
  .chris-bio p { font-size: 16px; }

  .press-grid { padding: 24px 20px 40px; grid-template-columns: 1fr; gap: 28px; }
  .press-toc { position: static; }
  .press-section h2 { font-size: 22px; }
  .asset-table .dim { display: none; }

  .about-cols { padding: 32px 20px 40px; grid-template-columns: 1fr; gap: 32px; }
  .about-cols h2 { font-size: 32px; }
}
