/*
  /projects theme: psychedelic. Carries over public/designs/psychedelic.css:
  sand background, Shrikhand headings with the stacked yellow and purple shadow,
  DM Sans text, brown pill buttons, the four-colour rings as stripes and small discs.
  Contract: src/projects-themes.md.
*/

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

  --stage: #f4e3c1;
  --shot: #3b1f14;
  --line: #d6b98a;
  --fg: #3b1f14;
  --muted: #6e4a36;
  --sub: #4f2d1f;
  --accent: #7a3b8f;
  --accent-text: #7a3b8f;
  --on-accent: #f4e3c1;
  --accent-soft: rgba(122, 59, 143, 0.12);

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

  --s-hero: clamp(2.6rem, 6vw, 4.6rem);
  --s-xl: clamp(1.7rem, 2.8vw, 2.4rem);

  --r-md: 28px;

  /* The landing palette, for the stripes and discs */
  --psy-orange: #e8541c;
  --psy-orange-text: #b33a0c;
  --psy-yellow: #f2a81d;
  --psy-pink: #a8264f;
  --psy-purple: #7a3b8f;
}

.theme-psychedelic {
  background-color: var(--stage);
  font-size: 16px;
  line-height: 1.55;
}

/* One set of rings in the bottom-right corner, bleeding off the edge like the landing art */
@media (min-width: 1024px) {
  .theme-psychedelic {
    background-image: radial-gradient(circle at 100% 100%,
      var(--psy-orange) 0 40px,
      var(--psy-yellow) 40px 80px,
      var(--psy-pink) 80px 120px,
      var(--psy-purple) 120px 160px,
      transparent 160px);
    background-repeat: no-repeat;
  }
}

.theme-psychedelic a:focus-visible,
.theme-psychedelic .btn:focus-visible {
  outline: 3px solid var(--psy-purple);
  outline-offset: 3px;
}

/* Header: the name in Shrikhand, four colour stripes underneath */
.theme-psychedelic .site-header {
  border-bottom: 0;
  box-shadow:
    0 5px 0 var(--psy-orange),
    0 10px 0 var(--psy-yellow),
    0 15px 0 var(--psy-pink),
    0 20px 0 var(--psy-purple);
  font-family: var(--f-text);
  font-size: 0.95rem;
}

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

.theme-psychedelic .site-header__home {
  font-family: "Shrikhand", cursive;
  font-weight: 400;
  font-size: 1.3rem;
  white-space: nowrap;
}

@media (max-width: 479px) {
  .theme-psychedelic .site-header {
    font-size: 0.82rem;
  }

  .theme-psychedelic .site-header__home {
    font-size: 1.1rem;
  }
}

.theme-psychedelic .site-header a:hover {
  color: var(--psy-purple);
}

/* Headings */
.theme-psychedelic h1,
.theme-psychedelic h2,
.theme-psychedelic h3 {
  font-family: "Shrikhand", cursive;
  font-weight: 400;
  letter-spacing: 0;
}

.theme-psychedelic .projects {
  padding-top: 80px;
}

.theme-psychedelic .projects__intro h1 {
  line-height: 1;
  color: var(--psy-orange-text);
  text-shadow: 3px 3px 0 var(--psy-yellow), 6px 6px 0 var(--psy-purple);
}

.theme-psychedelic .projects__lede {
  margin-top: 22px;
  font-size: 1.2rem;
  color: var(--sub);
}

/* Featured: the cover framed in brown, round like the portrait */
.theme-psychedelic .featured__media,
.theme-psychedelic .entry__media {
  border: 6px solid var(--shot);
}

.theme-psychedelic .entry__media {
  border-width: 4px;
  border-radius: 20px;
}

.theme-psychedelic .featured__title,
.theme-psychedelic .entry__title {
  line-height: 1.1;
}

.theme-psychedelic .featured__title a:hover,
.theme-psychedelic .entry__title a:hover {
  color: var(--psy-purple);
}

.theme-psychedelic .featured__pitch {
  font-size: 1.1rem;
}

/* Meta: the "Far out" label voice, uppercase and spaced */
.theme-psychedelic .meta {
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

/* Buttons: brown pill outline, filled on hover */
.theme-psychedelic .btn {
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  transition: none;
}

.theme-psychedelic .btn--ghost {
  border: 2px solid var(--fg);
  color: var(--fg);
}

.theme-psychedelic .btn--ghost:hover {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--stage);
}

/* Status discs: tiny rings for live, sun for in progress, an empty ring for archived */
.theme-psychedelic .planet--coral {
  background: radial-gradient(circle,
    var(--psy-orange) 0 25%,
    var(--psy-yellow) 25% 50%,
    var(--psy-pink) 50% 75%,
    var(--psy-purple) 75%);
  box-shadow: none;
}

.theme-psychedelic .planet--neutral {
  background: var(--psy-yellow);
  border: 2px solid var(--shot);
  box-shadow: none;
}

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

/* More projects */
.theme-psychedelic .more__title {
  font-family: var(--f-text);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--psy-pink);
  margin-bottom: 12px;
}

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

/* Contact: a full set of rings sitting on the line */
.theme-psychedelic .projects__contact {
  padding-top: 40px;
  border-top: 2px solid var(--fg);
  font-size: 1.05rem;
  color: var(--sub);
}

.theme-psychedelic .projects__contact .planet {
  top: -15px;
  width: 28px;
  height: 28px;
  border: 0;
}

.theme-psychedelic .projects__contact a {
  color: var(--psy-purple);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

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