/*
  /projects in the Modernist look (public/designs/modernist.css): warm off-white paper,
  Archivo 800 headlines, one red accent, square corners and 2px rules, buttons with the
  label flush left. Loads after base.css + index.css; tokens first, the rest under .theme-modernist.
*/

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

  --stage: #f3f2f2;
  --shot: #eae9e9;
  --card: #eae9e9;
  --raise: #e2e1e1;
  --line: #a6a5a4;
  --fg: #201e1d;
  --muted: #595655;
  --sub: #3b3837;
  --faint: #8a8786;
  --accent: #ec3013;
  --accent-text: #ae1800;
  --on-accent: #201e1d;
  --accent-soft: rgba(236, 48, 19, 0.1);

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

  --s-hero: clamp(42px, 6vw, 80px);
  --s-xl: clamp(26px, 3vw, 36px);
  --s-lg: 22px;

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

  --container: 1200px;
}

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

.theme-modernist ::selection {
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--fg);
}

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

.theme-modernist a:hover {
  color: var(--accent-text);
}

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

/* Header: a 2px rule, name in the headline weight */
.theme-modernist .site-header {
  font-size: 13px;
  border-bottom: 2px solid var(--fg);
}

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

.theme-modernist .site-header__home {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.theme-modernist .site-header__mail {
  color: var(--muted);
}

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

/* Intro: the red bar stands in for the landing page's role line */
.theme-modernist .projects__intro {
  max-width: 52rem;
}

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

.theme-modernist h1,
.theme-modernist h2,
.theme-modernist h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.theme-modernist .projects__intro h1 {
  line-height: 1.06;
  margin-left: -0.058em;
}

.theme-modernist .projects__lede {
  margin-top: 28px;
  max-width: 52ch;
  font-size: 17px;
  line-height: 28px;
  color: var(--sub);
}

/* Featured: square cover on the surface grey */
.theme-modernist .featured__media,
.theme-modernist .entry__media {
  border: 0;
  border-radius: 0;
  background: var(--shot);
}

.theme-modernist .featured__title {
  line-height: 1.1;
}

.theme-modernist .featured__pitch {
  font-size: 17px;
  line-height: 28px;
  color: var(--sub);
}

/* Meta: the role-line style, small caps in Archivo */
.theme-modernist .meta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

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

.theme-modernist .planet {
  border-radius: 0;
  box-shadow: none;
  border: 0;
}

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

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

.theme-modernist .planet--off {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--line);
}

/* Button: the landing page's secondary, 2px outline, label flush left */
.theme-modernist .btn {
  justify-content: flex-start;
  min-height: 48px;
  padding: 12px 20px;
  border-width: 2px;
  border-radius: 0;
  font-weight: 800;
  font-size: 15px;
}

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

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

/* More projects */
.theme-modernist .more__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-text);
  margin-bottom: 16px;
}

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

/* Contact: a red square on a 2px rule */
.theme-modernist .projects__contact {
  border-top: 2px solid var(--fg);
  color: var(--sub);
  font-size: 17px;
}

.theme-modernist .projects__contact .planet {
  top: -7px;
  width: 12px;
  height: 12px;
}

.theme-modernist .projects__contact a {
  font-weight: 600;
}

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