/* Layout and look mirror the original Wix portfolio:
   white page, black Poppins type, black pill buttons, light-blue active nav. */
:root {
  --ink: #000;
  --muted: #3d3d3d;
  --accent: #3ab0dc;
  --line: #000;
  --radius-pill: 5rem;
  --radius-img: 1.125rem;
  --max: 67.5rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --font: "Poppins", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Everything is sized in rem, so the whole site scales up on big monitors:
     16px up to a 1280px-wide window, then grows with the window (24px at 1920px). */
  font-size: clamp(16px, 1.25vw, 28px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.skip { position: absolute; left: -999px; top: .5rem; background: #000; color: #fff; padding: .5rem .75rem; z-index: 10; }
.skip:focus { left: .5rem; }

/* ---------- Header ---------- */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.3rem;
}
.brand img { width: auto; height: 3.25rem; }

.nav { display: flex; gap: clamp(1rem, 2.5vw, 2rem); }
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  transition: color .15s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .7rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--ink);
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: #fff; color: var(--ink); }
.btn-outline { background: #fff; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ---------- Headings ---------- */
.display {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.1;
  letter-spacing: -.01em;
}
.h2 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.2;
}

/* ---------- Home ---------- */
.hero { padding: clamp(1.5rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-intro {
  margin: 1.75rem 0 0;
  font-size: clamp(1.2rem, 2.3vw, 1.6rem);
  line-height: 1.4;
  max-width: 30ch;
}
.hero-intro strong { font-weight: 600; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.625rem, 1.6vw, 1.125rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f2f2f2;
}

/* ---------- Project page ---------- */
.project-hero { text-align: center; padding: clamp(1rem, 4vw, 2.5rem) 0 2rem; }
.project-hero .display { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
.project-sub {
  margin: .5rem 0 0;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
}
.gallery.gallery-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.875rem; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding: clamp(1rem, 4vw, 2.5rem) 0 clamp(3rem, 7vw, 5rem);
}
.form { margin-top: 2rem; display: grid; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { display: grid; gap: .25rem; }
.field label { font-weight: 600; font-size: 1rem; }
.field input, .field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1.5px solid var(--line);
  padding: .5rem 0;
  font: inherit;
  background: transparent;
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 4.5rem; }
.form .btn { width: 100%; padding: .8rem; }
.form-note { margin: 0; font-size: .95rem; color: var(--muted); min-height: 1.5em; }
.contact .display { font-size: clamp(2.6rem, 5.5vw, 4rem); }
.contact-art {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-img);
  margin-top: clamp(0rem, 6vw, 5rem);
}

/* ---------- Footer banner ---------- */
.site-footer {
  margin-top: clamp(3rem, 7vw, 5rem);
  background: #e95031;
  color: #fff;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  padding-bottom: clamp(1.75rem, 4vw, 2.5rem);
}
.footer-id { display: flex; align-items: center; gap: 1rem; }
.footer-logo { width: auto; height: 4.5rem; }
.copy {
  margin: 0;
  font-family: "Archivo", "Poppins", sans-serif;
  font-weight: 900;
  font-stretch: 78%;
  font-variation-settings: "wdth" 78;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -.005em;
}
.copy .year { font-size: .55em; font-weight: 700; vertical-align: .55em; margin-left: .15em; opacity: .9; }
.made { margin: .4rem 0 0; font-size: .95rem; }
.social { display: flex; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.social a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #fff;
  color: #e95031;
  transition: background .15s, color .15s;
}
.social a:hover { background: #1b1b1b; color: #fff; }
.social a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.social svg { width: 1.3125rem; height: 1.3125rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .gallery.gallery-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
  .contact { grid-template-columns: 1fr; }
  .contact-art { margin-top: 0; max-width: 26.25rem; }
}
@media (max-width: 520px) {
  .gallery.gallery-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .gallery { gap: 0.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-id { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .nav a { font-size: .95rem; }
}

/* ---------- About: cork board ---------- */
.board-wrap { padding: clamp(.5rem, 3vw, 2rem) 0 0; }

.board {
  --cork: #c3925b;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 18.125rem) minmax(0, 1fr) minmax(0, 16.875rem);
  grid-template-areas:
    "title title  side"
    "me    note   side"
    "links extras side";
  grid-template-rows: auto auto 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: clamp(1.5rem, 4vw, 3.25rem);
  --frame: clamp(1rem, 2.2vw, 1.5rem);
  border: var(--frame) solid transparent;
  border-radius: 3px;
  background:
    url("cork.jpg") 0 0 / 20rem 20rem padding-box,
    url("pine-h.jpg") 0 0 / 56.25rem 5.625rem border-box;
  background-color: #e9cf9f;
  box-shadow:
    inset 0 0 0 1px rgba(90, 55, 20, .35),
    inset 0 3px 0.625rem rgba(60, 30, 5, .45),
    inset 0 0 2.5rem rgba(60, 30, 5, .35),
    0 0.625rem 1.875rem rgba(0, 0, 0, .25);
}
/* Left and right frame rails: vertical grain, mitered 45° corners */
.board::before,
.board::after {
  content: "";
  position: absolute;
  top: calc(var(--frame) * -1);
  bottom: calc(var(--frame) * -1);
  width: var(--frame);
  background: url("pine-v.jpg") 0 0 / 5.625rem 56.25rem;
  pointer-events: none;
}
.board::before {
  left: calc(var(--frame) * -1);
  clip-path: polygon(0 0, 100% var(--frame), 100% calc(100% - var(--frame)), 0 100%);
  box-shadow: inset -1px 0 0 rgba(90, 55, 20, .25);
}
.board::after {
  right: calc(var(--frame) * -1);
  background-position: 2.8125rem 18.75rem;
  clip-path: polygon(0 var(--frame), 100% 0, 100% 100%, 0 calc(100% - var(--frame)));
}

.item {
  position: relative;
  transform: rotate(var(--r, 0deg));
  transition: transform .2s ease;
}
.item:hover, .item:focus-within { transform: rotate(0deg) scale(1.02); z-index: 2; }

/* Push pins (pastel, side view) and tape */
.pin {
  position: absolute;
  top: -2.5rem;
  left: 50%;
  width: 1.875rem;
  height: 3rem;
  margin-left: -.5rem;
  transform: rotate(var(--pr, 22deg));
  transform-origin: 50% 100%;
  filter: drop-shadow(4px 5px 3px rgba(0, 0, 0, .35));
  z-index: 3;
  overflow: visible;
}
.pin-lilac { color: #c9b3e6; }
.pin-mint  { color: #a8e0c8; }
.pin-sky   { color: #8ccbe8; }
.pin-peach { color: #f6b98a; }
.pin-pink  { color: #f2aac0; }
.pin-butter{ color: #f6e28e; }
.pin-sage  { color: #a9d6a2; }
.pin-red   { color: #e2453c; }
.pin-mint  { --pr: -18deg; }
.pin-sky   { --pr: -12deg; }
.tape {
  position: absolute;
  top: -1rem;
  left: 50%;
  width: 6.875rem;
  height: 2rem;
  margin-left: -3.4375rem;
  background: rgba(250, 248, 235, .62);
  transform: rotate(-5deg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
  z-index: 3;
}

/* Title: torn notebook scrap, written in marker */
.board-title {
  grid-area: title;
  margin: 0;
  justify-self: start;
  align-self: center;
  filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .3));
}
.scrap {
  display: block;
  padding: 1.3rem 2.2rem 1.6rem 3.2rem;
  font-family: "Permanent Marker", "Marker Felt", cursive;
  font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.15;
  color: #1c1c1e;
  text-shadow: 0 0 1px rgba(28, 28, 30, .55);
  background-color: #fdfcf7;
  background-image:
    linear-gradient(90deg, transparent 2.1rem, rgba(226, 92, 92, .55) 2.1rem, rgba(226, 92, 92, .55) calc(2.1rem + 2px), transparent calc(2.1rem + 2px)),
    repeating-linear-gradient(180deg, transparent 0 calc(1.75rem - 1px), rgba(110, 160, 215, .45) calc(1.75rem - 1px) 1.75rem);
  background-position: 0 0, 0 .6rem;
  clip-path: polygon(0.0% 4.5%, 3.8% 2.6%, 7.7% 5.2%, 11.5% 3.3%, 15.4% 5.0%, 19.2% 3.2%, 23.1% 2.1%, 26.9% 1.6%, 30.8% 5.8%, 34.6% 2.3%, 38.5% 5.6%, 42.3% 0.4%, 46.2% 3.9%, 50.0% 0.9%, 53.8% 4.2%, 57.7% 2.0%, 61.5% 2.1%, 65.4% 0.8%, 69.2% 3.1%, 73.1% 3.2%, 76.9% 5.1%, 80.8% 0.6%, 84.6% 5.2%, 88.5% 0.5%, 92.3% 4.5%, 96.2% 0.4%, 100.0% 2.0%, 97.8% 12.5%, 99.5% 25.0%, 99.5% 37.5%, 97.5% 50.0%, 97.8% 62.5%, 99.3% 75.0%, 97.6% 87.5%, 100.0% 95.1%, 96.2% 93.9%, 92.3% 98.2%, 88.5% 91.5%, 84.6% 93.8%, 80.8% 91.3%, 76.9% 92.0%, 73.1% 97.3%, 69.2% 96.7%, 65.4% 98.5%, 61.5% 98.7%, 57.7% 99.4%, 53.8% 97.3%, 50.0% 94.6%, 46.2% 100.0%, 42.3% 93.9%, 38.5% 97.0%, 34.6% 97.2%, 30.8% 92.6%, 26.9% 95.7%, 23.1% 97.2%, 19.2% 95.7%, 15.4% 93.7%, 11.5% 99.5%, 7.7% 91.2%, 3.8% 99.8%, 0.0% 93.3%, 0.8% 87.5%, 0.0% 75.0%, 0.8% 62.5%, 0.4% 50.0%, 0.6% 37.5%, 0.0% 25.0%, 0.0% 12.5%);
}
.tape-scrap { top: -12px; left: 18%; width: 5.625rem; transform: rotate(8deg); }

/* Polaroids */
.polaroid {
  margin: 0;
  background: #fdfdf9;
  padding: 0.75rem 0.75rem 0;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .3);
}
.polaroid img { width: 100%; aspect-ratio: 1 / 1.06; object-fit: cover; background: #ddd; }
.polaroid figcaption {
  font-family: "Nothing You Could Do", "Kalam", cursive;
  text-align: center;
  padding: .6rem .25rem .9rem;
  font-size: 1.15rem;
  line-height: 1.25;
  color: #2a2a2a;
}
.polaroid-me { grid-area: me; width: min(100%, 20rem); justify-self: center; align-self: start; }
.polaroid-dog { width: min(100%, 10.9375rem); justify-self: center; align-self: start; padding: 0.625rem 0.625rem 0; }
.polaroid-dog img { aspect-ratio: 1; }
.polaroid-dog figcaption { font-size: .9rem; padding: .45rem .2rem .7rem; }

/* Post-it */
.postit {
  grid-area: note;
  align-self: start;
  justify-self: center;
  width: min(100%, 27.5rem);
  min-height: 0;
  margin-top: 1rem;
  padding: 1.6rem 1.8rem 1.4rem;
  background: linear-gradient(170deg, #fff38a 0%, #fde96c 60%, #f7dc4f 100%);
  box-shadow: 2px 10px 14px -6px rgba(0, 0, 0, .4);
  font-family: "Kalam", "Comic Sans MS", cursive;
  font-size: 1.08rem;
  line-height: 1.45;
  color: #262626;
}
.postit p { margin: 0 0 .8rem; }
.postit p:last-child { margin-bottom: 0; }

/* Receipt */
.side {
  grid-area: side;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding-top: .5rem;
}
.side > .item { align-self: auto; justify-self: auto; }
.receipt-wrap {
  width: min(100%, 18.125rem);
  justify-self: center;
  align-self: start;
  padding-top: 0.875rem;
}
.clip {
  position: absolute;
  top: -.5rem;
  left: 50%;
  width: 6.5rem;
  height: 3.375rem;
  margin-left: -52px;
  color: #f2c4c9;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .3));
  z-index: 3;
}
.receipt {
  padding: 1.5rem 1.1rem 2rem;
  background: #fbfbf7;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: .8rem;
  line-height: 1.4;
  color: #222;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .3));
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 0.875rem 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 0.875rem 100%;
}
.receipt p { margin: 0; }
.r-head { text-align: center; font-weight: 700; font-size: 1rem; margin-top: 1.6rem !important; }
.r-rule { overflow: hidden; white-space: nowrap; color: #777; }
.receipt table { width: 100%; border-collapse: collapse; }
.receipt th { text-align: left; font-weight: 700; padding-bottom: .2rem; }
.receipt td { vertical-align: top; padding: .1rem 0; }
.receipt th:first-child, .receipt td:first-child { width: 2.2em; }
.receipt th:last-child, .receipt td:last-child { text-align: right; }
.r-total { display: flex; justify-content: space-between; font-weight: 700; font-size: .95rem; }
.receipt .barcode { margin-top: 1rem; }
.barcode {
  height: 2.5rem;
  margin: 0 auto .5rem;
  width: 80%;
  background:
    repeating-linear-gradient(90deg, #222 0 2px, transparent 2px 0.25rem, #222 0.25rem 0.3125rem, transparent 0.3125rem 0.5rem, #222 0.5rem 0.6875rem, transparent 0.6875rem 0.75rem);
}
.r-thanks { text-align: center; font-size: .75rem; }

/* Link tags */
.links {
  grid-area: links;
  margin-top: 2rem;
  justify-self: start;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2.5rem 1.5rem;
  align-items: flex-start;
  align-self: start;
}
.tag {
  position: relative;
  display: inline-block;
  padding: 1rem 1.3rem .8rem;
  font-family: "Kalam", "Comic Sans MS", cursive;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: #222;
  box-shadow: 0 5px 10px rgba(0, 0, 0, .3);
  transform: rotate(var(--r, -3deg));
  transition: transform .2s ease;
}
.tag:hover { transform: rotate(0deg) scale(1.05); text-decoration: underline; }
.tag-manila { background: #f0dcb0; }
.tag { white-space: nowrap; }
.tag-blue { background: #cfe3f7; }

@media (prefers-reduced-motion: reduce) {
  .item, .tag { transition: none; }
}

@media (max-width: 1100px) {
  .board {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-areas:
      "title  title"
      "me     note"
      "links  links"
      "extras extras"
      "side   side";
    grid-template-rows: none;
  }
  .postit { width: 100%; max-width: 27.5rem; font-size: 1rem; }
  .side { flex-direction: row; justify-content: space-around; align-items: flex-start; flex-wrap: wrap; }
  .links { justify-self: center; }
}
@media (max-width: 860px) {
  .side { flex-direction: column; align-items: center; justify-content: flex-start; width: 100%; flex-wrap: nowrap; }
  .board {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "me" "note" "extras" "side" "links";
    grid-template-rows: none;
    row-gap: 2.5rem;
    justify-items: center;
  }
  .board-title { justify-self: center; }
  .postit { max-width: 27.5rem; margin-top: 1rem; }
  .links { justify-content: center; justify-self: center; }
}

/* ---------- Home hero (v3) ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hero2 {
  /* Fill the first screen minus the header, leaving the top of the project cards peeking in */
  --header-h: 6.75rem;
  --peek: 2.75rem;
  /* never taller than ~28rem: on tall windows the text sits higher and more of the projects show */
  min-height: min(calc(100vh - var(--header-h) - var(--peek)), 28rem);
  min-height: min(calc(100svh - var(--header-h) - var(--peek)), 28rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* extra bottom padding (header height minus peek) puts the text in the middle of the whole screen */
  padding: 2rem 0 calc(2rem + var(--header-h) - var(--peek));
}
.hello {
  margin: 0 0 .35rem;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: #5a5a5a;
  min-height: 1.6em;
}
.wave { display: inline-block; }
.typed { color: var(--ink); font-weight: 500; }
.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 3px;
  vertical-align: -0.15em;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.headline {
  position: relative;
  margin: 0;
  max-width: 15ch;
  font-family: "Archivo", "Poppins", sans-serif;
  font-weight: 900;
  font-stretch: 78%;
  font-variation-settings: "wdth" 78;
  font-size: clamp(2.9rem, 7.6vw, 6rem);
  line-height: .98;
  letter-spacing: -0.01em;
}
.with-star { position: relative; white-space: nowrap; }
.star {
  position: absolute;
  top: .02em;
  right: -.36em;
  width: .6em;
  height: .6em;
  transform: rotate(14deg);
  z-index: 1;
  pointer-events: none;
}
.sticker { display: inline-block; height: .95em; width: auto; }
.cursor { height: .62em; margin-left: .02em; vertical-align: -0.02em; transform: rotate(-8deg); }
/* Calipers measuring the height of the "t" in "things": beam on the left,
   fixed jaw on top of the t, sliding jaw on the baseline, tail sticking out below.
   Offsets are in em, measured from Archivo 900 (t top ≈ .126em, baseline ≈ .82em in the line box). */
.tmeasure { position: relative; display: inline-block; }
.calv { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.calv img { max-width: none; }
.calv-beam {
  position: absolute;
  left: -.13em;
  top: -.11em;
  width: .15em;
  height: 1.46em;
  box-sizing: border-box;
  border: .028em solid #1d1d1f;
  border-radius: .03em;
  background-color: #c4cbd2;
  background-image: repeating-linear-gradient(180deg, #1d1d1f 0 .016em, transparent .016em .075em);
  background-size: 45% 100%;
  background-position: right;
  background-repeat: no-repeat;
}
.calv-jaw { position: absolute; left: -.27em; top: -.094em; width: .7em; height: .24em; }
.calv-slider { position: absolute; left: -.41em; top: .786em; width: .92em; height: .4em; }
.aussie { height: 1.05em; margin-left: .12em; vertical-align: -0.08em; margin-top: -.2em; }
/* "fun." swaps to a funky font on hover; both versions share one grid cell so nothing shifts */
.fun {
  position: relative;
  display: inline-block;
  cursor: default;
  transition: color .2s ease, transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.fun-a { transition: opacity .15s ease; }
.fun-b {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .15s ease;
  font-family: "Shrikhand", "Archivo", cursive;
  font-weight: 400;
  font-stretch: 100%;
  font-variation-settings: normal;
  font-size: .8em;
}
.fun:hover, .fun:focus-visible {
  color: var(--accent);
  transform: rotate(-8deg);
  outline: none;
}
.fun:hover .fun-a, .fun:focus-visible .fun-a { opacity: 0; }
.fun:hover .fun-b, .fun:focus-visible .fun-b { opacity: 1; }
.tile-link { display: block; }
.tile-link:hover img { opacity: .85; }
@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
  .fun { transition: none; }
}
@media (max-width: 600px) {
  .headline { line-height: 1.06; }
  .cursor { height: .62em; margin-left: .02em; vertical-align: -0.02em; transform: rotate(-8deg); }
  .hero2 { min-height: 0; padding: 2.5rem 0 3rem; }
}

/* ---------- Project cards (home) ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem clamp(1rem, 2vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.proj img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f2f2f2;
  border-radius: .75rem;
}
.proj-link { display: block; text-decoration: none; }
.proj-link:hover img { opacity: .88; }
.proj-link:hover .proj-title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .2em; }
.proj-title {
  margin: .9rem 0 .25rem;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}
.proj-desc { margin: 0; font-size: .95rem; line-height: 1.5; color: #555; max-width: 40ch; }
@media (max-width: 900px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .projects { grid-template-columns: minmax(0, 1fr); } }

/* Headline: two fixed lines on wider screens, natural wrapping on phones */
@media (min-width: 700px) {
  .headline { max-width: none; }
  .hl-line { display: block; white-space: nowrap; }
}

/* Phones: the headline wraps, so give the calipers their own room under "things" */
@media (max-width: 699px) {
  .tmeasure { margin-bottom: .55em; margin-left: .32em; }
}

/* Cork board: same width as the header (flush with logo and menu), with everything
   on it scaled down a little so the layout inside stays the same */
@media (min-width: 861px) {
  .board { zoom: .8; }
}

/* ---------- Cork board extras ---------- */
.extras {
  grid-area: extras;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  padding-top: 1.5rem;
}
.extras-row { display: flex; align-items: flex-start; justify-content: center; gap: 2.5rem; }
.pennant { width: min(100%, 19rem); filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .3)); }
.pennant img { width: 100%; height: auto; }
.pennant .pin { left: 1.2rem; top: -1.9rem; }
.polaroid-mini { width: 9.5rem; padding: .5rem .5rem 0; }
.polaroid-mini img { aspect-ratio: 1; }
.polaroid-mini figcaption { font-size: .95rem; padding: .35rem .2rem .55rem; }
.polaroid-mini .pin { top: -2.2rem; }
.phones { width: 10rem; margin-top: 1rem; filter: drop-shadow(2px 5px 4px rgba(0, 0, 0, .3)); }
.phones img { width: 100%; height: auto; }
.pin-phones { left: 50%; top: -2.2rem; margin-left: -.9rem; }
/* small star stickers stuck on top of things */
.item img.star-sticker {
  position: absolute;
  width: 1.9rem;
  height: 1.9rem;
  aspect-ratio: auto;
  max-width: none;
  background: none;
  object-fit: contain;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25));
}
.item img.ss-me { right: -.7rem; top: 1.4rem; transform: rotate(18deg); }
.item img.ss-note { left: -.8rem; bottom: -.6rem; width: 1.6rem; height: 1.6rem; transform: rotate(-12deg); }
.item img.ss-receipt { right: .4rem; bottom: 2.4rem; width: 1.7rem; height: 1.7rem; transform: rotate(10deg); }
.item img.ss-dog { left: -.6rem; bottom: -.5rem; width: 1.5rem; height: 1.5rem; transform: rotate(-20deg); }
.item img.ss-pennant { right: 2.5rem; top: -.6rem; width: 1.5rem; height: 1.5rem; transform: rotate(25deg); }
@media (max-width: 860px) {
  .extras { padding-top: 0; }
}
