/*
  /projects in the Metal look (public/designs/metal.css): near-black stage, bone text,
  blood-red accent, Pirata One for the big words, Oswald in wide-tracked caps for the rest,
  square 3px frames and rules. Loads after base.css + index.css; tokens first, the rest
  under .theme-metal.
*/

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

  --stage: #0b0a0a;
  --shot: #000000;
  --card: #141212;
  --raise: #1c1919;
  --line: #3a3532;
  --fg: #ece6da;
  --muted: #b3ab9d;
  --sub: #cfc7b8;
  --faint: #6f685e;
  --accent: #c8102e;
  /* The landing page's red is under 4.5:1 on black for small text; this lighter red passes. */
  --accent-text: #ee4a5f;
  --on-accent: #ece6da;
  --accent-soft: rgba(200, 16, 46, 0.2);

  --f-display: "Pirata One", serif;
  --f-text: "Oswald", sans-serif;
  --f-mono: "Oswald", sans-serif;

  --s-hero: clamp(64px, 10vw, 144px);
  --s-xl: clamp(36px, 4vw, 52px);
  --s-lg: 32px;

  --r-sm: 0;
  --r-md: 0;
  --r-pill: 0;

  --container: 1296px;
}

.theme-metal {
  font-size: 15px;
  line-height: 1.55;
}

.theme-metal a {
  color: var(--fg);
  text-underline-offset: 3px;
}

.theme-metal a:hover {
  color: var(--fg);
  opacity: 0.75;
}

.theme-metal :focus-visible,
.theme-metal a:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 0;
}

/* Header: wide-tracked caps, a 3px rule */
.theme-metal .site-header {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--fg);
}

.theme-metal .site-header__inner {
  min-height: 64px;
}

.theme-metal .site-header__home {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
}

.theme-metal .site-header__mail {
  letter-spacing: 0.12em;
  text-transform: none;
}

/* Intro: the blackletter headline, a red rule, the lede in caps under a 3px divider */
.theme-metal .projects__intro {
  max-width: 48rem;
}

.theme-metal .projects__intro::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-bottom: 28px;
  background: var(--accent);
}

.theme-metal h1,
.theme-metal .featured__title,
.theme-metal .entry__title {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.theme-metal .projects__intro h1 {
  line-height: 0.86;
}

.theme-metal .projects__lede {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 3px solid var(--fg);
  max-width: 34ch;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--sub);
}

/* Featured: the cover framed like the landing portrait */
.theme-metal .featured__media,
.theme-metal .entry__media {
  border: 3px solid var(--fg);
  border-radius: 0;
  background: var(--shot);
}

.theme-metal .entry__media {
  border-width: 2px;
}

.theme-metal .featured__title {
  line-height: 0.95;
}

.theme-metal .featured__pitch,
.theme-metal .entry__pitch {
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--sub);
}

.theme-metal .entry__pitch {
  font-size: 15px;
}

/* Meta: wide caps; status marks are red, bone and hollow diamonds */
.theme-metal .meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.theme-metal .meta__status {
  color: var(--fg);
}

.theme-metal .planet {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: rotate(45deg);
}

.theme-metal .meta .planet {
  width: 8px;
  height: 8px;
}

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

.theme-metal .planet--neutral {
  background: var(--fg);
}

.theme-metal .planet--off {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--muted);
}

/* Button: a 3px bone frame, caps; red fill on hover */
.theme-metal .btn {
  min-height: 48px;
  padding: 12px 22px;
  border-width: 3px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.theme-metal .btn--ghost {
  background: transparent;
  border-color: var(--fg);
  color: var(--fg);
}

.theme-metal .btn--ghost:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--fg);
  opacity: 1;
}

/* More projects: the role line, a red rule then red caps */
.theme-metal .more__title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--accent-text);
  margin-bottom: 16px;
}

.theme-metal .more__title::before {
  content: "";
  flex: none;
  width: 48px;
  height: 3px;
  background: var(--accent);
}

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

/* Contact: a red diamond on a 3px rule */
.theme-metal .projects__contact {
  border-top: 3px solid var(--fg);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sub);
}

.theme-metal .projects__contact .planet {
  top: -8px;
  width: 13px;
  height: 13px;
  background: var(--accent);
  outline: 3px solid var(--stage);
}

.theme-metal .projects__contact a {
  color: var(--accent-text);
  text-transform: none;
  letter-spacing: 0.02em;
}

.theme-metal .projects__contact a:hover {
  color: var(--fg);
  opacity: 1;
}

/* A cover in the list keeps its own height when the text beside it runs taller */
.theme-metal .entry__media {
  align-self: start;
}

/* Covers keep full strength on hover; only text links dim */
.theme-metal .featured__media:hover,
.theme-metal .entry__media:hover {
  opacity: 1;
}
