:root {
  color-scheme: dark;
  --bg: #000;
  --panel: #090909;
  --border: #34363a;
  --ink: #f2f2f2;
  --muted: #aaaeb3;
  --link: #dcdedf;
  --glass: linear-gradient(125deg, #92989d18, #20222619 65%), #101113ac;
  --focus-mauve: #998f9f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(ellipse 47rem 28rem at 92% 9rem, #43494e99, transparent 80%),
    radial-gradient(ellipse 34rem 22rem at 12% 0, #39383b80, transparent 80%),
    var(--bg);
  background-repeat: no-repeat;
  font: 16px/1.55 sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--focus-mauve); outline-offset: 3px; }
.skip { position: absolute; left: 1rem; top: -5rem; background: var(--bg); padding: 8px; z-index: 2; }
.skip:focus { top: 4px; }
header { background: #08090abd; border-top: 3px solid var(--focus-mauve); border-bottom: 1px solid var(--border); backdrop-filter: blur(16px); }
.mast, main, footer { width: min(1320px, 94%); margin-inline: auto; }
.mast, nav, .brand, .actions, .labelrow, .section-title, .ledger li, footer { display: flex; align-items: center; }
.mast, .labelrow, .section-title, .ledger li { justify-content: space-between; }
.mast { min-height: 72px; }
.brand { font-size: 26px; font-weight: 700; line-height: 1; letter-spacing: -1.6px; color: white; }
.brand:hover { text-decoration: none; }
.brand img { width: 31px; margin-right: 10px; }
.brand span { font-weight: 350; }
nav { gap: 26px; }
nav a { color: var(--muted); font-size: 14px; font-weight: 550; padding: 8px 0; }
nav [aria-current] { color: white; text-decoration: underline; text-decoration-color: var(--focus-mauve); text-underline-offset: 5px; }
.directory [aria-current] { color: white; text-decoration: underline; text-decoration-color: var(--focus-mauve); text-underline-offset: 5px; }
main { flex-grow: 1; padding: 26px 0 38px; }
.layout { display: grid; grid-template-columns: minmax(0, 2.65fr) minmax(250px, 1fr); gap: clamp(20px, 2.5vw, 36px); }
.column, aside { min-width: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(29px, 3.1vw, 44px); letter-spacing: -.055em; line-height: 1.12; }
h2 { font-size: 23px; letter-spacing: -.038em; line-height: 1.25; }
h3 { font-size: 19px; line-height: 1.35; letter-spacing: -.025em; }
.welcome {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  position: relative;
  isolation: isolate;
  background: linear-gradient(90deg, #060708cf, #11121499 37%, transparent 78%),
    url("assets/archelinux-desktop.jpg") center 52% / cover;
}
/* Frost the wallpaper beneath the text; keep the illustration sharp on the right. */
.welcome::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  backdrop-filter: blur(14px) saturate(.65);
  mask-image: linear-gradient(90deg, black 12%, #000e 40%, transparent 78%);
}
.welcome-copy { padding: clamp(24px, 3.3vw, 46px) clamp(20px, 3.5vw, 48px); }
.platform { display: flex; align-items: center; gap: 9px; color: #d8dadd; font: 12px/1.5 sans-serif; letter-spacing: .07em; text-transform: uppercase; }
.platform::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--focus-mauve); }
.welcome h1 { font-size: clamp(3.5rem, 7vw, 6rem); line-height: 1; letter-spacing: -.085em; margin: 15px 0; }
.welcome h1 span { color: var(--link); font-weight: 300; }
.intro { max-width: 34ch; margin-bottom: 20px; font-size: clamp(16px, 1.4vw, 19px); color: #e2e3e5; }
.lead { margin: 12px 0 15px; color: #ced0d2; }
.actions { flex-wrap: wrap; gap: 9px 18px; font-size: 14px; font-weight: 600; }
.button, button { display: inline-block; background: linear-gradient(#e4e6e8, #c6c9cd); color: #141517; border: 1px solid #e7e8e9; border-radius: 5px; padding: 8px 13px; font: 650 14px/1.4 sans-serif; cursor: pointer; }
.button:hover, button:hover { background: #f3f4f5; text-decoration: none; }
.section-title, .line { margin: 26px 0 4px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.section-title a, .labelrow a { font-size: 13px; }
.entry { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 15px; padding: 16px 0; border-bottom: 1px solid var(--border); }
time, small, .crumb { font: 12px/1.6 sans-serif; color: var(--muted); }
.entry time { padding-top: 4px; }
.entry p { color: #c4c7ca; margin-top: 5px; }
/* Match the desktop window radius and thin graphite outline. */
.box, .downloadbox {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 #ffffff09;
}
.box { padding: 15px 17px; margin-bottom: 15px; }
.box h2 { font-size: 19px; }
.search { display: flex; gap: 6px; margin: 12px 0 0; }
.search input { font: inherit; flex: 1; width: 0; min-width: 0; border: 1px solid #515459; border-radius: 3px; padding: 6px 9px; background: var(--bg); color: white; }
.search input::placeholder { color: #a4a7ab; }
.ledger, .history, .directory ul, .topiclist { list-style: none; padding: 0; }
.ledger { margin: 10px 0 0; }
.ledger li, .history li { padding: 6px 0; border-top: 1px solid var(--border); gap: 10px; }
.ledger li { font: 13px/1.6 sans-serif; flex-wrap: wrap; }
.history { margin: 6px 0 20px; }
.history li { display: flex; align-items: baseline; gap: 18px; }
.history li:first-child { border: 0; }
.history time { flex-shrink: 0; }
.directory h3 { margin-top: 13px; font-size: 15px; }
.directory ul { margin: 5px 0 13px; }
.directory li { line-height: 1.65; font-size: 14px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding-top: 10px; }
.gallery img, .prose img { max-width: 100%; height: auto; display: block; }
.gallery span { display: block; font-size: 14px; margin-top: 5px; }
footer { gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; padding: 18px 0 24px; }
.footbrand { font-weight: 720; font-size: 17px; color: #e8e9ea; letter-spacing: -.05em; }
footer a:last-child { margin-left: auto; }
.crumb { margin: -4px 0 18px; }
.prose { max-width: 82ch; overflow-wrap: anywhere; }
.prose h2 { margin: 26px 0 10px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.prose h3 { margin: 18px 0 8px; }
.prose p, .prose ol, .prose ul { margin: 14px 0; }
.prose li + li { margin-top: 5px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose .button { text-decoration: none; }
code, pre { font-family: monospace; font-size: .9em; }
code { color: #e1e3e6; background: #131313; padding: 1px 3px; }
pre { overflow-x: auto; background: var(--panel); border: 1px solid var(--border); padding: 13px 16px; }
pre code { background: transparent; padding: 0; font-size: inherit; }
.topiclist { columns: 2; margin-top: 10px; }
.topiclist li { break-inside: avoid; padding: 4px 0; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; border-bottom: 1px solid var(--border); padding: 9px 10px; vertical-align: top; }
th { background: var(--panel); }
#count { margin: 12px 0; font-size: 14px; color: var(--muted); }
dl { display: grid; grid-template-columns: max-content 1fr; }
dt, dd { padding: 6px 12px; margin: 0; border-bottom: 1px solid var(--border); }
dt { font-weight: 600; }
.deps { columns: 2; }
.downloadbox { border-left-color: var(--focus-mauve); padding: 18px; }
.downloadbox h2 { margin: 0; border: none; }
@media (max-width: 520px) {
  .welcome { background-position: 60% center; }
  .welcome-copy { background: #0008; }
}
@media (max-width: 720px) {
  .layout { grid-template-columns: 1fr; }
  .mast { flex-wrap: wrap; gap: 6px 20px; padding: 12px 0 6px; }
  nav { flex-wrap: wrap; gap: 0 18px; }
  .entry { display: block; }
  .entry h3 { margin-top: 3px; }
  .gallery { gap: 10px; }
  .topiclist { columns: 1; }
  footer a:last-child { margin-left: 0; }
}

@media (prefers-reduced-transparency: reduce) {
  header, .box, .downloadbox { background: var(--panel); backdrop-filter: none; }
  .welcome::before { background: var(--panel); backdrop-filter: none; }
}

.walkthrough { margin: 18px 0; }
.walkthrough video { width: 100%; display: block; background: #000; border-radius: 9px; }
.walkthrough figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }
