/* Design tokens + element defaults. Component styles live in their own files
   (header.css, hero.css, …) and are all picked up by stylesheet_link_tag :app. */

:root {
  /* Brand palette — these three are the whole palette. */
  --zh-red: #E3000C;
  --zh-black: #050505;
  --zh-white: #FFFFFF;

  --zh-font-condensed: "Barlow Condensed", "Arial Narrow", ui-sans-serif, system-ui, sans-serif;

  --zh-header-height: 5rem;
  --zh-shell-width: 82rem;
  --zh-shell-gutter: 1.5rem;
}

@media (min-width: 60rem) {
  :root {
    --zh-header-height: 6rem;
    --zh-shell-gutter: 2.5rem;
  }
}

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

body {
  margin: 0;
  background-color: var(--zh-black);
  color: var(--zh-white);
  font-family: var(--zh-font-condensed);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

/* Horizontal page rhythm — every section aligns to this. */
.shell {
  width: 100%;
  max-width: var(--zh-shell-width);
  margin-inline: auto;
  padding-inline: var(--zh-shell-gutter);
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-block;
  border: 2px solid transparent;
  padding: 0.85rem 2rem;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  /* Mirrors the slant of the Zholics wordmark. */
  transform: skewX(-8deg);
  transition: background-color 150ms ease, color 150ms ease;
}

.btn > span {
  display: inline-block;
  transform: skewX(8deg);
}

/* Header-sized button. */
.btn--compact {
  padding: 0.65rem 1.5rem;
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
}

.btn--primary {
  background-color: var(--zh-red);
  border-color: var(--zh-red);
  color: var(--zh-white);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: transparent;
  color: var(--zh-white);
}

/* Secondary action: outlined until hovered, so it never competes with the red
   primary buttons. */
.btn--ghost {
  background-color: transparent;
  border-color: rgb(255 255 255 / 0.45);
  color: var(--zh-white);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background-color: var(--zh-red);
  border-color: var(--zh-red);
}

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

/* Visually hidden but available to screen readers. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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