@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/assets/inter-tight-latin.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  --bg-base: #0a0a0a;
  --bg-panel: #0a0a0a;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --border-default: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --primary: #f9a474;
  --primary-hover: #f39a67;
  --accent-secondary: #c3a3ff;
  --accent-success: #59d9a6;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-xs: 0 2px 10px rgba(0, 0, 0, 0.22);
  --ease-hero: linear(
    0, 0.009, 0.035 2.1%, 0.141 4.8%, 0.579 12.4%,
    0.84 17.1%, 0.959 21.2%, 1.016 25.2%, 1.038 29.8%,
    1.034 35.7%, 1.012 45.1%, 1.002 57.7%, 1
  );
  --ease-snap: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 4%, rgba(249, 164, 116, 0.03), transparent 34rem),
    radial-gradient(circle at 92% 96%, rgba(195, 163, 255, 0.03), transparent 34rem),
    var(--bg-base);
  color: var(--text-primary);
  font: 420 17px/1.59 "Inter", system-ui, sans-serif;
}

a {
  color: var(--primary);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 220ms ease;
}

a:hover {
  color: #ffc5a4;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  color: var(--text-primary);
}

.skip:focus {
  top: 1rem;
}

header {
  width: min(1240px, calc(100% - 3rem));
  margin: 1.5rem auto 0;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
}

header > a:first-child {
  display: block;
  padding: 0.35rem 0.6rem;
  background: #ffffff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
  color: #1a120d;
  font-weight: 700;
  text-decoration: none;
}

header img {
  display: block;
  width: 205px;
  height: auto;
  max-height: 52px;
  object-fit: contain;
}

header nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

header nav a {
  min-height: 40px;
  padding: 0.5rem 0.8rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}

header nav a:hover,
header nav a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

main {
  width: min(1240px, calc(100% - 3rem));
  margin: 1.5rem auto 7.5rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
}

main > h1 {
  grid-column: span 8;
  min-height: 420px;
  margin: 0;
  padding: clamp(2rem, 6vw, 4.75rem);
  display: flex;
  align-items: end;
  overflow: hidden;
  background-color: var(--bg-panel);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    repeating-radial-gradient(circle at 52% 42%, transparent 0 80px, rgba(255, 255, 255, 0.045) 81px 82px, transparent 83px 142px),
    radial-gradient(circle at 52% 42%, rgba(249, 164, 116, 0.15), transparent 42%);
  background-size: 60px 60px, 60px 60px, auto, auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font: 700 clamp(2.75rem, 6vw, 4.5rem)/1.06 "Inter Tight", "Inter", system-ui, sans-serif;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* Homepage VibeCurb rework: one asymmetric, type-led composition. */
.home main {
  position: relative;
  grid-template-rows: minmax(620px, calc(100svh - 8.5rem));
}

.home main > .hero-title {
  position: relative;
  isolation: isolate;
  min-height: 100%;
  padding: clamp(2rem, 5vw, 4.75rem);
  align-items: stretch;
  flex-direction: column;
  justify-content: center;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 72% 36%, rgba(249, 164, 116, 0.2), transparent 32%),
    radial-gradient(circle at 30% 72%, rgba(195, 163, 255, 0.1), transparent 34%);
  background-size: 72px 72px, 72px 72px, auto, auto;
  font-size: clamp(5rem, 11.5vw, 10.75rem);
  line-height: 0.75;
  letter-spacing: -0.075em;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}

.home main > .hero-title::after {
  content: "Beautiful WordPress themes · since 2020";
  position: absolute;
  left: clamp(2rem, 5vw, 4.75rem);
  bottom: clamp(2rem, 4vw, 3.5rem);
  color: var(--text-secondary);
  font: 600 0.68rem/1.2 "JetBrains Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home .hero-title span {
  display: block;
  width: max-content;
  max-width: 100%;
  animation: hero-word-in 420ms var(--ease-hero) both;
}

.home .hero-title span:last-child {
  align-self: flex-end;
  color: var(--primary);
  animation-delay: 50ms;
}

.home .hero-support > article > div > div > section:first-child h2 {
  animation: hero-support-in 480ms 90ms var(--ease-hero) both;
}

.home .hero-support h2 {
  max-width: 10ch;
  font-size: clamp(2rem, 3vw, 3.25rem);
}

.home .hero-support a {
  transition:
    color 280ms var(--ease-snap),
    transform 420ms var(--ease-snap),
    box-shadow 420ms var(--ease-snap);
}

.home .hero-support a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(249, 164, 116, 0.16);
}

.home .hero-support a:active {
  transform: translateY(0) scale(0.98);
}

@keyframes hero-word-in {
  from {
    transform: translateY(0.28em);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes hero-support-in {
  from {
    transform: translateY(24px);
  }
  to {
    transform: translateY(0);
  }
}

main > h1 + * {
  grid-column: span 4;
  min-height: 220px;
  padding: 28px;
  background: var(--bg-panel);
  border: 1px solid rgba(249, 164, 116, 0.38);
  border-radius: var(--radius-xl);
  box-shadow: inset 0 1px rgba(249, 164, 116, 0.12);
}

main > :not(h1),
.elementor-widget-image,
.elementor-widget-text-editor,
.elementor-widget-heading,
.elementor-widget-icon-box,
.wp-show-posts-single {
  grid-column: span 4;
  margin: 0;
  padding: 28px;
  background: var(--bg-panel);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: none;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

main > :not(h1):hover,
.elementor-widget-image:hover,
.elementor-widget-text-editor:hover,
.elementor-widget-heading:hover,
.elementor-widget-icon-box:hover,
.wp-show-posts-single:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 24px rgba(249, 164, 116, 0.07);
  transform: translateY(-4px);
}

main > p {
  font-size: 1.1rem;
  line-height: 1.6;
}

main h2,
main h3,
main h4 {
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
  color: var(--text-primary);
}

main h2 {
  margin: 0.1rem 0 0.7rem;
  font-size: clamp(1.625rem, 2.5vw, 2.125rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

main h3 {
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.23;
}

main img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0.75rem 0;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

main figure {
  margin: 0;
}

main ul,
main ol {
  padding-left: 1.25rem;
}

main li + li {
  margin-top: 0.65rem;
}

main svg {
  max-width: 2.25rem;
  max-height: 2.25rem;
  fill: var(--primary);
}

main .disclosure,
.contact-note {
  background: var(--bg-panel);
  border-color: rgba(89, 217, 166, 0.45);
  box-shadow: inset 0 1px rgba(89, 217, 166, 0.14);
}

.elementor-element,
.entry-content,
.wp-show-posts,
.elementor-widget-container {
  display: contents;
}

.elementor-widget-image {
  padding: 12px;
}

.elementor-widget-image img,
.wp-show-posts-image img {
  margin: 0;
}

.wp-show-posts-single {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wp-show-posts-image {
  order: -1;
}

.entry-meta,
time {
  color: var(--text-secondary);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

main a[aria-label="Theme Jug link"]:has(> span):not(li a) {
  width: fit-content;
  min-height: 40px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f9a474 0%, #f7b38e 55%, #fcd2b7 100%);
  border: 1px solid transparent;
  border-radius: 32px;
  box-shadow: var(--shadow-xs), inset #fcd2b7 0 6px 0 -5px, #c56f45 0 4px 10px -5px;
  color: #1a120d;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

main a[aria-label="Theme Jug link"]:has(> span):not(li a):hover {
  background: linear-gradient(135deg, #f39a67 0%, #f9a474 55%, #f7b38e 100%);
  color: #1a120d;
}

input,
textarea,
button {
  min-height: 48px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  color: var(--text-primary);
  font: inherit;
}

footer {
  width: min(1240px, calc(100% - 3rem));
  margin: 0 auto 2rem;
  padding: 1rem 0;
  color: var(--text-secondary);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  header,
  main,
  footer {
    width: min(100% - 2rem, 100%);
  }

  main {
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
    margin-bottom: 5.5rem;
  }

  main > h1,
  main > h1 + *,
  main > :not(h1),
  .elementor-widget-image,
  .elementor-widget-text-editor,
  .elementor-widget-heading,
  .elementor-widget-icon-box,
  .wp-show-posts-single {
    grid-column: span 4;
  }

  .home main {
    grid-template-rows: minmax(540px, calc(100svh - 11rem));
  }

  .home main > .hero-title {
    font-size: clamp(4.5rem, 13vw, 7.25rem);
  }
}

@media (max-width: 760px) {
  header {
    align-items: flex-start;
    flex-direction: column;
    border-radius: var(--radius-lg);
  }

  header img {
    width: 170px;
  }

  main {
    display: block;
    margin-top: 1rem;
    margin-bottom: 4rem;
  }

  main > *,
  main > h1 + *,
  .elementor-widget-image,
  .elementor-widget-text-editor,
  .elementor-widget-heading,
  .elementor-widget-icon-box,
  .wp-show-posts-single {
    margin-bottom: 16px;
  }

  main > h1 {
    min-height: 300px;
    padding: 2rem;
    border-radius: var(--radius-lg);
    font-size: 3rem;
  }

  .home main {
    display: block;
  }

  .home main > .hero-title {
    min-height: min(62svh, 520px);
    padding: 1.5rem;
    font-size: clamp(4.5rem, 23vw, 7.5rem);
    line-height: 0.79;
  }

  .home main > .hero-title::after {
    left: 1.5rem;
    bottom: 1.5rem;
    max-width: 25ch;
    font-size: 0.62rem;
  }

  .home main > .hero-support {
    padding: 18px;
  }

  main > :not(h1),
  main > h1 + *,
  .elementor-widget-image,
  .elementor-widget-text-editor,
  .elementor-widget-heading,
  .elementor-widget-icon-box,
  .wp-show-posts-single {
    padding: 18px;
    border-radius: var(--radius-lg);
  }

  .elementor-widget-image {
    padding: 10px;
  }

  header nav a {
    padding: 0.45rem 0.65rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .home .hero-title span,
  .home .hero-support > article > div > div > section:first-child h2 {
    animation: none;
    transform: none;
  }

  main > :not(h1):hover,
  .elementor-widget-image:hover,
  .elementor-widget-text-editor:hover,
  .elementor-widget-heading:hover,
  .elementor-widget-icon-box:hover,
  .wp-show-posts-single:hover {
    transform: none;
  }
}
