/* kevu: one stylesheet, two looks. body.look-a is paper and ink; body.look-b is the night room. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1008px; margin: 0 auto; padding: 0 var(--pad); }
:root { --pad: 24px; }
/* a hairline exactly as wide as the text column, above a block */
.section-heading { border-top: 1px solid var(--rule); padding-top: 18px; }
.pair, .site-footer .wrap { padding-top: 40px; background: linear-gradient(var(--rule), var(--rule)) no-repeat center top / calc(100% - 2 * var(--pad)) 1px; }
.site-footer .wrap { padding-top: 28px; }

/* ---------- layout shared by both looks ---------- */

.site-header { padding: 28px 0 0; }
.wordmark { font-weight: 700; letter-spacing: 0.02em; }

.intro { padding-top: 72px; padding-bottom: 88px; }
.intro .lede { max-width: 36em; margin-top: 28px; }

.section-heading { margin-bottom: 40px; }

.project { margin-bottom: 96px; }
.project-head { margin-bottom: 14px; }
.status { margin-top: 6px; }
.project-body { max-width: 36em; }
.project-body p + p { margin-top: 0.8em; }
.project-body p + .links { margin-top: 18px; }
.links { display: flex; flex-wrap: wrap; gap: 10px 28px; }

/* The room is pixel art, 480x270. It is only ever drawn at a whole-number scale,
   with hard edges: 2x on a desktop, 1x on a tablet, and on a phone 1x cropped from
   the left so Wren, the window, Otto and his speech bubble all stay in frame. */
.room { display: flex; justify-content: center; overflow: hidden; margin: 0 auto 32px; }
.room img {
  width: 960px; height: 540px; max-width: none;
  image-rendering: pixelated;
}
@media (max-width: 1007px) {
  .room img { width: 480px; height: 270px; }
}
@media (min-width: 700px) and (max-width: 1007px) and (min-resolution: 1.5dppx) and (max-resolution: 1.5dppx) {
  .room img { width: 640px; height: 360px; }
}
@media (max-width: 519px) {
  .room { justify-content: flex-end; }
}

.parchmint-grid { display: grid; gap: 32px; }
.shot-npc { max-width: 300px; }
.shot-wide { margin-top: 40px; }
.logo { display: inline-block; width: 44px; height: 44px; vertical-align: -9px; margin-right: 14px; border-radius: 8px; }

.pair { display: grid; gap: 56px; margin-bottom: 96px; }
.pair .project { margin-bottom: 0; }

.contact { padding-bottom: 96px; }

.site-footer { padding: 0 0 40px; }

@media (min-width: 760px) {
  .parchmint-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
  .pair { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 519px) {
  :root { --pad: 20px; }
  .intro { padding-top: 48px; padding-bottom: 64px; }
  .project, .pair { margin-bottom: 72px; }
  .shot-npc { max-width: 240px; }
}

a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; border-radius: 2px; }

/* ---------- look A: paper and ink ---------- */

.look-a {
  --rule: #cfc3b0;
  background: #f4eee3;
  color: #2a231e;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: 1.1875rem;
  line-height: 1.62;
}
.look-a .wordmark { font-size: 1.375rem; color: #2a231e; }
.look-a h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.6rem);
  line-height: 1.08; font-weight: 600; letter-spacing: -0.012em; color: #1d1814;
}
.look-a .lede { font-size: 1.3rem; line-height: 1.6; }
.look-a .section-heading {
  font-family: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: #5e5146;
}
.look-a h3 { font-size: 1.85rem; line-height: 1.2; font-weight: 600; color: #1d1814; }
.look-a .project-small h3 { font-size: 1.5rem; }
.look-a .status { font-style: italic; color: #5e5146; }
.look-a a { color: #8a3912; }
.look-a .links a { font-family: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 1rem; font-weight: 600; }
.look-a .shot img { border-radius: 6px; }
.look-a .contact-line { font-size: 1.3rem; }
.look-a .site-footer .wordmark { font-size: 1rem; color: #5e5146; }

/* ---------- look B: the night room ---------- */

.look-b {
  --rule: #38325c;
  background: #15132a;
  color: #e9e0ce;
  font-family: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.68;
}
.look-b .wordmark, .look-b .section-heading, .look-b .status {
  font-family: ui-monospace, "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
}
.look-b .wordmark { font-size: 1.125rem; color: #f2b866; }
.look-b h1 {
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.4rem);
  line-height: 1.1; font-weight: 650; letter-spacing: -0.02em; color: #fbf4e6;
}
.look-b .lede { font-size: 1.1875rem; color: #e9e0ce; }
.look-b .section-heading {
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: #f2b866;
}
.look-b h3 { font-size: 1.6rem; line-height: 1.25; font-weight: 650; color: #fbf4e6; }
.look-b .project-small h3 { font-size: 1.35rem; }
.look-b .status { font-size: 0.875rem; line-height: 1.55; color: #c9bda8; }
.look-b a { color: #f2b866; }
.look-b .links a { font-weight: 600; }
.look-b .contact-line { font-size: 1.1875rem; }
.look-b .site-footer .wordmark { font-size: 0.9375rem; color: #c9bda8; }

@media (min-width: 900px) {
  .look-b .intro { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: start; }
  .look-b .intro .lede { margin-top: 6px; }
  /* project text: name and status on the left, the story on the right */
  .look-b .project-wren .project-text { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; }
}
