/* Theme tokens. Dark values apply via the system setting, or data-theme set by the toggle. */
:root {
  color-scheme: light;
  --bg: #fffcf5;
  --surface: #fff;
  --surface-muted: #fff3d6;
  --ink: #1f1d1a;
  --text-body: #3d3a35;
  --muted: #6b665e;
  --border-soft: #e6dcc8;
  --pop-shadow: #1f1d1a;
  --note: #fff1a8;
  --code-bg: #1f1d1a;
  --code-text: #f5efe3;
  --gutter: 2rem;
  --radius: 1rem;

  /* Accents stay bright in both themes; text on them is always dark. */
  --yellow: #ffd84d;
  --coral: #ff7a59;
  --blue: #5b93ff;
  --green: #3fc283;
  --mark-yellow: #ffe580;
  --mark-coral: #ffc2b0;
  --mark-blue: #c4d8ff;
  --mark-green: #bdf0d3;
  --on-mark: #1f1d1a;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --font-hand: "Caveat", "Comic Sans MS", cursive;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1a1916;
    --surface: #25231f;
    --surface-muted: #131210;
    --ink: #f5efe3;
    --text-body: #d6cfc1;
    --muted: #a69f92;
    --border-soft: #3a3731;
    --pop-shadow: #f5efe3;
    --note: #3a3322;
    --code-bg: #0f0e0c;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1a1916;
  --surface: #25231f;
  --surface-muted: #131210;
  --ink: #f5efe3;
  --text-body: #d6cfc1;
  --muted: #a69f92;
  --border-soft: #3a3731;
  --pop-shadow: #f5efe3;
  --note: #3a3322;
  --code-bg: #0f0e0c;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-size: inherit;
  font-weight: inherit;
}
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
input,
button {
  font: inherit;
}
::selection {
  color: var(--on-mark);
  background: var(--mark-yellow);
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
[hidden] {
  display: none !important;
}

/* Layout */
.section {
  padding: var(--gutter);
}
.narrow {
  max-width: 48rem;
}
.center {
  margin-inline: auto;
}
.text-center {
  text-align: center;
}
.stack > * + * {
  margin-top: 2rem;
}
.stack-sm > * + * {
  margin-top: 1.25rem;
}

/* Playful bits */
.mark {
  --m: var(--mark-yellow);
  padding: 0 0.15em;
  border-radius: 0.25em;
  color: var(--on-mark);
  background: var(--m);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.mark-coral {
  --m: var(--mark-coral);
}
.mark-blue {
  --m: var(--mark-blue);
}
.mark-green {
  --m: var(--mark-green);
}
.wavy {
  text-decoration: underline wavy var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.wavy::after {
  content: "\00a0♥";
  content: "\00a0♥" / "";
  color: var(--coral);
}
/* Squiggle under section headings */
.section-title,
h1.page-title:not(.heavy) {
  position: relative;
  width: fit-content;
  padding-bottom: 0.45em;
}
.section-title::after,
h1.page-title:not(.heavy)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: var(--coral);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M0 5q10-7 20 0t20 0' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E")
    repeat-x left center / 40px 10px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M0 5q10-7 20 0t20 0' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E")
    repeat-x left center / 40px 10px;
}
.text-center.page-title {
  margin-inline: auto;
}
.pop {
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--pop-shadow);
}
.button,
.see-all,
.empty button {
  display: inline-block;
  padding: 0.6em 1.3em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  color: var(--on-mark);
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--pop-shadow);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.see-all:hover,
.empty button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--pop-shadow);
}
.see-all:active,
.empty button:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--pop-shadow);
}

/* Header */
.site-header {
  position: relative;
  padding: var(--gutter) var(--gutter) 0;
}
.logo {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.logo span {
  display: inline-block;
  margin-left: 0.08em;
  padding: 0 0.18em;
  border: 2px solid var(--ink);
  border-radius: 0.3em;
  color: var(--on-mark);
  background: var(--yellow);
  transform: rotate(-3deg);
  transition: transform 0.2s ease;
}
.logo:hover span {
  transform: rotate(3deg) scale(1.05);
}
.site-nav ul {
  line-height: 2.1;
}
.site-nav a {
  margin-left: -0.6em;
  padding: 0.2em 0.6em;
  border-radius: 999px;
  font-weight: 600;
  transition: background-color 0.15s ease;
}
.site-nav a:hover {
  color: var(--on-mark);
  background: var(--mark-yellow);
}
.site-header hr {
  margin: 2rem 0 0;
}
.theme-toggle {
  position: absolute;
  top: var(--gutter);
  right: var(--gutter);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 2px 2px 0 var(--pop-shadow);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.theme-toggle:hover {
  transform: translate(-1px, -1px) rotate(-12deg);
  box-shadow: 3px 3px 0 var(--pop-shadow);
}
.theme-toggle:active {
  transform: translate(1px, 1px);
  box-shadow: 0 0 0 var(--pop-shadow);
}
.theme-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}
.theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}
[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}
@media (min-width: 768px) {
  .site-header {
    display: flex;
    align-items: center;
    padding-block: 1.5rem;
  }
  .logo {
    margin: 0 4rem 0 0;
    font-size: 2.25rem;
  }
  .site-nav {
    margin-left: auto;
  }
  .site-nav ul {
    display: flex;
    gap: 0.75rem;
    line-height: 1;
  }
  .site-nav a {
    margin: 0;
  }
  .theme-toggle {
    position: static;
    margin-left: 1.5rem;
  }
  .site-header hr {
    display: none;
  }
}

hr {
  height: 0;
  border: 0;
  border-top: 2px dashed var(--border-soft);
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 3rem var(--gutter) 2rem;
  border-top: 2px solid var(--ink);
  font-size: 0.95rem;
  line-height: 2;
  color: var(--muted);
  background: var(--surface-muted);
}
.footer-links {
  display: grid;
  justify-items: start;
}
.site-footer a {
  font-weight: 600;
}
.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline wavy var(--coral);
  text-underline-offset: 0.25em;
}
.site-footer hr {
  margin: 2rem 0;
}
.social-links {
  display: none;
}
@media (min-width: 768px) {
  .site-footer {
    line-height: 1.5;
  }
  .footer-links {
    display: flex;
    gap: 3rem;
  }
  .social-links {
    display: flex;
    gap: 1.5rem;
  }
}

/* Banners */
.banner h1 {
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.banner .lead {
  max-width: 40rem;
  font-size: 1.25rem;
  color: var(--text-body);
}
@media (min-width: 768px) {
  .banner .lead {
    font-size: 1.5rem;
  }
}
h1.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
h1.page-title.heavy {
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
  h1.page-title {
    font-size: 3.5rem;
  }
}
.lead-sm {
  margin-top: 0.75rem;
  font-size: 1.25rem;
  color: var(--muted);
}

/* Home: hero doodles */
.hero {
  position: relative;
}
.doodles {
  display: none;
}
.doodle {
  position: absolute;
  overflow: visible;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.doodle-star {
  top: 2rem;
  right: 7%;
  width: 72px;
  fill: var(--yellow);
  transform: rotate(12deg);
}
.doodle-plus {
  top: 9rem;
  right: 18%;
  width: 26px;
  stroke: var(--coral);
  stroke-width: 4;
}
.doodle-circle {
  bottom: 4.5rem;
  right: 24%;
  width: 34px;
  fill: var(--mark-blue);
}
.doodle-squiggle {
  bottom: 2.5rem;
  right: 6%;
  width: 110px;
  stroke: var(--green);
  stroke-width: 4;
}
@media (min-width: 1024px) {
  .doodles {
    display: block;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .doodle-star {
    animation: wiggle 5s ease-in-out infinite;
  }
  .doodle-circle {
    animation: bob 4s ease-in-out infinite;
  }
}
@keyframes wiggle {
  0%,
  100% {
    transform: rotate(12deg);
  }
  50% {
    transform: rotate(-8deg) scale(1.08);
  }
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Home: clients */
.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.clients {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}
.clients li {
  padding: 0.3em 0.9em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--surface);
  transition: transform 0.15s ease;
}
.clients li:nth-child(8n + 1) {
  color: var(--on-mark);
  background: var(--mark-yellow);
}
.clients li:nth-child(8n + 3) {
  color: var(--on-mark);
  background: var(--mark-blue);
}
.clients li:nth-child(8n + 5) {
  color: var(--on-mark);
  background: var(--mark-coral);
}
.clients li:nth-child(8n + 7) {
  color: var(--on-mark);
  background: var(--mark-green);
}
.clients li:nth-child(3n) {
  transform: rotate(-2deg);
}
.clients li:nth-child(3n + 1) {
  transform: rotate(1.5deg);
}
.clients li:hover {
  transform: rotate(0) scale(1.06);
}
@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

/* Home: featured projects */
.featured {
  display: grid;
  gap: 3.5rem;
  padding-block: 3rem;
}
.featured-item {
  display: grid;
  gap: 1.5rem;
}
.featured-item img {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--pop-shadow);
  transform: rotate(-1.5deg);
  transition: transform 0.2s ease;
}
.featured-item:nth-child(even) img {
  transform: rotate(1.5deg);
}
.featured-item:hover img {
  transform: rotate(0) scale(1.02);
}
.featured-item h3 {
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.featured-item h3::after {
  content: "→";
  content: "→" / "";
  display: inline-block;
  margin-left: 0.3em;
  transition: transform 0.2s ease;
}
.featured-item:hover h3::after {
  transform: translateX(0.3em);
}
.featured-item p {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  color: var(--muted);
}
@media (min-width: 768px) {
  .featured-item {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3.5rem;
    padding-inline: var(--gutter);
  }
  .featured-item:nth-child(even) img {
    order: 2;
  }
  .featured-item h3 {
    font-size: 2.25rem;
  }
}
.see-all {
  font-size: 1.25rem;
}

/* Media */
.thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--border-soft);
}

/* Projects list */
.search {
  width: min(100%, 26rem);
  padding: 0.65em 1.2em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 3px 3px 0 var(--pop-shadow);
}
.search:focus {
  outline: none;
  box-shadow: 3px 3px 0 var(--blue);
}
.filters,
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
:is(.filters, .choices) > div {
  position: relative;
}
:is(.filters, .choices) input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
:is(.filters, .choices) label {
  display: inline-block;
  padding: 0.35em 1em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  background: var(--surface);
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease;
}
:is(.filters, .choices) label:hover {
  transform: rotate(-2deg);
}
:is(.filters, .choices) input:checked + label {
  color: var(--on-mark);
}
:is(.filters, .choices) input:checked + label::before {
  content: "✓ ";
  content: "✓ " / "";
}
#application:checked + label {
  background: var(--mark-yellow);
}
#website:checked + label {
  background: var(--mark-blue);
}
#design:checked + label {
  background: var(--mark-coral);
}
:is(.filters, .choices) input:focus-visible + label {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.empty {
  padding: 2rem 1rem;
  font-size: 1.125rem;
}
.empty button {
  margin-top: 1rem;
}
.project-grid {
  display: grid;
  gap: 1.75rem;
  padding-top: 0.75rem;
}
@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 4px 4px 0 var(--pop-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translate(-3px, -3px) rotate(-0.6deg);
  box-shadow: 7px 7px 0 var(--pop-shadow);
}
.card .thumb {
  border-bottom: 2px solid var(--ink);
}
.card-body {
  flex: 1;
  padding: 1rem 1.25rem;
  color: var(--on-mark);
  background: var(--mark-yellow);
}
.card:nth-child(4n + 2) .card-body {
  background: var(--mark-blue);
}
.card:nth-child(4n + 3) .card-body {
  background: var(--mark-coral);
}
.card:nth-child(4n + 4) .card-body {
  background: var(--mark-green);
}
.card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Project detail */
.project-layout {
  display: grid;
  gap: 2.5rem;
}
.project-meta,
.note {
  position: relative;
  align-self: start;
  padding: 1.5rem 1.25rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 0.5rem;
  overflow-wrap: anywhere;
  background: var(--note);
  box-shadow: 4px 4px 0 var(--pop-shadow);
  transform: rotate(1.5deg);
}
/* A strip of tape holding the note */
.project-meta::before,
.note::before {
  content: "";
  position: absolute;
  top: -0.8rem;
  left: 50%;
  width: 5rem;
  height: 1.5rem;
  border: 1px solid rgb(0 0 0 / 0.1);
  background: rgb(196 216 255 / 0.75);
  transform: translateX(-50%) rotate(-4deg);
}
.project-meta li + li,
.note li + li {
  margin-top: 0.6rem;
}
.project-meta strong,
.note strong {
  display: block;
  font-family: var(--font-hand);
  font-size: 1.35rem;
  line-height: 1.1;
}
.project-meta a,
.note a {
  text-decoration: underline wavy var(--coral);
  text-underline-offset: 0.2em;
}
@media (min-width: 768px) {
  .project-layout {
    grid-template-columns: 1fr 4fr 1.25fr;
  }
}

/* Blog list */
.post-list {
  max-width: 42rem;
}
.post-list li + li {
  margin-top: 1rem;
}
.post-list a {
  display: block;
  padding: 1rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  background: var(--surface);
  box-shadow: 4px 4px 0 var(--pop-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-list a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--pop-shadow);
}
.post-list time {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--font-hand);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--muted);
}

/* CTA */
.cta-box {
  display: grid;
  gap: 1.25rem;
  padding: 2rem;
  border: 3px solid var(--ink);
  border-radius: 1.5rem;
  color: var(--on-mark);
  background: var(--yellow);
  box-shadow: 8px 8px 0 var(--pop-shadow);
}
.cta-box p {
  width: fit-content;
  font-family: var(--font-hand);
  font-size: 2rem;
  font-weight: 700;
  transform: rotate(-4deg);
}
.cta-box h2 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.cta-box h2 a {
  text-decoration: underline wavy var(--coral);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.15em;
}
.cta-box h2 a:hover {
  text-decoration-color: var(--on-mark);
}
@media (min-width: 768px) {
  .cta-box {
    grid-template-columns: 1fr 1.4fr;
    align-items: end;
    padding: 3rem;
  }
  .cta-box h2 {
    font-size: 4.5rem;
    text-align: right;
  }
}

/* Prose (rendered markdown) */
.prose {
  max-width: 65ch;
  line-height: 1.75;
  color: var(--text-body);
}
.prose-xl {
  font-size: 1.2rem;
}
.prose > * + * {
  margin-top: 1.25em;
}
.prose h2,
.prose h3,
.prose h4 {
  margin-top: 1.6em;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.prose h2 {
  font-size: 1.6em;
}
.prose h3 {
  font-size: 1.3em;
}
.prose ul,
.prose ol {
  padding-left: 1.625em;
}
.prose ul {
  list-style: disc;
}
.prose li::marker {
  color: var(--coral);
}
.prose li + li {
  margin-top: 0.5em;
}
.prose a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline wavy var(--coral);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.25em;
}
.prose a:hover {
  color: var(--on-mark);
  background: var(--mark-yellow);
}
.prose strong {
  color: var(--ink);
}
.prose blockquote {
  margin-inline: 0;
  padding: 1em 1.25em;
  border-left: 5px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--ink);
  background: var(--surface-muted);
}
.prose code {
  padding: 0.1em 0.35em;
  border-radius: 0.35em;
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--on-mark);
  background: var(--mark-yellow);
}
.prose pre {
  overflow-x: auto;
  padding: 1em 1.25em;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.8em;
  line-height: 1.7;
  tab-size: 4;
  color: var(--code-text);
  background: var(--code-bg);
  box-shadow: 4px 4px 0 var(--pop-shadow);
}
.prose pre code {
  padding: 0;
  color: inherit;
  background: none;
}
.prose img {
  margin-block: 1em;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--pop-shadow);
}

/* Contact form */
.contact-layout {
  max-width: 48rem;
}
.inquiry,
.form-success {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
  border: 2px solid var(--ink);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--pop-shadow);
}
.inquiry .button {
  justify-self: start;
  font-size: 1.125rem;
}
.inquiry .button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--pop-shadow);
}
.inquiry .button:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}
.field {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.field > label,
.field > legend {
  padding: 0;
  font-weight: 700;
}
.field > legend {
  margin-bottom: 0.45rem;
}
.optional {
  font-weight: 400;
  color: var(--muted);
}
.field input:not([type="checkbox"]),
.field textarea {
  width: 100%;
  padding: 0.7em 1em;
  border: 2px solid var(--ink);
  border-radius: 0.75rem;
  color: var(--ink);
  background: var(--bg);
}
.field textarea {
  min-height: 9rem;
  resize: vertical;
}
.field input:not([type="checkbox"]):focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 3px 3px 0 var(--blue);
}
.choices > div:nth-child(1) input:checked + label {
  background: var(--mark-yellow);
}
.choices > div:nth-child(2) input:checked + label {
  background: var(--mark-blue);
}
.choices > div:nth-child(3) input:checked + label {
  background: var(--mark-coral);
}
.choices > div:nth-child(4) input:checked + label {
  background: var(--mark-green);
}
.form-error {
  padding: 0.75rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 0.75rem;
  color: var(--on-mark);
  background: var(--mark-coral);
}
.form-success {
  text-align: center;
  background: var(--mark-green);
  color: var(--on-mark);
}
.form-success h2 {
  font-size: 2rem;
  font-weight: 800;
}
.form-success p {
  font-size: 1.25rem;
}

/* Row of phone screenshots on app project pages */
.prose .shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.prose .shots img {
  margin: 0;
  border-radius: 0.75rem;
  box-shadow: 4px 4px 0 var(--pop-shadow);
}

/* Own apps: icon thumbnails, project heading, home row */
.thumb-app {
  display: grid;
  place-items: center;
  background: var(--surface-muted);
}
.thumb-app img {
  width: 34%;
  border-radius: 22%;
  box-shadow: 3px 3px 0 var(--pop-shadow);
}
.app-heading {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
}
.app-heading h1.page-title.heavy {
  margin: 0;
}
.app-icon {
  width: 4.5rem;
  height: 4.5rem;
  border: 2px solid var(--ink);
  border-radius: 22%;
  box-shadow: 3px 3px 0 var(--pop-shadow);
}
.app-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.app-row a {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  font-weight: 700;
  text-align: center;
}
.app-row img {
  width: 5.5rem;
  height: 5.5rem;
  border: 2px solid var(--ink);
  border-radius: 22%;
  box-shadow: 4px 4px 0 var(--pop-shadow);
  transition: transform 0.15s ease;
}
.app-row li:nth-child(odd) img {
  transform: rotate(-3deg);
}
.app-row li:nth-child(even) img {
  transform: rotate(3deg);
}
.app-row a:hover img {
  transform: rotate(0) scale(1.08);
}
.app-row a:hover span {
  text-decoration: underline wavy var(--coral);
  text-underline-offset: 0.25em;
}
@media (min-width: 768px) {
  .app-icon {
    width: 6rem;
    height: 6rem;
  }
}
.prose > :first-child {
  margin-top: 0;
}
