@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,700;1,400;1,700&display=swap");
:root {
  color-scheme: light;
  accent-color: var(--accent);
  --text: #000;
  --bg: #fff;
  --sub: #eee;
  --line: color-mix(in srgb, var(--text) 20%, transparent);
  --accent: #7f7fd5;
  --focus: #7f7fd5;
  --dither: #7f7fd5;
  --mark: color-mix(in srgb, #91eae4 60%, #fff);
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --glow: hsl(176 43% 46% / 0.34);
  --rim: transparent;
  --shade: transparent;
  --bleed: #91eae4;
  --shadow:
    inset 0 0 0 1px var(--rim), 0 0 1.5px var(--glow),
    0 0 2.8px 1.5px var(--glow), 0 0 5.5px 2.8px var(--glow),
    0 0 7.9px 5.5px var(--glow);
  --float-shade: hsl(0 0% 46% / 0.34);
  --float:
    inset 0 0 0 1px var(--rim), 0 0 1.5px var(--float-shade),
    0 0 2.8px 1.5px var(--float-shade);
  --radius: 8px;
  --pad: 8px;
  --gap: 12px;
}

[data-theme=dark] {
  color-scheme: dark;
  --text: #fff;
  --bg: hsl(208 38% 8%);
  --sub: hsl(208 28% 15%);
  --dither: #86a8e7;
  --focus: #86a8e7;
  --mark: #91eae4;
  --glow: transparent;
  --rim: hsl(186 80% 85% / 0.12);
  --shade: hsl(220 60% 4% / 0.8);
  --bleed: color-mix(in srgb, #91eae4, hsl(220 60% 4%) 80%);
  --float-shade: hsl(0 0% 46% / 0.075);
}

@media (prefers-color-scheme: dark) {
  [data-theme=auto] {
    color-scheme: dark;
    --text: #fff;
    --bg: hsl(208 38% 8%);
    --sub: hsl(208 28% 15%);
    --dither: #86a8e7;
    --focus: #86a8e7;
    --mark: #91eae4;
    --glow: transparent;
    --rim: hsl(186 80% 85% / 0.12);
    --shade: hsl(220 60% 4% / 0.8);
    --bleed: color-mix(in srgb, #91eae4, hsl(220 60% 4%) 80%);
    --float-shade: hsl(0 0% 46% / 0.075);
  }
}
@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes pfy-spin {
  to {
    --spin: 360deg;
  }
}
::view-transition-group(root),
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 200ms;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
@media (prefers-reduced-motion) {
  *,
  ::before,
  ::after {
    transition: none !important;
    animation: none !important;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
html {
  min-height: 100%;
  /* stylelint-disable-next-line property-no-vendor-prefix */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: linear-gradient(var(--shade), var(--shade)), url("https://pfy.ch/caustic.gif") 0 0/300px, url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><path fill='%2391eae4' d='M0 0h40v40H0zM40 40h40v40H40z'/><path fill='%2386a8e7' d='M40 0h40v40H40zM0 40h40v40H0z'/></svg>"), var(--bleed);
  background: linear-gradient(var(--shade), var(--shade)), image-set(url("https://pfy.ch/caustic.avif") type("image/avif"), url("https://pfy.ch/caustic.webp") type("image/webp"), url("https://pfy.ch/caustic.gif") type("image/gif")) 0 0/300px, url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><path fill='%2391eae4' d='M0 0h40v40H0zM40 40h40v40H40z'/><path fill='%2386a8e7' d='M40 0h40v40H40zM0 40h40v40H0z'/></svg>"), var(--bleed);
  background-blend-mode: normal, screen, normal;
}
@media (prefers-reduced-motion) {
  html {
    background: linear-gradient(var(--shade), var(--shade)), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><path fill='%2391eae4' d='M0 0h40v40H0zM40 40h40v40H40z'/><path fill='%2386a8e7' d='M40 0h40v40H40zM0 40h40v40H0z'/></svg>"), var(--bleed);
    background-blend-mode: normal;
  }
}
@supports (font: -apple-system-body) {
  html::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(var(--bleed), transparent);
    content: "";
  }
}
@supports (-webkit-text-size-adjust: none) and (font: -apple-system-body) {
  html::after {
    position: relative;
    display: block;
    width: 100%;
    height: 40px;
    background: linear-gradient(transparent, var(--bleed));
    content: "";
  }
}

body {
  max-width: 1020px;
  margin: 16px auto 132px;
  padding: var(--pad);
  color: var(--text);
  font: 16px/1.25 "Source Serif Pro", Georgia, serif;
  overflow-wrap: break-word;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-radius: calc(var(--radius) + var(--pad));
  box-shadow: var(--shadow);
}
@media (max-width: 1052px) {
  body {
    margin-inline: 8px;
  }
}

body > header,
body > footer,
main > :not(div),
main > div > *,
.card {
  padding: var(--gap);
  overflow: hidden;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  isolation: isolate;
}
body > header > :first-child,
body > header > :first-child > :first-child,
body > footer > :first-child,
body > footer > :first-child > :first-child,
main > :not(div) > :first-child,
main > :not(div) > :first-child > :first-child,
main > div > * > :first-child,
main > div > * > :first-child > :first-child,
.card > :first-child,
.card > :first-child > :first-child {
  margin-top: 0;
}
body > header > :last-child,
body > footer > :last-child,
main > :not(div) > :last-child,
main > div > * > :last-child,
.card > :last-child {
  margin-bottom: 0;
}

body > header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  align-items: center;
  margin-bottom: var(--gap);
}
body > header h1 {
  margin: 0;
  padding: 0;
  border: 0;
}
body > header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
body > header nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
body > header nav a:hover, body > header nav a[aria-current=page] {
  border-color: currentColor;
}

body > footer {
  margin-top: var(--gap);
}

main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
}
main > div:not([popover]) {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}
main > div:not([popover]) > * {
  flex: 1 1 300px;
  min-width: 0;
}
main > div > figure {
  position: relative;
  min-height: 240px;
  margin: 0;
  padding: 0;
}
main > div > figure :is(img, video) {
  position: absolute;
  width: calc(100% - 2 * var(--pad));
  max-width: none;
  height: calc(100% - 2 * var(--pad));
  object-fit: cover;
  object-position: top;
  border-radius: max(var(--radius) - var(--pad), 4px);
  inset: var(--pad);
}
main > div > figure figcaption {
  position: absolute;
  bottom: calc(var(--pad) * 2);
  left: calc(var(--pad) * 2);
  margin: 0;
  padding: 2px 8px;
  background: var(--bg);
  border-radius: 4px;
  box-shadow: var(--float);
  opacity: 1;
}

.logo,
.sparkle {
  color: transparent;
  background: linear-gradient(var(--spin), #91eae4, #86a8e7, #7f7fd5);
  /* stylelint-disable-next-line property-no-vendor-prefix */
  -webkit-background-clip: text;
  background-clip: text;
  animation: pfy-spin 30s steps(60) infinite;
}
.logo a,
.sparkle a {
  color: inherit;
  text-decoration: none;
}

.logo {
  font-size: 48px;
}

h1,
h2,
h3,
h4 {
  margin: 1em 0 0.5em;
  line-height: 1.15;
}

:is(h1, h2, h3, h4):not(hgroup > *):has(+ :is(p, ul, ol, blockquote)) {
  margin-bottom: 0.6em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--sub);
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 26px;
}

h3 {
  font-size: 18px;
}

:target {
  scroll-margin-top: 16px;
}

hgroup {
  margin: 1.25em 0 var(--gap);
  padding-bottom: 0.6em;
  border-bottom: 1px solid var(--sub);
}
hgroup > :is(h1, h2, h3, h4) {
  margin: 0;
  padding: 0;
  border: 0;
}
hgroup > p {
  margin: 0;
  color: color-mix(in srgb, currentColor 65%, transparent);
}
hgroup > p:first-child {
  margin-bottom: 0.35em;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
hgroup > :is(h1, h2, h3, h4) + p {
  margin-top: 0.4em;
  font-style: italic;
}

p,
ul,
ol,
dl,
pre,
blockquote,
table,
figure,
fieldset {
  min-inline-size: 0;
  margin: 0 0 var(--gap);
}

ul,
ol {
  padding-left: 2.5ch;
}

li {
  margin-bottom: 4px;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0 0 6px 2.5ch;
}

blockquote {
  padding-left: 16px;
  border-left: 2px solid var(--sub);
}

hr {
  margin: var(--gap) 0;
  border: 0;
  border-bottom: 1px solid var(--sub);
}

img,
video,
iframe,
svg,
canvas {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  margin: auto;
}

p:has(> :is(img, picture) ~ :is(img, picture)) {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pad);
}
p:has(> :is(img, picture) ~ :is(img, picture)) > :is(img, picture) {
  flex: 1 1 240px;
  min-width: 0;
}
p:has(> :is(img, picture) ~ :is(img, picture)) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
p:has(> :is(img, picture) ~ :is(img, picture)) picture > img {
  height: auto;
  min-height: 100%;
}

figcaption {
  margin-top: 6px;
  font-size: 14px;
  text-align: center;
  opacity: 0.7;
}

code,
pre,
kbd {
  font: 14px/1.4 var(--mono);
  background: var(--sub);
}

code,
kbd {
  padding: 0 0.3ch;
}

pre {
  padding: 8px;
  overflow: auto;
}
pre code {
  padding: 0;
  background: none;
}

kbd {
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
}

mark {
  color: #000;
  background: var(--mark);
}

::selection {
  background: color-mix(in srgb, #86a8e7 45%, transparent);
}

abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

small {
  opacity: 0.7;
}

del {
  opacity: 0.6;
}

sup,
sub {
  position: relative;
  font-size: 0.75em;
  line-height: 0;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

sup a {
  padding: 0 0.15ch;
  text-decoration: none;
  opacity: 0.7;
}
sup a:hover {
  opacity: 1;
}

:is(.footnotes, [data-footnotes], [role=doc-endnotes]) {
  margin-top: calc(var(--gap) * 2);
  padding-top: var(--gap);
  font-size: 14px;
  border-top: 1px solid var(--sub);
}
:is(.footnotes, [data-footnotes], [role=doc-endnotes]) li:target {
  background: color-mix(in srgb, #91eae4 35%, transparent);
}

a {
  color: inherit;
  text-decoration: underline 1px color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 200ms ease-in-out;
}
a:hover {
  text-decoration-color: #86a8e7;
  text-decoration-thickness: 2px;
}

:is(p, li, td, dd) a[href^=http]:not(:has(img))::after {
  color: color-mix(in srgb, currentColor 60%, transparent);
  font-size: 0.75em;
  content: "⁠ ↗︎"/" (external)";
}

table {
  width: 100%;
  border: 1px solid var(--sub);
  border-collapse: collapse;
}

thead {
  border-bottom: 1px solid var(--sub);
}

th,
td {
  padding: 2px 6px;
  text-align: left;
  border-right: 1px solid var(--sub);
}

tbody tr:nth-child(even) {
  background: var(--sub);
  isolation: isolate;
}

details {
  margin-bottom: 4px;
  border: 1px solid var(--line);
}
details > :not(summary) {
  margin: 8px 10px;
}
details[open] > summary {
  border-bottom: 1px solid var(--line);
}

summary {
  padding: 6px 10px;
  cursor: pointer;
}
summary:hover {
  background: var(--sub);
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
input:not([type=checkbox], [type=radio], [type=range]), select, textarea {
  box-sizing: border-box;
  padding: 0.45em 0.8em;
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
}

input:not([type=checkbox], [type=radio], [type=range]), select, textarea {
  width: 100%;
  transition: border-color 200ms ease-in-out;
}
input:not([type=checkbox], [type=radio], [type=range])::placeholder, select::placeholder, textarea::placeholder {
  color: inherit;
  opacity: 0.6;
}
input:not([type=checkbox], [type=radio], [type=range]):hover, input:not([type=checkbox], [type=radio], [type=range]):focus, select:hover, select:focus, textarea:hover, textarea:focus {
  border-color: var(--text);
}

textarea {
  min-height: 6em;
  resize: vertical;
  /* stylelint-disable-next-line property-no-unknown */
  field-sizing: content;
}

select {
  padding-right: 2em;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-repeat: no-repeat;
  background-position: right 1.2em center, right 0.9em center;
  background-size: 0.3em 0.3em;
  appearance: none;
}

select:is([multiple], [size]) {
  padding-right: 0.8em;
  background-image: none;
}

input:is([type=checkbox], [type=radio], [type=range]) {
  margin: 0;
}

input[type=file] {
  padding: 0.3em;
}

input[type=number] {
  appearance: textfield;
}
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

::file-selector-button {
  margin-right: 1ch;
  padding: 0.2em 0.6em;
  color: inherit;
  font: inherit;
  background: var(--bg);
  border: 1px solid var(--text);
  border-radius: 0;
  cursor: pointer;
}
::file-selector-button:hover {
  color: var(--bg);
  background: var(--text);
}

progress {
  width: 100%;
}

button {
  position: relative;
  top: 0;
  left: 0;
  border-color: var(--text);
  cursor: pointer;
  transition: top 120ms ease-out, left 120ms ease-out;
}
button::after {
  position: absolute;
  z-index: -1;
  background: repeating-conic-gradient(var(--dither) 0 25%, transparent 0 50%) 0 0/4px 4px;
  transition: translate 120ms ease-out, opacity 120ms ease-out;
  content: "";
  pointer-events: none;
  inset: -1px;
  translate: 2px 2px;
}
button:hover:not(:disabled) {
  top: -2px;
  left: -2px;
  color: var(--bg);
  background-color: var(--text);
}
button:hover:not(:disabled)::after {
  translate: 4px 4px;
  opacity: 0.5;
}
button:hover:not(:disabled)::before {
  position: absolute;
  content: "";
  inset: -4px;
}
button:active:not(:disabled) {
  top: 2px;
  left: 2px;
}
button:active:not(:disabled)::after {
  translate: 0 0;
  opacity: 1;
}
button:disabled::after {
  content: none;
}

:is(button, input, select, textarea, summary, a):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

fieldset:disabled :disabled {
  opacity: 1;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}
label > :is(input, select, textarea) {
  margin-top: 4px;
  font-weight: 400;
}
label:has(> input:is([type=checkbox], [type=radio], [type=range])) {
  display: flex;
  gap: 0.75ch;
  align-items: center;
}
label:has(> input:is([type=checkbox], [type=radio])) {
  font-weight: 400;
}

fieldset {
  padding: var(--gap);
  border: 1px solid var(--line);
}

legend {
  padding: 0 0.5ch;
  font-weight: 700;
}

form > :last-child {
  margin-bottom: 0;
}

dialog,
[popover] {
  max-width: min(480px, 100vw - 32px);
  padding: var(--gap);
  color: var(--text);
  background: var(--bg);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--float);
  isolation: isolate;
}
dialog > :first-child,
[popover] > :first-child {
  margin-top: 0;
}
dialog > :last-child,
[popover] > :last-child {
  margin-bottom: 0;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
}