/* Life Simplified — "Open Water" design (Nov 21, 2026).
   Built from Design Scout's mockup. Cover file: images/cover.jpg (keep this path).
   css/styles.css is the previous design; it stays on the server because
   pi-stats.php / pi-stats.html still use it. index.html loads only this file. */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --harbor: #1f2c38;
  --harbor-deep: #17232d;
  --harbor-mid: #2b3c4a;
  --water: #3e4e5d;
  --ink: #1c2a36;
  --slate: #475665;
  --muted: #5a6b78;
  --tide: #4f6272;
  --mist: #e8eef1;
  --cloud: #d5dce1;
  --paper: #f4efe4;
  --paper-deep: #ebe4d6;
  --foam: #ffffff;
  --gold: #9f815e;
  --gold-deep: #7a6144;
  --gold-deeper: #6b553c;
  --line: #c5cdd3;

  --display: "Outfit", "Segoe UI", "Helvetica Neue", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;

  --wrap: min(1120px, calc(100% - 2 * var(--gutter)));
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --measure: 40rem;
  --header-h: 4.25rem;
  --radius: 2px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  font-optical-sizing: auto;
}

img { max-width: 100%; height: auto; display: block; }
cite { font-style: italic; }

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 1000;
  background: var(--foam);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.6rem 0.9rem;
}
.skip:focus { top: 0.5rem; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--harbor-deep) 92%, transparent);
  backdrop-filter: blur(12px);
  color: var(--paper);
  border-bottom: 1px solid color-mix(in srgb, var(--cloud) 16%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  line-height: 1.1;
}
.brand-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.brand-author {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cloud);
  margin-top: 0.15rem;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.primary-menu a {
  color: var(--paper);
  text-decoration: none;
  padding: 0.25rem 0;
}
.primary-menu a:hover { color: var(--gold); }
.nav-cta {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.4rem 0.85rem !important;
  border: 1px solid color-mix(in srgb, var(--gold) 70%, var(--paper));
  border-radius: 999px;
  color: var(--paper) !important;
}
.nav-cta:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: var(--foam) !important;
}

.nav-toggle {
  display: none;
  font-family: var(--sans);
  font-size: 0.95rem;
  background: transparent;
  color: var(--paper);
  border: 1px solid color-mix(in srgb, var(--cloud) 35%, transparent);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
}
.nav-toggle .label-close { display: none; }
.nav-toggle[aria-expanded="true"] .label-open { display: none; }
.nav-toggle[aria-expanded="true"] .label-close { display: inline; }
.primary-menu a[aria-current="true"]:not(.nav-cta) { color: #c4a06a; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 600px at 80% 20%, color-mix(in srgb, var(--water) 55%, transparent), transparent 60%),
    linear-gradient(180deg, var(--harbor) 0%, var(--harbor-deep) 100%);
  color: var(--paper);
  padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep); /* 5.06:1 on paper, 4.95:1 on mist; raw --gold fails at 3.17:1 */
  margin: 0 0 0.85rem;
}

.hero .eyebrow { color: #c4a06a; } /* 5.82:1 on harbor */

#book-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(3rem, 7.2vw, 5.75rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1.15rem;
  color: var(--paper);
}
.title-line { display: block; }

.dek {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.5;
  max-width: 34rem;
  margin: 0 0 1.75rem;
  color: var(--mist);
}

/* 3D book */
.hero-book { margin: 0; display: flex; justify-content: center; }
.book-scene {
  perspective: 1400px;
  width: min(360px, 86%);
  padding: 1.5rem 2rem 2.5rem;
}
.book {
  position: relative;
  aspect-ratio: 2 / 3;
  transform: rotateY(-22deg) rotateX(6deg);
  transform-style: preserve-3d;
  filter: drop-shadow(20px 32px 36px rgba(0, 0, 0, 0.48));
}
.book img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px 5px 5px 2px;
  position: relative;
  z-index: 2;
  background: var(--paper);
}
.book-spine {
  position: absolute;
  inset: 0 auto 0 -14px;
  width: 14px;
  background: linear-gradient(90deg, #151e26, #3a4b59 55%, #2a3846);
  transform: rotateY(-80deg);
  transform-origin: right center;
  border-radius: 2px 0 0 2px;
  z-index: 1;
}
.book-pages {
  position: absolute;
  top: 4px;
  right: -13px;
  bottom: 4px;
  width: 13px;
  background:
    repeating-linear-gradient(
      to right,
      #f7f3eb 0 1px,
      #e4ddd0 1px 2px
    );
  transform: rotateY(70deg);
  transform-origin: left center;
  border-radius: 0 2px 2px 0;
  z-index: 1;
  box-shadow: 2px 0 0 #cfc6b6;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .book { transform: none; filter: drop-shadow(0 18px 24px rgba(0,0,0,.35)); }
  .book-spine, .book-pages { display: none; }
}

/* ---------- Signup ---------- */
.signup-lead {
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.5;
  margin: 0 0 1rem;
  max-width: 34rem;
}
.signup-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.signup-row {
  display: flex;
  gap: 0.55rem;
  max-width: 36rem;
}
.signup-form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.3;
  padding: 0.8rem 0.95rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--foam);
  color: var(--ink);
}
.signup-form input[type="email"]::placeholder { color: var(--muted); }
.signup-form button[type="submit"] {
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem 1.15rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--gold-deep);
  color: var(--foam);
  cursor: pointer;
}
.signup-form button[type="submit"]:hover { background: var(--gold-deeper); }

.signup-help,
.signup-note,
.signup-feedback {
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0.7rem 0 0;
}
.signup-hero .signup-help,
.signup-hero .signup-note,
.signup-closing .signup-help { color: var(--cloud); }
.signup-note { font-style: italic; }

.signup-hp {
  position: absolute;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.signup-form { position: relative; }

/* ---------- In short / promise bar ---------- */
.in-short {
  background: var(--harbor-mid);
  color: var(--paper);
  padding: 1.15rem 0;
  border-top: 1px solid color-mix(in srgb, var(--cloud) 12%, transparent);
}
.in-short ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 500;
}
.in-short li { position: relative; padding-left: 0; }
.in-short li + li::before {
  /* decorative only when items sit on one row; wrap is fine without dividers */
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(3.25rem, 7vw, 5.5rem) 0;
}
.section-head { margin-bottom: 1.75rem; max-width: 40rem; }
.section-head h2,
.sample-copy h2,
.author-panel h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}
.lede {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--slate);
  max-width: 38rem;
  margin: 0.75rem 0 0;
}

.overview { background: var(--paper); }
.overview-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.prose p { margin: 0 0 1rem; max-width: var(--measure); }
.standout {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 1.25rem 0 0 !important;
  max-width: 22rem;
}
.howto {
  background: var(--foam);
  border-left: 3px solid var(--gold-deep);
  padding: 1.5rem 1.5rem 1.35rem 1.4rem;
  box-shadow: 0 1px 0 var(--line);
}
.howto h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.howto p {
  font-family: var(--sans);
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: var(--ink);
}
.howto p:last-child { margin-bottom: 0; }

/* ---------- Simple Version teaser ---------- */
.sample {
  background: var(--harbor);
  color: var(--paper);
  overflow: hidden;
}
.sample .eyebrow { color: #c4a06a; }
.sample-copy h2 { color: var(--paper); }
.sample .lede { color: var(--mist); }
.sample-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.sample-sheet {
  margin: 0;
  position: relative;
  justify-self: center;
  width: min(400px, 100%);
  max-height: 460px;
  overflow: hidden;
  transform: rotate(2deg);
  filter: drop-shadow(0 22px 30px rgba(0,0,0,.4));
  border-radius: 2px;
  background: var(--paper);
}
.sample-sheet img {
  width: 100%;
  height: auto;
  background: var(--paper);
}
.sample-sheet::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(to bottom, transparent, var(--harbor) 88%);
  pointer-events: none;
}
.text-btn {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--foam);
  background: var(--gold-deep);
  text-decoration: none;
  padding: 0.8rem 1.15rem;
  border-radius: var(--radius);
}
.text-btn:hover { background: var(--gold-deeper); }

/* ---------- Excerpts ---------- */
.section-excerpts { background: var(--mist); }
.excerpts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.excerpts li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  padding: 1.25rem 1.35rem 1.15rem;
  background: var(--foam);
  border-radius: 4px;
}
.excerpts .num,
.topics .num {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
  padding-top: 0.35rem;
}
.excerpts blockquote { margin: 0; }
.excerpts blockquote p {
  font-size: 1.12rem;
  line-height: 1.6;
  margin: 0;
}
.excerpts li:first-child {
  padding: 1.6rem 1.5rem 1.4rem;
}
.excerpts li:first-child p {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.5;
}
.excerpts footer {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.7rem;
}

.signup-inline {
  margin-top: 2.25rem;
  background: var(--harbor);
  color: var(--paper);
  padding: 1.75rem 1.6rem 1.6rem;
  border-radius: 4px;
}
.signup-inline .signup-help { color: var(--cloud); }
.signup-inline .signup-row { max-width: 40rem; }

/* ---------- Topics ---------- */
.topics-section { background: var(--paper); }
.topics {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.topics li {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--foam);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-deep);
  padding: 1.35rem 1.2rem 1.25rem;
  min-height: 8.5rem;
}
.topics .name {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ---------- Author ---------- */
.author { background: var(--mist); }
.author-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.author-photo {
  display: block;
  width: min(240px, 64vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--tide);
  box-shadow: 0 12px 30px rgba(31, 44, 56, 0.18);
}
.author-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.author-panel p:last-of-type {
  font-size: 1.2rem;
  max-width: 34rem;
  margin: 1rem 0 0;
}

/* ---------- Closing + footer ---------- */
.closing {
  background: var(--harbor);
  color: var(--paper);
  padding: clamp(3.25rem, 7vw, 5rem) 0;
}
.signup-closing { max-width: 40rem; }
.signup-closing .signup-lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.45;
  margin-bottom: 1.25rem;
  color: var(--paper);
}

.site-footer {
  background: var(--harbor-deep);
  color: var(--cloud);
  padding: 2.5rem 0 3.5rem;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 1.5rem 2rem;
}
.footer-title {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--paper);
  margin: 0;
}
.footer-byline {
  margin: 0.25rem 0 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}
.footer-links a {
  color: var(--paper);
  text-decoration: none;
}
.footer-links a:hover { color: #c4a06a; }
.colophon p { margin: 0 0 0.3rem; }
.domain { letter-spacing: 0.06em; }


/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid,
  .overview-grid,
  .sample-grid,
  .author-grid,
  .footer-grid,
  .topics {
    grid-template-columns: 1fr;
  }
  html.js .nav-toggle { display: inline-flex; }
  .primary-menu { flex-wrap: wrap; }
  html.js .primary-menu {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: var(--header-h);
    background: var(--harbor-deep);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem var(--gutter) 1.1rem;
    gap: 0.65rem;
    border-bottom: 1px solid color-mix(in srgb, var(--cloud) 16%, transparent);
  }
  html.js .primary-menu.is-open { display: flex; }
  .site-nav { position: static; }
  .site-header { position: sticky; }
  .nav-cta { margin-left: 0; }

  .hero { padding-top: 1.35rem; padding-bottom: 2.25rem; }
  #book-title { font-size: clamp(2.55rem, 12vw, 3.15rem); margin-bottom: 0.7rem; }
  .dek { font-size: 1.08rem; margin-bottom: 1.1rem; }
  .hero-grid { gap: 0.5rem; }
  .hero-book { order: 3; margin-top: 1.5rem; }
  .book-scene { width: min(260px, 70%); padding: 0.5rem 1rem 1rem; }
  .signup-row { flex-direction: column; }
  .signup-form button[type="submit"] { width: 100%; }
  .in-short ul { flex-direction: column; gap: 0.45rem; }
  .topics { grid-template-columns: 1fr 1fr; }
  .topics li { min-height: 0; }
  .author-photo { width: 180px; }
  .sample-sheet { transform: none; width: min(340px, 100%); justify-self: start; }
  .excerpts li:first-child p { font-size: 1.15rem; }
}

@media (max-width: 520px) {
  .topics { grid-template-columns: 1fr; }
}

/* ---------- Production additions (not in the mockup) ---------- */

/* Promise bar: old decorative "·" separators stay in the markup, hidden here. */
.in-short .sep { display: none; }

/* Signup states used by js/signup.js */
.signup-form[hidden] { display: none !important; }
.signup-form input[type="email"]:focus-visible { outline-offset: 2px; }
.signup-form button[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.72;
}
.signup-form input[type="email"]:disabled { opacity: 0.8; }
.signup-feedback:empty { display: none; }
.signup-feedback.is-error { font-weight: 600; }
.signup-success {
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.5;
  margin: 1rem 0 0;
  max-width: 34rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--gold);
  background: color-mix(in srgb, var(--foam) 8%, transparent);
  color: var(--paper);
}
.signup-success:focus { outline: none; }
.signup-success:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Hero, inline and closing forms all sit on harbor: light status text. */
.signup-hero .signup-feedback,
.signup-inline .signup-feedback,
.signup-closing .signup-feedback { color: var(--paper); }
.signup-hero .signup-feedback.is-error,
.signup-inline .signup-feedback.is-error,
.signup-closing .signup-feedback.is-error { color: #f3d3a8; }
.signup-inline .signup-label,
.signup-closing .signup-label,
.signup-hero .signup-label { color: var(--paper); }
.signup-closing .signup-help { color: var(--cloud); }

/* Honeypot: off-screen and fully clipped. Never visible. */
.signup-hp {
  position: absolute !important;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reserved retailer buttons. Hidden until launch; shown WITH the form, not instead of it. */
.buy-row[hidden] { display: none !important; }
.buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}
.buy-row a,
.buy-row .buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--foam);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}
.buy-row a:hover,
.buy-row .buy-btn:hover { border-color: var(--gold-deep); }

/* Footer: leave the bottom-right corner clear for the π control. */
.site-footer { padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px)); }
.colophon { padding-right: 3rem; }

/* --- Hidden π hold-to-open control (markup created by js/pi.js) --- */
.pi-secret {
  position: fixed;
  right: max(0.65rem, env(safe-area-inset-right, 0px));
  bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
  z-index: 60;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--harbor-deep) 55%, transparent);
  color: var(--gold);
  opacity: 0.45;
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
  display: grid;
  place-items: center;
  transition: opacity 160ms ease;
}
.pi-secret:hover,
.pi-secret:focus-visible,
.pi-secret.is-holding,
.pi-secret.is-ready { opacity: 0.9; }
.pi-secret .pi-glyph {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1;
  pointer-events: none;
}
.pi-secret .pi-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}
.pi-secret .pi-ring-bg {
  stroke: var(--line);
  stroke-width: 1.5;
  opacity: 0.45;
}
.pi-secret .pi-ring-fg {
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .pi-secret { transition: none; }
}

@media (forced-colors: active) {
  .signup-form input[type="email"],
  .signup-form button[type="submit"],
  .text-btn,
  .buy-row a,
  .buy-row .buy-btn { border: 1px solid CanvasText; }
}

@media print {
  .site-header,
  .pi-secret,
  .signup-form,
  .text-btn { display: none !important; }
  .hero, .sample, .closing, .signup-inline, .in-short, .site-footer { background: none !important; color: #000 !important; }
  .book { transform: none; filter: none; }
  .book-spine, .book-pages { display: none; }
}
