:root {
  --ink: #211d1b;
  --muted: #6f6660;
  --paper: #fffaf2;
  --surface: #ffffff;
  --line: #eadfd2;
  --blue: #3f7bdc;
  --blue-dark: #2359b8;
  --pink: #ff7fb1;
  --yellow: #ffd86b;
  --shadow: 0 24px 70px rgba(55, 43, 31, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

@font-face {
  font-family: "Cherry Bomb One";
  src: url("../fonts/CherryBombOne-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Chewy";
  src: url("../fonts/Chewy-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "DynaPuff";
  src: url("../fonts/DynaPuff.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Luckiest Guy";
  src: url("../fonts/LuckiestGuy-Regular.ttf") format("truetype");
  font-display: swap;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(255, 250, 242, 0.9);
  border-bottom: 1px solid rgba(234, 223, 210, 0.8);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--surface);
  -webkit-text-stroke: 1.5px var(--ink);
  text-shadow: 2px 2px 0 var(--pink);
}

.site-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-footer a:hover,
.text-link:hover {
  color: var(--blue-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: calc(100svh - 76px);
  padding: clamp(44px, 7vw, 86px) clamp(20px, 5vw, 72px) 56px;
  background:
    linear-gradient(120deg, rgba(255, 216, 107, 0.34), rgba(255, 250, 242, 0) 36%),
    linear-gradient(300deg, rgba(63, 123, 220, 0.13), rgba(255, 250, 242, 0) 44%),
    var(--paper);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 7.2vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.nowrap {
  white-space: nowrap;
}

.hero-text {
  max-width: 640px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}

.hero-actions,
.preview-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 0 rgba(33, 29, 27, 0.16);
}

.button.primary {
  background: var(--blue);
  color: #fff;
}

.button.secondary {
  background: #fff;
}

.button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.text-link {
  color: var(--blue);
  font-weight: 900;
}

.preview-panel {
  padding: clamp(20px, 3vw, 30px);
  border: 2px solid var(--ink);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tool-row {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.tool-row label,
.style-switcher legend,
.font-picker legend {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
}

.tool-row input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  color: var(--ink);
  font-weight: 800;
}

.tool-row textarea {
  width: 100%;
  min-height: 116px;
  resize: vertical;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  color: var(--ink);
  font-weight: 800;
}

.style-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.style-switcher legend,
.font-picker legend {
  flex: 0 0 100%;
}

.style-switcher label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf9;
  color: var(--muted);
  font-weight: 800;
}

.font-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.font-picker legend {
  grid-column: 1 / -1;
}

.font-picker label {
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf9;
  color: var(--muted);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.font-picker input {
  justify-self: center;
}

.font-picker span {
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

.font-picker label:has(input:checked) {
  border-color: var(--blue);
  background: #eef4ff;
  color: var(--blue-dark);
}

.font-picker label.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.font-picker label.is-disabled span {
  color: var(--muted);
}

.color-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.color-controls label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.color-controls label > input[type="text"] {
  padding: 8px 10px;
  color: var(--ink);
  cursor: text;
}

.color-controls input,
.color-controls select {
  width: 100%;
  height: 44px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.color-controls select {
  padding: 8px 10px;
  color: var(--ink);
}

.color-controls .toggle-control {
  align-content: end;
}

body[data-page="home"] .home-generator-colors {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.generator-color-style-control {
  align-self: start;
}

.generator-color-style-control select {
  align-self: start;
}

.generator-toggle-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.generator-toggle-row .toggle-control {
  min-height: 44px;
  align-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.custom-color-panel {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(112px, 0.7fr) minmax(0, 1.3fr);
  align-items: end;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 242, 0.76);
}

.custom-color-panel[hidden] {
  display: none;
}

.custom-color-value-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.custom-color-panel input[type="text"] {
  padding: 8px 10px;
  color: var(--ink);
  cursor: text;
}

.glyph-system-panel {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 242, 0.82);
}

.glyph-system-panel strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.glyph-system-panel span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.45;
}

.toggle-control input {
  width: 22px;
  height: 22px;
  padding: 0;
}

.preview-sheet {
  display: grid;
  min-height: 300px;
  place-items: center;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 24px;
  border: 2px dashed #e0cdbc;
  border-radius: 20px;
  background:
    linear-gradient(#f3eadf 1px, transparent 1px),
    linear-gradient(90deg, #f3eadf 1px, transparent 1px),
    #fffdf8;
  background-size: 34px 34px;
}

.bubble-canvas {
  width: 100%;
  max-width: 760px;
  height: auto;
  border-radius: 16px;
  background: #34a4a9;
}

.bubble-svg-preview {
  width: 100%;
  max-width: 760px;
}

.bubble-svg-preview svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #34a4a9;
}

.generator-svg-preview {
  max-width: 100%;
}

.glyph-support-note {
  min-height: 1.3em;
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.tool-hero {
  padding: clamp(42px, 6vw, 76px) clamp(20px, 5vw, 72px) 28px;
}

.tool-hero h1 {
  max-width: 960px;
}

.tool-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}

.generator-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
  padding: 20px clamp(20px, 5vw, 72px) clamp(52px, 7vw, 88px);
}

.canvas-stage,
.control-panel {
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.canvas-stage {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2.5vw, 28px);
}

.control-panel {
  padding: clamp(18px, 2.5vw, 26px);
}

.full-preview {
  min-height: 470px;
  padding: 22px;
  border-style: solid;
}

.generator-canvas {
  max-width: 100%;
}

.generator-font-picker {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.generator-colors {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.range-controls {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.range-controls label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.range-controls label span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.range-controls input[type="range"] {
  width: 100%;
}

.range-controls select {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.generator-notes {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  padding: clamp(52px, 8vw, 96px) clamp(20px, 5vw, 72px);
  background: #fff3dc;
}

.generator-notes p:not(.eyebrow) {
  color: var(--muted);
}

.printable-hero {
  background:
    linear-gradient(120deg, rgba(255, 216, 107, 0.34), rgba(255, 250, 242, 0) 46%),
    var(--paper);
}

.trace-hero {
  background:
    linear-gradient(120deg, rgba(63, 123, 220, 0.16), rgba(255, 250, 242, 0) 46%),
    var(--paper);
}

.alphabet-hero {
  background:
    linear-gradient(120deg, rgba(255, 127, 177, 0.16), rgba(255, 250, 242, 0) 46%),
    var(--paper);
}

.font-hero {
  background:
    linear-gradient(120deg, rgba(255, 216, 107, 0.32), rgba(255, 250, 242, 0) 46%),
    linear-gradient(300deg, rgba(63, 123, 220, 0.12), rgba(255, 250, 242, 0) 44%),
    var(--paper);
}

.printable-workspace,
.trace-workspace,
.alphabet-workspace,
.style-preview-section {
  padding: 24px clamp(20px, 5vw, 72px) clamp(52px, 8vw, 96px);
}

.printable-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.alphabet-sheet-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(340px, 1fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
}

.alphabet-sheet-panel {
  display: grid;
  place-items: center;
  padding: clamp(14px, 2.2vw, 24px);
  border: 2px solid var(--ink);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 216, 107, 0.24), rgba(255, 255, 255, 0) 36%),
    #fffdf8;
  box-shadow: var(--shadow);
}

.alphabet-sheet-canvas {
  width: 100%;
  max-width: 620px;
  height: auto;
  border: 1px solid #d9d0c7;
  background: #fff;
  box-shadow: 0 16px 42px rgba(33, 29, 27, 0.16);
}

.alphabet-sheet-controls {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2.5vw, 26px);
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.alphabet-case-switcher {
  margin-bottom: 0;
}

.alphabet-sheet-fonts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0;
}

.alphabet-sheet-colors {
  grid-template-columns: minmax(240px, 1.45fr) minmax(120px, 0.72fr) minmax(120px, 0.72fr);
  margin-bottom: 0;
}

.alphabet-sheet-colors .color-style-control {
  min-width: 0;
}

.alphabet-sheet-ranges {
  margin-top: 0;
}

.alphabet-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.alphabet-preset-grid button {
  display: grid;
  gap: 8px;
  min-height: 122px;
  place-items: center;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf8;
  color: var(--muted);
  font-weight: 850;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.alphabet-preset-grid button:hover,
.alphabet-preset-grid button.is-active {
  border-color: var(--blue);
  background: #eef4ff;
  color: var(--blue-dark);
  transform: translateY(-2px);
}

.alphabet-preset-grid span {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 0.9;
  -webkit-text-stroke: 1.4px var(--ink);
}

.alphabet-preset-grid small {
  font-size: 0.82rem;
  line-height: 1.1;
  text-align: center;
}

.single-letter-workspace {
  padding-top: clamp(34px, 6vw, 72px);
  background: #fff3dc;
}

.single-style-controls {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
}

.style-control-topline {
  display: grid;
  grid-template-columns: minmax(260px, 0.46fr) minmax(420px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.style-control-group {
  display: grid;
  gap: 10px;
}

.control-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.single-style-grid {
  margin-top: 0;
}

.single-case-switcher {
  align-content: start;
  height: 100%;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf8;
}

.single-case-switcher legend {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compact-font-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.compact-font-picker button {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 96px;
  place-items: center;
  padding: 12px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf8;
  color: var(--muted);
  font-weight: 850;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.compact-font-picker button::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 1px solid #9aa1a8;
  border-radius: 50%;
  background: #fff;
}

.compact-font-picker button.is-active {
  border-color: var(--blue);
  background: #eef4ff;
  color: var(--blue-dark);
  transform: translateY(-2px);
}

.compact-font-picker button.is-active::before {
  border-color: var(--blue);
  background:
    radial-gradient(circle, var(--blue) 0 4px, transparent 5px),
    #fff;
}

.compact-font-picker button.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.compact-font-picker span {
  color: var(--ink);
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  line-height: 0.9;
  -webkit-text-stroke: 1px rgba(33, 29, 27, 0.08);
}

.compact-font-picker small {
  font-size: 0.82rem;
  line-height: 1.1;
  text-align: center;
}

.palette-button-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.palette-button-grid button {
  display: grid;
  gap: 9px;
  min-height: 90px;
  place-items: center;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf8;
  color: var(--muted);
  font-weight: 850;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.palette-button-grid button:hover,
.palette-button-grid button.is-active {
  border-color: var(--blue);
  background: #eef4ff;
  color: var(--blue-dark);
  transform: translateY(-2px);
}

.compact-palette-grid {
  grid-template-columns: repeat(6, minmax(74px, 1fr));
}

.compact-palette-grid button {
  min-height: 66px;
  gap: 7px;
  padding: 9px 8px;
}

.palette-squares {
  display: inline-grid;
  grid-template-columns: repeat(5, 16px);
  gap: 3px;
  padding: 3px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  box-shadow: 3px 3px 0 rgba(33, 29, 27, 0.08);
}

.palette-squares span {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.palette-preview {
  display: block;
  width: min(100%, 118px);
  height: 28px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 rgba(33, 29, 27, 0.1);
}

.palette-jelly-rainbow {
  background: linear-gradient(90deg, #ff6fae, #ffd25e, #5fe0a8, #58cafa, #bb8dff, #ff9064);
}

.palette-candy-pop {
  background: linear-gradient(90deg, #ff4fa2, #3fd7ff, #ffe35a, #8ef05c, #ff8ed8);
}

.palette-fruit-gummy {
  background: linear-gradient(90deg, #ff7676, #ffb347, #ffe66d, #78e08f, #70a1ff);
}

.palette-ocean-gel {
  background: linear-gradient(90deg, #42e8d4, #55d6ff, #7aa7ff, #b7f7ff, #8dffcf);
}

.palette-sunset-party {
  background: linear-gradient(90deg, #ff7b54, #ffb84d, #ffe66d, #ff6fb3, #9d7bff);
}

.palette-low-ink {
  background:
    repeating-linear-gradient(90deg, #fff 0 10px, #f5f0e9 10px 20px);
}

.single-letter-print-stage {
  display: none;
}

.single-letter-printer {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(320px, 1fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
  margin: 0 0 24px;
}

.single-letter-preview-panel {
  display: grid;
  place-items: center;
  padding: clamp(14px, 2.2vw, 22px);
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.single-letter-canvas {
  width: 100%;
  max-width: 460px;
  height: auto;
  border: 1px solid #d9d0c7;
  background: #fff;
  box-shadow: 0 14px 34px rgba(33, 29, 27, 0.14);
}

.single-letter-controls {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 2.5vw, 26px);
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.single-letter-controls h3 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.single-letter-controls p:not(.eyebrow) {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.printable-letter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.printable-letter-grid article,
.bubble-number-grid article {
  display: grid;
  min-height: 250px;
  place-items: center;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: #fffdf8;
  break-inside: avoid;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.printable-letter-grid article:hover,
.printable-letter-grid article:focus-visible,
.printable-letter-grid article.is-active,
.bubble-number-grid article:hover,
.bubble-number-grid article:focus-visible,
.bubble-number-grid article.is-active {
  border-color: var(--blue);
  background: #eef4ff;
  outline: 0;
  transform: translateY(-2px);
}

.printable-letter-grid span,
.bubble-number-grid span {
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Cherry Bomb One", "Arial Rounded MT Bold", "Cooper Black", sans-serif;
  font-size: clamp(5.4rem, 12vw, 9.6rem);
  font-weight: 900;
  line-height: 0.9;
  -webkit-text-stroke: 2px var(--ink);
  text-shadow:
    0 3px 0 rgba(255, 255, 255, 0.55),
    0 9px 20px rgba(33, 29, 27, 0.16);
}

.printable-letter-grid article:nth-child(6n + 1) span,
.bubble-number-grid article:nth-child(6n + 1) span {
  color: #ff7fb1;
}

.printable-letter-grid article:nth-child(6n + 2) span,
.bubble-number-grid article:nth-child(6n + 2) span {
  color: #ffd86b;
}

.printable-letter-grid article:nth-child(6n + 3) span,
.bubble-number-grid article:nth-child(6n + 3) span {
  color: #6ee7b7;
}

.printable-letter-grid article:nth-child(6n + 4) span,
.bubble-number-grid article:nth-child(6n + 4) span {
  color: #67d5ff;
}

.printable-letter-grid article:nth-child(6n + 5) span,
.bubble-number-grid article:nth-child(6n + 5) span {
  color: #c79cff;
}

.printable-letter-grid article:nth-child(6n + 6) span,
.bubble-number-grid article:nth-child(6n + 6) span {
  color: #ff9b6b;
}

.printable-letter-grid small,
.bubble-number-grid small {
  color: var(--muted);
  font-weight: 850;
}

.printable-numbers-section {
  background: var(--surface);
}

.bubble-number-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.phrase-pack-section {
  background: #fff8e8;
}

.phrase-pack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.banner-card {
  position: relative;
  display: grid;
  grid-template-rows: 92px 1fr;
  gap: 14px;
  min-height: 172px;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.82) 0 38px, transparent 39px),
    linear-gradient(135deg, #fffdf8, #ffe7f0);
  box-shadow: 8px 8px 0 rgba(33, 29, 27, 0.08);
}

.banner-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(33, 29, 27, 0.18);
  border-radius: 15px;
  pointer-events: none;
}

.banner-card.school {
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.82) 0 38px, transparent 39px),
    linear-gradient(135deg, #fff9df, #dff8eb);
}

.banner-card.thanks {
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.82) 0 38px, transparent 39px),
    linear-gradient(135deg, #e9f5ff, #fff6da);
}

.banner-card.congrats {
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.82) 0 38px, transparent 39px),
    linear-gradient(135deg, #fff2d1, #efe2ff);
}

.banner-card.new-year {
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.82) 0 38px, transparent 39px),
    linear-gradient(135deg, #fff6d8, #e6f4ff);
}

.banner-card.christmas {
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.82) 0 38px, transparent 39px),
    linear-gradient(135deg, #e4f7e8, #fff1f1);
}

.banner-card.halloween {
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.82) 0 38px, transparent 39px),
    linear-gradient(135deg, #fff1d8, #f2e4ff);
}

.banner-card.mom {
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.82) 0 38px, transparent 39px),
    linear-gradient(135deg, #ffe8f3, #e3f8ed);
}

.banner-art {
  position: relative;
  min-height: 86px;
}

.banner-shape {
  position: absolute;
  display: block;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(33, 29, 27, 0.1);
}

.banner-shape.pink { background: #ff7fb1; }
.banner-shape.yellow { background: #ffd86b; }
.banner-shape.blue { background: #67d5ff; }
.banner-shape.green { background: #6ee7b7; }
.banner-shape.purple { background: #c79cff; }
.banner-shape.red { background: #ff7f78; }
.banner-shape.orange { background: #ff9b6b; }

.banner-shape.balloon {
  width: 46px;
  height: 58px;
  border-radius: 50% 50% 46% 46%;
  left: 10px;
  top: 10px;
}

.banner-shape.balloon::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 54px;
  width: 2px;
  height: 28px;
  background: var(--ink);
}

.banner-shape.balloon.yellow {
  left: 58px;
  top: 18px;
}

.banner-shape.confetti {
  width: 54px;
  height: 18px;
  right: 8px;
  top: 22px;
  border-radius: 999px;
  transform: rotate(-14deg);
}

.banner-shape.pennant {
  width: 92px;
  height: 34px;
  left: 8px;
  top: 16px;
  clip-path: polygon(0 0, 100% 0, 85% 50%, 100% 100%, 0 100%);
}

.banner-shape.apple {
  width: 50px;
  height: 48px;
  right: 22px;
  top: 26px;
  border-radius: 48% 48% 55% 55%;
}

.banner-shape.card {
  width: 84px;
  height: 54px;
  left: 8px;
  top: 16px;
  border-radius: 12px;
  transform: rotate(-5deg);
}

.banner-shape.heart {
  width: 36px;
  height: 36px;
  right: 42px;
  top: 22px;
  border-radius: 50% 50% 10px 10px;
  transform: rotate(45deg);
}

.banner-shape.star,
.banner-shape.sparkle {
  width: 58px;
  height: 58px;
  left: 14px;
  top: 16px;
  clip-path: polygon(50% 0, 62% 35%, 100% 35%, 70% 56%, 82% 100%, 50% 74%, 18% 100%, 30% 56%, 0 35%, 38% 35%);
}

.banner-shape.ribbon {
  width: 90px;
  height: 36px;
  right: 12px;
  top: 30px;
  border-radius: 999px;
}

.banner-shape.firework {
  width: 58px;
  height: 58px;
  right: 26px;
  top: 18px;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 45%, var(--ink) 46% 54%, transparent 55%),
    linear-gradient(0deg, transparent 45%, var(--ink) 46% 54%, transparent 55%),
    #ff7fb1;
}

.banner-shape.tree {
  width: 68px;
  height: 70px;
  left: 16px;
  top: 12px;
  clip-path: polygon(50% 0, 88% 42%, 70% 42%, 98% 78%, 58% 78%, 58% 100%, 42% 100%, 42% 78%, 2% 78%, 30% 42%, 12% 42%);
}

.banner-shape.ornament,
.banner-shape.dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  right: 30px;
  top: 22px;
}

.banner-shape.snow {
  width: 46px;
  height: 46px;
  right: 78px;
  top: 32px;
  border-radius: 50%;
  background: #fff;
}

.banner-shape.moon {
  width: 58px;
  height: 58px;
  left: 16px;
  top: 14px;
  border-radius: 50%;
}

.banner-shape.pumpkin {
  width: 66px;
  height: 50px;
  right: 18px;
  top: 28px;
  border-radius: 45% 45% 42% 42%;
}

.banner-shape.flower {
  width: 58px;
  height: 58px;
  left: 14px;
  top: 16px;
  border-radius: 50%;
}

.banner-title {
  position: relative;
  display: block;
  color: #ff7fb1;
  font-family: "Cherry Bomb One", "Arial Rounded MT Bold", sans-serif;
  font-size: clamp(1.7rem, 3.8vw, 3rem);
  line-height: 0.92;
  -webkit-text-stroke: 1.4px var(--ink);
  text-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.8),
    3px 3px 0 var(--yellow);
}

.phrase-pack-grid article:nth-child(4n + 2) .banner-title {
  color: #67d5ff;
}

.phrase-pack-grid article:nth-child(4n + 3) .banner-title {
  color: #6ee7b7;
}

.phrase-pack-grid article:nth-child(4n + 4) .banner-title {
  color: #c79cff;
}

.phrase-pack-grid small {
  color: var(--muted);
  font-weight: 850;
}

.phrase-pack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.phrase-card {
  grid-template-rows: auto 1fr;
  gap: 12px;
  min-height: 0;
  padding: 14px;
  border-radius: 18px;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.phrase-card:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 4px;
}

.phrase-card::before {
  inset: 9px;
}

.phrase-card-preview {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 7 / 5;
  width: 100%;
  overflow: hidden;
  border: 2px solid rgba(33, 29, 27, 0.85);
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.86) 0 24px, transparent 25px),
    var(--phrase-fallback, linear-gradient(135deg, #fff0f7, #e8f7ff));
  background-size: cover;
  background-position: center;
  box-shadow: 4px 4px 0 rgba(33, 29, 27, 0.12);
}

.phrase-card-preview::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(33, 29, 27, 0.2);
  border-radius: 10px;
  pointer-events: none;
}

.phrase-card.has-final-art .phrase-card-preview::after,
.phrase-card.has-final-art .phrase-preview-text {
  display: none;
}

.phrase-preview-text {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 92%;
  color: var(--phrase-text, #ff7fb1);
  font-family: "Cherry Bomb One", "Arial Rounded MT Bold", sans-serif;
  font-size: clamp(1.15rem, 2.7vw, 2.4rem);
  line-height: 0.86;
  text-align: center;
  -webkit-text-stroke: 1.2px var(--ink);
  text-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.9),
    3px 3px 0 var(--phrase-shadow, #ffd86b);
}

.phrase-card-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
}

.phrase-card .banner-title {
  font-size: clamp(1.25rem, 2.4vw, 2rem);
}

.phrase-card.birthday {
  --phrase-text: #ff6fae;
  --phrase-shadow: #ffd86b;
  --phrase-fallback: linear-gradient(135deg, #fff0f7, #fff4c4 52%, #e9f7ff);
}

.phrase-card.get-well {
  --phrase-text: #2db6aa;
  --phrase-shadow: #ffc7a8;
  --phrase-fallback: linear-gradient(135deg, #e8fff8, #fff0e8 58%, #edf7ff);
}

.phrase-card.congrats {
  --phrase-text: #3977d8;
  --phrase-shadow: #ffd86b;
  --phrase-fallback: linear-gradient(135deg, #fff3c9, #e7edff 58%, #fff7ea);
}

.phrase-card.christmas {
  --phrase-text: #1f9d58;
  --phrase-shadow: #ff8680;
  --phrase-fallback: linear-gradient(135deg, #e8f8ea, #fff0f0 55%, #fff8dc);
}

.phrase-card.mom {
  --phrase-text: #f06fb0;
  --phrase-shadow: #ffd0d6;
  --phrase-fallback: linear-gradient(135deg, #ffeaf4, #e8fff3 60%, #fff7df);
}

.phrase-card.dad {
  --phrase-text: #1c7fa0;
  --phrase-shadow: #ffd76d;
  --phrase-fallback: linear-gradient(135deg, #e6f8ff, #fff4d1 58%, #eaf4ff);
}

.phrase-card.halloween {
  --phrase-text: #ff8a2a;
  --phrase-shadow: #c79cff;
  --phrase-fallback: linear-gradient(135deg, #fff0d8, #efe3ff 55%, #e6fff1);
}

.phrase-card.thanks {
  --phrase-text: #ff8b58;
  --phrase-shadow: #7ad7c4;
  --phrase-fallback: linear-gradient(135deg, #fff5df, #e8f7ff 55%, #ffeaf4);
}

.phrase-card-print-stage {
  display: none;
}

.phrase-modal-panel {
  grid-template-columns: minmax(300px, 1.04fr) minmax(280px, 0.62fr);
  width: min(100%, 1180px);
}

.phrase-modal-preview {
  display: grid;
  place-items: center;
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: #fffdf8;
}

.phrase-modal-preview canvas {
  width: 100%;
  max-height: 72svh;
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(33, 29, 27, 0.15);
  object-fit: contain;
}

.phrase-orientation-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.orientation-button {
  min-height: 46px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.orientation-button.is-active {
  background: var(--blue);
  color: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}

.letter-modal[hidden] {
  display: none;
}

.letter-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 44px);
}

.letter-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(33, 29, 27, 0.52);
  cursor: pointer;
}

.letter-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(280px, 0.82fr);
  gap: clamp(18px, 4vw, 42px);
  width: min(100%, 1060px);
  max-height: min(860px, 92svh);
  overflow: auto;
  padding: clamp(18px, 3vw, 30px);
  border: 2px solid var(--ink);
  border-radius: 26px;
  background: #fffaf2;
  box-shadow: 0 30px 90px rgba(33, 29, 27, 0.34);
}

.letter-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.single-letter-modal-preview {
  display: grid;
  place-items: center;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: #fffdf8;
}

.single-letter-modal-copy {
  display: grid;
  align-content: center;
  gap: 14px;
}

.single-letter-modal-copy h3 {
  margin: 0;
  font-size: clamp(2.1rem, 4.6vw, 4.3rem);
  line-height: 0.95;
}

.single-letter-modal-copy p:not(.eyebrow) {
  max-width: 440px;
  color: var(--muted);
}

body.modal-open {
  overflow: hidden;
}

.trace-letter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.trace-letter-grid article {
  display: grid;
  min-height: 250px;
  place-items: center;
  padding: 18px;
  border: 2px solid #d9d0c7;
  border-radius: 18px;
  background:
    linear-gradient(#eee6dc 1px, transparent 1px),
    #fffdf8;
  background-size: 100% 50%;
  break-inside: avoid;
}

.trace-letter-grid span {
  display: grid;
  place-items: center;
  color: transparent;
  font-family: "Cherry Bomb One", "Arial Rounded MT Bold", "Cooper Black", sans-serif;
  font-size: clamp(5.4rem, 12vw, 9.6rem);
  font-weight: 900;
  line-height: 0.9;
  -webkit-text-stroke: 1.35px #8d8580;
}

.trace-letter-grid small {
  color: var(--muted);
  font-weight: 850;
}

body[data-page="trace"] {
  background:
    linear-gradient(rgba(33, 29, 27, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 28px;
}

body[data-page="trace"] .trace-hero {
  background:
    linear-gradient(rgba(33, 29, 27, 0.045) 1px, transparent 1px),
    linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 242, 0.72)),
    var(--paper);
  background-size: 100% 34px, auto, auto;
}

.trace-sheet-section,
.trace-phrase-section,
.trace-custom-section {
  background: #fff8eb;
}

.trace-sheet-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(280px, 0.52fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: stretch;
}

.trace-sheet-preview {
  position: relative;
  display: grid;
  min-height: clamp(520px, 68vw, 760px);
  align-content: center;
  gap: clamp(16px, 2vw, 26px);
  padding: clamp(28px, 5vw, 52px);
  border: 2px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(#e9ded2 1px, transparent 1px),
    #fff;
  background-size: 100% 20%;
  box-shadow: 10px 10px 0 rgba(33, 29, 27, 0.08);
}

.trace-sheet-preview::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px dashed rgba(33, 29, 27, 0.24);
  border-radius: 16px;
  pointer-events: none;
}

.trace-sheet-section .alphabet-sheet-canvas {
  position: relative;
  z-index: 1;
}

.trace-sheet-section .trace-side-panel {
  align-content: start;
}

.trace-sheet-section .alphabet-sheet-fonts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trace-sheet-section .alphabet-case-switcher,
.trace-sheet-section .alphabet-sheet-fonts {
  background: rgba(255, 255, 255, 0.78);
}

.trace-page-label {
  position: absolute;
  top: 34px;
  left: 50%;
  z-index: 1;
  padding: 7px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.trace-guide-lines {
  position: absolute;
  inset: 14% 8%;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0 55px,
      rgba(33, 29, 27, 0.13) 56px,
      transparent 57px,
      transparent 110px,
      rgba(33, 29, 27, 0.08) 111px,
      transparent 112px
    );
  pointer-events: none;
}

.trace-alphabet-sheet {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(16px, 3vw, 30px);
  text-align: center;
}

.trace-alphabet-sheet p {
  margin: 0;
  color: #fff;
  font-family: "Cherry Bomb One", "Arial Rounded MT Bold", sans-serif;
  font-size: clamp(3.8rem, 9.2vw, 7.8rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 0.9;
  -webkit-text-stroke: clamp(1.4px, 0.24vw, 2.6px) #1f1b19;
  text-shadow: none;
}

.trace-side-panel,
.trace-custom-cta {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
  border: 2px solid var(--ink);
  border-radius: 22px;
  background:
    linear-gradient(rgba(33, 29, 27, 0.05) 1px, transparent 1px),
    #fffdf8;
  background-size: 100% 44px;
  box-shadow: var(--shadow);
}

.trace-side-panel h3,
.trace-custom-cta h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1;
}

.trace-side-panel p:not(.eyebrow),
.trace-custom-cta p {
  max-width: 560px;
  color: var(--muted);
}

.trace-action-row,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.trace-toolbar {
  margin-bottom: 18px;
}

.trace-style-controls {
  grid-template-columns: minmax(260px, 0.36fr) minmax(360px, 1fr);
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdf8;
}

.case-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.case-toggle input {
  accent-color: var(--blue);
}

.case-toggle label:has(input:checked) {
  border-color: var(--blue);
  background: #eef4ff;
  color: var(--blue-dark);
}

body[data-page="trace"] .single-letter-workspace,
body[data-page="trace"] .trace-number-section {
  background: #fff8eb;
}

.trace-number-section .trace-style-controls {
  grid-template-columns: 1fr;
}

.trace-number-section .compact-font-picker {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

body[data-page="trace"] .printable-letter-grid article,
body[data-page="trace"] .bubble-number-grid article {
  min-height: 210px;
  border-color: #d7cabd;
  background:
    linear-gradient(#eee2d7 1px, transparent 1px),
    #fff;
  background-size: 100% 50%;
  box-shadow: 5px 5px 0 rgba(33, 29, 27, 0.05);
}

body[data-page="trace"] .printable-letter-grid article:hover,
body[data-page="trace"] .printable-letter-grid article:focus-visible,
body[data-page="trace"] .printable-letter-grid article.is-active,
body[data-page="trace"] .bubble-number-grid article:hover,
body[data-page="trace"] .bubble-number-grid article:focus-visible,
body[data-page="trace"] .bubble-number-grid article.is-active {
  border-color: var(--ink);
  background:
    linear-gradient(#ded4ca 1px, transparent 1px),
    #fffdf8;
  background-size: 100% 50%;
}

body[data-page="trace"] .printable-letter-grid span,
body[data-page="trace"] .bubble-number-grid span,
body[data-page="trace"] .printable-letter-grid article:nth-child(n) span,
body[data-page="trace"] .bubble-number-grid article:nth-child(n) span {
  color: #fff !important;
  -webkit-text-stroke: 2px #1f1b19;
  text-shadow: none;
}

body[data-page="trace"] .printable-letter-grid small,
body[data-page="trace"] .bubble-number-grid small {
  color: #5f5751;
}

body[data-page="trace"] .single-letter-modal-preview {
  background:
    linear-gradient(#eee2d7 1px, transparent 1px),
    #fff;
  background-size: 100% 20%;
}

body[data-page="trace"] .single-letter-canvas {
  box-shadow: 0 12px 26px rgba(33, 29, 27, 0.1);
}

.trace-phrase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.trace-phrase-card {
  appearance: none;
  display: grid;
  grid-template-rows: 207px auto 1fr;
  gap: 12px;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: #fffdf8;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 8px 8px 0 rgba(33, 29, 27, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.trace-phrase-card:hover,
.trace-phrase-card:focus-visible {
  background: #fffaf0;
  box-shadow: 8px 8px 0 rgba(33, 29, 27, 0.12);
  transform: translateY(-2px);
}

.trace-phrase-card:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 4px;
}

.trace-phrase-preview {
  position: relative;
  display: grid;
  height: 207px;
  min-height: 0;
  place-items: center;
  padding: 18px;
  border: 1px dashed rgba(33, 29, 27, 0.32);
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(#eee2d7 1px, transparent 1px),
    #fff;
  background-size: 100% 50%;
}

.trace-phrase-word {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: "Cherry Bomb One", "Arial Rounded MT Bold", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  font-weight: 900;
  line-height: 0.88;
  text-align: center;
  -webkit-text-stroke: 1.8px #1f1b19;
}

.trace-phrase-card.mothers .trace-phrase-word,
.trace-phrase-card.fathers .trace-phrase-word {
  transform: translateY(-9px);
}

.trace-doodle {
  position: absolute;
  color: #1f1b19;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0.72;
}

.trace-doodle.top-left {
  top: 16px;
  left: 18px;
}

.trace-doodle.top-right {
  top: 16px;
  right: 18px;
}

.trace-doodle.bottom-left {
  bottom: 16px;
  left: 18px;
}

.trace-doodle.bottom-right {
  right: 18px;
  bottom: 16px;
}

.trace-phrase-card h3,
.trace-phrase-title {
  display: block;
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 900;
}

.trace-phrase-card p,
.trace-phrase-description {
  display: block;
  margin: 0;
  color: var(--muted);
  min-height: 3.2em;
}

.trace-custom-cta {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.alphabet-browser-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.alphabet-browser-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 0 22px;
}

.alphabet-browser-grid > a,
.alphabet-letter-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(164px, 1fr) auto;
  gap: 12px;
  min-height: 300px;
  align-content: center;
  scroll-margin-top: 112px;
  overflow: hidden;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: #fffdf8;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.alphabet-browser-grid > a:hover,
.alphabet-letter-card:hover,
.alphabet-letter-card:focus-within {
  border-color: var(--blue);
  background: #fff5cf;
  box-shadow: 0 14px 28px rgba(33, 29, 27, 0.14);
  transform: translateY(-2px);
}

.alphabet-browser-grid span,
.alphabet-letter-preview {
  display: grid;
  min-height: 164px;
  place-items: center;
  color: #fff;
  font-family: "Cherry Bomb One", "Arial Rounded MT Bold", "Cooper Black", sans-serif;
  font-size: clamp(6.2rem, 9vw, 9.4rem);
  line-height: 0.9;
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 2px 2px 0 var(--pink);
  transition: transform 180ms ease;
}

.alphabet-letter-card:hover .alphabet-letter-preview,
.alphabet-letter-card:focus-within .alphabet-letter-preview {
  transform: translateX(-34%) scale(0.9);
}

.alphabet-letter-card h3 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.15;
  text-align: center;
  transition: transform 180ms ease;
}

.alphabet-letter-card:hover h3,
.alphabet-letter-card:focus-within h3 {
  transform: translateX(-30%) scale(0.94);
}

.alphabet-browser-grid small {
  color: var(--muted);
  font-weight: 850;
}

.alphabet-letter-actions {
  position: absolute;
  top: 50%;
  right: auto;
  left: 66%;
  z-index: 4;
  display: grid;
  justify-items: center;
  width: min(188px, calc(100% - 116px));
  gap: 7px;
  padding: 16px;
  border: 1px solid rgba(33, 29, 27, 0.14);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 14px 28px rgba(33, 29, 27, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(calc(-50% + 14px), -50%) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(10px) saturate(1.08);
}

.alphabet-letter-actions::before {
  content: attr(data-selected-label);
  display: block;
  margin: 0 0 3px;
  color: #5f554f;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.alphabet-letter-card:hover .alphabet-letter-actions,
.alphabet-letter-card:focus-within .alphabet-letter-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.alphabet-letter-actions a {
  display: inline-flex;
  width: min(156px, 92%);
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 9px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.08;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 3px 0 rgba(33, 29, 27, 0.12);
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease, transform 140ms ease;
}

.alphabet-letter-actions a[data-print-letter] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.alphabet-letter-actions a[data-trace-letter] {
  border-color: var(--pink);
  background: #ffe4ef;
  color: var(--ink);
}

.alphabet-letter-actions a[data-generator-letter] {
  border-color: var(--blue-dark);
  background: var(--blue);
  color: #fff;
}

.alphabet-letter-actions a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 rgba(33, 29, 27, 0.14);
}

.alphabet-letter-actions a:focus-visible {
  outline: 3px solid rgba(45, 108, 223, 0.32);
  outline-offset: 2px;
}

@media (hover: none) {
  .alphabet-letter-card {
    overflow: visible;
  }

  .alphabet-letter-card:hover .alphabet-letter-preview,
  .alphabet-letter-card:focus-within .alphabet-letter-preview,
  .alphabet-letter-card:hover h3,
  .alphabet-letter-card:focus-within h3 {
    transform: none;
  }

  .alphabet-letter-actions {
    position: static;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

.alphabet-use-section {
  background: #fff3dc;
}

.style-preview-section {
  background: #fff3dc;
}

.style-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.style-preview-grid article {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--surface);
}

.alphabet-style {
  display: block;
  font-family: "Cherry Bomb One", "Arial Rounded MT Bold", "Cooper Black", sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.9;
}

.outline-style {
  color: #fff;
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 3px 3px 0 var(--yellow);
}

.trace-style {
  color: transparent;
  -webkit-text-stroke: 1.4px #817870;
}

.sticker-style {
  color: #2e2b2b;
  font-family: "Chewy", "Cherry Bomb One", sans-serif;
}

.style-preview-grid strong {
  font-size: 1.2rem;
}

.style-preview-grid p {
  margin: 0;
  color: var(--muted);
}

.resource-section,
.alphabet-strip,
.uses-section,
.explain-section,
.faq-section {
  padding: clamp(52px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.section-heading {
  display: grid;
  max-width: 780px;
  margin-bottom: 32px;
}

.section-heading.compact {
  margin-bottom: 24px;
}

.section-heading p,
.alphabet-strip p,
.explain-copy p {
  color: var(--muted);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  background: var(--surface);
}

.resource-link {
  display: grid;
  gap: 12px;
  min-height: 240px;
  padding: 24px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.resource-link:hover,
.resource-link:focus-visible {
  background: #fff0bf;
  box-shadow: inset 0 2px 0 var(--ink);
  outline: 2px solid var(--ink);
  outline-offset: -2px;
  transform: translateY(-3px);
}

.resource-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--surface);
  color: var(--blue-dark);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.resource-link strong {
  font-size: 1.4rem;
  line-height: 1.05;
}

.resource-link span:last-child {
  color: var(--muted);
}

.alphabet-strip {
  background: #fff3dc;
}

.alphabet-click-through {
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.alphabet-click-through:hover,
.alphabet-click-through:focus-visible {
  background: #ffe6ad;
  box-shadow: inset 0 0 0 2px rgba(33, 29, 27, 0.08);
  outline: 0;
}

.letter-grid {
  display: grid;
  grid-template-columns: repeat(13, minmax(44px, 1fr));
  gap: 10px;
}

.letter-grid span {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--surface);
  color: #fff;
  font-family: "Cherry Bomb One", "Arial Rounded MT Bold", "Cooper Black", sans-serif;
  font-size: clamp(1.6rem, 4vw, 3.8rem);
  font-weight: 900;
  -webkit-text-stroke: 2.5px var(--ink);
  text-shadow: 3px 3px 0 var(--pink);
  box-shadow: 5px 5px 0 var(--yellow);
}

.trace-callout-section {
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 72px);
  background: var(--paper);
}

.trace-callout-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 4vw, 40px);
  padding: clamp(22px, 4vw, 34px);
  border: 2px solid var(--ink);
  background: #f4f8ff;
  color: var(--ink);
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.trace-callout-link:hover,
.trace-callout-link:focus-visible {
  background: #e7f0ff;
  box-shadow: inset 0 2px 0 var(--ink), 0 12px 0 rgba(33, 29, 27, 0.1);
  outline: 0;
  transform: translateY(-2px);
}

.trace-callout-link h2 {
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 3.2vw, 3rem);
}

.trace-callout-link p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.trace-callout-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 900;
  white-space: nowrap;
}

.uses-section,
.explain-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.use-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.use-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 750;
}

.explain-section {
  background: var(--surface);
}

.explain-copy {
  max-width: 740px;
}

.related-links {
  display: grid;
  gap: 12px;
}

.related-links a {
  padding: 18px 20px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: #fffdf8;
  font-weight: 900;
}

.related-links a:hover {
  background: var(--yellow);
}

.faq-section {
  background: #f4f8ff;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

.faq-list details {
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--surface);
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 900;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  font-weight: 900;
}

@media (max-width: 980px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .uses-section,
  .trace-callout-link,
  .generator-workspace,
  .alphabet-sheet-layout,
  .single-letter-printer,
  .trace-sheet-layout,
  .trace-custom-cta,
  .generator-notes,
  .explain-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .letter-grid {
    grid-template-columns: repeat(7, minmax(40px, 1fr));
  }

  .printable-letter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trace-letter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alphabet-browser-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .style-preview-grid {
    grid-template-columns: 1fr;
  }

  .alphabet-preset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .style-control-topline {
    grid-template-columns: 1fr;
  }

  .palette-button-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bubble-number-grid,
  .phrase-pack-grid,
  .trace-phrase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trace-style-controls {
    grid-template-columns: 1fr;
  }

  .color-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .letter-modal-panel {
    grid-template-columns: 1fr;
  }

  .phrase-modal-panel {
    grid-template-columns: 1fr;
  }

  .full-preview {
    min-height: 360px;
  }
}

@media (max-width: 620px) {
  body[data-page="trace"] {
    overflow-x: hidden;
  }

  .site-nav {
    gap: 12px;
    font-size: 0.88rem;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  .letter-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .printable-letter-grid {
    grid-template-columns: 1fr;
  }

  .trace-letter-grid,
  .alphabet-browser-grid {
    grid-template-columns: 1fr;
  }

  .bubble-number-grid,
  .phrase-pack-grid,
  .trace-phrase-grid {
    grid-template-columns: 1fr;
  }

  .trace-sheet-preview {
    min-height: auto;
    padding: 86px 18px 28px;
  }

  .trace-alphabet-sheet p {
    font-size: clamp(2.45rem, 12vw, 3.25rem);
    letter-spacing: 0;
  }

  .trace-page-label {
    width: calc(100% - 72px);
    white-space: normal;
    text-align: center;
  }

  .trace-guide-lines {
    inset: 18% 9%;
  }

  .trace-phrase-word {
    font-size: clamp(2.1rem, 12vw, 3.1rem);
  }

  .preview-panel {
    border-radius: 20px;
  }

  .font-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alphabet-sheet-fonts,
  .alphabet-preset-grid {
    grid-template-columns: 1fr;
  }

  .palette-button-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-font-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trace-number-section .compact-font-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .color-controls {
    grid-template-columns: 1fr;
  }

  .trace-callout-link {
    align-items: start;
  }

  .generator-toggle-row {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .home-generator-colors {
    grid-template-columns: 1fr;
  }

  .custom-color-panel {
    grid-template-columns: 1fr;
  }

  .letter-modal {
    padding: 10px;
  }

  .letter-modal-panel {
    max-height: 94svh;
    padding: 14px;
    border-radius: 20px;
  }

  .single-letter-modal-copy h3 {
    font-size: 2rem;
  }
}

@media print {
  .site-header,
  .site-footer,
  .tool-hero,
  .printable-toolbar,
  .single-style-controls,
  .alphabet-sheet-controls,
  .alphabet-preset-grid,
  .single-letter-controls,
  .letter-modal,
  .generator-notes,
  .explain-section,
  .faq-section {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .printable-workspace,
  .trace-workspace,
  .alphabet-workspace {
    padding: 0;
  }

  .alphabet-sheet-layout {
    display: block;
  }

  .alphabet-sheet-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .alphabet-sheet-canvas {
    width: 100%;
    max-width: none;
    border: 0;
    box-shadow: none;
  }

  body[data-print-target="alphabet-sheet"] .trace-workspace:not(.alphabet-printable-workspace) {
    display: none !important;
  }

  body[data-print-target="alphabet-sheet"] .printable-workspace:not(.alphabet-printable-workspace),
  body[data-print-target="alphabet-sheet"] .printable-workspace .section-heading,
  body[data-print-target="single-letters"] .single-letter-print-stage,
  body[data-print-target="single-letters"] .printable-workspace:not(.single-letter-workspace),
  body[data-print-target="single-letters"] .trace-workspace {
    display: none !important;
  }

  body[data-print-target="alphabet-sheet"] .alphabet-printable-workspace {
    background: #fff;
  }

  body[data-print-target="alphabet-sheet"] .alphabet-printable-workspace .trace-sheet-preview::before {
    display: none;
  }

  body[data-print-target="single-letter-sheet"] .printable-workspace:not(.single-letter-workspace),
  body[data-print-target="single-letter-sheet"] .trace-workspace,
  body[data-print-target="single-letter-sheet"] .single-letter-workspace .section-heading,
  body[data-print-target="single-letter-sheet"] .printable-letter-grid {
    display: none !important;
  }

  body[data-print-target="single-letter-sheet"] .single-letter-workspace {
    padding: 0;
    background: #fff;
  }

  body[data-print-target="single-letter-sheet"] .single-letter-print-stage {
    display: grid;
    place-items: center;
  }

  body[data-print-target="single-letter-sheet"] .single-letter-print-stage {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  body[data-print-target="single-letter-sheet"] .single-letter-canvas {
    width: 100%;
    max-width: none;
    border: 0;
    box-shadow: none;
  }

  body[data-print-target="bubble-numbers"] .printable-workspace:not(.printable-numbers-section),
  body[data-print-target="bubble-numbers"] .trace-workspace {
    display: none !important;
  }

  body[data-page="trace"]:not([data-print-target]) .single-letter-workspace,
  body[data-page="trace"]:not([data-print-target]) .trace-number-section,
  body[data-page="trace"]:not([data-print-target]) .trace-phrase-section,
  body[data-page="trace"]:not([data-print-target]) .trace-custom-section {
    display: none !important;
  }

  body[data-page="trace"]:not([data-print-target]) .trace-sheet-layout {
    display: block;
  }

  body[data-page="trace"]:not([data-print-target]) .trace-side-panel {
    display: none !important;
  }

  body[data-page="trace"]:not([data-print-target]) .trace-sheet-preview {
    min-height: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body[data-print-target="phrase-card"] .printable-workspace:not(.phrase-pack-section),
  body[data-print-target="phrase-card"] .phrase-pack-section .section-heading,
  body[data-print-target="phrase-card"] .phrase-pack-grid,
  body[data-print-target="phrase-card"] .phrase-pack-actions,
  body[data-page="trace"][data-print-target="phrase-card"] .trace-workspace:not(.trace-phrase-section),
  body[data-page="trace"][data-print-target="phrase-card"] .trace-phrase-section .section-heading,
  body[data-page="trace"][data-print-target="phrase-card"] .trace-phrase-grid {
    display: none !important;
  }

  body[data-print-target="phrase-card"] .phrase-pack-section,
  body[data-page="trace"][data-print-target="phrase-card"] .trace-phrase-section {
    padding: 0;
    background: #fff;
  }

  body[data-print-target="phrase-card"] .phrase-card-print-stage {
    display: grid !important;
    place-items: center;
  }

  body[data-print-target="phrase-card"] #phrase-card-print-canvas {
    width: 100%;
    max-width: none;
    border: 0;
    box-shadow: none;
  }

  body[data-page="home"][data-print-target="bubble-preview"] main > :not(.hero),
  body[data-page="home"][data-print-target="bubble-preview"] .hero-copy,
  body[data-page="home"][data-print-target="bubble-preview"] .preview-panel > :not(#print-area),
  body[data-page="generator"][data-print-target="bubble-preview"] main > :not(.generator-workspace),
  body[data-page="generator"][data-print-target="bubble-preview"] .generator-workspace > :not(.canvas-stage),
  body[data-page="generator"][data-print-target="bubble-preview"] .canvas-stage > :not(#print-area) {
    display: none !important;
  }

  body[data-page="home"][data-print-target="bubble-preview"] .hero {
    display: block;
    min-height: auto;
    padding: 0;
    background: #fff;
  }

  body[data-page="home"][data-print-target="bubble-preview"] .preview-panel,
  body[data-page="generator"][data-print-target="bubble-preview"] .generator-workspace,
  body[data-page="generator"][data-print-target="bubble-preview"] .canvas-stage {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  body[data-print-target="bubble-preview"] #print-area {
    display: grid !important;
    min-height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
  }

  body[data-print-target="bubble-preview"] #print-area .bubble-canvas,
  body[data-print-target="bubble-preview"] #print-area .bubble-svg-preview,
  body[data-print-target="bubble-preview"] #print-area .bubble-svg-preview svg {
    width: 100%;
    max-width: none;
    border-radius: 0;
  }

  .printable-workspace .section-heading,
  .trace-workspace .section-heading,
  .alphabet-workspace .section-heading {
    margin: 0 0 12px;
  }

  .printable-letter-grid,
  .trace-letter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8mm;
  }

  .printable-letter-grid article,
  .trace-letter-grid article {
    min-height: 118mm;
    border: 1px solid #111;
    border-radius: 0;
    page-break-inside: avoid;
  }

  .printable-letter-grid span {
    font-size: 96pt;
    -webkit-text-stroke: 1.1pt #111;
  }

  .trace-letter-grid span {
    font-size: 96pt;
    -webkit-text-stroke: 0.75pt #555;
  }

  #print-area {
    display: grid;
    border: 0;
    background: #fff;
  }
}
