:root {
  --ink: #111214;
  --muted: #676b73;
  --line: #e5e2dc;
  --paper: #f8f6f1;
  --panel: rgba(255, 255, 255, 0.82);
  --accent: #0d9488;
  --accent-2: #d94676;
  --accent-3: #e0a527;
  --shadow: 0 18px 50px rgba(25, 28, 34, 0.12);
  --radius: 8px;
  --mono: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
  scroll-behavior: smooth;
}

/* Keep anchored sections clear of the sticky header. */
[id] {
  scroll-margin-top: 92px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(115deg, rgba(13, 148, 136, 0.1), transparent 30%),
    linear-gradient(245deg, rgba(217, 70, 118, 0.08), transparent 32%),
    #f8f6f1;
}

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

button,
input,
select {
  font: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(17, 18, 20, 0.08);
  backdrop-filter: blur(22px);
  background: rgba(248, 246, 241, 0.78);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand__mark {
  position: relative;
  width: 34px;
  height: 34px;
  overflow: hidden;
  flex: 0 0 34px;
  border: 2px solid rgba(17, 18, 20, 0.9);
  border-radius: 7px;
  background:
    linear-gradient(#111214 0 0) 10px 0 / 3px 100% no-repeat,
    linear-gradient(#111214 0 0) 22px 0 / 3px 100% no-repeat,
    linear-gradient(#111214 0 0) 0 12px / 100% 3px no-repeat,
    linear-gradient(#111214 0 0) 0 24px / 100% 3px no-repeat,
    linear-gradient(#255be8 0 0) 13px 0 / 9px 12px no-repeat,
    linear-gradient(#ef1d15 0 0) 0 15px / 10px 19px no-repeat,
    linear-gradient(#ffd91a 0 0) 25px 15px / 9px 9px no-repeat,
    linear-gradient(#0d9488 0 0) 13px 27px / 21px 7px no-repeat,
    #f8f6f1;
  box-shadow: 0 8px 20px rgba(17, 18, 20, 0.12);
}

.brand__mark::after {
  content: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-burger {
  display: none;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  padding: 9px 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--ink);
  background: rgba(17, 18, 20, 0.06);
}

.nav-trigger svg {
  width: 10px;
  height: 10px;
  opacity: 0.55;
  transition: transform 180ms ease;
}

.nav-item--has-menu {
  position: relative;
}

.mega {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(900px, 92vw);
  padding: 20px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(17, 18, 20, 0.1);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  z-index: 40;
}

.nav-item--has-menu:hover .mega,
.nav-item--has-menu:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-item--has-menu:hover .nav-trigger svg,
.nav-item--has-menu:focus-within .nav-trigger svg {
  transform: rotate(180deg);
}

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

.mega__col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mega__head {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  padding: 4px 8px;
  margin-bottom: 5px;
  border-radius: 6px;
}

.mega__head:hover {
  color: var(--accent);
}

.mega__col a:not(.mega__head) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  padding: 5px 8px;
  border-radius: 6px;
}

.mega__col a:not(.mega__head):hover {
  color: var(--ink);
  background: rgba(17, 18, 20, 0.05);
}

.mega__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(17, 18, 20, 0.1);
}

.mega__foot a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.mega__foot a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .nav-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid rgba(17, 18, 20, 0.12);
    background: rgba(255, 255, 255, 0.5);
  }

  .nav-burger span {
    position: relative;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
  }

  .nav-burger span::before,
  .nav-burger span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
  }

  .nav-burger span::before {
    top: -6px;
  }

  .nav-burger span::after {
    top: 6px;
  }

  .nav-panel {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 35;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px clamp(18px, 5vw, 36px) 26px;
    background: rgba(248, 246, 241, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(17, 18, 20, 0.1);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  }

  .nav-toggle:checked ~ .nav-panel {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    font-size: 16px;
    padding: 12px;
  }

  .nav-item--has-menu {
    position: static;
  }

  .nav-trigger {
    pointer-events: none;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .nav-trigger svg {
    display: none;
  }

  .mega {
    position: static;
    width: 100%;
    padding: 2px 0 10px;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    backdrop-filter: none;
    border: 0;
    box-shadow: none;
  }

  .mega__grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
  }

  .mega__foot {
    margin-top: 12px;
  }
}

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

.hero {
  min-height: clamp(380px, 56vh, 540px);
  display: grid;
  align-items: center;
  padding: 48px 0 36px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #41515a;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 20px;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 690px;
  color: #41444b;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 9px;
  border: 1px solid rgba(17, 18, 20, 0.12);
  border-radius: 8px;
  padding: 0 15px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 760;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(17, 18, 20, 0.14);
}

.button:focus-visible,
.nav-link:focus-visible,
.example-card:focus-visible,
.featured-card:focus-visible,
.tool-card:focus-visible,
.example-collection-link:focus-visible,
.example-preset-card:focus-visible {
  outline: 2px solid rgba(13, 148, 136, 0.5);
  outline-offset: 3px;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink);
}

.button--ghost:hover {
  border-color: rgba(17, 18, 20, 0.22);
  background: rgba(255, 255, 255, 0.88);
}

.button--icon {
  width: 44px;
  padding: 0;
}

.home-preview {
  min-height: 460px;
  border: 1px solid rgba(17, 18, 20, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.9), transparent 17%),
    linear-gradient(135deg, rgba(13, 148, 136, 0.95), rgba(224, 165, 39, 0.85) 42%, rgba(217, 70, 118, 0.92));
  position: relative;
}

.home-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.28) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.22) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(17, 18, 20, 0.14) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(17, 18, 20, 0.12) 75%);
  background-size: 72px 72px;
  background-position: 0 0, 0 36px, 36px -36px, -36px 0;
  mix-blend-mode: overlay;
}

.home-preview::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
}

.home-showcase {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-rows: 1fr 1fr 0.82fr;
  gap: 12px;
  min-height: 380px;
  max-height: 440px;
}

.hero--product h1 {
  max-width: 680px;
  font-size: clamp(50px, 7.2vw, 96px);
}

.gallery-head h1 {
  max-width: 760px;
  font-size: clamp(46px, 7vw, 86px);
}

.home-showcase .home-art,
.featured-art {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(17, 18, 20, 0.1);
  border-radius: 8px;
  background-color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  object-fit: cover;
}

.gallery-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 44%),
    repeating-linear-gradient(0deg, rgba(17, 18, 20, 0.035) 0 1px, transparent 1px 5px);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.home-showcase .home-art:first-child {
  grid-row: 1 / 3;
}

.home-showcase .home-art:nth-child(4) {
  grid-column: 1 / 3;
}

.featured-tools {
  padding: 28px 0 72px;
}

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

.featured-card {
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid rgba(17, 18, 20, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 30px rgba(17, 18, 20, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  border-color: rgba(17, 18, 20, 0.24);
  background: rgba(255, 255, 255, 0.9);
}

.featured-art {
  aspect-ratio: 4 / 3;
  box-shadow: none;
}

.featured-card span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.featured-card h3 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.12;
}

.featured-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.tool-list {
  padding: 12px 0 86px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 0;
}

.section-head p {
  color: var(--muted);
  max-width: 430px;
  line-height: 1.55;
  margin-bottom: 0;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 14px;
}

.tool-card {
  display: grid;
  min-height: 260px;
  align-content: space-between;
  padding: 18px;
  border: 1px solid rgba(17, 18, 20, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 14px 28px rgba(17, 18, 20, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(17, 18, 20, 0.24);
  background: rgba(255, 255, 255, 0.86);
}

.tool-card__art {
  height: 112px;
  border-radius: 8px;
  border: 1px solid rgba(17, 18, 20, 0.08);
  margin-bottom: 18px;
}

.art-pattern {
  background:
    radial-gradient(circle at 25% 25%, #0d9488 0 10%, transparent 11%),
    radial-gradient(circle at 75% 75%, #d94676 0 9%, transparent 10%),
    linear-gradient(135deg, #f8f6f1, #e9e2d2);
  background-size: 42px 42px;
}

.art-wave {
  background:
    radial-gradient(circle at 68% 36%, #d94676 0 22%, transparent 23%),
    radial-gradient(circle at 28% 72%, #0d9488 0 20%, transparent 21%),
    linear-gradient(150deg, #121418, #577590);
}

.art-grain {
  background:
    repeating-radial-gradient(circle at 20% 30%, rgba(17, 18, 20, 0.7) 0 1px, transparent 1px 5px),
    linear-gradient(135deg, #eee7dc, #d9c9b4);
}

.art-mesh {
  background:
    radial-gradient(circle at 20% 25%, #0d9488, transparent 34%),
    radial-gradient(circle at 80% 20%, #e0a527, transparent 32%),
    radial-gradient(circle at 52% 78%, #d94676, transparent 34%),
    #f8f6f1;
}

.art-geo {
  background:
    conic-gradient(from 30deg at 50% 50%, #0d9488 0 60deg, #f8f6f1 60deg 120deg, #d94676 120deg 180deg, #e0a527 180deg 240deg, #577590 240deg 300deg, #111214 300deg);
  background-size: 58px 58px;
}

.art-divider {
  background:
    linear-gradient(172deg, transparent 42%, #0d9488 43% 58%, transparent 59%),
    radial-gradient(circle at 76% 34%, #d94676 0 18%, transparent 19%),
    #f8f6f1;
}

.art-halftone {
  background:
    radial-gradient(circle, #111214 0 16%, transparent 17%) 0 0 / 28px 28px,
    #e9e2d2;
}

.art-photo-halftone {
  background:
    radial-gradient(circle, rgba(17, 18, 20, 0.76) 0 20%, transparent 21%) 0 0 / 12px 12px,
    radial-gradient(ellipse at 57% 34%, rgba(255, 255, 255, 0.98) 0 14%, transparent 15%),
    radial-gradient(ellipse at 48% 38%, rgba(17, 18, 20, 0.95) 0 24%, transparent 25%),
    radial-gradient(ellipse at 44% 70%, rgba(17, 18, 20, 0.9) 0 20%, transparent 21%),
    #fff;
}

.art-tech-letter {
  background:
    repeating-linear-gradient(90deg, rgba(125, 239, 255, 0.84) 0 2px, transparent 2px 10px),
    repeating-linear-gradient(0deg, rgba(125, 239, 255, 0.2) 0 1px, transparent 1px 12px),
    radial-gradient(ellipse at 60% 36%, rgba(125, 239, 255, 0.92) 0 18%, transparent 19%),
    radial-gradient(ellipse at 48% 72%, rgba(13, 166, 199, 0.86) 0 30%, transparent 31%),
    radial-gradient(circle at 74% 18%, rgba(217, 70, 118, 0.34), transparent 28%),
    #02090c;
  background-size: auto, auto, auto, auto, auto, auto;
}

.art-image {
  background:
    linear-gradient(135deg, rgba(17, 18, 20, 0.85), rgba(13, 148, 136, 0.7)),
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(255, 255, 255, 0.2) 8px 9px);
}

.art-surface {
  background:
    linear-gradient(90deg, transparent 58%, rgba(17, 18, 20, 0.18) 58% 60%, transparent 60%),
    radial-gradient(circle at 32% 44%, #0d9488 0 9%, transparent 10%),
    radial-gradient(circle at 70% 68%, #d94676 0 8%, transparent 9%),
    #f8f6f1;
  background-size: auto, 38px 38px, 38px 38px, auto;
}

.art-mondrian {
  background:
    linear-gradient(#050505 0 0) 30% 0 / 10px 100% no-repeat,
    linear-gradient(#050505 0 0) 0 36% / 100% 10px no-repeat,
    linear-gradient(#050505 0 0) 66% 0 / 10px 100% no-repeat,
    linear-gradient(#050505 0 0) 0 70% / 100% 10px no-repeat,
    linear-gradient(#050505 0 0) 78% 36% / 8px 34% no-repeat,
    linear-gradient(#050505 0 0) 30% 54% / 36% 8px no-repeat,
    linear-gradient(90deg, #ef1b12 0 43%, #ffffff 43% 66%, #f7d30a 66%),
    linear-gradient(90deg, #050505 0 34%, #ffffff 34% 66%, #255be8 66%);
  background-color: #ffffff;
}

.art-license {
  background:
    linear-gradient(#111214 0 0) 24px 28px / 68% 4px no-repeat,
    linear-gradient(#0d9488 0 0) 24px 48px / 52% 4px no-repeat,
    linear-gradient(#d94676 0 0) 24px 68px / 74% 4px no-repeat,
    #f8f6f1;
}

.art-ascii {
  background:
    repeating-linear-gradient(90deg, rgba(17, 18, 20, 0.8) 0 3px, transparent 3px 13px),
    repeating-linear-gradient(0deg, rgba(217, 70, 118, 0.2) 0 1px, transparent 1px 16px),
    radial-gradient(ellipse at 50% 38%, rgba(17, 18, 20, 0.72) 0 24%, transparent 25%),
    radial-gradient(ellipse at 48% 72%, rgba(17, 18, 20, 0.56) 0 22%, transparent 23%),
    #f7f1e8;
}

.art-engraving {
  background:
    repeating-linear-gradient(0deg, rgba(24, 32, 31, 0.72) 0 1px, transparent 1px 8px),
    radial-gradient(ellipse at 50% 38%, rgba(24, 32, 31, 0.58), transparent 34%),
    #f6efe1;
}

.art-riso {
  background:
    linear-gradient(#111214 0 0) 12% 82% / 54% 7px no-repeat,
    radial-gradient(circle at 34% 42%, rgba(13, 148, 136, 0.9) 0 25%, transparent 26%),
    radial-gradient(circle at 60% 54%, rgba(232, 70, 46, 0.82) 0 25%, transparent 26%),
    repeating-radial-gradient(circle, rgba(17, 18, 20, 0.2) 0 1px, transparent 1px 5px),
    #f4ead8;
}

.art-blueprint {
  background:
    linear-gradient(rgba(124, 216, 255, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 216, 255, 0.24) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, transparent 0 26%, rgba(255, 255, 255, 0.8) 27% 28%, transparent 29%),
    #08233a;
  background-size: 22px 22px, 22px 22px, auto, auto;
}

.art-bauhaus {
  background:
    radial-gradient(circle at 26% 34%, #e8462e 0 18%, transparent 19%),
    conic-gradient(from 45deg at 64% 54%, #111214 0 25%, transparent 0 100%),
    linear-gradient(135deg, transparent 0 45%, #0d9488 46% 68%, transparent 69%),
    #f3ead7;
}

.art-swiss {
  background:
    linear-gradient(#e8462e 0 0) 18px 22px / 42% 26% no-repeat,
    linear-gradient(#111214 0 0) 60% 66% / 34% 24% no-repeat,
    repeating-linear-gradient(90deg, rgba(17, 18, 20, 0.08) 0 22px, transparent 22px 31px),
    #f7f4ec;
}

.art-lowpoly {
  background:
    conic-gradient(from 25deg at 40% 42%, #071015, #7defff, #0da6c7, #f8f6f1, #071015);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.art-glitch {
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.9), transparent 22%, rgba(255, 45, 122, 0.8) 26%, transparent 36%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.22) 0 2px, transparent 2px 7px),
    #050608;
}

.art-field {
  background:
    radial-gradient(circle at 28% 34%, rgba(13, 148, 136, 0.78), transparent 34%),
    radial-gradient(circle at 68% 42%, rgba(217, 70, 118, 0.7), transparent 36%),
    radial-gradient(circle at 48% 72%, rgba(224, 165, 39, 0.68), transparent 34%),
    #f7efe2;
}

.art-dotmatrix {
  background:
    radial-gradient(circle, #111214 0 24%, transparent 25%) 0 0 / 18px 18px,
    radial-gradient(ellipse at 50% 46%, rgba(17, 18, 20, 0.42), transparent 44%),
    #ffffff;
}

.art-cmyk {
  background:
    radial-gradient(circle, rgba(0, 167, 200, 0.72) 0 18%, transparent 19%) 0 0 / 20px 20px,
    radial-gradient(circle, rgba(226, 59, 118, 0.62) 0 18%, transparent 19%) 7px 8px / 22px 22px,
    radial-gradient(circle, rgba(243, 212, 55, 0.64) 0 17%, transparent 18%) 3px 6px / 24px 24px,
    #f7f1e8;
  background-blend-mode: multiply;
}

.art-fold {
  background:
    linear-gradient(100deg, rgba(255,255,255,0.9), transparent 44%, rgba(17,18,20,0.16)),
    linear-gradient(80deg, transparent 0 18%, rgba(17,18,20,0.12) 19% 20%, transparent 21% 38%, rgba(255,255,255,0.8) 39% 41%, transparent 42%),
    #f5efe4;
}

.art-gradient-map {
  background:
    radial-gradient(ellipse at 56% 34%, #f3ead7 0 18%, transparent 19%),
    radial-gradient(ellipse at 48% 62%, #0d9488 0 28%, transparent 29%),
    linear-gradient(135deg, #111214, #d94676);
}

.art-collage {
  background:
    linear-gradient(35deg, transparent 0 18%, #0d9488 19% 38%, transparent 39%),
    linear-gradient(-25deg, transparent 0 22%, #d94676 23% 48%, transparent 49%);
  background-color: #f6efe1;
}

.art-poster-crop {
  background:
    linear-gradient(#111214 0 0) 18px 76% / 70% 8px no-repeat,
    linear-gradient(#111214 0 0) 18px 88% / 44% 4px no-repeat,
    radial-gradient(ellipse at 52% 38%, #0d9488, #071015 55%, transparent 56%),
    #f4ead8;
}

.art-colorway {
  background:
    linear-gradient(90deg, #0d9488 0 50%, #d94676 50%) 0 0 / 50% 50%,
    linear-gradient(90deg, #e0a527 0 50%, #111214 50%) 100% 100% / 50% 50%,
    #f8f6f1;
}

.tool-card h3 {
  font-size: 19px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.tool-card p {
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 0;
  font-size: 14px;
}

.gallery-page {
  padding: 44px 0 76px;
}

.gallery-head {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.42fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: end;
  margin-bottom: 24px;
}

.gallery-head h1 {
  margin-bottom: 14px;
  font-size: clamp(42px, 7vw, 84px);
}

.gallery-head p {
  color: #41444b;
  line-height: 1.6;
  font-size: 17px;
}

.gallery-note {
  border: 1px solid rgba(17, 18, 20, 0.1);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 26px rgba(17, 18, 20, 0.07);
}

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

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 22px;
}

.gallery-filters button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(17, 18, 20, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: #32363d;
  font: 700 12px/1 var(--mono);
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.gallery-filters button:hover,
.gallery-filters button.is-active {
  border-color: rgba(17, 18, 20, 0.82);
  background: #111214;
  color: #ffffff;
}

.gallery-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: -8px 0 28px;
}

.gallery-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.gallery-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(17, 18, 20, 0.13);
  border-radius: 8px;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.gallery-search input:focus {
  outline: 2px solid rgba(13, 148, 136, 0.42);
  outline-offset: 2px;
}

.gallery-search span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.gallery-category-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 34px;
}

.gallery-category-strip a {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 88%, #ffffff);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.gallery-category-strip span {
  font-size: 1.05rem;
  font-weight: 850;
}

.gallery-category-strip small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.example-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(17, 18, 20, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 14px 32px rgba(17, 18, 20, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.example-card.is-hidden {
  display: none;
}

.example-card:nth-child(1),
.example-card:nth-child(2),
.example-card:nth-child(3),
.example-card:nth-child(4),
.example-card:nth-child(5) {
  grid-column: span 2;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  align-items: end;
}

.example-card:nth-child(1) .gallery-art,
.example-card:nth-child(2) .gallery-art,
.example-card:nth-child(3) .gallery-art,
.example-card:nth-child(4) .gallery-art,
.example-card:nth-child(5) .gallery-art {
  grid-row: span 3;
  min-height: 340px;
}

.example-card:hover {
  transform: translateY(-4px);
  border-color: rgba(17, 18, 20, 0.24);
  background: rgba(255, 255, 255, 0.88);
}

.gallery-art {
  display: block;
  position: relative;
  min-height: 230px;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(17, 18, 20, 0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  object-fit: cover;
}

.gallery-thumb {
  display: block;
  min-height: 0;
  height: 100%;
  background-color: #f8f6f1;
}

.example-card h2 {
  font-size: 20px;
  line-height: 1.15;
  margin-bottom: 6px;
}

.example-card p {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
  font-size: 14px;
}

.example-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #4a4e56;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.example-meta code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #25282e;
  font: inherit;
  text-transform: none;
}

.example-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(17, 18, 20, 0.12);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 720;
}

.gallery-submit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  border: 1px solid rgba(17, 18, 20, 0.1);
  border-radius: 8px;
  padding: clamp(18px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 32px rgba(17, 18, 20, 0.08);
}

.gallery-submit h2 {
  margin-bottom: 8px;
  font-size: clamp(25px, 4vw, 42px);
}

.gallery-submit p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.example-collections {
  margin: 22px 0 34px;
}

.example-collections__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.example-collection-link,
.example-preset-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(17, 18, 20, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(17, 18, 20, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.example-collection-link {
  padding: 10px;
}

.example-collection-link:hover,
.example-preset-card:hover {
  transform: translateY(-3px);
  border-color: rgba(17, 18, 20, 0.24);
  background: rgba(255, 255, 255, 0.94);
}

.example-collection-link img,
.example-preset-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
}

.example-collection-link span,
.example-preset-card span {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.15;
}

.example-collection-page {
  padding-top: 62px;
  padding-bottom: 72px;
}

.example-collection-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.7fr);
  gap: 42px;
  align-items: center;
  margin-bottom: 40px;
}

.example-collection-hero h1 {
  max-width: 820px;
  font-size: clamp(46px, 6.6vw, 84px);
}

.example-collection-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.example-collection-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(17, 18, 20, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

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

.example-preset-card {
  padding: 14px;
}

.example-preset-card code {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.example-preset-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.related-strip {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: 42px;
  padding: 24px;
  border: 1px solid rgba(17, 18, 20, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.related-strip h2 {
  margin: 0;
  font-size: 28px;
}

.related-strip__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.related-strip__links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid rgba(17, 18, 20, 0.12);
  border-radius: 999px;
  padding: 0 15px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.editorial-page {
  padding-top: 62px;
  padding-bottom: 72px;
}

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

.editorial-card {
  border: 1px solid rgba(17, 18, 20, 0.1);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 28px rgba(17, 18, 20, 0.07);
}

.editorial-card h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.editorial-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.tool-page {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
  padding: 26px 0 46px;
}

.sidebar,
.stage {
  border: 1px solid rgba(17, 18, 20, 0.1);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.sidebar {
  align-self: start;
  padding: 18px;
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 112px);
  overflow: auto;
}

.sidebar h1 {
  font-size: 27px;
  line-height: 1.08;
  margin-bottom: 10px;
}

.sidebar p {
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.control-group {
  display: grid;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(17, 18, 20, 0.09);
}

.control {
  display: grid;
  gap: 7px;
}

.control label,
.field-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #33383f;
  font-size: 13px;
  font-weight: 660;
}

.value {
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 520;
}

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

input[type="color"] {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(17, 18, 20, 0.12);
  border-radius: 8px;
  background: transparent;
  padding: 3px;
}

select,
input[type="number"],
input[type="text"],
input[type="file"] {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(17, 18, 20, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  padding: 0 10px;
}

input[type="file"] {
  padding: 8px;
}

input.native-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.control--file {
  position: relative;
}

.file-picker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid rgba(17, 18, 20, 0.12);
  border-radius: 8px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.file-picker__button {
  min-height: 34px;
  border: 1px solid rgba(17, 18, 20, 0.13);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 680;
}

.file-picker__button:hover {
  background: #2a2d33;
}

.file-picker__button:focus-visible {
  outline: 2px solid rgba(13, 148, 136, 0.45);
  outline-offset: 2px;
}

.file-picker__name {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-picker.has-file .file-picker__name {
  color: var(--ink);
}

.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  border: 1px solid rgba(17, 18, 20, 0.1);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.48);
}

.check-row input {
  accent-color: var(--accent);
}

.preset-grid,
.palette-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.preset-grid button,
.palette-grid button {
  min-height: 38px;
  border: 1px solid rgba(17, 18, 20, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: #25282e;
  cursor: pointer;
}

.preset-grid button:hover,
.palette-grid button:hover {
  border-color: rgba(17, 18, 20, 0.28);
  background: rgba(255, 255, 255, 0.9);
}

.swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding-top: 15px;
  border-top: 1px solid rgba(17, 18, 20, 0.09);
}

.actions--wide {
  grid-template-columns: 1fr;
}

.button--small {
  min-height: 38px;
  font-size: 13px;
}

.export-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(17, 18, 20, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  display: grid;
  gap: 10px;
}

.export-panel__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(17, 18, 20, 0.55);
}

.export-panel__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.export-field {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(17, 18, 20, 0.62);
}

.export-field select {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(17, 18, 20, 0.16);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: #111214;
}

.export-panel__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.export-panel__buttons #mx-export-image {
  grid-column: 1 / -1;
}

.export-panel.no-svg #mx-copy-svg {
  display: none;
}

.share-fallback {
  display: grid;
  gap: 6px;
}

.share-fallback input {
  font-family: var(--mono);
  font-size: 12px;
}

.feedback-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid rgba(17, 18, 20, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.54);
}

.feedback-panel__title {
  color: var(--ink);
  font-weight: 800;
}

.feedback-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.feedback-panel__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.feedback-panel__actions a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 18, 20, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

.feedback-panel__actions a:hover {
  border-color: rgba(17, 18, 20, 0.24);
  background: #fff;
}

.tool-value-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid rgba(17, 18, 20, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.46);
}

.tool-value-panel span {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tool-value-panel ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.tool-value-panel__links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tool-value-panel__links a {
  border: 1px solid rgba(17, 18, 20, 0.1);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
}

.share-page {
  padding: 44px 0 70px;
}

.share-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  margin-bottom: 20px;
}

.share-head h1 {
  margin-bottom: 12px;
  font-size: clamp(38px, 6vw, 76px);
}

.share-head p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.6;
}

.share-frame-wrap {
  height: min(78vh, 820px);
  min-height: 560px;
  border: 1px solid rgba(17, 18, 20, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.share-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.stage {
  min-height: calc(100vh - 118px);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.stage__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(17, 18, 20, 0.09);
}

.stage__bar span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.stage__canvas {
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 44px);
  overflow: auto;
}

.preview-frame {
  width: min(760px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  border: 1px solid rgba(17, 18, 20, 0.13);
  background: #fff;
  box-shadow: 0 18px 60px rgba(17, 18, 20, 0.16);
  overflow: hidden;
  position: relative;
}

.preview-frame svg,
.preview-frame canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.code-panel {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.code-box {
  display: grid;
  gap: 8px;
}

.code-box label {
  color: var(--muted);
  font-size: 12px;
  font-family: var(--mono);
}

.code-box textarea {
  width: 100%;
  min-height: 86px;
  resize: vertical;
  border: 1px solid rgba(17, 18, 20, 0.11);
  border-radius: 8px;
  padding: 10px;
  font: 11px/1.45 var(--mono);
  color: #33383f;
  background: rgba(255, 255, 255, 0.66);
}

.surface-scene {
  width: 100%;
  height: 100%;
  min-height: 360px;
  position: relative;
  background: linear-gradient(180deg, #f8f6f1 0 56%, #ded7c9 56%);
  overflow: hidden;
}

.license-large {
  width: 100%;
  height: 100%;
  border: 0;
  resize: none;
  padding: clamp(18px, 4vw, 44px);
  background: #fbfaf6;
  color: #202328;
  font: 15px/1.7 var(--mono);
}

.surface-wall {
  position: absolute;
  inset: 0 0 44%;
  background-size: 180px 180px;
}

.surface-roll {
  position: absolute;
  width: 26%;
  aspect-ratio: 0.58 / 1;
  left: 10%;
  bottom: 9%;
  border-radius: 8px;
  background-size: 120px 120px;
  box-shadow: 0 18px 36px rgba(17, 18, 20, 0.22);
}

.surface-card {
  position: absolute;
  width: 42%;
  aspect-ratio: 4 / 3;
  right: 9%;
  bottom: 10%;
  border-radius: 8px;
  background-size: 140px 140px;
  transform: rotate(-4deg);
  box-shadow: 0 22px 48px rgba(17, 18, 20, 0.24);
}

.preview-frame--wide {
  aspect-ratio: 16 / 9;
}

.preview-frame--divider {
  aspect-ratio: 24 / 7;
}

.preview-frame--portrait {
  width: min(520px, 100%);
  aspect-ratio: 0.588 / 1;
}

.guide-content {
  padding: 4px 0 72px;
}

.guide-panel {
  border: 1px solid rgba(17, 18, 20, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 14px 34px rgba(17, 18, 20, 0.08);
  padding: clamp(20px, 4vw, 42px);
}

.guide-panel h2 {
  max-width: 820px;
  margin-bottom: 14px;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.05;
}

.guide-panel h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.guide-panel p,
.guide-panel li {
  color: #4a4e56;
  line-height: 1.65;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 28px;
}

.guide-list {
  margin: 0;
  padding-left: 18px;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.faq-list details {
  border: 1px solid rgba(17, 18, 20, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  padding: 12px 14px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 720;
}

.faq-list p {
  margin: 10px 0 0;
}

.related-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.related-tools a {
  border: 1px solid rgba(17, 18, 20, 0.12);
  border-radius: 8px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.58);
  color: #25282e;
  font-size: 14px;
}

.related-tools a:hover {
  border-color: rgba(17, 18, 20, 0.28);
  background: rgba(255, 255, 255, 0.9);
}

.footer {
  padding: 36px 0 46px;
  color: var(--muted);
  font-size: 13px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  border-top: 1px solid rgba(17, 18, 20, 0.1);
  padding-top: 20px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__links a {
  color: var(--muted);
  text-decoration: none;
}

.footer__links a:hover {
  color: #16181a;
}

@media (max-width: 1040px) {
  .tool-grid,
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .example-card:nth-child(1),
  .example-card:nth-child(2),
  .example-card:nth-child(3),
  .example-card:nth-child(4),
  .example-card:nth-child(5) {
    grid-column: span 2;
  }

  .tool-page {
    grid-template-columns: 1fr;
  }

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

  .sidebar {
    position: static;
    max-height: none;
  }
}

@media (max-width: 820px) {
  .topbar__inner,
  .section-head,
  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .gallery-head,
  .gallery-submit,
  .gallery-search,
  .gallery-category-strip,
  .example-collection-hero,
  .share-head {
    grid-template-columns: 1fr;
  }

  .example-collections__grid,
  .example-collection-grid,
  .editorial-grid {
    grid-template-columns: 1fr 1fr;
  }

  .related-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .related-strip__links {
    justify-content: flex-start;
  }

  .home-preview,
  .home-showcase {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
  }

  .tool-grid,
  .gallery-grid,
  .gallery-category-strip,
  .featured-grid,
  .example-collections__grid,
  .example-collection-grid,
  .editorial-grid,
  .actions,
  .code-panel {
    grid-template-columns: 1fr;
  }

  .example-card:nth-child(1),
  .example-card:nth-child(2),
  .example-card:nth-child(3),
  .example-card:nth-child(4),
  .example-card:nth-child(5) {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .example-card:nth-child(1) .gallery-art,
  .example-card:nth-child(2) .gallery-art,
  .example-card:nth-child(3) .gallery-art,
  .example-card:nth-child(4) .gallery-art,
  .example-card:nth-child(5) .gallery-art {
    min-height: 260px;
  }

  .home-showcase {
    grid-template-columns: 1fr 1fr;
  }

  .home-showcase .home-art:first-child {
    grid-row: auto;
  }

  .home-showcase .home-art:nth-child(4) {
    grid-column: auto;
  }

  .share-frame-wrap {
    min-height: 520px;
  }

  h1 {
    font-size: 42px;
  }

  .nav a {
    padding: 8px;
  }
}
