/* ─────────────────────────────────────────────────────────────
   OTTY LANDING — SITEWIDE BASE (v2.0.0)
   This sheet is loaded on EVERY page. It carries only the shared
   surface: tokens, reset, layout primitives, the nav, the footer,
   the reveal helper, and the doc-page styles. The homepage's own
   sections live in homepage.css, enqueued on the front page only.

   CONTRACT: blog-index.css aliases the :root tokens below with no
   fallbacks (--cream, --coral, --coral-deep, --ink, --ink-2,
   --ink-soft, --rule, --sans, --serif). Never rename or remove them.
   ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #fff4f4;
  --cream-2: #ffecec;
  --cream-3: #ffe0e0;
  --coral: #a92e28;
  --coral-deep: #8a1f1a;
  --blue: #006287;
  --yellow: #6d5a00;
  --yellow-warm: #d4a017;
  --ink: #2a0b10;
  --ink-2: #4d2128;
  --ink-soft: #824c53;
  --rule: #e9c5c8;

  --serif: 'Plus Jakarta Sans', sans-serif; /* display */
  --sans: 'Be Vietnam Pro', sans-serif;     /* body */

  /* typographic scale, 6 deliberate steps */
  --t-display: clamp(4.5rem, 13vw, 11.5rem);
  --t-h1:      clamp(2.25rem, 5vw, 4rem);
  --t-h2:      clamp(1.5rem, 2.4vw, 2.25rem);
  --t-lead:    clamp(1.125rem, 1.4vw, 1.375rem);
  --t-body:    1.0625rem;
  --t-small:   0.8125rem;
  --t-eyebrow: 0.6875rem;

  --col-gutter: clamp(16px, 2vw, 28px);
  --page-pad:   clamp(20px, 5.5vw, 80px);
  --page-max:   1920px;
  --r-xl: 3rem;
  --r-lg: 2rem;
  --r-md: 1.25rem;

  /* Redesign palette additions (direction 1a) */
  --espresso: #2a0b10;
  --espresso-2: #3d1219;
  --body-text: #5d4045;
  --coral-rule: rgba(169, 46, 40, 0.14);
  --coral-rule-2: rgba(169, 46, 40, 0.16);
  --dark-rule: rgba(222, 156, 163, 0.25);
  --dark-body: #e3bfc3;
  --dark-muted: #a77178;
  --dark-link: #de9ca3;

  /* Spacing rhythm — every main section draws from these. */
  --sec-pad-y: 56px;
  --sec-pad-x: 80px;
  --sec-gap: 0px;
  --sec-band-y: 72px; /* tinted bands: margin 0, deeper padding */
  --sec-col-gap: 56px;
  --content-max: 1824px;
}

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: var(--t-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

/* paper grain — subtle SVG noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.2  0 0 0 0 0.22  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

::selection { background: var(--coral); color: var(--cream); }

/* ─────────────────────────────────────────────────────────────
   LAYOUT PRIMITIVES
   ───────────────────────────────────────────────────────────── */
/* div/main only: WordPress puts class="page" on the BODY of every Page,
   and an unscoped .page rule padded the whole site (the inset-bands bug). */
div.page, main.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
  position: relative;
  z-index: 2;
}
.full-bleed { width: 100%; position: relative; z-index: 2; }

/* Utility */
.eyebrow {
  font-family: var(--sans);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--coral);
}
.eyebrow .dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--coral);
  margin: 0 0.7em;
  vertical-align: middle;
}
.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}
.ital { font-style: italic; }
.blue-ink { color: var(--blue); }
.coral-ink { color: var(--coral); }
.yellow-ink { color: var(--yellow); }

/* ─────────────────────────────────────────────────────────────
   NAV — cream header (direction 1a, sitewide)
   ───────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 244, 244, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--coral-rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  transition: padding 0.2s ease;
}
.nav--min .nav-inner { padding: 10px 0; }
.wordmark {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.5rem;
  transition: font-size 0.2s ease;
  letter-spacing: -0.03em;
  color: var(--coral);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 38px;
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav--min .wordmark { font-size: 1.25rem; }
.nav--min .nav-inner .btn-coral { padding: 9px 18px; font-size: 0.875rem; }
.nav-links a { color: var(--ink-soft); text-decoration: none; }
.nav-links a:hover { color: var(--coral); }
@media (max-width: 1023px) {
  .nav-links { display: none; }
}

/* CTA pills — one component, sitewide */
.btn-coral {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--coral);
  color: var(--cream);
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-coral:hover { background: var(--coral-deep); transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 12px 23px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

/* ─────────────────────────────────────────────────────────────
   FOOTER — espresso close (direction 1a, sitewide)
   ───────────────────────────────────────────────────────────── */
footer.otty-foot {
  background: var(--espresso);
  color: var(--cream);
  padding: var(--sec-band-y) 0 36px;
  position: relative;
  z-index: 2;
}
.foot-close {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--dark-rule);
}
.foot-close h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.foot-close p {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--dark-body);
  max-width: 560px;
  margin-bottom: 0;
}
.btn-cream {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  color: var(--coral);
  padding: 15px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.btn-cream:hover { transform: translateY(-1px); }
.foot-close .btn-cream { flex: none; }

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 40px 0 28px;
}
.foot-word {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.5625rem;
  line-height: 1.1;
  margin-bottom: 14px;
}
.foot-word .ital { color: var(--dark-link); }
.foot-small {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--dark-body);
  max-width: 320px;
}
.foot-col h3 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark-muted);
  margin-bottom: 16px;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 0.9375rem; }
.foot-col ul a { color: var(--dark-body); text-decoration: none; }
.foot-col ul a:hover { color: var(--cream); }

.news { display: flex; flex-direction: column; gap: 10px; max-width: 230px; }
.news input {
  border: 1px solid rgba(222, 156, 163, 0.3);
  background: rgba(255, 244, 244, 0.06);
  border-radius: 999px;
  padding: 13px 18px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--cream);
}
.news input::placeholder { color: var(--dark-muted); }
.news button {
  border: none;
  background: var(--cream);
  color: var(--coral);
  border-radius: 999px;
  padding: 13px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}
.foot-socials { display: flex; gap: 10px; margin-top: 20px; }
.foot-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(222, 156, 163, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-link);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.foot-socials a:hover { color: var(--cream); border-color: var(--cream); }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid rgba(222, 156, 163, 0.18);
  font-size: 0.875rem;
  color: var(--dark-muted);
}
.foot-bottom a { color: var(--dark-link); text-decoration: none; }

@media (max-width: 1023px) {
  .foot-close { flex-direction: column; align-items: flex-start; gap: 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  footer.otty-foot { padding-top: 72px; }
  .foot-grid { grid-template-columns: 1fr; gap: 36px; padding: 44px 0 32px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ─────────────────────────────────────────────────────────────
   SCROLL REVEAL (subtle, once)
   ───────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.on { opacity: 1; transform: none; }

/* Respect the user's motion preference. */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { scroll-behavior: auto !important; }
}

/* ─────────────────────────────────────────────────────────────
   DOC PAGES (Privacy, Terms, Support, and any other Page that
   isn't the static front page).
   ───────────────────────────────────────────────────────────── */
.otty-doc {
  background: var(--cream);
  padding: clamp(48px, 8vw, 96px) var(--page-pad);
  min-height: 60vh;
  position: relative;
  z-index: 2;
}
.otty-doc-inner { max-width: 720px; margin: 0 auto; }
.otty-doc-back {
  display: inline-block;
  font-family: var(--sans);
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  text-decoration: none;
  margin-bottom: 32px;
}
.otty-doc-back:hover { color: var(--coral-deep); }
.otty-doc-head {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 36px;
}
.otty-doc-head h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.otty-doc-date {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: var(--t-small);
  color: var(--ink-soft);
  font-style: italic;
}
.otty-doc-body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.otty-doc-body h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 2em 0 0.6em;
}
.otty-doc-body h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 1.6em 0 0.4em;
}
.otty-doc-body p { margin-bottom: 1em; }
.otty-doc-body ul,
.otty-doc-body ol { margin: 0 0 1em 1.4em; }
.otty-doc-body li { margin-bottom: 0.4em; }
.otty-doc-body a {
  color: var(--coral);
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}
.otty-doc-body a:hover { color: var(--coral-deep); }
.otty-doc-body strong { color: var(--ink); font-weight: 700; }
.otty-doc-body em { font-style: italic; }
.otty-doc-body hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }
.otty-doc-body blockquote {
  border-left: 3px solid var(--coral);
  margin: 1.4em 0;
  padding: 0.1em 0 0.1em 1.1em;
  font-style: italic;
  color: var(--ink);
}
.otty-doc-body .plain-english {
  background: var(--cream-2);
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin: 0 0 28px;
  font-style: italic;
  color: var(--ink);
}
.otty-doc-body .plain-english strong {
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--coral);
  display: block;
  margin-bottom: 6px;
}

/* Jetpack contact form (Support page) — match the Tactile Joy system. */
.otty-doc-body .wp-block-jetpack-contact-form {
  background: var(--cream-2);
  border-radius: var(--r-md);
  padding: 24px 26px;
  margin: 0 0 28px;
}
.otty-doc-body .wp-block-jetpack-contact-form label {
  display: block;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.otty-doc-body .wp-block-jetpack-contact-form input[type="text"],
.otty-doc-body .wp-block-jetpack-contact-form input[type="email"],
.otty-doc-body .wp-block-jetpack-contact-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 12px 16px;
  margin-bottom: 18px;
}
.otty-doc-body .wp-block-jetpack-contact-form input:focus,
.otty-doc-body .wp-block-jetpack-contact-form textarea:focus {
  outline: 2px solid var(--coral);
  outline-offset: 1px;
  border-color: var(--coral);
}
.otty-doc-body .wp-block-jetpack-contact-form button[type="submit"],
.otty-doc-body .wp-block-jetpack-contact-form .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--coral);
  color: var(--cream);
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.otty-doc-body .wp-block-jetpack-contact-form button[type="submit"]:hover,
.otty-doc-body .wp-block-jetpack-contact-form .wp-block-button__link:hover {
  background: var(--coral-deep);
  transform: translateY(-1px);
}
