/* ————————————————————————————————————————————————
   Forma · The Studio Noticeboard
   A corkboard: paper cards, pushpins, and red string.
   ———————————————————————————————————————————————— */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/artifacts/forma-frontend--v1--s4-whacky--glm-5.3--web-design-guidelines--2026-09-20T15-50-52-386Z/assets/fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/artifacts/forma-frontend--v1--s4-whacky--glm-5.3--web-design-guidelines--2026-09-20T15-50-52-386Z/assets/fonts/caveat-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/artifacts/forma-frontend--v1--s4-whacky--glm-5.3--web-design-guidelines--2026-09-20T15-50-52-386Z/assets/fonts/courier-prime-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/artifacts/forma-frontend--v1--s4-whacky--glm-5.3--web-design-guidelines--2026-09-20T15-50-52-386Z/assets/fonts/courier-prime-700-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Courier Prime";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/artifacts/forma-frontend--v1--s4-whacky--glm-5.3--web-design-guidelines--2026-09-20T15-50-52-386Z/assets/fonts/courier-prime-italic-400-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --wood: #59391f;
  --wood-deep: #42290f;
  --cork: #b98d5f;
  --paper: #f9f3e3;
  --paper-bright: #fffdf3;
  --ink: #2c2417;
  --ink-soft: #6a5c44;
  --red: #b3312c;
  --red-deep: #7d1f1b;
  --ceramics: #b4542c;
  --painting: #33628f;
  --floristry: #4c7a3d;
  --baking: #9a6b1f;
  --shadow-card: 0 12px 22px rgba(46, 25, 4, 0.32), 0 2px 4px rgba(46, 25, 4, 0.2);
  --shadow-soft: 0 4px 10px rgba(46, 25, 4, 0.22);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-hand: "Caveat", "Segoe Script", "Bradley Hand", cursive;
  --font-type: "Courier Prime", "Courier New", ui-monospace, monospace;
  --cork-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.38 0 0 0 0 0.24 0 0 0 0 0.09 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --paper-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.32 0 0 0 0 0.27 0 0 0 0 0.15 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-type);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--wood);
  background-image:
    repeating-linear-gradient(94deg, rgba(0, 0, 0, 0.16) 0 2px, rgba(255, 255, 255, 0.03) 2px 5px, rgba(0, 0, 0, 0.05) 5px 9px),
    linear-gradient(180deg, var(--wood), var(--wood-deep));
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(90, 57, 24, 0.25);
  padding: clamp(10px, 2vw, 22px);
}

/* Focus, visible everywhere */
:focus-visible {
  outline: 3px solid var(--red-deep);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-200%);
  background: var(--paper-bright);
  color: var(--ink);
  font-family: var(--font-type);
  font-weight: 700;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}
.skip-link:focus-visible { transform: none; }

/* ————— The board ————— */
.board {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 36px) clamp(14px, 3vw, 40px) 8px;
  border-radius: 10px;
  background-color: var(--cork);
  background-image:
    radial-gradient(130% 100% at 50% -10%, rgba(255, 236, 200, 0.22), rgba(0, 0, 0, 0) 55%),
    radial-gradient(100% 80% at 50% 115%, rgba(30, 15, 0, 0.32), rgba(0, 0, 0, 0) 60%),
    var(--cork-noise);
  box-shadow:
    inset 0 0 0 2px rgba(255, 240, 210, 0.18),
    inset 0 0 60px rgba(60, 30, 5, 0.35),
    0 18px 44px rgba(20, 8, 0, 0.55);
}

.strings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
  pointer-events: none;
  filter: drop-shadow(0 2px 1px rgba(30, 12, 0, 0.35));
}
.strings path {
  fill: none;
  stroke: var(--red);
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0.92;
  stroke-dasharray: 1;
  animation: string-draw 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.strings.no-anim path { animation: none; }
@keyframes string-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

/* ————— Letterhead ————— */
.letterhead {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "paper polaroid"
    "hub   polaroid";
  gap: 18px 26px;
  align-items: start;
  margin: 0 0 30px;
  position: relative;
  z-index: 2;
}

.letterhead-paper {
  grid-area: paper;
  position: relative;
  background-color: var(--paper);
  background-image: var(--paper-noise);
  padding: 22px 26px 20px;
  transform: rotate(-0.7deg);
  box-shadow: var(--shadow-card);
  border-radius: 2px;
}

.tape { position: relative; }
.tape::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 96px;
  height: 24px;
  transform: translateX(-50%) rotate(-2deg);
  background:
    linear-gradient(rgba(255, 253, 240, 0.5), rgba(255, 253, 240, 0.5)),
    rgba(224, 210, 172, 0.92);
  box-shadow: 0 2px 4px rgba(40, 20, 0, 0.22);
  pointer-events: none;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(52px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.brand::after {
  content: ".";
  color: var(--red);
}

.brand-hand {
  margin: 2px 0 12px;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--red-deep);
  transform: rotate(-1.4deg);
}

.brand-line {
  margin: 0;
  max-width: 58ch;
  color: var(--ink);
}

/* Polaroids */
.polaroid {
  margin: 0;
  background: var(--paper-bright);
  padding: 10px 10px 6px;
  box-shadow: var(--shadow-card);
  border-radius: 2px;
}
.polaroid img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid rgba(60, 40, 10, 0.18);
}
.polaroid figcaption {
  font-family: var(--font-hand);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.1;
  color: var(--ink-soft);
  text-align: center;
  padding: 6px 2px 2px;
}
.polaroid-studio {
  grid-area: polaroid;
  width: clamp(150px, 20vw, 220px);
  transform: rotate(2.2deg);
}
.polaroid-studio img { aspect-ratio: 3 / 2; }

/* Shortlist hub */
.hub {
  grid-area: hub;
  justify-self: start;
  background-color: var(--paper-bright);
  background-image: var(--paper-noise);
  padding: 16px 22px 12px;
  transform: rotate(1.6deg);
  box-shadow: var(--shadow-card);
  border-radius: 2px;
  min-width: 168px;
  text-align: center;
}
.hub-pin {
  position: absolute;
  top: -9px;
  left: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 35% 30%, #e05a4e, var(--red) 62%, var(--red-deep));
  box-shadow:
    0 4px 5px rgba(50, 15, 5, 0.5),
    inset -2px -3px 5px rgba(0, 0, 0, 0.3),
    inset 2px 2px 3px rgba(255, 255, 255, 0.4);
}
.hub-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  text-wrap: balance;
}
.hub-count {
  margin: 2px 0 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hub-hint {
  margin: 4px 0 0;
  font-size: 18px;
  color: var(--red-deep);
  line-height: 1;
}

/* ————— Controls strip ————— */
.controls {
  position: sticky;
  top: 10px;
  z-index: 7;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px 18px;
  margin: 0 0 34px;
  padding: 16px 18px 14px;
  background-color: var(--paper-bright);
  background-image: var(--paper-noise);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(90, 60, 20, 0.25);
  border-radius: 3px;
  transform: rotate(-0.25deg);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 200px;
  min-width: 0;
}
.field-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

input[type="search"],
select {
  font: inherit;
  color: var(--ink);
  background-color: var(--paper);
  border: 1.5px solid rgba(70, 48, 16, 0.45);
  border-radius: 2px;
  padding: 9px 12px;
  box-shadow: inset 0 2px 4px rgba(70, 45, 12, 0.12);
  min-width: 0;
}
input[type="search"]:hover,
select:hover { border-color: var(--ink); }

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%232c2417' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.clip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background-color: var(--paper);
  border: 1.5px solid rgba(70, 48, 16, 0.45);
  border-radius: 2px;
  padding: 9px 14px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.clip-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(46, 25, 4, 0.3);
  border-color: var(--ink);
}
.clip-toggle[aria-pressed="true"] {
  background-color: var(--red);
  border-color: var(--red-deep);
  color: var(--paper-bright);
}
.clip-toggle[aria-pressed="true"] .clip-count {
  background-color: var(--paper-bright);
  color: var(--red-deep);
}
.clip-icon { width: 18px; height: 18px; }
.clip-count {
  font-variant-numeric: tabular-nums;
  background-color: rgba(70, 48, 16, 0.14);
  border-radius: 999px;
  padding: 0 8px;
  min-width: 22px;
  text-align: center;
}

/* ————— The grid of cards ————— */
.grid-wrap { position: relative; z-index: 2; }

.section-tab {
  display: inline-block;
  margin: 0 0 22px;
  background-color: var(--paper-bright);
  background-image: var(--paper-noise);
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 26px;
  color: var(--ink);
  padding: 2px 20px 6px;
  transform: rotate(-1.2deg);
  box-shadow: var(--shadow-soft);
  border-radius: 2px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 34px 26px;
  padding-bottom: 10px;
}

.board-note {
  font-size: 17px;
  color: var(--paper-bright);
  background-color: rgba(46, 25, 4, 0.55);
  padding: 14px 18px;
  border-radius: 3px;
  justify-self: start;
}

/* Workshop card */
.card {
  position: relative;
  z-index: 2;
  background-color: var(--paper);
  background-image: var(--paper-noise);
  border-radius: 2px;
  padding: 14px 16px 18px;
  box-shadow: var(--shadow-card);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  scroll-margin-top: 110px;
}
.card:nth-child(6n + 1) { --tilt: -1.1deg; }
.card:nth-child(6n + 2) { --tilt: 0.9deg; }
.card:nth-child(6n + 3) { --tilt: -0.5deg; }
.card:nth-child(6n + 4) { --tilt: 1.2deg; }
.card:nth-child(6n + 5) { --tilt: -0.8deg; }
.card:nth-child(6n + 6) { --tilt: 0.6deg; }

.card:hover {
  transform: rotate(var(--tilt, 0deg)) translateY(-4px);
  box-shadow: 0 18px 30px rgba(46, 25, 4, 0.42), 0 3px 6px rgba(46, 25, 4, 0.25);
  z-index: 3;
}

/* Pushpins */
.pin,
.pin-red {
  position: absolute;
  top: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow:
    0 4px 5px rgba(50, 15, 5, 0.45),
    inset -2px -3px 5px rgba(0, 0, 0, 0.3),
    inset 2px 2px 3px rgba(255, 255, 255, 0.4);
}
.pin { left: 18px; }
.pin-red {
  right: 18px;
  display: none;
  background: radial-gradient(circle at 35% 30%, #e05a4e, var(--red) 62%, var(--red-deep));
}
.card.saved .pin-red { display: block; }

.pin-ceramics { background: radial-gradient(circle at 35% 30%, #e08a5e, var(--ceramics) 62%, #7c3316); }
.pin-painting { background: radial-gradient(circle at 35% 30%, #7aa8d4, var(--painting) 62%, #1f3f5c); }
.pin-floristry { background: radial-gradient(circle at 35% 30%, #8cba7c, var(--floristry) 62%, #2f5224); }
.pin-baking { background: radial-gradient(circle at 35% 30%, #d4aa5e, var(--baking) 62%, #66430e); }

.card .photo {
  margin: 0 0 12px;
  border: 8px solid var(--paper-bright);
  box-shadow: 0 2px 6px rgba(46, 25, 4, 0.28);
  background: var(--paper-bright);
}
.card .photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}

.stamp {
  display: inline-block;
  margin: 0 0 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1.5px solid currentColor;
  padding: 2px 8px 1px;
  border-radius: 2px;
  transform: rotate(-1deg);
  opacity: 0.92;
}
.stamp-ceramics { color: #9c4118; }
.stamp-painting { color: #2a5378; }
.stamp-floristry { color: #3c6330; }
.stamp-baking { color: #7d5416; }

.card-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.12;
  text-wrap: balance;
}

.card-desc {
  margin: 0 0 10px;
  color: var(--ink-soft);
  line-height: 1.45;
  text-wrap: pretty;
}

.meta {
  margin: 0 0 4px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.meta .dot { margin: 0 7px; color: var(--ink-soft); }
.price {
  font-weight: 700;
  font-size: 17px;
}

.pinned-note {
  display: none;
  margin: 10px 0 0;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  color: var(--red-deep);
  transform: rotate(-1.6deg);
}
.card.saved .pinned-note { display: block; }

.open-btn {
  margin-top: 12px;
  font: inherit;
  font-weight: 700;
  color: var(--paper-bright);
  background-color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  padding: 9px 16px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.open-btn:hover {
  background-color: var(--red-deep);
  border-color: var(--red-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(46, 25, 4, 0.32);
}

/* ————— Empty state ————— */
.empty {
  position: relative;
  z-index: 2;
  margin-inline: auto;
  background-color: var(--paper-bright);
  background-image: var(--paper-noise);
  padding: 26px 30px 24px;
  max-width: 420px;
  box-shadow: var(--shadow-card);
  transform: rotate(-0.8deg);
  text-align: center;
  border-radius: 2px;
}
.empty[hidden] { display: none; }
.empty-title {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  text-wrap: balance;
}
.empty-hand {
  margin: 0 0 14px;
  font-size: 22px;
  color: var(--red-deep);
}
.reset-btn {
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background-color: var(--paper);
  border: 1.5px solid rgba(70, 48, 16, 0.5);
  border-radius: 2px;
  padding: 9px 16px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.reset-btn:hover {
  transform: translateY(-1px);
  border-color: var(--ink);
  box-shadow: 0 6px 14px rgba(46, 25, 4, 0.3);
}

/* ————— Footer ————— */
.board-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 44px;
  padding: 4px 6px 18px;
  flex-wrap: wrap;
}
.footer-hand {
  margin: 0;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  color: rgba(61, 34, 8, 0.75);
  transform: rotate(-2deg);
  flex: 1 1 240px;
}
.polaroid-leather {
  width: clamp(120px, 16vw, 170px);
  transform: rotate(2.6deg);
}
.polaroid-leather img { aspect-ratio: 2 / 3; }
.credits {
  margin: 0;
  flex-basis: 100%;
  font-size: 12px;
  color: #46280e;
  max-width: 72ch;
}

/* ————— Detail: the sign-up sheet ————— */
.sheet {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(640px, calc(100vw - 24px));
  max-height: min(88dvh, 100%);
  margin: auto;
  overflow: visible;
  overscroll-behavior: contain;
}
.sheet::backdrop {
  background: rgba(38, 20, 4, 0.55);
  backdrop-filter: blur(2px);
}
.sheet[open] { animation: sheet-in 0.35s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
@keyframes sheet-in {
  from { transform: translateY(26px) rotate(1.6deg); opacity: 0; }
  to { transform: translateY(0) rotate(0deg); opacity: 1; }
}

.sheet-paper {
  position: relative;
  background-color: var(--paper-bright);
  background-image: var(--paper-noise);
  padding: 30px 32px 28px;
  border: 1px solid rgba(120, 90, 40, 0.3);
  border-radius: 2px;
  box-shadow: 0 30px 60px rgba(20, 8, 0, 0.6);
  max-height: min(88dvh, 100%);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sheet-pin {
  position: absolute;
  top: -9px;
  left: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 35% 30%, #e05a4e, var(--red) 62%, var(--red-deep));
  box-shadow:
    0 4px 6px rgba(50, 15, 5, 0.5),
    inset -2px -3px 5px rgba(0, 0, 0, 0.3),
    inset 2px 2px 3px rgba(255, 255, 255, 0.4);
}

.sheet-kicker {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.sheet-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.05;
  text-wrap: balance;
}
.pinned-stamp {
  display: none;
  position: absolute;
  top: 18px;
  right: 22px;
  margin: 0;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red-deep);
  border: 2.5px solid var(--red-deep);
  border-radius: 3px;
  padding: 3px 10px 2px;
  transform: rotate(8deg);
  opacity: 0.85;
}
.sheet.pinned .pinned-stamp { display: block; }

.sheet-photo {
  margin: 14px 0 16px;
  border: 8px solid #fff;
  box-shadow: 0 2px 8px rgba(46, 25, 4, 0.3);
  transform: rotate(-0.8deg);
}
.sheet-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
}
.sheet-body {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}

.sheet-meta {
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px 18px;
  border-top: 1.5px dashed rgba(70, 48, 16, 0.4);
  border-bottom: 1.5px dashed rgba(70, 48, 16, 0.4);
  padding: 14px 2px;
}
.sheet-meta div { min-width: 0; }
.sheet-meta dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 2px;
}
.sheet-meta dd {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sheet-note {
  margin: 0 0 18px;
  font-size: 26px;
  line-height: 1;
  color: var(--red-deep);
  transform: rotate(-1.4deg);
  transform-origin: left center;
}

.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.save-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  color: var(--paper-bright);
  background-color: var(--red);
  border: 1.5px solid var(--red-deep);
  border-radius: 2px;
  padding: 11px 18px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.save-btn:hover {
  background-color: var(--red-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(46, 25, 4, 0.35);
}
.save-btn[aria-pressed="true"] {
  background-color: var(--paper);
  color: var(--red-deep);
}
.save-btn[aria-pressed="true"]:hover { background-color: var(--paper-bright); }
.pin-icon { width: 15px; height: 15px; }

.close-btn {
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  background-color: var(--paper-bright);
  border: 1.5px solid rgba(70, 48, 16, 0.5);
  border-radius: 2px;
  padding: 11px 16px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.close-btn:hover {
  transform: translateY(-1px);
  border-color: var(--ink);
  box-shadow: 0 6px 14px rgba(46, 25, 4, 0.3);
}

/* ————— Toast ————— */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translate(-50%, 0);
  z-index: 60;
  max-width: min(90vw, 480px);
  background-color: var(--ink);
  color: var(--paper-bright);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 3px;
  box-shadow: 0 10px 26px rgba(20, 8, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -6px);
}

/* ————— Handwriting helper ————— */
.hand {
  font-family: var(--font-hand);
  font-weight: 500;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ————— Mobile ————— */
@media (max-width: 719px) {
  .strings { display: none; }
  .letterhead {
    grid-template-columns: 1fr;
    grid-template-areas:
      "paper"
      "hub"
      "polaroid";
  }
  .hub { justify-self: stretch; }
  .polaroid-studio { justify-self: center; }
  .controls { top: 8px; align-items: stretch; }
  .field { flex-basis: 100%; }
  .clip-toggle { justify-content: center; }
  .grid { grid-template-columns: 1fr; gap: 30px; }
  .sheet-paper { padding: 22px 18px 20px; }
  .sheet-actions .save-btn,
  .sheet-actions .close-btn { flex: 1 1 100%; justify-content: center; }
  .save-btn { justify-content: center; }
  .board-footer { justify-content: center; text-align: center; }
  .footer-hand { flex-basis: 100%; }
}

/* ————— Reduced motion ————— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .strings path { animation: none; }
}
