/*
Theme Name: Elytiq
Theme URI: https://elytiq.com
Author: Elytiq
Author URI: https://elytiq.com
Description: Custom theme for Elytiq, a software studio. Editorial, calm, warm. Built from the TalkStik UI Source of Truth v3.1.2 and Talking Stick Design Principles v1.1.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: All rights reserved
License URI: https://elytiq.com
Text Domain: elytiq
Tags: studio, custom, one-page
*/

/* ─────────────────────────────────────────
   Design tokens
   Sourced from TalkStik UI Source of Truth v3.1.2
   ───────────────────────────────────────── */
:root {
  --ts-brand:         #1D9E75;
  --ts-brand-dark:    #15795A;
  --ts-amber:         #E8A838;
  --ts-sage:          #7C9E7A;
  --ts-surface:       #FAF9F6;
  --ts-card:          #FFFFFF;
  --ts-text-1:        #1A1A1A;
  --ts-text-2:        #4A4F5A;
  --ts-text-3:        #8A8F98;
  --ts-border:        rgba(26, 26, 26, 0.08);
  --ts-border-strong: rgba(26, 26, 26, 0.16);

  --fs-micro:   0.75rem;
  --fs-small:   0.875rem;
  --fs-body:    1rem;
  --fs-lg:      1.25rem;
  --fs-xl:      1.5rem;
  --fs-2xl:     2rem;
  --fs-3xl:     3rem;
  --fs-display: clamp(2.75rem, 6vw + 1rem, 5.25rem);

  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  --sp-10: 128px;

  --measure: 60ch;
  --container: 1180px;
  --container-narrow: 760px;
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;
}

/* ─────────────────────────────────────────
   Base
   ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ts-text-1);
  background: var(--ts-surface);
  min-height: 100vh;
  overflow-x: hidden;
}

/* WordPress admin bar offset */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

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

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--ts-brand-dark);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ts-text-1); color: var(--ts-surface);
  padding: var(--sp-3) var(--sp-4); z-index: 100;
  font-size: var(--fs-small);
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
@media (min-width: 768px) {
  .container { padding: 0 var(--sp-7); }
}

/* Screen reader only */
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ─────────────────────────────────────────
   Typography
   ───────────────────────────────────────── */
.serif { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; }
.mono  { font-family: 'DM Mono', ui-monospace, monospace; }

.eyebrow {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ts-text-2);
  font-weight: 500;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.1;
  color: var(--ts-text-1);
  letter-spacing: -0.01em;
}
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; }

p { color: var(--ts-text-1); max-width: var(--measure); }
.lede { font-size: var(--fs-lg); line-height: 1.55; color: var(--ts-text-2); }

/* ─────────────────────────────────────────
   Header
   ───────────────────────────────────────── */
.site-header {
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--ts-border);
  background: var(--ts-surface);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(140%) blur(8px);
  background-color: rgba(250, 249, 246, 0.85);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5);
}
.site-header img,
.site-header .custom-logo { height: 36px; width: auto; }
.header-cta {
  font-size: var(--fs-small);
  font-weight: 500;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--ts-border-strong);
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
  min-height: 44px;
  display: inline-flex; align-items: center;
}
.header-cta:hover { background: var(--ts-text-1); color: var(--ts-surface); border-color: var(--ts-text-1); }

/* ─────────────────────────────────────────
   Hero
   ───────────────────────────────────────── */
.hero {
  position: relative;
  padding: var(--sp-10) 0 var(--sp-9);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 85% 0%, rgba(29,158,117,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(232,168,56,0.05) 0%, transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero .eyebrow { margin-bottom: var(--sp-5); }
.hero h1 {
  font-size: var(--fs-display);
  max-width: 14ch;
  margin-bottom: var(--sp-6);
  animation: rise 800ms ease-out both;
}
.hero .lede {
  max-width: 52ch;
  animation: rise 800ms ease-out 120ms both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────
   Sections
   ───────────────────────────────────────── */
section { padding: var(--sp-9) 0; }
section + section { border-top: 1px solid var(--ts-border); }
.section-eyebrow { margin-bottom: var(--sp-5); }
.section-title {
  font-size: clamp(2rem, 3.2vw + 1rem, 3rem);
  margin-bottom: var(--sp-6);
  max-width: 18ch;
}

/* About */
.about-grid {
  display: grid; gap: var(--sp-8);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.4fr 1fr; gap: var(--sp-9); align-items: start; }
}
.about-prose p + p { margin-top: var(--sp-5); }
.about-prose .lede { margin-bottom: var(--sp-5); }

.founder-card {
  background: var(--ts-card);
  border: 1px solid var(--ts-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}
.founder-card img {
  width: 180px; height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: var(--sp-5);
  display: block;
  background: var(--ts-text-1);
}
.founder-card h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.founder-card .role {
  font-size: var(--fs-small);
  color: var(--ts-text-2);
  margin-bottom: var(--sp-4);
}
.founder-card .linkedin {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-small);
  color: var(--ts-brand-dark);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease;
  min-height: 44px;
}
.founder-card .linkedin:hover { border-bottom-color: var(--ts-brand-dark); }

/* Product (TalkStik) */
.product { background: var(--ts-card); border-top: 1px solid var(--ts-border) !important; }
.product-header { text-align: center; margin-bottom: var(--sp-8); }
.product-header > * { margin-left: auto; margin-right: auto; }
.product-logo { max-width: 320px; margin: var(--sp-5) auto; }
.product-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 2vw + 0.5rem, 2.25rem);
  font-style: italic;
  color: var(--ts-brand-dark);
  max-width: 24ch;
  margin: 0 auto var(--sp-5);
}
.status-pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: rgba(29, 158, 117, 0.08);
  color: var(--ts-brand-dark);
  border: 1px solid rgba(29, 158, 117, 0.2);
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.status-pill::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ts-brand);
  box-shadow: 0 0 0 0 rgba(29, 158, 117, 0.4);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(29, 158, 117, 0.4); }
  100% { box-shadow: 0 0 0 12px rgba(29, 158, 117, 0); }
}

.moment {
  margin: var(--sp-9) auto;
  padding: var(--sp-7);
  background: var(--ts-surface);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--ts-brand);
  max-width: 760px;
}
.moment .eyebrow { margin-bottom: var(--sp-4); }
.moment blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.25rem, 1.6vw + 0.5rem, 1.75rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--ts-text-1);
}

.flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-7);
  margin-top: var(--sp-8);
}
@media (min-width: 768px) {
  .flow { grid-template-columns: repeat(3, 1fr); gap: var(--sp-7); }
}
.step .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 500;
  color: var(--ts-brand);
  line-height: 1;
  margin-bottom: var(--sp-4);
  display: block;
}
.step h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-3); }
.step p { font-size: var(--fs-body); color: var(--ts-text-2); max-width: 32ch; }

/* Early access */
.early-access { background: var(--ts-surface); }
.early-access-inner { max-width: var(--container-narrow); }
.early-access h2 { margin-bottom: var(--sp-5); }
.early-access > .container > .lede { margin-bottom: var(--sp-7); }

/* Style WPForms output to match the design */
.wpforms-container,
.wpforms-form {
  max-width: 520px !important;
  margin: 0 !important;
}
.wpforms-container input[type="email"],
.wpforms-container input[type="text"] {
  min-height: 52px !important;
  padding: 0 var(--sp-4) !important;
  font: inherit !important;
  font-size: var(--fs-body) !important;
  background: var(--ts-card) !important;
  border: 1px solid var(--ts-border-strong) !important;
  border-radius: var(--radius) !important;
  color: var(--ts-text-1) !important;
}
.wpforms-container input[type="email"]:focus {
  border-color: var(--ts-brand) !important;
  outline: 2px solid rgba(29, 158, 117, 0.25) !important;
}
.wpforms-container button[type="submit"],
.wpforms-container .wpforms-submit {
  min-height: 52px !important;
  padding: 0 var(--sp-6) !important;
  font: inherit !important;
  font-weight: 500 !important;
  font-size: var(--fs-body) !important;
  background: var(--ts-brand) !important;
  color: white !important;
  border: 1px solid var(--ts-brand) !important;
  border-radius: var(--radius) !important;
  cursor: pointer !important;
  transition: background 180ms ease !important;
}
.wpforms-container button[type="submit"]:hover {
  background: var(--ts-brand-dark) !important;
  border-color: var(--ts-brand-dark) !important;
}

.privacy-notice {
  margin: var(--sp-3) auto 0;
  font-size: var(--fs-small);
  color: var(--ts-text-2);
  line-height: 1.55;
  max-width: 60ch;
  text-align: center;
}
.privacy-notice a {
  color: var(--ts-text-1);
  border-bottom: 1px solid var(--ts-border-strong);
  transition: border-color 180ms ease;
}
.privacy-notice a:hover { border-bottom-color: var(--ts-text-1); }
.privacy-notice .ca-rights {
  display: block;
  margin-top: var(--sp-3);
  font-size: var(--fs-small);
  color: var(--ts-text-3);
}

/* Center heading groups (Contact + Early access) */
.contact > .container > .section-eyebrow,
.contact > .container > .section-title,
.contact > .container > .lede,
.early-access > .container > .section-eyebrow,
.early-access > .container > .section-title,
.early-access > .container > .lede {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Contact */
.contact h2 { margin-bottom: var(--sp-3); }
.contact > .container > .lede { margin-bottom: var(--sp-7); }
.contact-grid {
  display: grid; gap: var(--sp-5);
  grid-template-columns: 1fr;
  max-width: 400px;
  margin: 0 auto;
}
.contact-card {
  display: flex; flex-direction: column;
  padding: var(--sp-6);
  background: var(--ts-card);
  border: 1px solid var(--ts-border);
  border-radius: var(--radius-lg);
  transition: border-color 200ms ease, transform 200ms ease;
  min-height: 240px;
}
.contact-card:hover { border-color: var(--ts-border-strong); transform: translateY(-2px); }
.contact-card .eyebrow { margin-bottom: var(--sp-3); }
.contact-card h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-3); color: var(--ts-text-1); }
.contact-card p { font-size: var(--fs-small); color: var(--ts-text-2); flex-grow: 1; margin-bottom: var(--sp-5); }
.contact-card .arrow {
  font-size: var(--fs-small);
  color: var(--ts-brand-dark);
  font-weight: 500;
  transition: transform 200ms ease;
  display: inline-flex; align-items: center; gap: var(--sp-2);
}
.contact-card:hover .arrow { transform: translateX(4px); }

/* Footer */
.site-footer {
  background: var(--ts-text-1);
  color: rgba(250, 249, 246, 0.75);
  padding: var(--sp-9) 0 var(--sp-6);
  font-size: var(--fs-small);
}
.site-footer h4 {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 249, 246, 0.55);
  font-weight: 500;
  margin-bottom: var(--sp-4);
}
.site-footer p { color: rgba(250, 249, 246, 0.85); max-width: none; }
.site-footer a {
  color: rgba(250, 249, 246, 0.85);
  transition: color 180ms ease;
  display: inline-block;
  min-height: 32px;
  line-height: 32px;
}
.site-footer a:hover { color: var(--ts-surface); }

.footer-grid {
  display: grid;
  gap: var(--sp-7);
  grid-template-columns: 1fr;
  margin-bottom: var(--sp-8);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-7); }
}
.footer-brand p {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--fs-xl);
  font-style: italic;
  color: var(--ts-surface);
  max-width: 24ch;
}
.footer-stack a { display: block; }

.footer-bottom {
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(250, 249, 246, 0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: var(--sp-4);
  color: rgba(250, 249, 246, 0.55);
  font-size: var(--fs-micro);
}
.footer-bottom .legal-entity {
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.04em;
}

/* ─────────────────────────────────────────
   Generic page template (page.php)
   For privacy, terms, dmca, etc.
   ───────────────────────────────────────── */
.page-template {
  padding: var(--sp-10) 0 var(--sp-9);
}
.page-template .entry-header { margin-bottom: var(--sp-7); }
.page-template .entry-title {
  font-size: clamp(2rem, 3.2vw + 1rem, 3rem);
  max-width: 22ch;
}
.page-template .entry-content {
  max-width: 65ch;
  font-size: var(--fs-body);
  line-height: 1.7;
}
.page-template .entry-content h2 {
  font-size: var(--fs-xl);
  margin: var(--sp-7) 0 var(--sp-4);
}
.page-template .entry-content h3 {
  font-size: var(--fs-lg);
  margin: var(--sp-6) 0 var(--sp-3);
}
.page-template .entry-content p { margin-bottom: var(--sp-4); max-width: 65ch; }
.page-template .entry-content a {
  color: var(--ts-brand-dark);
  border-bottom: 1px solid var(--ts-border-strong);
}
.page-template .entry-content a:hover { border-bottom-color: var(--ts-brand-dark); }
.page-template .entry-content ul,
.page-template .entry-content ol { padding-left: var(--sp-5); margin-bottom: var(--sp-4); }
.page-template .entry-content li { margin-bottom: var(--sp-2); }
.page-template .entry-content table {
  width: 100%; border-collapse: collapse; margin: var(--sp-5) 0;
  font-size: var(--fs-small);
}
.page-template .entry-content th,
.page-template .entry-content td {
  padding: var(--sp-3); text-align: left;
  border-bottom: 1px solid var(--ts-border);
}
.page-template .entry-content th { font-weight: 600; background: var(--ts-card); }