/*
Theme Name: Absolute One
Theme URI: https://absoluteone.ai
Author: Absolute One Ltd
Description: Custom theme for Absolute One — a product-led company building software for the changing search landscape. Bold typographic layout, self-hosted Suisse Int'l, and a full scroll/hover motion system. Page text is editable under Appearance → Customize → Absolute One; the design stays locked in the theme.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: All rights reserved
Text Domain: absolute-one
Tags: business, one-column, custom-colors, custom-menu, editor-style, blog
*/

/* ===========================================================
   Absolute One — shared stylesheet
   Palette: black / white / grey, pink accent
   Typeface: Suisse Int'l (self-hosted, licensed) — falls back to
   Inter / system sans if the webfont fails to load
   =========================================================== */

@font-face { font-family: 'Suisse Int\'l'; font-style: normal; font-weight: 100; font-display: swap; src: url('fonts/suisse-intl-thin.woff2') format('woff2'); }
@font-face { font-family: 'Suisse Int\'l'; font-style: normal; font-weight: 200; font-display: swap; src: url('fonts/suisse-intl-ultralight.woff2') format('woff2'); }
@font-face { font-family: 'Suisse Int\'l'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/suisse-intl-light.woff2') format('woff2'); }
@font-face { font-family: 'Suisse Int\'l'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/suisse-intl-regular.woff2') format('woff2'); }
@font-face { font-family: 'Suisse Int\'l'; font-style: normal; font-weight: 450; font-display: swap; src: url('fonts/suisse-intl-book.woff2') format('woff2'); }
@font-face { font-family: 'Suisse Int\'l'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/suisse-intl-medium.woff2') format('woff2'); }
@font-face { font-family: 'Suisse Int\'l'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/suisse-intl-semibold.woff2') format('woff2'); }
@font-face { font-family: 'Suisse Int\'l'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/suisse-intl-bold.woff2') format('woff2'); }
@font-face { font-family: 'Suisse Int\'l'; font-style: normal; font-weight: 900; font-display: swap; src: url('fonts/suisse-intl-black.woff2') format('woff2'); }

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --grey-50: #fafafa;
  --grey-100: #f2f2f2;
  --grey-300: #dcdcdc;
  --grey-500: #8c8c8c;
  --grey-700: #4a4a4a;
  --grey-800: #232323;
  --accent: #b8194f;
  --accent-dim: #fbe3ec;
  --accent-text: #7d0f37;

  --font: 'Suisse Int\'l', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Suisse Int\'l', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  --container: 1180px;
  --gutter: 32px;
  --radius: 2px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

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

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grey-300);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.logo span { color: var(--accent); }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

nav.main-nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--grey-700);
  transition: color 0.15s ease;
  position: relative;
}

nav.main-nav a:hover,
nav.main-nav a.active { color: var(--black); }

nav.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -26px;
  height: 2px;
  background: var(--accent);
}

.nav-cta {
  border: 1px solid var(--black);
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
}

.nav-cta:hover { color: var(--white); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 22px; height: 2px; background: var(--black);
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 100px;
  border-bottom: 1px solid var(--grey-300);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 96px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.97;
  max-width: 1000px;
}

.hero p.lede {
  margin-top: 28px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--grey-700);
  max-width: 560px;
  line-height: 1.55;
}

.hero-actions {
  margin-top: 44px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

/* hover fill is handled in the motion system below */

.btn-ghost {
  color: var(--black);
  border-bottom: 1px solid var(--grey-500);
  padding: 14px 0;
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.trial-note {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--grey-500);
}

.trial-note::before {
  content: '✓ ';
  color: var(--accent);
}

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

.status-tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--grey-100);
  color: var(--grey-700);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Numbered sections ---------- */
.section {
  padding: 180px 0 100px;
  border-bottom: 1px solid var(--grey-300);
}

.section:last-of-type { border-bottom: none; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 64px;
}

.section-num {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.section-num::before { content: '— '; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.5vw, 92px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.96;
  text-transform: uppercase;
}

.section-kicker {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 14px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
}

.two-col p, .col p {
  color: var(--grey-700);
  font-size: 17px;
  line-height: 1.65;
  max-width: 620px;
}

.two-col p + p { margin-top: 20px; }

/* ---------- Product card ---------- */
.product-card {
  border: 1px solid var(--grey-300);
  border-radius: 4px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  transition: border-color 0.15s ease;
}

.product-card:hover { border-color: var(--black); }

.product-name {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.product-desc {
  color: var(--grey-700);
  font-size: 16px;
  max-width: 520px;
  line-height: 1.6;
}

.product-card .btn-ghost { white-space: nowrap; }

.coming-soon {
  margin-top: 24px;
  padding: 40px 48px;
  border: 1px dashed var(--grey-300);
  border-radius: 4px;
  color: var(--grey-500);
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* ---------- Founder ---------- */
.founder {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.founder-avatar {
  width: 100%;
  aspect-ratio: 1;
  background: var(--grey-100);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 600;
  color: var(--grey-500);
}

.founder-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.founder-role {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

/* ---------- Roadmap list ---------- */
.roadmap {
  list-style: none;
  margin-top: 24px;
}

.roadmap li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--grey-300);
  font-size: 16px;
}

.roadmap li:last-child { border-bottom: 1px solid var(--grey-300); }

.roadmap .tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--grey-500);
  align-self: start;
  padding-top: 3px;
}

.roadmap .tag.now { color: var(--accent); }

.roadmap strong { display: block; margin-bottom: 4px; }
.roadmap span.desc { color: var(--grey-700); font-size: 15px; }

/* ---------- Contact ---------- */
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-link {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  display: inline-block;
  width: fit-content;
  border-bottom: 2px solid transparent;
}

.contact-link:hover { color: var(--accent); border-color: var(--accent); }

.contact-meta {
  color: var(--grey-500);
  font-size: 14px;
}

.contact-meta a { color: var(--grey-700); border-bottom: 1px solid var(--grey-300); }
.contact-meta a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Footer ---------- */
footer.site-footer {
  padding: 48px 0;
  background: var(--grey-50);
  border-top: 1px solid var(--grey-300);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal {
  font-size: 13px;
  color: var(--grey-500);
  line-height: 1.7;
}

.footer-legal strong { color: var(--grey-700); font-weight: 600; }

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--grey-500);
}

.footer-links a:hover { color: var(--accent); }

/* ---------- Section variants: grey rhythm + black bands ---------- */
.section-alt {
  background: var(--grey-50);
}

.section-dark {
  background: var(--black);
  border-bottom: none;
  color: var(--white);
}

.section-dark .eyebrow { color: var(--accent); }
.section-dark .eyebrow::before { background: var(--accent); }
.section-dark h1,
.section-dark .section-title { color: var(--white); }
.section-dark p.lede,
.section-dark .contact-meta { color: var(--grey-300); }
.section-dark .contact-link { color: var(--white); }
.section-dark .contact-link:hover { color: var(--accent); border-color: var(--accent); }
.section-dark .contact-meta a { color: var(--grey-300); border-color: var(--grey-700); }
.section-dark .contact-meta a:hover { color: var(--accent); border-color: var(--accent); }
.section-dark .btn-primary { background: var(--accent); color: var(--black); }
.section-dark .btn-primary:hover { background: var(--white); }
.section-dark .btn-ghost { color: var(--white); border-color: var(--grey-700); }
.section-dark .btn-ghost:hover { color: var(--accent); border-color: var(--accent); }

.placeholder {
  background: var(--accent-dim);
  color: var(--accent-text);
  padding: 1px 5px;
  border-radius: 2px;
  font-size: inherit;
  font-family: 'SF Mono', 'Courier New', monospace;
  font-size: 0.92em;
}

/* ---------- Legal pages ---------- */
.legal-body {
  padding: 100px 0 120px;
  max-width: 760px;
}

.legal-body h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 44px 0 14px;
  letter-spacing: -0.01em;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p {
  color: var(--grey-700);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-updated {
  color: var(--grey-500);
  font-size: 13px;
  margin-bottom: 40px;
  display: block;
}

.draft-notice {
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--accent-text);
  margin-bottom: 48px;
  border-radius: 2px;
}

/* ===========================================================
   MOTION SYSTEM
   Scroll reveals, masked headline lines, sweep hovers,
   scroll-reactive marquee, cursor ring, page transitions.
   =========================================================== */

/* ---------- Easing tokens ---------- */
:root {
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---------- Scroll reveals ----------
   Scoped to html.js so content is never stranded invisible
   if JavaScript fails to run. */
html.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-quart), transform 1s var(--ease-expo);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger for grouped children */
.reveal-group > :nth-child(1) { --reveal-delay: 0s; }
.reveal-group > :nth-child(2) { --reveal-delay: 0.08s; }
.reveal-group > :nth-child(3) { --reveal-delay: 0.16s; }
.reveal-group > :nth-child(4) { --reveal-delay: 0.26s; }
.reveal-group > :nth-child(5) { --reveal-delay: 0.34s; }

/* ---------- Masked line-by-line headline reveal ---------- */
.split-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.09em;
  margin-bottom: -0.09em;
}

.split-line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-expo);
  transition-delay: calc(var(--line-delay, 0s) + var(--reveal-delay, 0s));
  will-change: transform;
}

.split.is-visible .split-line > span { transform: translateY(0); }

.no-anim, .no-anim * { transition: none !important; }

/* ---------- Section rules draw in ---------- */
.section {
  position: relative;
  border-bottom: none;
}

.section::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--grey-300);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.5s var(--ease-expo);
}

html:not(.js) .section::after,
.section.rule-in::after { transform: scaleX(1); }

.section:last-of-type::after { display: none; }

.rule-sentinel { display: block; height: 1px; }

/* ---------- Header: hide on scroll down, scroll progress ---------- */
.site-header { transition: transform 0.55s var(--ease-expo); }
.site-header.nav-hidden { transform: translateY(-100%); }

.scroll-progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px; width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* ---------- Nav link underline sweep ---------- */
nav.main-nav a:not(.nav-cta)::before {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.5s var(--ease-expo);
}

nav.main-nav a:not(.nav-cta):hover::before {
  transform: scaleX(1);
  transform-origin: left center;
}

/* ---------- Buttons: fill rises from the bottom ---------- */
.btn {
  transition: color 0.4s var(--ease-expo),
              background-position 0.55s var(--ease-expo),
              transform 0.4s var(--ease-expo);
}

.btn-primary {
  background-color: var(--black);
  background-image: linear-gradient(to top, var(--accent) 50%, transparent 50%);
  background-size: 100% 220%;
  background-position: 0% 0%;
  background-repeat: no-repeat;
}

.btn-primary:hover { background-position: 0% 100%; }

.nav-cta {
  background-image: linear-gradient(to top, var(--black) 50%, transparent 50%);
  background-size: 100% 220%;
  background-position: 0% 0%;
  background-repeat: no-repeat;
  transition: background-position 0.5s var(--ease-expo), color 0.35s var(--ease-quart);
}

.nav-cta:hover { background-position: 0% 100%; }

/* ---------- Ghost link sweep ---------- */
.btn-ghost { position: relative; }

.btn-ghost::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.55s var(--ease-expo);
}

.btn-ghost:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* ---------- Arrows slide on hover ---------- */
.arrow {
  display: inline-block;
  transition: transform 0.5s var(--ease-expo);
}

.btn:hover .arrow,
.btn-ghost:hover .arrow,
.product-card:hover .arrow { transform: translateX(6px); }

/* ---------- Contact link ---------- */
.contact-link { transition: color 0.35s var(--ease-quart), border-color 0.45s var(--ease-expo); }

/* ---------- Hover interactions ---------- */
.product-card {
  transition: border-color 0.35s var(--ease-quart),
              transform 0.5s var(--ease-expo),
              box-shadow 0.5s var(--ease-expo),
              opacity 0.9s var(--ease-quart);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px -24px rgba(10,10,10,0.18);
}

.roadmap li {
  transition: background 0.35s var(--ease-quart),
              padding-left 0.45s var(--ease-expo),
              opacity 0.9s var(--ease-quart),
              transform 1s var(--ease-expo);
  transition-delay: 0s, 0s, var(--reveal-delay, 0s), var(--reveal-delay, 0s);
}

.roadmap li:hover { background: var(--grey-50); padding-left: 14px; }

.founder-avatar { transition: transform 0.6s var(--ease-expo); }
.founder:hover .founder-avatar { transform: scale(1.04); }

/* ---------- Cursor ring (fine pointers only) ---------- */
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 26px; height: 26px;
  margin: -13px 0 0 -13px;
  border: 1px solid #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  mix-blend-mode: difference;
  transition: opacity 0.35s ease,
              width 0.4s var(--ease-expo),
              height 0.4s var(--ease-expo),
              margin 0.4s var(--ease-expo),
              background-color 0.4s ease;
  will-change: transform;
}

.cursor-ring.on { opacity: 0.85; }

.cursor-ring.hot {
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  background: rgba(255,255,255,0.16);
}

/* ---------- Page transition ---------- */
.page-fade {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  pointer-events: none;
  transform: translateY(100%);
  visibility: hidden;   /* strictly inert unless a transition is running */
  will-change: transform;
}

.page-fade.at-cover,
.page-fade.cover,
.page-fade.uncover { visibility: visible; }

.page-fade.at-cover { transform: translateY(0); transition: none; }
.page-fade.cover { transform: translateY(0); transition: transform 0.5s var(--ease-expo); }
.page-fade.uncover { transform: translateY(-100%); transition: transform 0.65s var(--ease-expo); }

/* ---------- Marquee accent strip ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--grey-300);
  border-bottom: 1px solid var(--grey-300);
  padding: 20px 0;
  background: var(--grey-50);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 20px;
  white-space: nowrap;
  animation: marquee-scroll 26s linear infinite;
}

/* once JS drives it, the keyframe steps aside */
.marquee.js-driven .marquee-track {
  animation: none;
  will-change: transform;
}

.marquee-track span {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey-700);
}

.marquee-track .dot { color: var(--accent); font-weight: 700; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  .split-line > span { transform: none !important; }
  .section::after { transform: scaleX(1) !important; }
  .cursor-ring, .page-fade { display: none !important; }
  .product-card:hover, .founder:hover .founder-avatar { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .marquee-track { animation-duration: 16s; }
  nav.main-nav { display: none; }
  .menu-toggle { display: flex; }
  .two-col, .founder { grid-template-columns: 1fr; gap: 32px; }
  .product-card { grid-template-columns: 1fr; text-align: left; }
  .footer-inner { flex-direction: column; }
  .roadmap li { grid-template-columns: 70px 1fr; }
}

@media (max-width: 860px) {
  nav.main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--white);
    padding: 24px var(--gutter) 32px;
    border-bottom: 1px solid var(--grey-300);
    gap: 22px;
  }
}

/* ===========================================================
   WORDPRESS INTEGRATION
   =========================================================== */

/* ---------- Nav menu output from wp_nav_menu ---------- */
nav.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0;
}

nav.main-nav li { margin: 0; }

nav.main-nav .current-menu-item > a,
nav.main-nav .current_page_item > a,
nav.main-nav .current-menu-parent > a { color: var(--black); }

nav.main-nav .current-menu-item > a::after,
nav.main-nav .current_page_item > a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -26px;
  height: 2px;
  background: var(--accent);
}

/* ---------- Accessibility ---------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 12px; left: 12px;
  width: auto; height: auto;
  clip: auto;
  z-index: 10000;
  background: var(--black);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
}

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

/* ---------- Core alignment / media classes ---------- */
.alignleft { float: left; margin: 6px 28px 20px 0; }
.alignright { float: right; margin: 6px 0 20px 28px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { margin-top: 40px; margin-bottom: 40px; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption {
  font-size: 13px;
  color: var(--grey-500);
  margin-top: 10px;
}
.sticky .post-title::after {
  content: 'Pinned';
  display: inline-block;
  margin-left: 12px;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--accent-dim);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ===========================================================
   BLOG
   =========================================================== */
.post-list {
  display: grid;
  gap: 0;
  margin-top: 24px;
}

.post-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--grey-300);
  transition: background 0.35s var(--ease-quart),
              padding-left 0.45s var(--ease-expo),
              opacity 0.9s var(--ease-quart),
              transform 1s var(--ease-expo);
  transition-delay: 0s, 0s, var(--reveal-delay, 0s), var(--reveal-delay, 0s);
}

.post-card:last-child { border-bottom: 1px solid var(--grey-300); }
.post-card:hover { background: var(--grey-50); padding-left: 14px; }

.post-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--grey-500);
}

.post-meta .cat { color: var(--accent); display: block; margin-bottom: 6px; }

.post-card .post-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 12px;
}

.post-card .post-title a:hover { color: var(--accent); }

.post-excerpt {
  color: var(--grey-700);
  font-size: 16px;
  line-height: 1.65;
  max-width: 620px;
}

.post-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Single post ---------- */
.post-hero { padding: 64px 0 56px; border-bottom: 1px solid var(--grey-300); }

.post-hero h1 {
  font-size: clamp(34px, 5vw, 68px);
  max-width: 900px;
}

.post-hero .post-meta { margin-bottom: 26px; }

.post-body {
  padding: 72px 0 100px;
  max-width: 760px;
}

.post-body p,
.post-body ul,
.post-body ol {
  color: var(--grey-700);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 22px;
}

.post-body ul, .post-body ol { padding-left: 22px; }
.post-body li { margin-bottom: 8px; }

.post-body h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 52px 0 18px;
  color: var(--black);
}

.post-body h3 {
  font-size: 21px;
  font-weight: 600;
  margin: 38px 0 14px;
  color: var(--black);
}

.post-body a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-dim);
  transition: border-color 0.3s var(--ease-quart);
}

.post-body a:hover { border-color: var(--accent); }

.post-body img,
.post-body figure { margin: 36px 0; border-radius: 4px; }

.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 26px;
  margin: 36px 0;
  font-size: 20px;
  line-height: 1.55;
  color: var(--black);
}

.post-body blockquote p:last-child { margin-bottom: 0; }

.post-body code {
  font-family: 'SF Mono', 'Courier New', monospace;
  font-size: 0.9em;
  background: var(--grey-100);
  padding: 2px 6px;
  border-radius: 2px;
}

.post-body pre {
  background: var(--grey-50);
  border: 1px solid var(--grey-300);
  border-radius: 4px;
  padding: 22px;
  overflow-x: auto;
  margin-bottom: 24px;
}

.post-body pre code { background: none; padding: 0; }

.post-tags {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--grey-300);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.post-tags a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey-700);
  background: var(--grey-100);
  padding: 5px 11px;
  border-radius: 20px;
  transition: background 0.3s var(--ease-quart), color 0.3s var(--ease-quart);
}

.post-tags a:hover { background: var(--accent-dim); color: var(--accent-text); }

/* ---------- Post navigation & pagination ---------- */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-top: 1px solid var(--grey-300);
  padding: 40px 0 80px;
}

.post-nav a { display: block; }
.post-nav .label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}
.post-nav .title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.post-nav .next { text-align: right; }
.post-nav a:hover .title { color: var(--accent); }

.pagination {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 56px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.3s var(--ease-quart), color 0.3s var(--ease-quart);
}

.pagination .page-numbers:hover { border-color: var(--black); }
.pagination .page-numbers.current { background: var(--black); color: var(--white); border-color: var(--black); }

/* ---------- Search form ---------- */
.search-form { display: flex; gap: 10px; max-width: 440px; margin-top: 28px; }

.search-form input[type="search"] {
  flex: 1;
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
}

.search-form input[type="search"]:focus { outline: none; border-color: var(--black); }

.search-form button {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border: none;
  border-radius: var(--radius);
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  transition: background 0.3s var(--ease-quart);
}

.search-form button:hover { background: var(--accent); }

/* ---------- Comments ---------- */
.comments-area { padding: 0 0 90px; max-width: 760px; }

.comments-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.comment-list { list-style: none; margin: 0 0 44px; padding: 0; }
.comment-list ol.children { list-style: none; padding-left: 28px; }

.comment-body {
  padding: 22px 0;
  border-top: 1px solid var(--grey-300);
}

.comment-author { font-weight: 600; font-size: 15px; }
.comment-author img { display: inline-block; vertical-align: middle; margin-right: 10px; border-radius: 50%; }
.comment-metadata { font-size: 12px; color: var(--grey-500); margin: 4px 0 12px; }
.comment-content p { color: var(--grey-700); font-size: 15px; line-height: 1.7; margin-bottom: 12px; }
.reply a { font-size: 13px; font-weight: 500; color: var(--accent); }

.comment-respond { border-top: 1px solid var(--grey-300); padding-top: 32px; }

.comment-reply-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.comment-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 7px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  margin-bottom: 18px;
}

.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--black); }

.comment-form .submit {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 26px;
  border: none;
  border-radius: var(--radius);
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  transition: background 0.3s var(--ease-quart);
}

.comment-form .submit:hover { background: var(--accent); }

/* ---------- Empty / 404 states ---------- */
.state-block { padding: 120px 0 140px; }
.state-block p { color: var(--grey-700); font-size: 17px; max-width: 560px; margin-top: 20px; }

/* ---------- Blog responsive ---------- */
@media (max-width: 860px) {
  .post-card { grid-template-columns: 1fr; gap: 14px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
}

/* ---------- Footer link list from wp_nav_menu ---------- */
.footer-links ul {
  list-style: none;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.footer-links li { margin: 0; }

/* ---------- Founder photo variant (featured image on the About page) ---------- */
.founder-avatar--photo { padding: 0; overflow: hidden; background: var(--grey-100); }
.founder-avatar--photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }

/* ---------- Page links (multi-page posts) ---------- */
.page-links { margin-top: 28px; font-size: 14px; color: var(--grey-500); }
.page-links a { color: var(--accent); }

/* ---------- Listing pages sit closer to their hero ---------- */
.section--tight { padding-top: 80px; }


/* ---------- Several product cards stacked ---------- */
.product-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
