/* Rendella Media Ltd
   Design tokens follow "Rendella Media.dc.html" from the Claude Design canvas. */

:root {
  --paper:  #F4F2ED;
  --ink:    #111111;
  --accent: #FF3B1F;
  --muted:  #4A4741;
  --rule:   #C9C5BB;

  /* Text colour used on top of --accent. Black holds 5.3:1 against #FF3B1F;
     the canvas used --paper, which only reaches 3.2:1 and fails AA on the
     smaller labels. Swap this one value to go back to the canvas look. */
  --on-accent: #111111;

  --pad:  clamp(24px, 4vw, 52px);
  --gap:  clamp(24px, 4vh, 48px);
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- Ticker ---------- */

.ticker {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ticker__track {
  display: inline-block;
  animation: ticker 30s linear infinite;
}
.ticker__item { padding: 0 22px; }
.ticker__dot  { padding: 0 22px; color: var(--accent); }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Shell ---------- */

.shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--pad);
  gap: var(--gap);
}

@keyframes slidein {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.slidein { animation: slidein 380ms ease-out both; }
.slidein--2 { animation-delay: 80ms; }
.slidein--3 { animation-delay: 160ms; }

/* ---------- Header ---------- */

.masthead {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(16px, 3vw, 56px);
  align-items: end;
  border-bottom: 3px solid var(--ink);
  padding-bottom: clamp(16px, 2.5vh, 30px);
}

.wordmark {
  margin: 0;
  font-size: clamp(46px, 7.6vw, 124px);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.05em;
}

.masthead__aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lede {
  margin: 0;
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1.35;
  max-width: 38ch;
  text-wrap: pretty;
}

.button {
  align-self: start;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  padding: 11px 20px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 120ms, color 120ms;
}
.button:hover {
  background: var(--accent);
  color: var(--on-accent);
}

/* ---------- Products ---------- */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2px;
  background: var(--ink);
  border: 2px solid var(--ink);
  list-style: none;
  margin: 0;
  padding: 0;
}

.card {
  background: var(--paper);
  padding: clamp(18px, 3vh, 34px);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: clamp(160px, 26vh, 260px);
  height: 100%;
  transition: background 120ms, color 120ms;
}
.card:hover {
  background: var(--accent);
  color: var(--on-accent);
}
.card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.card__eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.card:hover .card__eyebrow { color: inherit; opacity: 0.75; }

.card__name {
  font-size: clamp(32px, 3.6vw, 50px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}
.card__what {
  margin-top: auto;
  font-size: 15px;
  line-height: 1.4;
}
.card__tag {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.card:hover .card__tag { color: inherit; opacity: 0.75; }

/* ---------- Footer ---------- */

.colophon {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(16px, 3vw, 40px);
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.colophon dl { margin: 0; }
.colophon dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.colophon dd { margin: 0; }

.colophon__lead {
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
}
.colophon__lead a { text-decoration: none; }
.colophon__lead a:hover { color: var(--accent); }

.num { font-variant-numeric: tabular-nums; }

.marked {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.marked:hover { color: var(--accent); }

.quiet { color: var(--muted); text-decoration: none; }
.quiet:hover { color: var(--accent); }

/* ---------- Prose pages (privacy, 404) ---------- */

.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.6;
}
.prose h1 {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
}
.prose h2 {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 40px 0 10px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.prose p, .prose li { text-wrap: pretty; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }

.stamp {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 clamp(24px, 4vh, 44px);
}

.backlink {
  display: inline-block;
  margin-top: 34px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
}
.backlink:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker__track { animation: none; }
}

.stamp--sub { margin-top: 14px; }
