/* The Sorl website. Ink palette and type from docs/brand/BRAND.md on main.
   No CSS animations or transitions: the panel picture's own loop is the page's only motion. */

:root {
  color-scheme: light dark;
  --bg: #f6f6f8;
  --surface: #ffffff;
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --accent: #3d4349;
  --on-accent: #ffffff;
  --border: rgb(0 0 0 / 0.08);
  --code-bg: #ecedef;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1e;
    --surface: #2c2c2e;
    --text: #f5f5f7;
    --secondary: #a1a1a6;
    --accent: #e4ded2;
    --on-accent: #15171a;
    --border: rgb(255 255 255 / 0.1);
    --code-bg: #3a3e44;
  }
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-inline-size: 100%;
  block-size: auto;
}

h1,
h2,
h3,
.wordmark {
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
  font-weight: 600;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  max-inline-size: 65ch;
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Content is about 960 px wide, with at least 20 px either side. */
.wrap {
  inline-size: min(100% - 2.5rem, 60rem);
  margin-inline: auto;
}

/* Header and the lockup: icon left, live-text wordmark right, vertically centered.
   The icon's tile is about 51.5 px of its 64 px box (the PNG has a transparent margin), so a 44 px wordmark puts
   the cap height near 60% of the tile, and a 5 px gap plus that margin leaves about a quarter of the tile between them. */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.lockup {
  display: flex;
  align-items: center;
  gap: 5px;
}

.lockup img {
  inline-size: 64px;
  block-size: 64px;
}

.wordmark {
  color: var(--text);
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.header-link {
  padding: 0.5rem 0.25rem;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.header-link:hover {
  text-decoration: underline;
}

/* Hero: one column, then two at 800 px and wider. */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  padding-block: 2rem 4.5rem;
}

@media (width >= 800px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3.5rem;
    padding-block: 3.5rem 6rem;
  }
}

.hero h1 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.lede {
  margin: 1.25rem 0 0;
  font-size: 1.1875rem;
  line-height: 1.5;
}

.cta {
  margin: 2rem 0 0;
}

.meta {
  margin: 0.75rem 0 0;
  color: var(--secondary);
  font-size: 0.875rem;
}

.or {
  margin: 2rem 0 0.5rem;
  color: var(--secondary);
  font-size: 0.9375rem;
}

.hero-art {
  justify-self: center;
}

.hero-art img {
  border-radius: 18px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 16px 40px rgb(0 0 0 / 0.14);
}

/* Primary button */

.download {
  display: inline-block;
  padding: 0.8125rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.download:hover {
  background: color-mix(in srgb, var(--accent) 85%, var(--bg));
}

.download:focus-visible {
  outline-width: 3px;
  outline-offset: 3px;
}

/* Copy blocks: the command scrolls sideways inside its block, and the Copy button sits on the right.
   The button is hidden in the HTML until copy.js shows it, so nothing here may set its display. */

.copy {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--code-bg);
}

.copy code {
  flex: 1;
  min-inline-size: 0;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  border-radius: 8px;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre;
  -webkit-user-select: all;
  user-select: all;
}

.copy button {
  flex: none;
  min-inline-size: 4.5rem;
  min-block-size: 2rem;
  margin-inline-end: 0.5rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.copy button:hover {
  background: var(--bg);
}

/* Sections */

.section {
  padding-block: 0 4.5rem;
}

.section h2 {
  margin-block-end: 1.5rem;
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem);
  scroll-margin-block-start: 1.5rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li,
.path {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.features li {
  padding: 1.25rem 1.375rem 1.375rem;
}

.features h3 {
  font-size: 1.125rem;
}

.features p {
  margin: 0.375rem 0 0;
  color: var(--secondary);
  font-size: 1rem;
}

/* Install */

/* minmax(0, 1fr), not auto: a long command must scroll inside its block, not widen the page. */
.paths {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.path {
  padding: 1.25rem 1rem;
}

@media (width >= 600px) {
  .path {
    padding: 1.5rem;
  }
}

.path h3 {
  margin-block-end: 1rem;
  font-size: 1.25rem;
  scroll-margin-block-start: 1.5rem;
}

.path > p {
  margin: 1rem 0 0;
}

.path > h3 + p {
  margin-block-start: 0;
}

.steps {
  margin: 1.25rem 0 0;
  padding-inline-start: 1.5rem;
}

.steps li + li {
  margin-block-start: 1.25rem;
}

.steps li::marker {
  color: var(--secondary);
  font-weight: 600;
}

.steps p {
  margin: 0 0 0.5rem;
}

.steps li:first-child p {
  margin-block-end: 0;
}

.note {
  margin: 1.5rem 0 0;
  color: var(--secondary);
  font-size: 0.9375rem;
}

/* Footer */

.site-footer {
  padding-block: 2rem 3rem;
  border-block-start: 1px solid var(--border);
  color: var(--secondary);
  font-size: 0.9375rem;
}

.site-footer p {
  margin: 0 0 0.75rem;
}

.site-footer a {
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding-block: 0.25rem;
}

/* 404 */

.not-found {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1.5rem;
  min-block-size: 100svh;
  padding-block: 3rem;
  text-align: center;
}

.not-found h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
}

.not-found p {
  margin: 0;
}
