:root {
  --text: #111827;
  --muted: #4b5563;
  --line: rgba(0, 0, 0, .10);
  --card: #ffffff;
  --brand: #7e2974;
  --brand-strong: #4e1443;
  --bg: #f7f8fb;
  --nav: #ffffff;
  --focus: 0 0 0 3px rgba(126, 41, 116, .22);
  --paper: #ffffff;
  --ink: #172033;
  --hw-wash: #f4f6fb;
  --hw-paper: #fffdf8;
  --hw-parchment: #f4ecd8;
  --hw-accent-soft: #eee8f2;
  --hw-muted-bg: #efedf3;
  --hw-ink: #2b2434;
  --hw-muted: #5f5968;
  --hw-accent: #7e2974;
  --hw-action: #7e2974;
  --hw-action-strong: #4e1443;
  --hw-line: rgba(31, 38, 56, .15);
  --hw-shadow: 0 20px 54px rgba(31, 38, 56, .12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e5e7eb;
    --muted: #cbd5e1;
    --line: rgba(255, 255, 255, .16);
    --card: #0b1220;
    --brand: #c874bb;
    --brand-strong: #f0b7e8;
    --bg: #0a1020;
    --nav: #070c18;
    --focus: 0 0 0 3px rgba(200, 116, 187, .24);
    --hw-wash: #111827;
    --hw-paper: #0f1724;
    --hw-parchment: #1b2230;
    --hw-accent-soft: #27172d;
    --hw-muted-bg: #191722;
    --hw-ink: #f4f6fb;
    --hw-muted: #c8d0de;
    --hw-accent: #c874bb;
    --hw-action: #7e2974;
    --hw-action-strong: #4e1443;
    --hw-line: rgba(255, 255, 255, .16);
    --hw-shadow: 0 18px 44px rgba(0, 0, 0, .38);
  }
}

@font-face {
  font-family: "Demo Handlee";
  src: url("../fonts/Handlee-Regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Demo Reenie Beanie";
  src: url("../fonts/ReenieBeanie-Regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Demo Gochi Hand";
  src: url("../fonts/GochiHand-Regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Demo Nothing You Could Do";
  src: url("../fonts/NothingYouCouldDo-Regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Demo Gloria Hallelujah";
  src: url("../fonts/GloriaHallelujah-Regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Demo Homemade Apple";
  src: url("../fonts/HomemadeApple-Regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Demo Over the Rainbow";
  src: url("../fonts/OvertheRainbow-Regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Demo Rock Salt";
  src: url("../fonts/RockSalt-Regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Demo Marie Curie";
  src: url("../fonts/Marie%20Curie.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Demo Einstein";
  src: url("../fonts/einstein.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Demo Leonardo da Vinci";
  src: url("../fonts/Leonardo%20da%20Vinci.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Demo Gandhi";
  src: url("../fonts/Gandhi.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Demo Dancing Script";
  src: url("../fonts/DancingScript-Regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Demo Great Vibes";
  src: url("../fonts/GreatVibes-Regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Demo Sacramento";
  src: url("../fonts/Sacramento-Regular.woff2") format("woff2");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.45;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  z-index: 9999;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--focus);
}

nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: var(--nav);
}

@supports (backdrop-filter: blur(1px)) {
  nav {
    backdrop-filter: saturate(1.1) blur(6px);
    background: color-mix(in srgb, var(--nav) 85%, transparent);
  }
}

.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand a {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--brand);
  font-size: 18px;
  font-weight: 700;
}

.brand a:focus-visible,
.nav-links a:focus-visible,
.nav-menu summary:focus-visible,
.font-demo-text:focus-visible,
.font-option:focus-visible,
.font-demo-save:focus-visible,
.font-color-toggle:focus-visible,
.color-swatch:focus-visible,
.store-badge:focus-visible,
.icon-btn:focus-visible,
.footer-email:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a,
.nav-menu summary {
  padding: 10px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
}

.nav-links a:hover,
.nav-menu summary:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-menu {
  position: relative;
}

.nav-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  list-style: none;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nav-menu[open] summary {
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  color: var(--brand);
  text-decoration: none;
}

.nav-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 90;
  min-width: 240px;
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.nav-menu-panel a {
  display: flex;
  white-space: nowrap;
  text-decoration: none;
}

.nav-menu-panel a:hover,
.nav-menu-panel a[aria-current="page"] {
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  text-decoration: none;
}

.handwriting-preview-page {
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, var(--hw-wash) 0%, var(--hw-paper) 42%, var(--hw-muted-bg) 100%);
  color: var(--hw-ink);
}

.handwriting-preview-page h1,
.handwriting-preview-page h2,
.handwriting-preview-page h3 {
  margin-top: 0;
  color: var(--hw-ink);
  letter-spacing: 0;
}

.preview-hero {
  padding: 3.4rem 0 1.1rem;
  background: linear-gradient(180deg, var(--hw-wash), rgba(255, 253, 248, 0));
  text-align: center;
}

.preview-hero .container {
  max-width: 760px;
}

.hw-eyebrow {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-bottom: .75rem;
  color: var(--hw-accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.preview-hero h1 {
  max-width: 760px;
  margin: 0 auto .8rem;
  font-size: clamp(2.15rem, 4.6vw, 3.25rem);
  line-height: 1.08;
}

.hw-script {
  display: inline-block;
  color: var(--hw-accent);
  font-family: "Snell Roundhand", "Segoe Script", "Apple Chancery", cursive;
  font-size: 1.35em;
  font-weight: 400;
  line-height: 1;
}

.preview-hero p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--hw-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.store-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-badge {
  height: 56px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}

.store-badge img {
  height: 56px;
  width: auto;
  display: block;
}

.font-demo {
  padding: 1.2rem 0 4rem;
  background: var(--hw-paper);
}

.section-head {
  max-width: 760px;
  margin-bottom: 1.35rem;
}

.section-head h2 {
  margin-bottom: .5rem;
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  line-height: 1.12;
}

.section-sub {
  margin: 0;
  color: var(--hw-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.font-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--hw-line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--hw-shadow);
}

.font-demo-main,
.font-demo-preview,
.font-demo-controls {
  min-width: 0;
}

.font-demo-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: #fffaf5;
}

.font-demo-settings {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(180px, 220px) auto;
  align-items: end;
  gap: 12px;
}

.font-control {
  display: grid;
  gap: 8px;
}

.font-control label,
.font-control-label,
.font-control-row {
  font-size: 14px;
  font-weight: 800;
}

.font-control-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.font-control output {
  color: var(--hw-muted);
}

.font-control input[type="range"] {
  width: 100%;
  accent-color: var(--hw-action);
}

.font-color-control {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.font-color-toggle {
  --preview-ink: #111111;
  --preview-paper: #ffffff;
  min-width: 102px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding: 0 36px 0 13px;
  border: 1px solid var(--hw-line);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.font-color-toggle:hover,
.font-color-toggle[aria-expanded="true"] {
  border-color: rgba(126, 41, 116, .42);
  color: var(--hw-accent);
}

.font-color-preview {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 15px;
  height: 15px;
  border: 1px solid rgba(17, 24, 39, .22);
  border-radius: 999px;
  background: var(--preview-paper);
  box-shadow: 0 0 0 2px var(--card);
  transform: translateY(-50%);
}

.font-color-preview::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--card);
  border-radius: 999px;
  background: var(--preview-ink);
}

.font-color-toggle.is-transparent-background .font-color-preview,
.color-swatch.is-transparent,
.font-demo-preview.is-transparent-background {
  background-color: #fff;
  background-image: linear-gradient(45deg, #d1d5db 25%, transparent 25%),
    linear-gradient(-45deg, #d1d5db 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #d1d5db 75%),
    linear-gradient(-45deg, transparent 75%, #d1d5db 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
}

.font-color-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  width: min(330px, calc(100vw - 40px));
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--hw-line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .16);
}

.font-color-popover[hidden] {
  display: none;
}

.color-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.color-row-label {
  color: var(--hw-muted);
  font-size: 13px;
  font-weight: 700;
}

.color-swatches {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 3px 2px 4px;
  margin: 0 -2px;
  scrollbar-width: none;
}

.color-swatches::-webkit-scrollbar {
  display: none;
}

.color-swatch {
  --swatch-color: var(--card);
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(17, 24, 39, .22);
  border-radius: 999px;
  background: var(--swatch-color);
  cursor: pointer;
}

.color-swatch:hover {
  border-color: rgba(126, 41, 116, .45);
}

.color-swatch.is-light {
  border-color: rgba(17, 24, 39, .28);
}

.color-swatch.is-selected {
  border-color: var(--hw-action);
  box-shadow: 0 0 0 2px var(--card), 0 0 0 4px rgba(126, 41, 116, .48);
}

.color-swatch.is-selected::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  width: 7px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.color-swatch.is-light.is-selected::after {
  border-color: #111827;
}

.color-swatch.is-custom {
  display: block;
  overflow: hidden;
  background: var(--card);
  color: var(--hw-accent);
  font-size: 21px;
  font-weight: 700;
}

.color-swatch.is-transparent {
  background-color: #fff;
  background-image: linear-gradient(45deg, #d1d5db 25%, transparent 25%),
    linear-gradient(-45deg, #d1d5db 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #d1d5db 75%),
    linear-gradient(-45deg, transparent 75%, #d1d5db 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
}

.color-swatch.is-custom.is-selected {
  background: var(--swatch-color);
}

.color-swatch.is-custom.is-selected .color-custom-plus {
  opacity: 0;
}

.color-custom-plus {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  line-height: 1;
  pointer-events: none;
  transform: translate(-50%, -52%);
}

.custom-color-input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.font-demo-preview {
  padding: 18px 20px 20px;
}

.font-demo-preview.is-transparent-background {
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}

.font-demo-preview.is-transparent-background .font-demo-text {
  background: #fff;
  background-image: none;
}

.font-demo-text {
  width: 100%;
  min-height: clamp(280px, 30vw, 380px);
  display: block;
  resize: none;
  overflow: auto;
  overflow-wrap: anywhere;
  word-break: break-word;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid var(--hw-line);
  border-radius: 8px;
  outline: 0;
  background: var(--paper);
  color: var(--ink);
  caret-color: var(--ink);
  box-shadow: 0 1px 4px rgba(31, 38, 56, .08);
  font-family: "Demo Handlee", cursive, sans-serif;
  font-size: 38px;
  line-height: 1.38;
}

.font-demo-controls {
  padding: 18px;
  background: #fffaf5;
}

.font-style-control {
  min-width: 0;
}

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

.font-option {
  --font-preview-position: 0%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6px 7px;
  border: 1px solid var(--hw-line);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  text-align: center;
}

.font-option:hover {
  border-color: rgba(126, 41, 116, .36);
}

.font-option::before {
  content: "";
  display: block;
  width: 100%;
  max-width: 150px;
  aspect-ratio: 5 / 1;
  background-image: url("../images/hw-font-options-light.webp");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center var(--font-preview-position);
  pointer-events: none;
}

.font-option.is-selected {
  border-color: rgba(126, 41, 116, .42);
  background: var(--hw-accent-soft);
  box-shadow: inset 0 0 0 1px rgba(126, 41, 116, .14);
}

.font-option.is-loading {
  cursor: progress;
}

.font-option.is-loading::before {
  opacity: .58;
}

.font-option.is-loading::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 11px;
  height: 11px;
  border: 2px solid rgba(126, 41, 116, .22);
  border-top-color: var(--hw-accent);
  border-radius: 999px;
  animation: font-option-spin .75s linear infinite;
  pointer-events: none;
}

@keyframes font-option-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .font-option.is-loading::after {
    animation: none;
    border-style: dotted;
  }
}

.font-option[data-font="Demo Reenie Beanie"] {
  --font-preview-position: 7.142857%;
}

.font-option[data-font="Demo Gochi Hand"] {
  --font-preview-position: 14.285714%;
}

.font-option[data-font="Demo Nothing You Could Do"] {
  --font-preview-position: 21.428571%;
}

.font-option[data-font="Demo Gloria Hallelujah"] {
  --font-preview-position: 28.571429%;
}

.font-option[data-font="Demo Homemade Apple"] {
  --font-preview-position: 35.714286%;
}

.font-option[data-font="Demo Over the Rainbow"] {
  --font-preview-position: 42.857143%;
}

.font-option[data-font="Demo Rock Salt"] {
  --font-preview-position: 50%;
}

.font-option[data-font="Demo Marie Curie"] {
  --font-preview-position: 57.142857%;
}

.font-option[data-font="Demo Einstein"] {
  --font-preview-position: 64.285714%;
}

.font-option[data-font="Demo Leonardo da Vinci"] {
  --font-preview-position: 71.428571%;
}

.font-option[data-font="Demo Gandhi"] {
  --font-preview-position: 78.571429%;
}

.font-option[data-font="Demo Dancing Script"] {
  --font-preview-position: 85.714286%;
}

.font-option[data-font="Demo Great Vibes"] {
  --font-preview-position: 92.857143%;
}

.font-option[data-font="Demo Sacramento"] {
  --font-preview-position: 100%;
}

.font-demo-save {
  min-width: 166px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--hw-action);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.font-demo-save:hover {
  background: var(--hw-action-strong);
}

.preview-app-cta {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--hw-action-strong), var(--hw-action));
  color: #fff;
}

.preview-app-cta-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 250px);
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center;
}

.preview-app-cta-copy {
  min-width: 0;
}

.preview-app-cta h2 {
  margin-bottom: .75rem;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.55rem);
  line-height: 1.15;
}

.preview-app-cta p {
  max-width: 680px;
  margin: 0 0 1.6rem;
  color: #f3eef6;
  font-size: 1.05rem;
  line-height: 1.6;
}

.preview-app-cta .store-row {
  justify-content: flex-start;
}

.preview-app-screen {
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-app-screen img {
  width: min(230px, 100%);
  height: auto;
  display: block;
  filter: drop-shadow(0 22px 32px rgba(0, 0, 0, .28));
}

.preview-links {
  padding: 3rem 0 3.5rem;
  background: var(--hw-muted-bg);
}

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

.preview-links a {
  display: block;
  padding: 16px;
  border: 1px solid var(--hw-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  color: var(--hw-ink);
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(31, 38, 56, .07);
}

.preview-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: var(--nav);
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.icon-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
}

.icon-btn:hover {
  border-color: rgba(126, 41, 116, .35);
  color: var(--brand);
}

.footer-email {
  display: inline-flex;
  padding: 10px 0;
  border-radius: 8px;
}

.legal {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.legal a {
  display: inline-block;
  margin: 0 6px;
  padding: 6px 4px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.inline-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: -.125em;
}

.icon-btn svg {
  display: block;
}

@media (prefers-color-scheme: dark) {
  .preview-links a {
    background: rgba(11, 18, 32, .9);
  }

  .font-demo-toolbar,
  .font-demo-controls {
    background: #121827;
  }

  .font-option::before {
    background-image: url("../images/hw-font-options-dark.webp");
  }

  .font-color-popover {
    box-shadow: 0 18px 38px rgba(0, 0, 0, .42);
  }

  .color-swatch {
    border-color: rgba(255, 255, 255, .3);
  }

  .color-swatch.is-light {
    border-color: rgba(255, 255, 255, .45);
  }
}

@media (max-width: 900px) {
  .nav-inner {
    height: auto;
    min-height: 72px;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .nav-links {
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 4px;
  }

  .nav-links a,
  .nav-menu summary {
    flex: 0 0 auto;
    padding: 8px;
    font-size: 14px;
    white-space: nowrap;
  }

  .nav-menu {
    position: static;
  }

  .nav-menu-panel {
    left: 20px;
    right: 20px;
    width: calc(100vw - 40px);
    min-width: 0;
  }

  .preview-hero {
    padding: 2.4rem 0 1rem;
  }

  .font-demo {
    padding: 1rem 0 3rem;
  }

  .preview-app-cta {
    text-align: center;
  }

  .preview-app-cta-layout {
    grid-template-columns: 1fr;
  }

  .preview-app-cta .store-row {
    justify-content: center;
  }

  .preview-app-screen img {
    width: min(190px, 60vw);
  }

  .font-demo-grid {
    grid-template-columns: 1fr;
  }

  .font-demo-controls {
    order: -1;
    border-bottom: 1px solid var(--hw-line);
  }

  .font-demo-toolbar {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .font-demo-settings {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .font-demo-save {
    width: 100%;
  }

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

@media (max-width: 560px) {
  .font-demo-settings {
    grid-template-columns: 1fr;
  }

  .font-color-control {
    justify-content: stretch;
  }

  .font-color-toggle {
    width: 100%;
  }

  .font-picker {
    grid-template-columns: 1fr;
  }
}
