@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Brushot';
  src: url('fonts/Brushot-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --text: #d9d9d9;
  --muted: #8a8a8a;
  --faint: #555;
  --rule: #222;
  --pink: #f7c6d9;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 32rem) 1fr;
  background: var(--bg);
  color: var(--text);
  font: 12px/1.6 var(--mono);
  -webkit-font-smoothing: antialiased;
}

/* The butterfly layer covers the whole screen, behind everything, and ignores the mouse. */
.graphic {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* The text panel sits on top: mostly opaque, so the butterfly shows faintly through it. */
main {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 100vh;
  box-sizing: border-box;
  padding: 6rem 2rem 3rem 3rem;
  background: rgba(10, 10, 10, 0.82);
}

h1 {
  margin: 0;
  font:
    700 1.75rem/1.1 'Brushot',
    var(--mono);
  color: var(--pink);
}
.role {
  margin: 0.35rem 0 0.5rem;
  color: var(--muted);
}

/* Contact links under the name: a pink brush stroke paints in from left to right on hover. */
.contact {
  margin: 0 0 1.25rem -0.3em;
}
.contact a {
  margin-right: 0.7rem;
  padding: 0.05em 0.3em;
  color: var(--text);
  text-decoration: none;
  /* A rough-edged stroke, stretched to the link's width as it grows. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath fill='%23f7c6d9' d='M2 6 C10 3 22 4 34 3 C48 2 62 4 76 2 C86 1 94 3 99 5 L97 9 L100 12 C96 15 88 17 76 16 C62 18 46 16 32 18 C20 19 9 17 3 15 L5 11 Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 50%;
  background-size: 0% 100%;
  transition:
    background-size 0.4s ease-out,
    color 0.4s ease-out;
}
.contact a:hover,
.contact a:focus-visible {
  background-size: 100% 100%;
  color: var(--bg);
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  .contact a {
    transition: none;
  }
}

p {
  margin: 0 0 0.75rem;
}
.muted {
  color: var(--muted);
}
.faint {
  color: var(--faint);
}

section {
  margin-top: 2rem;
}
h2 {
  margin: 0 0 0.75rem;
  font: 400 12px var(--mono);
  color: var(--muted);
}
h2::before {
  content: '[';
}
h2::after {
  content: ']';
}
/* A plain text rule: a line of dashes, like a README. */
section::before {
  content: '------------------------------------------------------------';
  display: block;
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 1rem;
  color: var(--faint);
}

dl {
  margin: 0;
}
dt {
  color: var(--text);
}
dd {
  margin: 0.15rem 0 1rem;
  color: var(--muted);
}
dd:last-child {
  margin-bottom: 0;
}

code {
  font: inherit;
  color: var(--text);
}

a {
  color: var(--text);
  text-decoration: underline;
}
a:hover {
  color: var(--pink);
}
a:focus-visible {
  outline: 1px solid var(--pink);
  outline-offset: 2px;
}

/* Phones: one column; the butterfly still flies behind the text. */
@media (max-width: 760px) {
  body {
    grid-template-columns: minmax(0, 1fr);
  }
  main {
    padding: 2.5rem 1.25rem;
  }
}

/* The butterfly fills the graphic area. */
#butterfly {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font: 10px/1 var(--mono);
  color: var(--text);
  user-select: none;
}

/* Snaglet feature list: plain dashes, tight spacing, matches the text-file look. */
dd .features {
  margin: 0.6rem 0;
  padding: 0;
  list-style: none;
}
dd .features li {
  padding-left: 1.2em;
  text-indent: -1.2em;
}
dd .features li::before {
  content: '- ';
  color: var(--faint);
}
dd .features strong,
dd .why strong {
  color: var(--text);
  font-weight: 500;
}
dd p {
  margin: 0.6rem 0;
}
