/* Printable — one stylesheet.
 * ---------------------------------------------------------------------------
 * Tokens are derived from the Printable style tile ("Printable Mood Board.png",
 * Mangra Studios) and from the live holding page at
 * proofing-printablestudio-co.pages.dev, which production matches.
 *
 * Contrast ratios below were computed, not read off the tile, and are binding.
 * Do not hardcode hex values in components. Use the role tokens.
 * --------------------------------------------------------------------------- */

:root {
  /* ---- Raw palette. Never reference these outside the role block below. ---- */
  --pr-navy: #021a3b;      /* 17.31:1 on white */
  --pr-charcoal: #242424;  /* 15.52:1 on white */
  --pr-magenta: #98198e;   /*  7.33:1 on white */
  --pr-orange: #f47441;    /*  2.83:1 on white — fails AA at every size */
  --pr-cyan: #1dc4cc;      /*  2.14:1 on white */
  --pr-yellow: #fad41b;    /*  1.45:1 on white */
  --pr-white: #ffffff;

  /* ---- Roles: light surfaces ---- */
  --pr-bg: var(--pr-white);
  --pr-text: var(--pr-navy);
  --pr-heading: var(--pr-navy);
  --pr-rule: var(--pr-navy);
  --pr-link: var(--pr-magenta);       /* magenta is links only */
  --pr-btn-fill: var(--pr-charcoal);  /* primary button fill */
  --pr-btn-label: var(--pr-white);

  /* Cyan is a STATE colour: chips, badges, focus rings, hover washes. Never
   * body text on white, never an action button. Text on a cyan fill must be
   * navy (8.09:1) or charcoal (7.26:1). */
  --pr-state: var(--pr-cyan);
  --pr-state-on: var(--pr-navy);

  /* ---- Roles: dark surfaces ----
   * On --pr-navy: #ffffff 17.31 · #e6edf5 14.67 · #a9bace 8.74
   *               #1dc4cc  8.09 · #fad41b 11.95 · #f47441 6.12
   * Footer muted at 0.7 opacity composites to #778aa2 — 4.90:1, still AA. */
  --pr-surface-dark: var(--pr-navy);
  --pr-text-on-dark: var(--pr-white);
  --pr-ink-on-dark: #e6edf5;
  --pr-muted-on-dark: #a9bace;
  --pr-accent-on-dark: var(--pr-orange);
  --pr-highlight-on-dark: var(--pr-yellow);
  --pr-grid-line: rgba(29, 196, 204, 0.055);
  --pr-grid-cell: 44px;

  /* ---- Type ----
   * The style tile names no typeface. Montserrat is the documented substitute
   * (800 display / 400 body) pending confirmation from Jocelyn D. Swap here. */
  --pr-font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pr-font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pr-weight-display: 800;
  --pr-weight-body: 400;
  --pr-weight-strong: 700;

  --pr-step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.9rem);
  --pr-step-0: clamp(1rem, 0.96rem + 0.20vw, 1.125rem);
  --pr-step-1: clamp(1.25rem, 1.16rem + 0.45vw, 1.5rem);
  --pr-step-2: clamp(1.6rem, 1.42rem + 0.9vw, 2.15rem);
  --pr-step-3: clamp(2.1rem, 1.75rem + 1.75vw, 3.2rem);

  /* ---- Shape and space ---- */
  --pr-radius: 12px;
  --pr-radius-pill: 999px;
  --pr-rule-width: 2px;
  --pr-space-xs: 0.5rem;
  --pr-space-sm: 0.875rem;
  --pr-space-md: 1.5rem;
  --pr-space-lg: 3rem;
  --pr-space-xl: 5rem;
  --pr-measure: 62ch;
  --pr-container: 68rem;
}

/* ===== Base ============================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--pr-bg);
  color: var(--pr-text);
  font-family: var(--pr-font-body);
  font-weight: var(--pr-weight-body);
  font-size: var(--pr-step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--pr-font-display);
  font-weight: var(--pr-weight-display);
  color: var(--pr-heading);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 var(--pr-space-sm);
  text-wrap: balance;
}
h1 { font-size: var(--pr-step-3); }
h2 { font-size: var(--pr-step-2); }
h3 { font-size: var(--pr-step-1); }

p, ul, ol { margin: 0 0 var(--pr-space-md); max-width: var(--pr-measure); }
p { text-wrap: pretty; }

a {
  color: var(--pr-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { text-decoration-thickness: 2px; }

/* Cyan is a state colour, so it carries the focus ring. */
:focus-visible {
  outline: 3px solid var(--pr-state);
  outline-offset: 2px;
  border-radius: 2px;
}

img { max-width: 100%; height: auto; display: block; }

hr {
  border: 0;
  border-top: var(--pr-rule-width) solid var(--pr-rule);
  margin: var(--pr-space-lg) 0;
  max-width: var(--pr-measure);
}

/* ===== Layout primitives ================================================= */

.pr-container {
  width: 100%;
  max-width: var(--pr-container);
  margin-inline: auto;
  padding-inline: var(--pr-space-md);
}

.pr-section { padding-block: var(--pr-space-xl); }

.pr-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pr-navy);
  color: var(--pr-white);
  padding: var(--pr-space-xs) var(--pr-space-md);
  z-index: 100;
}
.pr-skip-link:focus { left: 0; }

/* Eyebrow / sub-heading. The style tile sets these in orange on white, which
 * fails AA at every size; on light surfaces we set them in navy instead. The
 * orange treatment survives only on dark surfaces. Flagged to Jocelyn D.;
 * not corrected on the tile itself. */
.pr-eyebrow {
  font-family: var(--pr-font-display);
  font-weight: var(--pr-weight-strong);
  font-size: var(--pr-step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pr-navy);
  margin: 0 0 var(--pr-space-xs);
}

/* Chip: the sanctioned use of cyan. Fill cyan, label navy. */
.pr-chip {
  display: inline-block;
  background: var(--pr-state);
  color: var(--pr-state-on);
  font-weight: var(--pr-weight-strong);
  font-size: var(--pr-step--1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--pr-radius-pill);
}

/* ===== Dark surface ====================================================== */

.pr-dark { background: var(--pr-surface-dark); color: var(--pr-text-on-dark); }
.pr-dark h1, .pr-dark h2, .pr-dark h3, .pr-dark h4 { color: var(--pr-text-on-dark); }
.pr-dark .pr-eyebrow { color: var(--pr-accent-on-dark); }
.pr-dark a { color: var(--pr-highlight-on-dark); }
.pr-dark hr { border-top-color: var(--pr-accent-on-dark); }

/* ===== Buttons ===========================================================
 * Two tiers only, both from the style tile. There is deliberately no cyan or
 * orange button: cyan is a state colour and orange fails AA on white at every
 * size, so neither may carry an action. */

.pr-btn {
  display: inline-block;
  font-family: var(--pr-font-display);
  font-weight: var(--pr-weight-strong);
  font-size: var(--pr-step-0);
  line-height: 1.2;
  padding: 0.9rem 2rem;
  border-radius: var(--pr-radius);
  border: var(--pr-rule-width) solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.pr-btn:hover { transform: translateY(-1px); }

.pr-btn--primary { background: var(--pr-btn-fill); color: var(--pr-btn-label); }
.pr-btn--primary:hover { box-shadow: 0 0 0 3px var(--pr-state); }

.pr-btn--outline {
  background: transparent;
  color: var(--pr-navy);
  border-color: var(--pr-navy);
}
.pr-btn--outline:hover { background: var(--pr-state); color: var(--pr-state-on); }

.pr-dark .pr-btn--outline { color: var(--pr-white); border-color: var(--pr-white); }
.pr-dark .pr-btn--outline:hover { background: var(--pr-white); color: var(--pr-navy); }

/* ===== Site shell (header / footer) ====================================== */

.pr-header { border-bottom: var(--pr-rule-width) solid var(--pr-rule); }
.pr-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--pr-space-md);
  padding-block: var(--pr-space-md);
}
.pr-wordmark {
  font-family: var(--pr-font-display);
  font-weight: var(--pr-weight-display);
  font-size: var(--pr-step-1);
  letter-spacing: -0.02em;
  color: var(--pr-navy);
  text-decoration: none;
}
.pr-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pr-space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}
.pr-nav a {
  color: var(--pr-navy);
  font-weight: var(--pr-weight-strong);
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: var(--pr-rule-width) solid transparent;
}
.pr-nav a:hover,
.pr-nav a[aria-current='page'] { border-bottom-color: var(--pr-state); }

.pr-footer { padding-block: var(--pr-space-lg); margin-top: var(--pr-space-xl); }
.pr-footer__legal { font-size: var(--pr-step--1); margin: 0; opacity: 0.85; }

/* ===== Prose: markdoc output ============================================= */

.pr-prose > :first-child { margin-top: 0; }
.pr-prose h2 { margin-top: var(--pr-space-lg); }
.pr-prose h3 { margin-top: var(--pr-space-md); }
.pr-prose li { margin-bottom: var(--pr-space-xs); }
.pr-prose blockquote {
  margin: var(--pr-space-md) 0;
  padding-left: var(--pr-space-md);
  border-left: var(--pr-rule-width) solid var(--pr-rule);
  max-width: var(--pr-measure);
}
.pr-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

/* ===== Holding page ======================================================
 * Full-viewport centred stack. Structure follows the Mangra Studios holding
 * page; branding follows the live Printable holding page. Retire this block
 * when the real marketing pages replace it. */

html:has(body.pr-holding), body.pr-holding { height: 100%; }

body.pr-holding {
  margin: 0;
  background: var(--pr-surface-dark);
  color: var(--pr-ink-on-dark);
  display: grid;
  place-items: center;
  padding: 32px;
}

/* Trim grid — fixed layer behind all content. */
body.pr-holding::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(to right,  var(--pr-grid-line) 0 1px, transparent 1px var(--pr-grid-cell)),
    repeating-linear-gradient(to bottom, var(--pr-grid-line) 0 1px, transparent 1px var(--pr-grid-cell));
}

.pr-holding main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 34rem;
  text-align: center;
}

.pr-holding__eyebrow,
.pr-holding__tagline {
  font-family: var(--pr-font-display);
  font-weight: var(--pr-weight-display);
  font-size: clamp(11px, 2.2vw, 13px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pr-highlight-on-dark);
  margin: 0;
}

.pr-holding__wordmark {
  font-family: var(--pr-font-display);
  font-weight: var(--pr-weight-display);
  font-size: clamp(34px, 8vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0;
  color: var(--pr-white);
}

.pr-holding__rule {
  width: 72px;
  height: 4px;
  border-radius: 2px;
  background: var(--pr-cyan);
  margin: 8px auto;
}

.pr-holding main h1 {
  font-family: var(--pr-font-display);
  font-weight: var(--pr-weight-display);
  font-size: clamp(20px, 4vw, 26px);
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--pr-cyan);
}

.pr-holding main p { margin: 0; max-width: none; color: var(--pr-muted-on-dark); }

.pr-holding__contact {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

.pr-holding main a {
  color: var(--pr-highlight-on-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.pr-holding main a:hover { border-bottom-color: currentColor; }

.pr-holding__footer {
  position: fixed;
  z-index: 1;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pr-muted-on-dark);
  opacity: 0.7;
}
