:root {
  --bg: #f5f4f7;
  --surface: #ffffff;
  --surface-alt: #efedf3;
  --ink: #281b36;
  --muted: #6f6877;
  --accent: #5a2a68;
  --accent-2: #3f1a4b;
  --line: #ddd7e3;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 28px rgba(40, 27, 54, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(90, 42, 104, 0.26);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1140px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
}

.skip-link:focus {
  top: 12px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  display: block;
  font-size: 0.875rem;
  height: auto;
  left: 8px;
  line-height: normal;
  padding: 0.8rem 1rem;
  top: 8px;
  width: auto;
  z-index: 100000;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 244, 247, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(7px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}

.brand {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.brand-logo .custom-logo-link {
  display: block;
}

.brand-logo img {
  width: auto;
  max-height: 42px;
}

.nav-toggle {
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  padding: 7px;
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.menu {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.menu li a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.menu li.current-menu-item > a,
.menu li.current-page-ancestor > a {
  color: var(--accent);
}

.section {
  padding: clamp(48px, 6vw, 72px) 0;
}

.hero {
  padding-top: 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.3rem, 3vw, 2.2rem);
  align-items: center;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.45rem);
  letter-spacing: -0.02em;
  line-height: 1.03;
}

.hero p,
.section-head p,
.muted {
  color: var(--muted);
}

.hero p {
  max-width: 58ch;
}

.hero-illustration {
  min-height: 300px;
  border: 2px dashed #cab8d5;
  border-radius: 32px;
  background:
    radial-gradient(circle at 20% 10%, #fff, transparent 45%),
    radial-gradient(circle at 80% 20%, #e8dff0, transparent 55%),
    linear-gradient(135deg, #faf8fc, #efe6f5);
}

.btn {
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.68rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-row {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-2);
}

.btn-light {
  background: #fff;
  border-color: var(--line);
}

.btn-light:hover {
  border-color: #c8c0d1;
}

.signup-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.signup-panel h2 {
  margin-top: 0;
}

.signup-form label {
  display: block;
  margin-bottom: 0.7rem;
}

.sendfox-embed {
  width: 100%;
}

.sendfox-embed iframe,
.sendfox-embed form,
.sendfox-embed input,
.sendfox-embed button {
  max-width: 100%;
}

.signup-form span {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

input,
textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 0.6rem 0.68rem;
  font: inherit;
  background: #fff;
}

.section-head h1,
.section-head h2,
h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.section-head {
  margin-bottom: 1rem;
}

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

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

.template-card,
.blog-card,
.card-block,
.purchase-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.template-card,
.blog-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.template-card {
  height: 100%;
}

.template-card .thumb-link,
.blog-card .thumb-link {
  aspect-ratio: 16 / 9;
  background: linear-gradient(130deg, #ece8f1, #ddd7e3);
}

.template-card .thumb-link img,
.blog-card .thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder {
  min-height: 100%;
  background: linear-gradient(130deg, #ece8f1, #ddd7e3);
}

.card-body {
  padding: 0.9rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.template-card-body {
  gap: 0.55rem;
  align-content: start;
}

.template-card-header {
  min-height: 2.6em;
}

.template-card-title {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.3;
}

.template-card-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.template-card-excerpt {
  margin: 0;
  font-size: 0.89rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.2em;
}

.template-card-meta {
  margin-top: auto;
}

.template-card-footer {
  margin-top: 0.15rem;
}

.template-card-link {
  width: 100%;
}

.card-body h3,
.blog-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.card-body p {
  margin: 0;
  font-size: 0.89rem;
  color: var(--muted);
}

.card-meta {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.pill,
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.52rem;
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
}

.pill.light {
  background: #ede5f4;
  color: var(--accent);
}

.center-text {
  text-align: center;
}

.center {
  justify-content: center;
}

.narrow {
  width: min(760px, calc(100% - 2.5rem));
}

.single-template-layout {
  display: grid;
  gap: 1.2rem;
}

.single-top {
  max-width: 72ch;
}

.single-top h1 {
  margin: 0.4rem 0 0.55rem;
}

.single-main {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1rem;
  align-items: start;
}

.single-content {
  display: grid;
  gap: 1rem;
}

.single-cover,
.card-block {
  padding: 1rem;
}

.single-cover img {
  width: 100%;
  border-radius: calc(var(--radius) - 6px);
}

.checklist {
  margin: 0;
  padding-left: 1.2rem;
}

.checklist li {
  margin: 0.32rem 0;
}

.purchase-card {
  position: sticky;
  top: 94px;
  padding: 1rem;
}

.price {
  font-size: clamp(1.65rem, 4vw, 2rem);
  font-weight: 800;
  margin: 0.4rem 0 0.8rem;
}

.block {
  width: 100%;
  text-align: center;
}

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

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.blog-card h2 {
  margin: 0.75rem 0 0.7rem;
  padding: 0 0.9rem;
  font-size: clamp(1.15rem, 2.4vw, 2rem);
}

.author-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.9rem 0.9rem;
}

.author-row img {
  border-radius: 999px;
}

.author-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.pagination-wrap {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}

.pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  margin: 0 0.15rem;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 700;
}

.pagination-wrap .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
}

.footer-brand,
.footer-grid h4 {
  margin: 0 0 0.65rem;
}

.footer-grid p,
.footer-menu a,
.footer-grid .menu a {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-menu,
.footer-grid ul,
.footer-grid .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.content-body p {
  margin-bottom: 1rem;
}

.single-longform {
  line-height: 1.7;
}

.single-longform > *:first-child {
  margin-top: 0;
}

.single-longform img {
  border-radius: 10px;
}

.single-longform h2,
.single-longform h3 {
  margin-top: 1.35rem;
}

.comments-block {
  margin-top: 1.25rem;
}

.comment-list {
  margin: 0;
  padding-left: 1.2rem;
}

.comment-list .comment {
  margin-bottom: 1rem;
}

.comment-meta {
  font-size: 0.88rem;
  color: var(--muted);
}

.comment-form p {
  margin-bottom: 0.8rem;
}

.comment-reply-title {
  margin-top: 1.5rem;
}

@media (max-width: 1100px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .card-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .single-main {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .purchase-card {
    position: static;
    padding: 0.95rem;
  }

  .single-content {
    gap: 0.85rem;
  }

  .single-highlights .checklist {
    margin-top: 0.45rem;
  }

  .purchase-card h3 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .container,
  .narrow {
    width: min(1140px, calc(100% - 1.3rem));
  }

  .nav-wrap {
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-block;
    width: 44px;
    height: 44px;
  }

  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.7rem 1rem 1rem;
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    box-shadow: 0 12px 30px rgba(40, 27, 54, 0.1);
  }

  .main-nav.is-open {
    display: grid;
    gap: 0.65rem;
  }

  .menu {
    display: grid;
    gap: 0.25rem;
    justify-items: stretch;
  }

  .menu li {
    width: 100%;
  }

  .menu li a {
    display: block;
    width: 100%;
    padding: 0.62rem 0.15rem;
    font-size: 1rem;
  }

  .nav-cta {
    width: 100%;
    margin-top: 0.2rem;
  }

  .hero-grid,
  .signup-panel,
  .blog-grid,
  .footer-grid,
  .card-grid,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .hero-illustration {
    min-height: 190px;
  }

  .site-footer {
    margin-top: 2rem;
    padding: 1.6rem 0 1.9rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-grid > div {
    padding-top: 0.7rem;
    border-top: 1px solid var(--line);
  }

  .footer-grid > :first-child {
    border-top: 0;
    padding-top: 0;
  }

  .footer-brand {
    margin-bottom: 0.35rem;
  }

  .single-template-layout {
    gap: 0.8rem;
  }

  .single-top h1 {
    margin: 0.3rem 0 0.45rem;
    line-height: 1.12;
    font-size: clamp(1.65rem, 8vw, 2.1rem);
  }

  .single-cover,
  .card-block,
  .purchase-card {
    padding: 0.85rem;
  }

  .single-longform {
    line-height: 1.62;
  }

  .price {
    margin: 0.2rem 0 0.7rem;
    font-size: 1.75rem;
  }

  .purchase-card .btn {
    min-height: 46px;
    font-size: 0.95rem;
  }

  .checklist li {
    margin: 0.42rem 0;
  }

  .template-card-excerpt {
    -webkit-line-clamp: 2;
    min-height: 2.9em;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
