@font-face {
  font-family: Fredoka;
  src: url("./fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("./manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f7e9;
  --ink: #24362b;
  --muted: #48574b;
  --accent: #57509d;
  --rule: #cbd5bf;
  --display: Fredoka, ui-rounded, "Trebuchet MS", sans-serif;
  font-family: Manrope, system-ui, sans-serif;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(ellipse at 81% 17%, #e1efd4, transparent 54%), var(--paper);
}
a { color: inherit; }
a:focus-visible { outline: 3px solid #a577ff; outline-offset: 5px; }
.shell { width: min(100% - 7.5rem, 84rem); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; top: .75rem; left: .75rem; padding: .75rem; background: white; transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.masthead {
  min-height: 5.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  font: 650 2.5rem/.92 var(--display);
  letter-spacing: -.055em;
  text-decoration: none;
}
.wordmark span, .accent { color: var(--accent); }
.masthead nav { display: flex; align-items: center; gap: clamp(1.1rem, 3.1vw, 2.7rem); }
.masthead nav a { font-size: .91rem; font-weight: 650; text-decoration: none; padding-block: .5rem; }
.masthead nav a:hover { text-decoration: underline; text-underline-offset: .26em; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5.9vw, 6rem);
  padding-block: clamp(4rem, 7.6vw, 7rem) clamp(4.8rem, 8vw, 7.7rem);
}
.hero h1 {
  margin: 0;
  font: 650 clamp(3.15rem, 6.75vw, 7.3rem)/.91 var(--display);
  letter-spacing: -.058em;
}
.hero h1 > span { display: block; }
.hero-copy p { margin: 1.55rem 0 1.65rem; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.27rem); font-weight: 570; line-height: 1.55; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 3.1rem;
  padding: .7rem 1.15rem;
  border: 1.5px solid #263d30;
  border-radius: 999px;
  background: #d5efa5;
  color: #24362b;
  box-shadow: 0 .22rem 0 #263d30;
  text-decoration: none;
  font-size: .93rem;
  font-weight: 690;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.button:hover { background: #e0f5b9; transform: translateY(-1px); box-shadow: 0 .29rem 0 #263d30; }
.button:active { transform: translateY(.22rem); box-shadow: none; }

.contract-box {
  display: grid;
  gap: .4rem;
  width: min(100%, 31rem);
  margin: 1.5rem 0 0;
  padding: .55rem .65rem .55rem .95rem;
  border: 1px solid #c5d3ba;
  border-radius: .9rem;
  background: #ffffff73;
  font-size: .92rem;
}
.contract-box dt { font-weight: 720; }
.contract-box dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  min-width: 0;
  margin: 0;
  color: var(--muted);
}
.contract-box code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: .81rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.contract-copy {
  flex: 0 0 auto;
  min-width: 4.4rem;
  min-height: 2.75rem;
  padding: .3rem .55rem;
  border: 1px solid #b9ceac;
  border-radius: .65rem;
  background: #e7edde;
  color: var(--ink);
  font: 700 .82rem/1 Manrope, system-ui, sans-serif;
  cursor: pointer;
}
.contract-copy:hover { background: #d5efa5; }
.contract-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero-copy .contract-status { margin: .4rem 0 0; font-size: .83rem; }

.portrait {
  position: relative;
  isolation: isolate;
  width: min(100% - 1.6rem, 28rem);
  justify-self: center;
}
.portrait::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1.5px solid #645794;
  border-radius: 1.6rem;
  background: #cfc4ee;
  transform: translate(4%, 2%) rotate(-7deg);
}
.portrait::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: auto -9% -15% -9%;
  height: 34%;
  background: radial-gradient(ellipse, transparent 42%, #6b966e55 43% 44%, transparent 45% 54%, #6b966e44 55% 56%, transparent 57% 66%, #6b966e39 67% 68%, transparent 69%);
  pointer-events: none;
}
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  padding: clamp(.45rem, .8vw, .75rem);
  background: #fffdf3;
  border: 1.5px solid #2b4432;
  border-radius: 1.6rem;
  box-shadow: .26rem .32rem 0 #283f3280, 0 8px 21px #213b2820;
  transform: rotate(2.5deg);
}

.story { background: #223b30; color: #faf9ed; border-top: 1px solid #183023; }
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5.9vw, 6rem);
  padding-block: clamp(3.5rem, 6.8vw, 6.3rem);
}
.story h2 { margin: 0 0 1.25rem; font: 620 clamp(2.8rem, 4.9vw, 4.6rem)/.96 var(--display); letter-spacing: -.05em; }
.story h2 span { color: #d0efa2; }
.story-copy p { max-width: 45ch; color: #e1eddb; font-size: 1.02rem; line-height: 1.68; }
.story-copy p:last-child { margin-bottom: 0; }
.story a { text-underline-offset: .24em; }
.story a:hover { color: #d0efa2; }
.post { margin: 0; border-left: 1px solid #74917a; padding: .3rem 0 .4rem clamp(1.25rem, 3.25vw, 3.1rem); }
.post blockquote { margin: 0; }
.post blockquote p { margin: 0; font: 580 clamp(2rem, 3.65vw, 3.5rem)/1.01 var(--display); letter-spacing: -.032em; }
.post blockquote p::before { content: open-quote; color: #d0efa2; }
.post blockquote p::after { content: close-quote; color: #d0efa2; }
.post figcaption { display: flex; gap: .65rem; margin-top: 1rem; color: #e8f0e2; font-size: .93rem; font-weight: 650; }
.post-date { color: #c6d6cb; font-weight: 450; }
.post .more-posts { display: inline-block; margin-top: .85rem; font-size: .92rem; }
.featured-screenshot {
  display: block;
  max-width: 37rem;
  margin: 1.65rem 1rem 1rem .2rem;
  padding: .4rem;
  border: 1px solid #c8abe8;
  border-radius: .7rem;
  box-shadow: .55rem .55rem 0 #755697, 0 .9rem 1.5rem #130d1c66;
  background: #e9dff5;
  cursor: zoom-in;
  transform: rotate(-3deg);
}
.featured-screenshot:hover { box-shadow: .55rem .55rem 0 #9b72c2, 0 .9rem 1.5rem #130d1c66; }
.featured-screenshot img { display: block; width: 100%; height: auto; border-radius: .28rem; }

.archive { padding-block: clamp(3.4rem, 6vw, 6rem); }
.archive-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .9rem 2rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.45rem;
}
.archive-header h2 { margin: 0; font: 620 clamp(2.8rem, 4.9vw, 4.6rem)/.96 var(--display); letter-spacing: -.05em; }
.archive-header > a { color: var(--accent); font-size: .93rem; font-weight: 700; text-underline-offset: .25em; }
.archive-grid {
  display: grid;
  position: relative;
  isolation: isolate;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  max-width: 67rem;
  margin-inline: auto;
  padding: 2.8rem clamp(1rem, 5vw, 4.25rem) 3rem;
}
.archive-grid::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% 10% 10%;
  border: 1px solid #b9cfaa;
  border-radius: 1.5rem;
  background: radial-gradient(circle, #88a57f 1px, transparent 1.25px) 0 0 / .7rem .7rem, #dfebd2;
  transform: rotate(-2deg);
  pointer-events: none;
}
.archive-card {
  position: relative;
  min-width: 0;
  border: 1px solid #78927d;
  border-radius: .85rem;
  background: #fffdf3;
  box-shadow: .23rem .3rem 0 #405e4644, 0 .85rem 1.4rem #203e2329;
  transform: rotate(var(--tilt));
  transition: border-color .18s ease, box-shadow .18s ease;
}
.archive-card:nth-child(1) { --tilt: -7deg; z-index: 2; margin-inline-end: -4%; }
.archive-card:nth-child(2) { --tilt: 7deg; z-index: 1; margin: 2rem 0 0 -6%; }
.archive-card:nth-child(3) { --tilt: 4deg; z-index: 3; margin: -2.5rem -10% 0 9%; }
.archive-card:nth-child(4) { --tilt: -5deg; z-index: 4; margin: -.8rem 8% 0 -8%; }
.archive-card:focus-within { z-index: 5; }
@media (hover: hover) {
  .archive-card:hover { z-index: 6; border-color: #8a63ca; box-shadow: .3rem .4rem 0 #78648c55, 0 1rem 1.7rem #271c3f38; }
}
.archive-card > a { display: grid; padding: clamp(.5rem, 1vw, .8rem); text-decoration: none; cursor: zoom-in; }
.archive-caption { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; margin: 0 .15rem .55rem; }
.archive-caption h3 { margin: 0; font-size: .91rem; font-weight: 730; }
.archive-caption time, .archive-caption span { color: var(--muted); font-size: .82rem; }
.archive-card img { display: block; width: 100%; height: auto; align-self: start; border-radius: .35rem; background: #090909; }

.screenshot-viewer {
  width: min(100% - 1.5rem, 47rem);
  max-width: none;
  max-height: calc(100dvh - 1.5rem);
  padding: 0;
  border: 1px solid #ad97c9;
  background: #201629;
  color: #f8f3ff;
  overscroll-behavior: contain;
}
.screenshot-viewer::backdrop { background: #14101be6; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .8rem .55rem 1rem; border-bottom: 1px solid #645172; }
.viewer-bar h2 { margin: 0; font-size: 1rem; font-weight: 700; }
.viewer-bar button { min-height: 2.75rem; padding-inline: .8rem; border: 1px solid #a890c7; background: transparent; color: inherit; font: inherit; font-size: .92rem; cursor: pointer; }
.viewer-bar button:hover { background: #433053; }
.viewer-bar button:focus-visible { outline: 2px solid #c4a6ff; outline-offset: 2px; }
.viewer-image { background: #090909; }
.viewer-image img { display: block; width: 100%; max-height: calc(100dvh - 5.5rem); margin-inline: auto; object-fit: contain; }

@media (max-width: 960px) {
  .shell { width: calc(100% - 4rem); }
  .hero { gap: 2rem; }
  .hero h1 { font-size: clamp(2.85rem, 7.3vw, 6rem); }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 2.7rem); }
  .masthead { min-height: 4.4rem; }
  .wordmark { font-size: 2rem; }
  .hero { grid-template-columns: 1fr; gap: 2.45rem; padding-block: 2.85rem 3.6rem; }
  .hero h1 { font-size: clamp(2.85rem, 11.4vw, 5.5rem); }
  .hero-copy p { margin: 1.15rem 0 1.05rem; }
  .portrait { width: min(100% - 1.6rem, 22rem); }
  .story-grid { grid-template-columns: 1fr; gap: 2.3rem; }
  .quote-break { display: none; }
  .archive-grid { grid-template-columns: 1fr; padding: 1.5rem 0 1.25rem; }
  .archive-grid::before { inset: 6% 5% 5%; }
  .archive-card:nth-child(1) { --tilt: -6deg; z-index: 1; margin: 0 11% 0 2%; }
  .archive-card:nth-child(2) { --tilt: 5deg; z-index: 2; margin: -1.6rem 2% 0 11%; }
  .archive-card:nth-child(3) { --tilt: -4deg; margin: -1.1rem 10% 0 4%; }
  .archive-card:nth-child(4) { --tilt: 4deg; margin: -.25rem 3% 0 12%; }
  .archive-card:focus-within { z-index: 5; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .button, .archive-card { transition: none; }
}
