/* manuelwinkler.dev. Warm paper by day, coal by night; one accent for links. */

@font-face {
  font-family: "Fraunces Soft";
  src: url("Fraunces-Soft-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --ground: #f6f4f0;
  --surface: #fdfcfa;
  --ink: #23224f;
  --ink-muted: #5d5c7a;
  --line: #e7e2dc;
  --accent: #b83d22;
  --focus: #6a4be8;
  --display: "Fraunces Soft", Georgia, serif;
  --text: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1c1816;
    --surface: #27211e;
    --ink: #f2ede6;
    --ink-muted: #b0aaa2;
    --line: #332c28;
    --accent: #ffb199;
    --focus: #ffd23f;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 18px/28px var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.page {
  width: min(100% - 32px, 640px);
  margin: 0 auto;
  padding: 96px 0 64px;
}

h1, h2 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(44px, 9vw, 64px);
  line-height: 1;
  font-variation-settings: "opsz" 144;
}

h2 {
  margin: 64px 0 16px;
  font-size: 13px;
  line-height: 18px;
  font-family: var(--text);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

p { margin: 0 0 16px; }

.lede { font-size: 22px; line-height: 32px; }

.muted { color: var(--ink-muted); }

/* Apps */

.apps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }

.app {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}

.app:hover { border-color: var(--ink-muted); text-decoration: none; }

.app img { width: 64px; height: 64px; flex: none; }

.app .night { display: none; }

@media (prefers-color-scheme: dark) {
  .app .day { display: none; }
  .app .night { display: block; }
}

.app strong {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  line-height: 28px;
}

.app span { display: block; color: var(--ink-muted); font-size: 16px; line-height: 24px; }

/* Footer */

footer {
  margin-top: 96px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 15px;
  color: var(--ink-muted);
}

footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* Legal pages */

.back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 32px; }

.legal h1 { font-size: clamp(36px, 7vw, 48px); }

.legal h3 { margin: 40px 0 8px; font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 28px; }

.legal ul { padding-left: 24px; }

address { font-style: normal; }
