/*
  /projects in the skate zine look (public/designs/skate.css): newsprint cream, ink black,
  one blue; Archivo Black in caps, a Permanent Marker line, DM Sans for reading;
  white-bordered prints with hard ink shadows, a strip of yellow sticker tape.
*/

:root[data-theme="skate"] {
  color-scheme: light;

  --stage: #e9e4d8;
  --shot: #ffffff;
  --card: #ffffff;
  --raise: #f4f1ea;
  --line: #111111;
  --fg: #111111;
  --muted: #4a463e;
  --sub: #26241f;
  --faint: #8a8579;
  --accent: #2a4bd7;
  --accent-text: #2a4bd7;
  --on-accent: #ffffff;
  --accent-soft: #ffd400;

  --f-text: "DM Sans", system-ui, sans-serif;
  --f-mono: "DM Sans", system-ui, sans-serif;

  --s-xs: 0.8rem;
  --s-xl: clamp(1.6rem, 2.8vw, 2.3rem);
  --s-hero: clamp(3rem, 8vw, 6rem);

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

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

.theme-skate ::selection {
  background: rgba(42, 75, 215, 0.3);
  color: var(--fg);
}

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

/* Header: the black issue tag, then the mail */
.theme-skate .site-header {
  border-bottom: 3px solid var(--line);
}

.theme-skate .site-header__home {
  --fg: #e9e4d8;
  padding: 6px 12px;
  background: #111111;
  font-family: "Archivo Black", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.theme-skate .site-header__home:hover {
  background: var(--accent);
}

.theme-skate .site-header__mail {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sub);
}

.theme-skate .site-header__mail:hover {
  color: var(--accent-text);
}

/* Intro: the big caps title, the lede as a marker line */
.theme-skate .projects__intro h1,
.theme-skate .featured__title,
.theme-skate .entry__title {
  font-family: "Archivo Black", system-ui, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.theme-skate .projects__intro h1 {
  line-height: 0.86;
  letter-spacing: -0.03em;
}

.theme-skate .projects__lede {
  margin-top: 22px;
  max-width: 26ch;
  font-family: "Permanent Marker", cursive;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.3;
  color: var(--fg);
  transform: rotate(-1deg);
  transform-origin: left;
}

/* Covers: prints with a white border and an ink shadow */
.theme-skate .featured {
  position: relative;
}

.theme-skate .featured__media,
.theme-skate .entry__media {
  border: 10px solid #ffffff;
  box-shadow: 6px 8px 0 var(--line);
}

.theme-skate .featured__media {
  transform: rotate(-1.2deg);
}

.theme-skate .entry__media {
  border-width: 6px;
  box-shadow: 4px 5px 0 var(--line);
}

/* Yellow tape holding the featured print */
.theme-skate .featured::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: -12px;
  left: 28px;
  width: 92px;
  height: 26px;
  background: #ffd400;
  border: 3px solid var(--line);
  transform: rotate(-8deg);
  pointer-events: none;
}

.theme-skate .featured__title a:hover,
.theme-skate .entry__title a:hover {
  color: var(--accent-text);
}

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

/* Meta: small DM Sans caps */
.theme-skate .meta {
  font-weight: 500;
  letter-spacing: 0.08em;
}

.theme-skate .meta__status {
  color: var(--fg);
  font-weight: 500;
}

/* Planets become inked stickers: blue live, yellow in progress, white archived */
.theme-skate .planet {
  border: 2px solid var(--line);
  box-shadow: none;
}

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

.theme-skate .planet--neutral {
  background: #ffd400;
}

.theme-skate .planet--off {
  background: #ffffff;
}

.theme-skate .meta .planet {
  width: 12px;
  height: 12px;
}

/* Button: the white secondary with a 3px ink border and hard shadow */
.theme-skate .btn {
  min-height: 48px;
  padding: 11px 19px;
  border: 3px solid var(--line);
  font-family: "Archivo Black", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--line);
  transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.theme-skate .btn--ghost {
  background: #ffffff;
  border-color: var(--line);
  color: var(--fg);
}

.theme-skate .btn--ghost:hover {
  background: #ffd400;
  border-color: var(--line);
  color: var(--fg);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--line);
}

/* More projects: the black issue tag */
.theme-skate .more__title {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 12px;
  background: #111111;
  color: #e9e4d8;
  font-family: "Archivo Black", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.1em;
}

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

/* Contact */
.theme-skate .projects__contact {
  border-top: 3px solid var(--line);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--sub);
}

.theme-skate .projects__contact .planet {
  top: -9px;
  width: 16px;
  height: 16px;
}

.theme-skate .projects__contact a {
  color: var(--accent-text);
  font-weight: 500;
  text-decoration-thickness: 2px;
}

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