/* FloppaOS site. The page is the FloppaOS desktop: pure black (OLED, like the system), the caracal's
   orange from the logo, and the navigation is a taskbar at the bottom with the start button on the left
   and the version where the clock would be. No scripts. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/bricolage.woff2?v=1") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000;
  --ink: #f4f4f5;
  --ash: #a1a1aa;
  --line: #27272a;
  --panel: #141416;
  --amber: #ffb347;
  --bar: 52px;
  --measure: 38rem;
  color-scheme: dark;
}

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

html {
  background: var(--black);
  color: var(--ink);
  font: 400 1.125rem/1.6 "Bricolage Grotesque", system-ui, sans-serif;
  font-optical-sizing: auto;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom));
}

main, .footer {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}

a {
  color: var(--amber);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute;
  left: .75rem;
  top: -4rem;
  z-index: 20;
  padding: .5rem .9rem;
  border-radius: 6px;
  background: var(--amber);
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: .75rem; }

/* Hero */

.hero { padding-block: clamp(3rem, 12vh, 7.5rem) 3rem; }

.hero-logo {
  display: block;
  width: clamp(56px, 8vw, 88px);
  height: auto;
  margin-bottom: 1.5rem;
}

h1 {
  margin: 0 0 1.75rem;
  font-size: clamp(3.75rem, 13vw, 9rem);
  font-weight: 800;
  line-height: .88;
  letter-spacing: -.045em;
}

.lede {
  max-width: 36rem;
  margin: 0 0 1.25rem;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.45;
}

.status {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin: 0 0 2rem;
  color: var(--ash);
  font-size: 1rem;
}

.dot {
  flex: none;
  margin-top: .5em;
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 .25rem rgb(255 179 71 / .18);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .55rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { border-color: #52525b; background: var(--panel); }
.button.primary { border-color: var(--amber); background: var(--amber); color: var(--black); }
.button.primary:hover { border-color: #ffc46b; background: #ffc46b; }

/* The screenshot: black on black, so only a thin edge shows where the screen ends. */

.screen { margin: 0 0 clamp(4rem, 10vh, 7rem); }
.screen img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.screen figcaption { margin-top: .75rem; color: var(--ash); font-size: .9375rem; }

/* Sections */

section { padding-block: 2rem 3rem; }

h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 3.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}

section p { max-width: var(--measure); }
.nowrap { white-space: nowrap; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 2rem 3.5rem;
  margin: 0;
}
.features dt { margin-bottom: .35rem; font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.features dd { max-width: 34rem; margin: 0; color: var(--ash); }

pre {
  max-width: var(--measure);
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font: 400 .9375rem/1.75 ui-monospace, "DejaVu Sans Mono", "Noto Sans Mono", Menlo, monospace;
}
code { font-family: ui-monospace, "DejaVu Sans Mono", "Noto Sans Mono", Menlo, monospace; font-size: .9em; }
pre code { font-size: inherit; }

.needs {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .55rem 2rem;
  max-width: var(--measure);
  margin: 1.75rem 0 0;
}
.needs div { display: contents; }
.needs dt { color: var(--ash); }
.needs dd { margin: 0; }

.notes { max-width: var(--measure); margin: 0; padding-left: 1.2rem; }
.notes li { margin-bottom: .7rem; }
.notes li::marker { color: var(--amber); }

/* Footer */

.footer { padding: 3rem 0 2.5rem; color: var(--ash); font-size: .9375rem; }
.footer p { max-width: 46rem; margin: 0 0 .75rem; }
.sites { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.sites a { color: var(--ink); }
.sites a[aria-current] { color: var(--amber); }

/* The taskbar: start button far left, sections like pinned apps, the version where the clock sits. */

.taskbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: .25rem;
  height: calc(var(--bar) + env(safe-area-inset-bottom));
  padding: 0 .5rem env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
  background: var(--black);
}

.taskbar a {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 .85rem;
  border-radius: 6px;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.taskbar a:hover { background: var(--panel); }
.taskbar a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--amber);
  transform: translateX(-50%);
  transition: width .15s ease;
}
.taskbar a:hover::after, .taskbar a:focus-visible::after { width: 16px; }
.taskbar .start { padding: 0 .6rem; }
.taskbar .start img { display: block; }

.tray {
  display: grid;
  justify-items: end;
  margin-left: auto;
  padding: 0 .75rem;
  font-size: .75rem;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.tray span + span { color: var(--ash); }

@media (max-width: 560px) {
  .taskbar { gap: 0; padding-inline: .25rem; }
  .taskbar a { padding: 0 .5rem; font-size: .875rem; }
  .tray { display: none; }
  .needs { grid-template-columns: 1fr; gap: 0; }
  .needs dd { margin-bottom: .7rem; }
}

@media (prefers-reduced-motion: no-preference) {
  /* The one moment of motion: the taskbar comes up once, like at login. */
  .taskbar { animation: rise .45s cubic-bezier(.2, .8, .2, 1) .15s both; }
  @keyframes rise { from { transform: translateY(100%); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .taskbar a::after { transition: none; }
}
