/* Cosmoledo wireframe — lo-fi greyscale styles. No brand colours. */
:root {
  --wf-ink: #222;
  --wf-mid: #666;
  --wf-line: #bbb;
  --wf-soft: #e6e6e6;
  --wf-bg: #f6f6f6;
  --wf-paper: #fff;
  --wf-anno-bg: #fff8c4;
  --wf-anno-line: #c9b300;
  --wf-radius: 2px;
  --wf-gap: 16px;
  --wf-pad: 24px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--wf-ink);
  background: var(--wf-bg);
}

a { color: inherit; text-decoration: underline; text-decoration-color: var(--wf-line); }
a:hover { text-decoration-color: var(--wf-ink); }

/* ---- Layout ---- */
.wf-page { max-width: 1280px; margin: 0 auto; background: var(--wf-paper); min-height: 100vh; }
.wf-section { padding: var(--wf-pad); border-top: 1px dashed var(--wf-line); }
.wf-section:first-of-type { border-top: 0; }
.wf-section h2 {
  margin: 0 0 12px; font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--wf-mid); font-weight: 600;
}

/* ---- Toolbar (annotation toggle) ---- */
.wf-toolbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 16px; background: var(--wf-ink); color: #fff;
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
}
.wf-toolbar__title { opacity: 0.8; }
.wf-toolbar__actions { display: flex; gap: 8px; align-items: center; }
.wf-toolbar button,
.wf-toolbar__btn {
  background: transparent; border: 1px solid #fff; color: #fff;
  padding: 4px 10px; font: inherit; cursor: pointer; border-radius: var(--wf-radius);
  text-transform: uppercase; letter-spacing: 0.04em; font-size: 11px;
  text-decoration: none;
  display: inline-block;
}
.wf-toolbar button:hover,
.wf-toolbar__btn:hover { background: #fff; color: var(--wf-ink); }

/* ---- Nav ---- */
.wf-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--wf-pad); border-bottom: 1px solid var(--wf-line);
}
.wf-nav__logo { font-weight: 700; letter-spacing: 0.2em; font-size: 14px; text-decoration: none; }
.wf-nav__links { display: flex; gap: 20px; flex-wrap: wrap; }
.wf-nav__links a { text-decoration: none; font-size: 13px; letter-spacing: 0.04em; }
.wf-nav__links a[aria-current="page"] { font-weight: 700; text-decoration: underline; }

/* ---- Hero ---- */
.wf-hero { position: relative; padding: 0; }
.wf-hero .wf-video, .wf-hero .wf-image { aspect-ratio: 16/7; min-height: 320px; }
.wf-hero__overlay { padding: var(--wf-pad); }

/* ---- Page header (non-hero pages) ---- */
.wf-pageheader { padding: var(--wf-pad); border-bottom: 1px dashed var(--wf-line); }
.wf-pageheader h1 {
  margin: 8px 0; font-size: 32px; line-height: 1.15;
  font-weight: 600; letter-spacing: -0.01em;
}
.wf-pageheader p { margin: 0 0 8px; max-width: 60ch; color: var(--wf-mid); }
.wf-pageheader .wf-eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--wf-mid);
}

/* ---- Image / video placeholders ---- */
.wf-image, .wf-video {
  position: relative;
  background:
    repeating-linear-gradient(45deg, var(--wf-soft) 0 12px, var(--wf-bg) 12px 24px);
  border: 1px solid var(--wf-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--wf-mid); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  min-height: 160px;
  text-align: center;
}
.wf-image::before { content: "Image"; }
.wf-video::before { content: "▶  Ambient Video"; }
.wf-image[data-label]::before { content: attr(data-label); }
.wf-video[data-label]::before { content: "▶  " attr(data-label); }
.wf-image[data-dims]::after, .wf-video[data-dims]::after {
  content: attr(data-dims); position: absolute; bottom: 8px; right: 10px;
  font-size: 10px; color: var(--wf-mid); letter-spacing: 0.06em;
}

/* ---- Text blocks ---- */
.wf-text {
  position: relative; padding: 12px 16px; background: var(--wf-bg);
  border: 1px solid var(--wf-line); border-radius: var(--wf-radius); margin: 0 0 12px;
}
.wf-text--lead { font-size: 18px; line-height: 1.45; }
.wf-text--strapline {
  font-size: 32px; line-height: 1.15; font-weight: 600;
  letter-spacing: -0.005em; padding: 16px 20px;
}
.wf-text[data-words]::after {
  content: attr(data-words) " words";
  position: absolute; top: -10px; right: 8px;
  background: var(--wf-ink); color: #fff;
  font-size: 10px; padding: 2px 6px; border-radius: 8px;
  letter-spacing: 0.04em; text-transform: uppercase;
}

/* ---- Grid + cards ---- */
.wf-grid { display: grid; gap: var(--wf-gap); }
.wf-grid--2 { grid-template-columns: repeat(2, 1fr); }
.wf-grid--3 { grid-template-columns: repeat(3, 1fr); }
.wf-grid--4 { grid-template-columns: repeat(4, 1fr); }
.wf-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
.wf-card .wf-image { min-height: 160px; }
.wf-card h3 { margin: 4px 0; font-size: 16px; }
.wf-card[href]:hover .wf-image { border-color: var(--wf-ink); }

/* ---- Two-column split (image + text) ---- */
.wf-split { display: grid; gap: var(--wf-gap); grid-template-columns: 1fr 1fr; align-items: start; }
.wf-split .wf-image { min-height: 280px; }

/* ---- CTA ---- */
.wf-cta {
  display: inline-block; padding: 10px 16px;
  border: 1px solid var(--wf-ink); border-radius: var(--wf-radius);
  text-decoration: none; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  margin-top: 8px;
}
.wf-cta:hover { background: var(--wf-ink); color: #fff; }

/* ---- Spec table ---- */
.wf-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 24px; }
.wf-table th, .wf-table td {
  padding: 8px 10px; border-bottom: 1px solid var(--wf-line);
  text-align: left; vertical-align: top;
}
.wf-table th { font-weight: 600; color: var(--wf-mid); width: 38%; }
.wf-table caption {
  text-align: left; color: var(--wf-mid); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em; padding: 12px 0 6px; font-weight: 600;
}

/* ---- Spec highlights row ---- */
.wf-highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--wf-gap); margin: 16px 0; }
.wf-highlights > div {
  padding: 16px; border: 1px solid var(--wf-line); border-radius: var(--wf-radius);
  background: var(--wf-bg); text-align: center;
}
.wf-highlights .wf-stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--wf-mid); }
.wf-highlights .wf-stat-value { font-size: 24px; font-weight: 600; margin-top: 4px; }

/* ---- Footer ---- */
.wf-footer {
  padding: var(--wf-pad); border-top: 1px solid var(--wf-line);
  color: var(--wf-mid); font-size: 12px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}

/* ---- Annotations ---- */
.wf-anno {
  background: var(--wf-anno-bg); border-left: 3px solid var(--wf-anno-line);
  padding: 10px 12px; margin: 8px 0; font-size: 13px; line-height: 1.45;
  border-radius: var(--wf-radius);
}
.wf-anno strong {
  display: block; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: #8a7a00; margin-bottom: 4px;
}
body.clean .wf-anno { display: none; }
body.clean .wf-text::after { display: none; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .wf-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .wf-highlights { grid-template-columns: repeat(2, 1fr); }
  .wf-split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wf-grid--2, .wf-grid--3, .wf-grid--4 { grid-template-columns: 1fr; }
  .wf-highlights { grid-template-columns: repeat(2, 1fr); }
  .wf-nav { flex-direction: column; align-items: flex-start; gap: 8px; }
  .wf-nav__links { gap: 12px; }
  .wf-hero .wf-video, .wf-hero .wf-image { aspect-ratio: 4/5; min-height: 240px; }
  .wf-pageheader h1 { font-size: 26px; }
  .wf-text--strapline { font-size: 24px; }
  :root { --wf-pad: 16px; }
}

/* ---- Prose (read-me / about pages) ---- */
.wf-prose { max-width: 70ch; margin: 0 auto; }
.wf-prose h1 { font-size: 32px; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 16px; }
.wf-prose h2 { font-size: 18px; line-height: 1.3; font-weight: 600; margin: 32px 0 8px; }
.wf-prose h3 { font-size: 15px; font-weight: 600; margin: 20px 0 6px; }
.wf-prose .wf-lede { font-size: 18px; line-height: 1.5; color: var(--wf-ink); margin: 0 0 8px; }
.wf-prose p { margin: 0 0 12px; }
.wf-prose ul { padding-left: 22px; margin: 0 0 12px; }
.wf-prose li { margin: 4px 0; }
.wf-prose code {
  background: var(--wf-bg); border: 1px solid var(--wf-line);
  padding: 1px 5px; border-radius: var(--wf-radius);
  font-size: 13px; font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.wf-prose pre {
  background: var(--wf-bg); border: 1px solid var(--wf-line);
  padding: 12px 14px; border-radius: var(--wf-radius);
  font-size: 13px; line-height: 1.45;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  overflow-x: auto; margin: 0 0 12px;
}
.wf-prose pre code { background: none; border: 0; padding: 0; }
.wf-prose hr { border: 0; border-top: 1px dashed var(--wf-line); margin: 32px 0; }
.wf-prose .wf-prose__meta { color: var(--wf-mid); font-size: 13px; }

/* ---- Print ---- */
@media print {
  body { background: #fff; }
  .wf-toolbar { display: none; }
  .wf-anno { background: #fff; border-left: 3px solid #999; }
  .wf-page { max-width: 100%; }
  .wf-section { break-inside: avoid; }
}
