/* ==========================================================================
   The Core Social — landing page
   Editorial: warm charcoal + cream paper, Fraunces serif display,
   Archivo body, orange accents. Mobile-first: base styles are
   single-column; media queries widen the layout.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --paper: #f5f1e7;
  --paper-2: #eee8d9;
  --card: #fbf9f2;
  --ink: #1d1c18;
  --ink-soft: #5c574a;
  --line: #ddd4bf;
  --line-strong: #cdc3a8;
  --charcoal: #1a1a18;
  --amber: #ff941f;
  --amber-deep: #a85c00;
  --amber-hover: #f28710;
  --amber-soft: #ffe4c2;
  --cream: #f6f2e9;
  --cream-dim: rgba(246, 242, 233, 0.72);
  --shadow-card: 0 1px 2px rgba(29, 28, 24, 0.05), 0 14px 36px rgba(29, 28, 24, 0.09);
  --shadow-dark: 0 12px 28px rgba(0, 0, 0, 0.3);
  --radius: 14px;
  --focus-ring: #f28710;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--amber-deep);
  text-decoration: none;
}

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

[hidden] {
  display: none !important;
}

::selection {
  background: var(--amber-soft);
  color: var(--ink);
}

/* Anchored sections clear the sticky header */
section[id] {
  scroll-margin-top: 72px;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--amber);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--amber);
  color: var(--charcoal);
  box-shadow: var(--shadow-dark);
}

.btn-primary:hover {
  background: var(--amber-hover);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

.btn-block {
  width: 100%;
}

.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(26, 26, 24, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(246, 242, 233, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--cream);
}

.brand::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--amber);
  border-radius: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.nav a {
  color: var(--cream-dim);
}

.nav a:hover {
  color: var(--cream);
}

.nav-cta {
  color: var(--cream) !important;
  background: rgba(246, 242, 233, 0.1);
  border: 1px solid rgba(246, 242, 233, 0.25);
  padding: 0.45rem 1rem;
  border-radius: 10px;
  font-weight: 600;
}

.nav-cta:hover {
  color: var(--charcoal) !important;
  background: var(--cream);
  border-color: var(--cream);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--cream);
  padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3.5rem, 6vw, 5rem);
}

/* Warm glows on the dark band */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 420px at 88% 6%, rgba(255, 148, 31, 0.16), transparent 65%),
    radial-gradient(720px 520px at 0% 100%, rgba(246, 242, 233, 0.06), transparent 70%);
  pointer-events: none;
}

/* Fine paper-dot texture */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(246, 242, 233, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.hero-copy {
  max-width: 620px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  line-height: 1.04;
  text-wrap: balance;
}

.hero-sub {
  max-width: 56ch;
  margin-top: 1.25rem;
  font-size: 1.05rem;
  color: rgba(246, 242, 233, 0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(246, 242, 233, 0.6);
}

/* Paper CTAs on the dark band */
.hero .btn-primary,
.creators .btn-primary {
  background: var(--cream);
  color: var(--charcoal);
}

.hero .btn-primary:hover,
.creators .btn-primary:hover {
  background: #fcfaf3;
}

.hero .btn-secondary {
  color: var(--cream);
  border-color: rgba(246, 242, 233, 0.35);
}

.hero .btn-secondary:hover {
  background: rgba(246, 242, 233, 0.08);
  border-color: rgba(246, 242, 233, 0.6);
}

.hero-art {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4));
}

/* Gold italic serif highlight */
.gradient-text {
  font-style: italic;
  font-weight: 500;
  color: var(--amber);
  background: none;
  -webkit-text-fill-color: currentColor;
}

/* ---------- How it works ---------- */
.steps {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  border-top: 1px solid var(--line);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.steps-list {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.step {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 1rem;
}

/* Editorial ghost numerals — no tiles, no icons */
.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.9rem, 5vw, 3.6rem);
  line-height: 1;
  margin-bottom: 1.1rem;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 148, 31, 0.55);
}

@supports not (-webkit-text-stroke: 1px black) {
  .step-num {
    color: rgba(255, 148, 31, 0.22);
  }
}

.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
}

.step p {
  margin: 0;
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- For creators ---------- */
.creators {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--cream);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  border-top: 1px solid rgba(246, 242, 233, 0.1);
}

.creators::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 420px at 100% 0%, rgba(255, 148, 31, 0.12), transparent 60%),
    radial-gradient(640px 460px at 0% 100%, rgba(246, 242, 233, 0.05), transparent 65%);
  pointer-events: none;
}

.creators-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.creators-copy {
  max-width: 640px;
}

.creators h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.creators p {
  color: rgba(246, 242, 233, 0.78);
}

.creators-cta {
  flex-shrink: 0;
}

/* ---------- Email capture ---------- */
.signup {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  border-top: 1px solid var(--line);
}

.signup-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.signup-intro {
  max-width: 40ch;
  color: var(--ink-soft);
}

.signup-card {
  padding: 2rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
}

.field input {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: #ffffff;
}

.field input:focus {
  outline: none;
  border-color: var(--amber-deep);
  box-shadow: 0 0 0 3px rgba(255, 148, 31, 0.18);
}

.form-note {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}

.signup-success {
  padding: 1rem 0;
  text-align: center;
}

.signup-success h3 {
  margin-bottom: 0.25rem;
  color: var(--amber-deep);
}

.signup-success p {
  margin: 0;
  color: var(--ink-soft);
}

.status {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.9rem;
}

.status-error {
  color: #b3261e;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.site-footer p {
  margin: 0;
}

.site-footer .footer-tag {
  margin-top: 0.25rem;
}

.site-footer .footer-links {
  margin-top: 0.5rem;
}

.site-footer .footer-links a {
  color: var(--amber-deep);
  text-decoration: none;
}

.site-footer .footer-links a:hover {
  text-decoration: underline;
}

/* ---------- Responsive: tablet and up ---------- */
@media (min-width: 860px) {
  .steps-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .step:nth-child(n + 2) {
    padding-left: 2.5rem;
    border-left: 1px solid var(--line);
  }

  .creators-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3.5rem;
  }

  .signup-inner {
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: start;
  }

  .signup-card {
    padding: 2.25rem;
  }
}

/* ---------- Wide: hero goes two-column ---------- */
@media (min-width: 980px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 3.5rem;
  }
}

/* ---------- Small phones ---------- */
@media (max-width: 480px) {
  .nav {
    gap: 0.9rem;
    font-size: 0.85rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .signup-card {
    padding: 1.5rem 1.25rem;
  }
}

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

  .btn {
    transition: none;
  }
}
