/*
Theme Name: Openhand Readings
Theme URI: https://coleenhodges.com/
Author: Openhand Readings
Description: Own block theme for coleenhodges.com — "Ledger" design system: bone-paper background, mist grey-green ink, single oxblood accent carried on a heavy top border (never a shadow), zero corner radius everywhere, Crimson Pro/Archivo type pairing. Genuinely distinct from every other identity in this network.
Requires at least: 6.5
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: openhand-readings
*/

/* Fallback rules for contexts that don't read theme.json-generated CSS
   (defensive only — WordPress generates the real presets from theme.json). */
body {
  background-color: #F4F1E9;
  color: #24261F;
}
a { text-decoration: none; }
.legal-links-row a { text-decoration: underline; }

html {
  scroll-behavior: smooth;
}

body {
  text-rendering: geometricPrecision;
}

header .wp-block-group.alignfull {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

header .wp-block-navigation a,
header .wp-block-site-title a {
  transition: color 180ms ease;
}

header .wp-block-navigation a:hover {
  color: var(--wp--preset--color--tertiary) !important;
}

/* Zero radius everywhere, heavy oxblood top border in place of a shadow. */
.wp-block-button__link {
  border-radius: 0 !important;
  border-top: 5px solid var(--wp--preset--color--tertiary) !important;
}
.oh-card {
  border-radius: 0 !important;
  border-top: 5px solid var(--wp--preset--color--tertiary) !important;
  border-left: 1px solid var(--wp--preset--color--mono-3);
  border-right: 1px solid var(--wp--preset--color--mono-3);
  border-bottom: 1px solid var(--wp--preset--color--mono-3);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}
.oh-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--wp--preset--color--tertiary) 42%, var(--wp--preset--color--mono-3));
}
.oh-band {
  border-top: 6px solid var(--wp--preset--color--tertiary) !important;
}
.wp-block-group.oh-footer {
  border-top: 6px solid var(--wp--preset--color--tertiary) !important;
}
.oh-logo-mark {
  display: inline-block;
  width: 60px;
  height: 2px;
  background: var(--wp--preset--color--mono-1);
  position: relative;
  margin: 0 8px 6px 0;
  vertical-align: middle;
}
.oh-logo-mark::after {
  content: "";
  position: absolute;
  left: 26px;
  top: -2px;
  width: 6px;
  height: 6px;
  background: var(--wp--preset--color--tertiary);
}

.oh-hero {
  background:
    linear-gradient(90deg, rgba(244, 241, 233, 0.94) 0%, rgba(244, 241, 233, 0.82) 42%, rgba(244, 241, 233, 0.18) 100%),
    linear-gradient(180deg, #ffffff 0%, #f4f1e9 100%);
  border-bottom: 1px solid var(--wp--preset--color--mono-3);
  overflow: hidden;
}

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

.oh-hero h1 {
  max-width: 11ch;
  letter-spacing: 0;
}

.oh-hero .wp-block-buttons {
  gap: 12px;
}

.oh-hero-figure {
  margin: 0;
  position: relative;
}

.oh-hero-figure::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--wp--preset--color--mono-3);
  pointer-events: none;
}

.oh-hero-figure img {
  aspect-ratio: 16 / 10;
  border-top: 6px solid var(--wp--preset--color--tertiary);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.oh-trust-strip {
  border-top: 1px solid var(--wp--preset--color--mono-3);
  margin-top: 28px;
  padding-top: 18px;
}

.oh-trust-strip p {
  margin: 0;
}

.oh-mini-note {
  background: #ffffff;
  border: 1px solid var(--wp--preset--color--mono-3);
  border-top: 5px solid var(--wp--preset--color--tertiary);
  margin-top: -58px;
  padding: 20px;
  position: relative;
  width: min(320px, 82%);
  z-index: 2;
}

@media (min-width: 920px) {
  .oh-hero {
    align-items: center;
    column-gap: clamp(34px, 5vw, 74px);
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  }

  .oh-hero > :not(.oh-hero-figure):not(.oh-trust-strip) {
    grid-column: 1;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 620px;
  }

  .oh-hero > .oh-hero-figure {
    grid-column: 2;
    grid-row: 1 / span 6;
    margin-top: 0;
  }

  .oh-hero > .oh-trust-strip {
    grid-column: 1 / -1;
  }

  .oh-hero .has-text-align-center {
    text-align: left;
  }

  .oh-hero .wp-block-buttons {
    justify-content: flex-start;
  }
}

.oh-step-grid .wp-block-column {
  border-left: 1px solid var(--wp--preset--color--mono-3);
  padding-left: 20px;
}

.oh-step-grid h3 {
  line-height: 0.9;
}

.wp-block-details {
  background: #ffffff;
  border: 1px solid var(--wp--preset--color--mono-3);
  border-top: 4px solid var(--wp--preset--color--tertiary);
  margin-block-start: 14px;
  padding: 18px 22px;
}

.wp-block-details summary {
  color: var(--wp--preset--color--mono-1);
  font-family: var(--wp--preset--font-family--fontprimary);
  font-size: var(--wp--preset--font-size--superbfont-small);
  font-weight: 600;
}

.wp-block-details p {
  margin-bottom: 0;
}

@media (max-width: 920px) {
  .oh-hero .wp-block-columns {
    gap: 34px;
  }

  .oh-hero h1 {
    max-width: 12ch;
  }

  header .wp-block-columns {
    gap: 14px;
  }
}

@media (max-width: 781px) {
  header .wp-block-columns.is-not-stacked-on-mobile {
    flex-wrap: wrap !important;
  }

  header .wp-block-column {
    flex-basis: 100% !important;
  }

  header .wp-block-navigation,
  header .wp-block-buttons {
    justify-content: flex-start !important;
  }

  .oh-hero {
    background: linear-gradient(180deg, #ffffff 0%, #f4f1e9 100%);
  }

  .oh-hero h1 {
    max-width: 100%;
  }

  .oh-hero-copy .has-text-align-left {
    text-align: left;
  }

  .oh-mini-note {
    margin-top: 12px;
    width: auto;
  }

  .oh-card:hover {
    transform: none;
  }
}

@media (max-width: 520px) {
  .wp-block-button__link {
    width: 100%;
  }

  .oh-hero .wp-block-buttons,
  .oh-hero .wp-block-button {
    width: 100%;
  }

  .oh-hero-figure::before {
    display: none;
  }

  .wp-block-details {
    padding: 16px;
  }
}
