/* One Cloud. Every page is a sheet of paper in one hue, across the wheel from the paint on it. */
@property --h {
  syntax: "<number>";
  inherits: true;
  initial-value: 205;
}
:root {
  --h: 205;
  color-scheme: light;
  --paper: oklch(0.875 0.095 var(--h));
  --paper-2: oklch(0.92 0.06 var(--h));
  --ink-1: oklch(0.21 0.05 var(--h));
  --ink-2: oklch(0.34 0.07 var(--h));
  --rule: oklch(0.21 0.05 var(--h) / 0.24);
  --loud: oklch(0.43 0.17 calc(var(--h) + 180));
  --on-loud: oklch(0.98 0.01 var(--h));
  --text: "Fraunces", ui-serif, Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --g: clamp(16px, 4.4vw, 44px);
  --head: 58px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  transition: --h 1s var(--ease);
}
.dark-vars,
:root[data-night],
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: oklch(0.165 0.038 var(--h));
  --paper-2: oklch(0.215 0.045 var(--h));
  --ink-1: oklch(0.95 0.03 var(--h));
  --ink-2: oklch(0.8 0.05 var(--h));
  --rule: oklch(0.95 0.03 var(--h) / 0.22);
  --loud: oklch(0.82 0.15 calc(var(--h) + 180));
  --on-loud: oklch(0.17 0.04 var(--h));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: oklch(0.165 0.038 var(--h));
    --paper-2: oklch(0.215 0.045 var(--h));
    --ink-1: oklch(0.95 0.03 var(--h));
    --ink-2: oklch(0.8 0.05 var(--h));
    --rule: oklch(0.95 0.03 var(--h) / 0.22);
    --loud: oklch(0.82 0.15 calc(var(--h) + 180));
    --on-loud: oklch(0.17 0.04 var(--h));
  }
}


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

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--paper);
  color: var(--ink-1);
  font-family: var(--text);
  font-size: 106.25%;
  line-height: 1.5;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  min-height: 100svh;
  overflow-x: clip;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--ink-1);
  outline-offset: 2px;
  border-radius: 3px;
}
img {
  max-width: 100%;
  height: auto;
}
button {
  font: inherit;
  color: inherit;
}
.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 8px 14px;
  background: var(--ink-1);
  color: var(--paper);
  border-radius: 8px;
}
.skip:focus {
  top: 10px;
}
#cloud {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  z-index: 2;
  pointer-events: none;
  display: block;
}
html:not(.live) #cloud {
  display: none;
}

/* The header: small, so the page belongs to the paint. */
.head {
  position: fixed;
  z-index: 6;
  inset: 0 0 auto;
  height: var(--head);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 var(--g);
  pointer-events: none;
}
.head::before {
  content: "";
  position: absolute;
  inset: 0 0 -12px;
  background: linear-gradient(var(--paper) 62%, transparent);
  z-index: -1;
}
.head > * {
  pointer-events: auto;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.015em;
  text-decoration: none;
  margin-right: auto;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.mark svg {
  width: 24px;
  height: 24px;
}
.nav {
  display: none;
  gap: 2px;
}
.nav a,
.round,
.menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 99px;
  background: none;
  text-decoration: none;
  font-size: 0.92rem;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.nav a:hover,
.round:hover,
.menu summary:hover {
  background: var(--rule);
}
.round span,
.nav .icon span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.round svg {
  width: 20px;
  height: 20px;
}
.mode[data-now="system"] .i-sun,
.mode[data-now="system"] .i-moon,
.mode[data-now="light"] .i-auto,
.mode[data-now="light"] .i-moon,
.mode[data-now="dark"] .i-sun,
.mode[data-now="dark"] .i-auto {
  display: none;
}
.go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 15px;
  border-radius: 99px;
  background: var(--ink-1);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
}
.go:hover {
  background: var(--loud);
  color: var(--on-loud);
}
.menu {
  position: relative;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu-panel {
  position: absolute;
  right: 0;
  top: 44px;
  width: min(250px, calc(100vw - 2 * var(--g)));
  display: grid;
  padding: 8px;
  border-radius: 16px;
  background: var(--ink-1);
  color: var(--paper);
}
.menu-panel a {
  padding: 10px 12px;
  font-size: 1.12rem;
  text-decoration: none;
  border-radius: 10px;
}
.menu-panel a:hover {
  background: color-mix(in oklch, var(--paper) 16%, transparent);
}
@media (max-width: 359px) {
  .mark {
    font-size: 0;
    gap: 0;
  }
  .go {
    padding: 0 12px;
  }
  .round {
    padding: 0 8px;
  }
}
@media (min-width: 900px) {
  .nav {
    display: flex;
  }
  .menu {
    display: none;
  }
  .round span {
    position: static;
    width: auto;
    height: auto;
    clip-path: none;
  }
}

/* The footer: the site's own links. Ryan's are on the Contact page. */
.foot {
  position: relative;
  z-index: 3;
  padding: 44px var(--g) 30px;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 22px;
  font-size: 0.95rem;
  background: var(--paper);
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.foot .ledger {
  margin: 0;
  max-width: 40em;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.6;
}
.foot .fine {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.85rem;
}
@media print {
  #cloud,
  .head,
  .foot {
    display: none;
  }
}
