/* ==========================================================================
   Planet Rose: reset + design tokens
   Change a brand color here and it propagates everywhere.
   ========================================================================== */

:root {
  /* Brand */
  --brand-black: #141414;
  --brand-white: #F3F3F3;
  --brand-cream: #E1DCC2;
  --brand-yellow: #FADA28;
  --brand-red: #F8001C;   /* placeholder measured from the logo, confirm official hex */

  /* Surfaces (derived) */
  --bg: var(--brand-black);
  --surface: #1c1c1c;
  --surface-2: #242424;
  --line: color-mix(in srgb, var(--brand-white) 12%, transparent);
  --line-strong: color-mix(in srgb, var(--brand-white) 26%, transparent);
  --text: var(--brand-white);
  --muted: color-mix(in srgb, var(--brand-white) 66%, transparent);

  /* Red derivatives: every tint is computed from --brand-red */
  --red-glow: color-mix(in srgb, var(--brand-red) 32%, transparent);
  --red-soft: color-mix(in srgb, var(--brand-red) 14%, transparent);
  --red-deep: color-mix(in srgb, var(--brand-red) 70%, var(--brand-black));

  /* Type */
  --font-display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --track: 0.16em;

  /* Layout */
  --radius: 2px;
  --nav-h: 72px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --section-y: clamp(72px, 10vw, 136px);

  /* Motion: one curve, two speeds (UI 300ms, imagery 500ms) */
  --ease: cubic-bezier(.45, 0, .25, 1);   /* ease-in-out */
  --dur: 300ms;
  --dur-slow: 500ms;
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  color-scheme: dark;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-weight: 400; line-height: 1; overflow-wrap: break-word; }
p { overflow-wrap: break-word; }

ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

table { border-collapse: collapse; }

address { font-style: normal; }

::selection { background: var(--brand-red); color: var(--brand-white); }

:focus-visible {
  outline: 2px solid var(--brand-white);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--brand-white);
  color: var(--brand-black);
  font-weight: 700;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* sections focused programmatically after anchor jumps */
[tabindex="-1"]:focus { outline: none; }
