/* Sultan Re:MC: own stylesheet, layout inspired by the os.gnome.org design (2025 redesign),
   in warm savanna colours. */

@font-face {
  font-family: "InterVariable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/InterVariable.woff2") format("woff2");
}

:root {
  color-scheme: light dark;

  /* Savanna palette: sand, terracotta, ochre and saffron under a dusk sky */
  --sand: #fbf4e8;
  --sand-card: #fffaf2;
  --sand-hover: #ffe4b8;
  --date: #33241a;
  --earth: #75604d;
  --terracotta: #b4491f;
  --terracotta-deep: #933a17;
  --clay: #8c2f1c;
  --saffron: #f7c75a;
  --ochre: #e09a3c;

  --bg: var(--sand);
  --fg: var(--date);
  --muted: var(--earth);
  --card: var(--sand-card);
  --card-border: rgba(110, 65, 25, 0.12);
  --card-shadow: 0 1px 2px rgba(90, 50, 20, 0.06), 0 10px 30px rgba(90, 50, 20, 0.08);
  --btn-bg: rgba(110, 65, 25, 0.09);
  --btn-bg-hover: rgba(110, 65, 25, 0.15);
  --accent: var(--terracotta);
  --accent-hover: var(--terracotta-deep);
  --accent-glow: rgba(180, 73, 31, 0.25);
  --link: #a3401b;
  --code-bg: rgba(110, 65, 25, 0.08);
  --note: #8a5300;
  --focus: var(--ochre);
  --feature: linear-gradient(135deg, #f4cf96, #e8a46a);
  --hero: linear-gradient(135deg, #3f1a2a 0%, #74281c 35%, #9a3c1a 70%, #ab4c22 100%);

  --radius: 18px;
  --pill: 999px;
  --page: 64rem;
  --gap: 1.5rem;
  --spring: cubic-bezier(0.17, 0.89, 0.32, 1.28);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1613;
    --fg: #f3e8da;
    --muted: #c9b5a0;
    --card: #2a211c;
    --card-border: rgba(255, 225, 190, 0.08);
    --card-shadow: none;
    --btn-bg: rgba(255, 225, 190, 0.1);
    --btn-bg-hover: rgba(255, 225, 190, 0.16);
    --accent: #c0532a;
    --accent-hover: #a8451f;
    --accent-glow: rgba(224, 120, 60, 0.3);
    --link: #f0a868;
    --code-bg: rgba(255, 225, 190, 0.08);
    --note: #f2c35b;
    --feature: linear-gradient(135deg, #6e3b1e, #3a2a20);
    --hero: linear-gradient(135deg, #26121c 0%, #4f1d17 35%, #7a3418 70%, #91461d 100%);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: InterVariable, "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Cantarell, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

code {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  overflow-wrap: anywhere;
}

/* Buttons: pills that grow a little on hover */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6em 1.3em;
  border: 0;
  border-radius: var(--pill);
  background: var(--btn-bg);
  color: var(--fg);
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--spring), background-color 0.2s;
}

.btn:hover {
  transform: scale(1.05);
  background: var(--btn-bg-hover);
}

.btn.suggested {
  background: var(--accent);
  color: #fff;
}

.btn.suggested:hover {
  background: var(--accent-hover);
}

/* Hero: gradient with a faint triangle lattice */
.hero {
  color: #fff;
  background:
    repeating-linear-gradient(60deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(-60deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 56px),
    var(--hero);
  padding: 0 1rem 4.5rem;
}

.headerbar {
  max-width: var(--page);
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand img {
  border-radius: 8px;
  image-rendering: pixelated;
}

.re {
  color: var(--saffron);
}

.nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.45em 0.9em;
  border-radius: var(--pill);
  transition: background-color 0.2s;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.punchline {
  max-width: 46rem;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar {
  width: 9rem;
  height: 9rem;
  image-rendering: pixelated;
  border-radius: 2rem;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18), 0 18px 40px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.92;
}

h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.subtitle {
  margin: 0 0 1.75rem;
  font-size: 1.25rem;
  text-wrap: balance;
}

.address {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.4rem 0.35rem 1.1rem;
  border-radius: var(--pill);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.address:has(.copy[hidden]) {
  padding-right: 1.1rem;
}

.address code {
  background: none;
  padding: 0.2em 0;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.hero .btn {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.hero .btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

.hero .btn.suggested,
.address .btn {
  background: var(--sand-card);
  color: var(--clay);
}

/* Keep the light pills light on hover: .hero .btn:hover would otherwise swap in its
   translucent background behind their dark text. */
.hero .btn.suggested:hover,
.address .btn:hover {
  background: var(--sand-hover);
  color: var(--clay);
}

/* Sections made of tiles */
main {
  padding: 0 1rem 3.5rem;
}

.container {
  max-width: var(--page);
  margin: 0 auto;
  padding-top: 3.5rem;
}

h2 {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--gap);
}

.tile {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

.tile h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.tile p {
  margin: 0.25rem 0;
}

.tile ol {
  display: grid;
  gap: 0.5rem;
  margin: 0.25rem 0 0;
  padding-left: 1.25rem;
}

.tile .note {
  color: var(--note);
  font-size: 0.95rem;
}

.tile .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.25rem;
}

.tile > .btn {
  align-self: flex-start;
  margin-top: 1.25rem;
}

.tile.feature {
  background: var(--feature);
  border-color: transparent;
}

footer {
  padding: 2.5rem 1rem 3rem;
  border-top: 1px solid var(--card-border);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

footer p {
  margin: 0.35rem 0;
}

footer .thanks {
  color: var(--fg);
  font-size: 1.05rem;
  font-weight: 600;
}

/* 404 page */
.notfound {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.5rem;
  padding: 2rem 1rem;
  text-align: center;
}

@media (max-width: 600px) {
  .headerbar {
    justify-content: center;
  }

  .punchline {
    margin-top: 1.5rem;
  }

  .avatar {
    width: 7rem;
    height: 7rem;
    border-radius: 1.6rem;
  }

  .tile {
    padding: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .nav a {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}

/* Version timeline in "El mundo" */
.roadmap {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.roadmap li {
  position: relative;
  padding: 0 0 1.25rem 1.75rem;
}

.roadmap li:last-child {
  padding-bottom: 0;
}

/* the dot */
.roadmap li::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  left: 0.15rem;
  width: 0.75rem;
  height: 0.75rem;
  box-sizing: border-box;
  border: 2px solid var(--muted);
  border-radius: 50%;
  background: var(--card);
}

/* the line down to the next dot */
.roadmap li::after {
  content: "";
  position: absolute;
  top: 1.35rem;
  bottom: 0.15rem;
  left: calc(0.15rem + 0.375rem - 1px);
  width: 2px;
  border-radius: 1px;
  background: var(--btn-bg-hover);
}

.roadmap li:last-child::after {
  display: none;
}

.roadmap li.now::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.roadmap .step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
}

.roadmap .version {
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.roadmap .chip {
  padding: 0.15rem 0.65rem;
  border-radius: var(--pill);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
}

.roadmap .status {
  background: var(--btn-bg);
  color: var(--muted);
}

.roadmap .now .status {
  background: var(--accent);
  color: #ffffff;
}

.roadmap .radius {
  margin-left: auto;
  border: 1px solid var(--btn-bg-hover);
  font-variant-numeric: tabular-nums;
}

.roadmap p {
  margin: 0.3rem 0 0;
}
