/*
  /projects in the toy bricks look (public/designs/bricks.css): bright yellow, black ink,
  red, blue, green and white bricks; Lilita One for display and labels, DM Sans for reading;
  the cover sits in a blue brick with studs, buttons are chunky with a 5px base.
*/

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

  --stage: #ffcf00;
  --shot: #006cb7;
  --card: #ffffff;
  --raise: #ffe066;
  --line: #1b1b1b;
  --fg: #1b1b1b;
  --muted: #3d3523;
  --sub: #2a2518;
  --faint: #8a7300;
  --accent: #1b1b1b;
  --accent-text: #00508a;
  --on-accent: #ffcf00;
  --accent-soft: #ffffff;

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

  --s-xs: 0.95rem;
  --s-xl: clamp(1.7rem, 3vw, 2.4rem);
  --s-hero: clamp(3rem, 8vw, 6rem);

  --r-sm: 4px;
  --r-md: 8px;

  --brick-red: #e3000b;
  --brick-blue: #006cb7;
  --brick-green: #00852b;
}

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

.theme-bricks ::selection {
  background: var(--fg);
  color: var(--stage);
}

.theme-bricks :focus-visible {
  outline: 3px solid var(--fg);
  outline-offset: 3px;
}

/* Header */
.theme-bricks .site-header {
  border-bottom: 3px solid var(--line);
}

.theme-bricks .site-header__home {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.theme-bricks .site-header__mail {
  font-family: var(--f-text);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--sub);
}

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

/* Intro: the four studs, then the red outlined title */
.theme-bricks .projects__intro::before {
  content: "";
  display: block;
  width: 32px;
  height: 32px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--brick-red);
  box-shadow:
    inset -2px -3px 0 rgba(0, 0, 0, 0.18),
    42px 0 0 var(--brick-blue),
    84px 0 0 var(--brick-green),
    126px 0 0 #ffffff;
}

.theme-bricks .projects__intro h1 {
  font-family: "Lilita One", system-ui, sans-serif;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  /* A deeper brick red than the landing's #e3000b: 4.6:1 on the yellow. */
  color: #b8000a;
  -webkit-text-stroke: 0.027em var(--fg);
  paint-order: stroke fill;
  text-shadow: 0.04em 0.04em 0 var(--fg);
}

.theme-bricks .projects__lede {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 500;
  color: var(--sub);
}

/* Covers: inside a blue brick with studs on top */
.theme-bricks .featured__media,
.theme-bricks .entry__media {
  position: relative;
  overflow: visible;
  margin-top: 16px;
  padding: clamp(12px, 2vw, 20px);
  border: 0;
  border-radius: 8px;
  background: var(--brick-blue);
  box-shadow: inset -8px -10px 0 rgba(0, 0, 0, 0.2), 0 8px 0 var(--fg);
}

.theme-bricks .featured__media::before,
.theme-bricks .entry__media::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 100%;
  height: 16px;
  background: linear-gradient(90deg, transparent 20%, var(--brick-blue) 20% 80%, transparent 80%) 0 0 / 25% 100% repeat-x;
  border-radius: 6px 6px 0 0;
}

.theme-bricks .entry__media {
  margin-top: 12px;
  padding: 10px;
  box-shadow: inset -5px -6px 0 rgba(0, 0, 0, 0.2), 0 5px 0 var(--fg);
}

.theme-bricks .entry__media::before {
  left: 14px;
  right: 14px;
  height: 11px;
}

.theme-bricks .featured__media img,
.theme-bricks .entry__media img {
  border-radius: 4px;
}

.theme-bricks .featured:hover .featured__media img,
.theme-bricks .entry:hover .entry__media img {
  transform: none;
}

/* Titles in Lilita One */
.theme-bricks .featured__title,
.theme-bricks .entry__title {
  font-family: "Lilita One", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

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

/* Meta: the set label */
.theme-bricks .meta {
  letter-spacing: 0.04em;
  color: var(--muted);
}

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

/* Planets become round studs: red live, blue in progress, white archived */
.theme-bricks .planet {
  border: 0;
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.2);
}

.theme-bricks .planet--coral {
  background: var(--brick-red);
}

.theme-bricks .planet--neutral {
  background: var(--brick-blue);
}

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

.theme-bricks .meta .planet {
  width: 13px;
  height: 13px;
}

/* Button: the red "Let's build" brick with a dark base */
.theme-bricks .btn {
  min-height: 52px;
  padding: 12px 26px;
  border: 0;
  border-radius: 10px;
  font-family: "Lilita One", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  box-shadow: 0 5px 0 var(--fg);
  transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.theme-bricks .btn--ghost {
  background: var(--brick-red);
  color: #ffffff;
}

.theme-bricks .btn--ghost:hover {
  background: #c8000a;
  color: #ffffff;
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--fg);
}

/* More projects */
.theme-bricks .more__title {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--fg);
  margin-bottom: 12px;
}

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

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

.theme-bricks .projects__contact .planet {
  top: -12px;
  width: 22px;
  height: 22px;
}

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

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