/*
Theme Name: Amorpher Minimal
Theme URI: https://amorpher.com/
Author: OpenAI Codex
Author URI: https://openai.com/
Description: Minimal WordPress theme for the Amorpher marketing site.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: amorpher-minimal
*/

:root {
  --bg: #0c0d14;
  --bg-elevated: #171924;
  --panel: #202330;
  --line: rgba(255, 255, 255, 0.08);
  --text: #edf1ff;
  --muted: #9ea6c7;
  --accent: #6f95ff;
  --accent-strong: #8fd0ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --site-width: 1720px;
  --guide-media-width: 860px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(111, 149, 255, 0.24), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(143, 208, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #0c0d14 0%, #111422 100%);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

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

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

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(12, 13, 20, 0.72);
}

.site-header__inner,
.site-footer__inner,
.site-main,
.hero,
.content-block {
  width: min(calc(100% - 48px), var(--site-width));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-brand__logo {
  display: block;
  width: auto;
  height: 62px;
  object-fit: contain;
}

.site-brand__name {
  color: var(--text);
}

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

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav .current-menu-item > a {
  color: var(--text);
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #08101e;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  box-shadow: 0 10px 24px rgba(111, 149, 255, 0.28);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  box-shadow: none;
}

.button:hover,
.button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible,
button:hover,
button:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.site-main {
  padding: 48px 0 84px;
}

.hero {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  padding: 56px 0 36px;
}

.hero__eyebrow,
.content-block__eyebrow {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero__title,
.content-block h1,
.content-block h2 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
}

.hero__lead,
.content-block__lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 58ch;
  margin: 0 0 22px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.hero-stat {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.hero-stat strong,
.site-footer__brand strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.98rem;
}

.hero-stat span,
.site-footer__brand span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero__panel,
.content-panel,
.page-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.025) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero__panel {
  min-height: 420px;
  overflow: hidden;
  position: relative;
  padding: 24px;
}

.hero__panel::before,
.hero__panel::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.9;
}

.hero__panel::before {
  width: 220px;
  height: 220px;
  top: 54px;
  left: 44px;
  background: rgba(255, 132, 163, 0.72);
}

.hero__panel::after {
  width: 200px;
  height: 200px;
  right: 56px;
  bottom: 60px;
  background: rgba(119, 158, 255, 0.66);
}

.hero__mesh {
  position: absolute;
  inset: 26px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 22% 28%, rgba(255, 176, 104, 0.9), transparent 28%),
    radial-gradient(circle at 76% 32%, rgba(236, 108, 255, 0.88), transparent 26%),
    radial-gradient(circle at 56% 76%, rgba(138, 255, 160, 0.8), transparent 24%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 100%);
}

.hero__hud {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  z-index: 1;
}

.hero__hud-label {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(9, 12, 24, 0.72);
  color: var(--accent-strong);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__hud-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.hero__hud-stack span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(9, 12, 24, 0.72);
  color: var(--text);
  font-size: 0.84rem;
}

.content-block {
  margin-top: 34px;
}

.page-card,
.content-panel {
  padding: 28px;
}

.content-block--split .content-panel {
  padding: 32px;
}

.content-block h1,
.content-block h2,
.content-block h3 {
  margin-top: 0;
}

.content-block p,
.content-block li {
  color: var(--muted);
}

.content-block ul,
.content-block ol {
  padding-inline-start: 20px;
}

.content-block__body > :first-child {
  margin-top: 0;
}

.content-block__body > :last-child {
  margin-bottom: 0;
}

.feature-grid,
.workflow-steps,
.post-feed {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.feature-card,
.workflow-step,
.post-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(9, 12, 24, 0.5);
}

.feature-card {
  padding: 22px;
}

.feature-card::before,
.workflow-step::before,
.post-card::before {
  content: "";
  position: absolute;
  inset: auto auto -40px -10px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(143, 208, 255, 0.18), transparent 72%);
  pointer-events: none;
}

.feature-card h3,
.workflow-step h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-card p,
.workflow-step p,
.post-card__excerpt,
.page-card__header .content-block__lead {
  margin: 0;
}

.workflow-panel {
  padding: 32px;
}

.workflow-panel__intro {
  max-width: 720px;
  margin-bottom: 24px;
}

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

.workflow-step {
  padding: 24px;
}

.workflow-step__index {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 32px;
}

.cta-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.page-card__header {
  max-width: 760px;
  margin-bottom: 28px;
}

.content-block__body {
  color: var(--muted);
}

.content-block__body a,
.post-card__link,
.post-card__title a:hover,
.post-card__title a:focus-visible {
  color: var(--accent-strong);
}

.post-feed {
  margin-top: 26px;
}

.post-card {
  padding: 22px 22px 20px;
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card__title {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin-bottom: 12px;
}

.post-card__link {
  display: inline-flex;
  margin-top: 16px;
  font-weight: 700;
}

.guide-page {
  width: min(calc(100% - 48px), var(--site-width));
  margin: 0 auto;
}

.guide-shell {
  display: grid;
  gap: 60px;
  padding: 28px 0 56px;
}

.guide-hero {
  padding: 32px 0 84px;
  max-width: none;
}

.guide-hero__title {
  font-size: clamp(2.8rem, 6vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin: 0 0 18px;
}

.guide-hero__lead {
  max-width: 68ch;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.guide-hero__lead--intro {
  font-size: clamp(1.08rem, 1.4vw, 1.28rem);
  margin-bottom: 0;
}

.guide-section {
  display: grid;
  gap: 28px;
}

.guide-layout-split,
.guide-section--split {
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
  align-items: start;
  gap: 38px;
}

.guide-layout-split,
.guide-section--split,
.guide-subsection--with-media {
  display: grid;
}

.guide-layout-split > *,
.guide-section--split > *,
.guide-subsection--with-media > * {
  min-width: 0;
}

.guide-section__content,
.guide-section__intro,
.guide-summary {
  max-width: 760px;
}

.guide-section__content--full {
  max-width: none;
}

.guide-section__content h2,
.guide-section__intro h2,
.guide-summary h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
}

.guide-section__content h3 {
  margin: 0 0 10px;
  font-size: 1.24rem;
  color: var(--text);
}

.guide-section__content p,
.guide-section__intro p,
.guide-summary p,
.guide-section__content li {
  color: var(--muted);
  line-height: 1.72;
}

.guide-section__content p,
.guide-summary p {
  margin: 0 0 18px;
}

.guide-subsection + .guide-subsection {
  margin-top: 30px;
}

.guide-subsection--intro {
  margin-bottom: 4px;
}

.guide-subsection--with-media {
  gap: 28px;
}

.guide-subsection__text {
  min-width: 0;
}

.guide-subsection__text > :last-child {
  margin-bottom: 0;
}

.guide-subsection__media {
  align-self: start;
  width: min(100%, var(--guide-media-width));
  justify-self: end;
}

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

.guide-list li + li {
  margin-top: 10px;
}

.guide-section__media-stack {
  display: grid;
  gap: 22px;
  align-content: start;
  width: min(100%, var(--guide-media-width));
  justify-self: end;
}

.guide-section__media-stack--single {
  gap: 10px;
}

.guide-media-placeholder {
  margin: 0;
}

.guide-media-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.guide-media-placeholder__frame {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 28px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 18px,
      rgba(255, 255, 255, 0.01) 18px,
      rgba(255, 255, 255, 0.01) 36px
    );
  box-shadow: var(--shadow);
  color: var(--accent-strong);
  text-align: center;
  font-size: 1rem;
  line-height: 1.55;
}

.guide-media-placeholder__frame--hero {
  min-height: 420px;
}

.guide-media-placeholder__frame--interface {
  aspect-ratio: 16 / 9;
  min-height: 0;
  width: 100%;
}

.guide-media-placeholder--tall .guide-media-placeholder__frame {
  min-height: 460px;
}

.guide-media-placeholder--wide .guide-media-placeholder__frame {
  min-height: 380px;
}

.guide-media-placeholder figcaption {
  margin-top: 9px;
  color: rgba(158, 166, 199, 0.82);
  font-size: 0.84rem;
  line-height: 1.45;
}

.site-footer {
  padding: 28px 0 44px;
}

.site-footer__inner {
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer__brand {
  max-width: 420px;
}

.site-footer__legal {
  color: var(--muted);
  font-size: 0.92rem;
}

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

@media (max-width: 900px) {
  .site-header__inner,
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .hero__stats,
  .feature-grid,
  .workflow-steps,
  .guide-layout-split,
  .guide-section--split,
  .guide-subsection--with-media {
    grid-template-columns: 1fr;
  }

  .guide-section__content,
  .guide-section__intro,
  .guide-summary,
  .guide-hero {
    max-width: none;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__panel {
    min-height: 320px;
  }

  .site-nav ul {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .site-header__inner,
  .site-footer__inner,
  .site-main,
  .hero,
  .content-block,
  .guide-page {
    width: min(calc(100% - 28px), var(--site-width));
  }

  .site-main {
    padding-top: 28px;
  }

  .guide-shell {
    gap: 40px;
  }

  .guide-media-placeholder__frame,
  .guide-media-placeholder--wide .guide-media-placeholder__frame,
  .guide-media-placeholder--tall .guide-media-placeholder__frame {
    min-height: 240px;
  }

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

  .hero__hud {
    left: 18px;
    right: 18px;
    bottom: 18px;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero__actions,
  .site-actions,
  .cta-panel__actions {
    width: 100%;
  }

  .button,
  .button--ghost {
    width: 100%;
  }

  .site-brand__logo {
    height: 34px;
  }
}
