/*
  /projects in the MTB / downhill look (public/designs/mtb.css): warm near-black,
  bone text, race orange; Anton in caps for display and labels, DM Sans for reading;
  square corners, solid or 2px outlined plates, a forward-leaning title.
*/

:root[data-theme="mtb"] {
  color-scheme: dark;

  --stage: #1e1c19;
  --shot: #121110;
  --card: #262420;
  --raise: #2e2b27;
  --line: #48443d;
  --fg: #f1ece2;
  --muted: #b3ac9f;
  --sub: #d8d2c6;
  --faint: #6f6a61;
  --accent: #ff6a13;
  --accent-text: #ff7a2b;
  --on-accent: #1e1c19;
  --accent-soft: rgba(255, 106, 19, 0.14);

  --f-text: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "Anton", "Arial Narrow", sans-serif;

  --s-xs: 0.85rem;
  --s-xl: clamp(1.8rem, 3.2vw, 2.6rem);
  --s-hero: clamp(3.4rem, 9vw, 7.5rem);

  --r-sm: 0;
  --r-md: 0;
}

.theme-mtb {
  overflow-x: clip;
}

.theme-mtb ::selection {
  background: var(--accent);
  color: var(--on-accent);
}

.theme-mtb :focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0;
}

/* Header: the badge row */
.theme-mtb .site-header {
  font-size: 0.95rem;
  border-bottom: 2px solid var(--line);
}

.theme-mtb .site-header__home {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
}

.theme-mtb .site-header__mail {
  font-family: var(--f-text);
  font-size: 0.9rem;
  letter-spacing: 0;
}

.theme-mtb .site-header a:hover {
  color: var(--accent-text);
}

/* Intro: a skewed Anton title over an orange stripe */
.theme-mtb .projects__intro h1 {
  font-family: var(--f-mono);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  transform: skewX(-8deg);
  transform-origin: left bottom;
}

.theme-mtb .projects__intro::before {
  content: "";
  display: block;
  width: 56px;
  height: 6px;
  margin-bottom: 22px;
  background: var(--accent);
  transform: skewX(-20deg);
  transform-origin: left;
}

.theme-mtb .projects__lede {
  margin-top: 22px;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--sub);
}

/* Covers: square and framed */
.theme-mtb .featured__media,
.theme-mtb .entry__media {
  border: 2px solid var(--line);
}

/* Titles in Anton caps */
.theme-mtb .featured__title,
.theme-mtb .entry__title {
  font-family: var(--f-mono);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.theme-mtb .entry__title {
  font-size: 1.6rem;
}

.theme-mtb .featured__pitch,
.theme-mtb .entry__pitch {
  font-weight: 500;
  color: var(--sub);
}

/* Meta: the stats row, orange label first */
.theme-mtb .meta {
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  gap: 6px 22px;
}

.theme-mtb .meta__status {
  color: var(--accent-text);
}

.theme-mtb .meta__tags {
  gap: 6px 22px;
}

/* Planets become small plates: filled for live, outlined otherwise */
.theme-mtb .planet {
  border-radius: 0;
  box-shadow: none;
  transform: skewX(-12deg);
}

.theme-mtb .planet--coral {
  background: var(--accent);
}

.theme-mtb .planet--neutral {
  background: transparent;
  border: 2px solid var(--fg);
}

.theme-mtb .planet--off {
  background: transparent;
  border: 2px solid var(--faint);
}

.theme-mtb .meta .planet {
  width: 10px;
  height: 10px;
}

/* Button: the outlined CTA plate, orange on hover */
.theme-mtb .btn {
  min-height: 52px;
  padding: 12px 24px;
  border-width: 2px;
  font-family: var(--f-mono);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.theme-mtb .btn--ghost {
  border-color: var(--fg);
  color: var(--fg);
}

.theme-mtb .btn--ghost:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

/* More projects */
.theme-mtb .more__title {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--accent-text);
  margin-bottom: 12px;
}

.theme-mtb .entry {
  border-top: 2px solid var(--line);
}

/* Contact: an orange plate on the line */
.theme-mtb .projects__contact {
  border-top: 2px solid var(--line);
  font-size: 1.05rem;
  color: var(--sub);
}

.theme-mtb .projects__contact .planet {
  top: -8px;
  width: 28px;
  height: 14px;
}

.theme-mtb .projects__contact a {
  color: var(--accent-text);
  font-weight: 500;
}

.theme-mtb .projects__contact a:hover {
  color: var(--fg);
}
