/* Genkai: Sora for headings, Inter for reading and controls. */
@font-face {
  font-family: Sora;
  src: url("assets/Sora-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("assets/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("assets/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
:root {
  --charcoal: #121212;
  --ivory: #F5F2EC;
  --forest: #10271F;
  --forest-tint: #E6EBE4;
  --forest-edge: #526B5D;
  --forest-hover: #234537;
  --white: #FFFFFF;
  --mist: #E9E7E1;
  --sans: Inter, Arial, sans-serif;
  --serif: Sora, Inter, sans-serif;
  --editorial: var(--serif);
  --focus: var(--forest);
  color: var(--charcoal);
  background: var(--ivory);
}
:is(h1,h2,h3,h4,h5,h6), .entry h1 em, .guide-shelf .card-title {
  font-family: var(--serif) !important;
  font-weight: 700 !important;
}
.entry h1 {
  max-width: 13ch;
  overflow-wrap: normal;
  letter-spacing: -.052em;
  font-size: clamp(2.65rem, 7.25vw, 6rem);
}
.site-header {
  background: var(--ivory);
  color: var(--charcoal);
  border-bottom-color: color-mix(in srgb, var(--forest) 18%, var(--ivory));
}
.site-nav a { color: var(--charcoal); }
.site-nav a:hover { color: var(--forest); }
.site-name {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 2.75rem;
  align-items: center;
}
.site-name img {
  display: block;
  width: clamp(7.75rem, 13vw, 10.25rem);
  height: auto;
}
.site-footer,
.about-section,
.route-business { background: var(--charcoal); color: var(--ivory); }
.hero-section { background-color: var(--charcoal); }
.route-life, .letter-invite, .contact-section { background: var(--ivory); }
.offer-list .offer-summary,
.guide-shelf details { border-top-color: var(--forest); }
/* Accent palette shared with the Time Back Audit. */
.offer-summary .includes span::before {
  color: var(--forest);
}
.offer-summary .price b { color: var(--forest); background: none; }
.hero-extras .hero-newsletter-link {
  color: var(--ivory);
  background-color: var(--forest);
  --newsletter-gloss: linear-gradient(to bottom, var(--forest) 8%, #234537 34%, #356D51 50%, #234537 66%, var(--forest) 92%);
  background-image: var(--newsletter-gloss);
  border: 1px solid var(--forest-edge);
  box-shadow: inset 0 1px 0 rgba(245, 242, 236, .22);
}
.hero-extras .hero-newsletter-link:hover { background-color: var(--forest); background-image: var(--newsletter-gloss); border-color: #88A494; }
.hero-extras .hero-newsletter-link:active { box-shadow: inset 0 1px 3px rgba(16, 39, 31, .65); }
@media (forced-colors: active) {
  .hero-extras .hero-newsletter-link { background: ButtonFace; color: ButtonText; border-color: ButtonText; box-shadow: none; }
}
.letter-invite-inner {
  background: var(--forest-tint);
  border-inline-start: 3px solid var(--forest);
  border-radius: .45rem;
  padding: clamp(1.25rem, 3.2vw, 2.2rem);
}
.letter-invite-inner > .feedback-link {
  color: var(--forest);
  font-weight: 600;
  text-underline-offset: .24em;
}
.letter-invite-inner > .feedback-link:hover { text-decoration-thickness: 2px; }
@media (max-width: 43rem) {
  .entry h1 { font-size: clamp(2.35rem, 8.8vw, 3.85rem); }
}
@media (forced-colors: active) {
  .offer-summary .price b { background: none; color: CanvasText; }
}

/* Keep the chooser's emphasis on the decision, not the description. */
.entry .start > a > strong { color: var(--forest); }
.entry .start > a > span { color: var(--charcoal); }
.route-life .section-copy > .section-inquiry { color: var(--forest); }
.entry .start-heading > h2,
.route-life #life-title { color: var(--charcoal); }

/* Text links follow the surface; navigation and buttons keep their own roles. */
:root { --text-link: var(--forest); }
.route-business, .about-section, .site-footer, .hero-section { --text-link: var(--ivory); }
.hero-section .start { --text-link: var(--forest); }
main a:not(.button),
.site-footer .footer-nav a,
.skip-link { color: var(--text-link); }
main .section-inquiry,
main .feedback-link {
  color: var(--text-link);
  text-decoration: underline;
  text-underline-offset: .22em;
}
.site-nav a { color: var(--charcoal); }
.site-nav a:is(:hover,:focus-visible) { color: var(--forest); }

/* Shared masthead: independent center wordmark and full-width navigation. */
.site-header .header-layout {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: .35rem clamp(1rem, 2.3vw, 2.25rem);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .15rem 1rem;
}
.site-header .site-name { grid-column: 1; grid-row: 1; justify-self: start; min-width: 2.75rem; }
.site-header .site-name .header-symbol { width: 2.05rem; height: auto; }
.site-header .header-wordmark {
  grid-column: 2; grid-row: 1; justify-self: center;
  display: block; width: clamp(6.65rem, 10.7vw, 8.1rem); height: auto;
}
.site-header .site-nav {
  grid-column: 3; grid-row: 1; justify-self: end;
  width: auto; justify-content: flex-end; flex-wrap: nowrap; gap: 0 clamp(.75rem, 2vw, 1.75rem);
}
.site-header .site-nav a { white-space: nowrap; }
@media (max-width: 53rem) {
  .site-header .site-nav {
    grid-column: 1 / -1; grid-row: 2; justify-self: stretch;
    justify-content: center; flex-wrap: wrap; gap: 0 clamp(.72rem, 3vw, 1.35rem);
    border-block-start: 1px solid #10271f1f;
  }
}

/* Homepage: slightly wider grids on desktop, without stretching reading lines. */
@media (min-width: 56rem) {
  main:has(> .hero-section) .container {
    width: min(90rem, calc(100% - 2 * clamp(1.25rem, 2.25vw, 2.75rem)));
  }
  .about-section .about-copy p { max-width: 62ch; }
}

/* Genkai offer cards: common spacing and aligned footers. */
.route-section .offer-list .offer-summary{--offer-heading-size:1.4rem;--offer-copy-gap:.55rem;--offer-price-size:clamp(1.7rem,2.35vw,2rem);}
.route-section .offer-list .offer-summary h3{order:0;margin:0;font-size:var(--offer-heading-size);line-height:1.18;}
.route-section .offer-summary .offer-format{font-size:.875rem;font-weight:650;line-height:1.35;color:var(--forest);margin:var(--offer-copy-gap) 0 0;}
.route-section .offer-summary .offer-description{font-size:1rem;line-height:1.5;margin:var(--offer-copy-gap) 0 0;}
.route-section .offer-summary .includes{margin:0;padding:var(--offer-copy-gap) 0 1rem;gap:.45rem;}
.route-section .offer-summary .includes span{font-size:.925rem;line-height:1.35;}
/* Shared card footer spacing. Keep dividers level across each offer row. */
.route-section .offer-list .offer-summary { padding-block-end:0; }
.route-section .offer-summary .price {
  margin-top:auto; display:flex; align-items:center; justify-content:space-between;
  flex:none; column-gap:.65rem; padding:.85rem clamp(.4rem,1vw,.85rem);
  min-block-size:calc(4.45rem + 1px);
}
.route-section .offer-summary .price b{font-size:var(--offer-heading-size);line-height:1.12;letter-spacing:-.035em;}
.route-section .offer-summary .price small{font-size:.875rem;line-height:1.32;color:var(--charcoal);}
.route-section .offer-summary .price .offer-status{color:var(--charcoal);font-weight:600;text-align:end;margin-inline-start:auto;min-width:0;}
.route-business #workflow-review .price .offer-booking {
  display:inline-flex; align-items:center; justify-content:center;
  margin-inline-start:auto; min-block-size:2.75rem; padding:.45rem .75rem;
  border:1px solid var(--forest); border-radius:.45rem;
  background:var(--forest); color:var(--ivory); text-decoration:none;
  font-size:.875rem; line-height:1.2; font-weight:650; text-align:center;
}
.route-business #workflow-review .price .offer-booking:hover {
  background:var(--charcoal); border-color:var(--charcoal); color:var(--ivory);
}
.route-business #workflow-review .price .offer-booking:focus-visible {
  outline:2px solid var(--forest); outline-offset:3px;
}
.route-section .offer-summary .price .offer-planned{background:none;color:var(--charcoal);}
.route-section .offer-summary .price .offer-price-emphasis{font-family:var(--serif);font-weight:700;font-size:var(--offer-price-size);line-height:1.1;}
/* Match the Life card artwork and keep the Business grid from stretching. */
.route-business .offer-list .offer-summary > .offer-banner {
  height: auto;
  aspect-ratio: 2.25 / 1;
  object-fit: cover;
}
.route-business #workflow-sprint .offer-price-emphasis {
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}
.route-section .offer-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* Four Business offers when the row can fit readable cards. */
@media (min-width: 801px) {
  .route-section.route-business .offer-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 50rem;
    margin-inline: auto;
  }
  .route-business .offer-list .offer-summary > .offer-banner {
    height: clamp(8.8rem, 13.5vw, 13.15rem);
    aspect-ratio: auto;
  }
}
@media (min-width: 78rem) {
  .route-section.route-business .offer-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: none;
  }
}

/* Give the shorter Sprint status room beside the price without shrinking either. */
.route-business #workflow-sprint .price { padding-inline: .4rem; column-gap: .5rem; }

.route-business #ongoing-maintenance .price b { font-size: var(--offer-price-size); }

/* Equal hierarchy for the six main homepage sections. */
main:has(> .hero-section) :is(#life-title, #business-title, #about-title, .library-feature h2, #letter-invite-title, #contact-title) {
  font-size: clamp(2rem, 3.8vw, 3.35rem);
}

/* Let the newsletter introduction use the available desktop width. */
@media (min-width: 55rem) {
  main:has(> .hero-section) .letter-invite-inner p { max-width: none; }
}

/* Preserve the approved pencil artwork and exact ivory without a display filter. */
#personal-toolkit .offer-banner,
#next-move-workshop .offer-banner,
#genkai-circle .offer-banner {
  filter: none;
}

/* Preserve the full approved Business artwork and exact ivory at every card width. */
.route-business .offer-list .offer-summary > .offer-banner {
  object-fit: contain;
  background: var(--ivory);
  filter: none;
}

/* Keep the guide artwork on the same ivory as the page. */
#try-a-guide { scroll-margin-top: 4.5rem; }
#try-a-guide img { filter: none; height: auto; }

/* Static Time Back Audit contour and grid for the two charcoal sections. */
:is(#business.route-business, #about.about-section) { position: relative; isolation: isolate; }
:is(#business.route-business, #about.about-section)::before, :is(#business.route-business, #about.about-section)::after { content:""; position:absolute; pointer-events:none; z-index:-1; inset-block-start:0; }
:is(#business.route-business, #about.about-section)::before {
  inset-inline-end:0; inline-size:min(58%,58rem); block-size:min(100%,37rem);
  background-image:linear-gradient(to right,#f5f2ec10 1px,transparent 1px),linear-gradient(to bottom,#f5f2ec10 1px,transparent 1px);
  background-size:1.35rem 1.35rem;
  mask-image:radial-gradient(ellipse at 94% 12%,#000 3%,#0009 37%,transparent 72%);
}
:is(#business.route-business, #about.about-section)::after {
  inset-inline-start:0; inline-size:clamp(18rem,53vw,47rem); block-size:100%;
  background:url("assets/genkai-charcoal-section-contours.svg") left top / 100% 100% no-repeat;
}
@media (max-width:45rem) {
  :is(#business.route-business, #about.about-section)::before { inline-size:66%; block-size:min(100%,23rem); opacity:.75; background-size:1rem 1rem; }
  :is(#business.route-business, #about.about-section)::after { inline-size:min(100%,23rem); opacity:.66; }
}
:is(#business.route-business, #about.about-section)::after { inline-size:clamp(5rem,9vw,8rem); background: url("assets/genkai-business-section-contours.svg") left top / 100% 100% no-repeat; }
@media (min-width: 103rem) {
  :is(#business.route-business, #about.about-section)::after { inline-size: max(7.835821rem, calc(62.4999996% - 56.25rem)); background-image:url("assets/genkai-business-section-contours-wide.svg"); }
}
@media (forced-colors:active) {
  :is(#business.route-business, #about.about-section)::before, :is(#business.route-business, #about.about-section)::after { display:none; }
}

/* Reuse only the upper contour at the Business section rendered scale. */
#about.about-section::after {
  background-image: url("assets/genkai-about-top-contours.svg");
  background-size: 100% var(--genkai-contour-source-height, 48.32rem);
}
@media (min-width: 103rem) {
  #about.about-section::after { background-image: url("assets/genkai-about-top-contours-wide.svg"); }
}

/* Hover and keyboard cues use the hero newsletter underline color. */
:root { --interactive-green: #93AE9F; }
@media (forced-colors: none) {
  a[href]:not(.skip-link):is(:hover,:focus-visible) {
    text-shadow: 0 0 .45em color-mix(in srgb, var(--interactive-green) 56%, transparent);
    text-decoration-color: var(--interactive-green);
  }
  a.site-name:is(:hover,:focus-visible) img {
    filter: drop-shadow(0 0 5px color-mix(in srgb, var(--interactive-green) 52%, transparent));
  }
  :is(a.button[href], button:not(:disabled), .guide-shelf details > summary, .offer-summary:is(a[href],button:not(:disabled),summary)):is(:hover,:focus-visible):not([aria-disabled="true"]) {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--interactive-green) 48%, transparent),
                0 0 12px color-mix(in srgb, var(--interactive-green) 28%, transparent);
  }
}

/* The hero chooser keeps its dividers, with a soft tint instead of a hover box. */
@media (forced-colors: none) {
  .entry .start > a[href]:is(:hover,:focus-visible) {
    box-shadow: none;
    background: radial-gradient(ellipse at 45% 50%, #93ae9f3d 0%, #93ae9f20 56%, transparent 100%);
  }
}
@media (hover: hover) and (forced-colors: none) {
  /* Decorative on all offer cards, including offers that are not open. */
  .route-section .offer-list .offer-summary:hover {
    box-shadow: 0 0 0 1px #93ae9f66, 0 0 18px 2px #93ae9f59;
  }
}
@media (hover: hover) and (forced-colors: none) and (prefers-reduced-motion: no-preference) {
  .route-section .offer-list .offer-summary { transition: box-shadow 180ms ease-out; }
}

/* Newsletter landing: standalone subscribe button and reusable issue previews. */
.newsletter-index-header { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:1.5rem 2rem; }
.newsletter-index-header .letter-intro { max-width:66ch; }
.newsletter-index-header .newsletter-subscribe { justify-self:end; }
.newsletter-issues { display:grid; grid-template-columns:minmax(0,1fr); gap:1rem; margin-block-start:clamp(1.15rem,2.75vw,2rem); padding-block-start:clamp(.85rem,2.25vw,1.5rem); border-block-start:1px solid var(--stone); }
.newsletter-issue { overflow:hidden; background:var(--ivory); border:1px solid #10271f33; border-radius:var(--radius,.55rem); }
.newsletter-issue-image { display:block; width:100%; height:auto; aspect-ratio:2.25 / 1; object-fit:cover; background:var(--ivory); border-bottom:1px solid #10271f26; }
.newsletter-issue-copy { display:grid; justify-items:start; gap:.65rem; padding:1.2rem 1.2rem 0; }
.newsletter-issue-copy h2 { font-size:1.4rem; line-height:1.18; }
.newsletter-issue-copy :is(h2,p) { margin:0; }
.newsletter-issue-copy time { color:var(--forest); font-size:.9rem; }
.newsletter-issue-copy .button { margin-top:.35rem; }
@media (max-width:44rem) { .newsletter-index-header { grid-template-columns:minmax(0,1fr); } .newsletter-index-header .newsletter-subscribe { justify-self:start; } }

@media (forced-colors: none) {
  .newsletter-index .button.newsletter-subscribe { background:var(--forest); border-color:var(--forest); color:var(--ivory); }
  .newsletter-index .newsletter-issue-copy .button { border-color:var(--forest); color:var(--forest); }
}

/* Use the same desktop column width as the For Your Life cards. */
@media (min-width:801px) {
  .newsletter-issues { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (min-width:56rem) {
  .newsletter-index > .container { width:min(90rem,calc(100% - 2 * clamp(1.25rem,2.25vw,2.75rem))); }
}

/* Newsletter date and reading action share a footer below the description. */
.newsletter-issue-footer {
  justify-self:stretch;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:.45rem .65rem;
  margin-block-start:.25rem;
  padding-block:.85rem;
  border-block-start:1px solid var(--stone,#cccac0);
}
.newsletter-issue-copy .newsletter-issue-footer .button {
  margin-block-start:0;
  margin-inline-start:auto;
  padding-inline:clamp(.6rem,2vw,.9rem);
}

/* Keep the centered wordmark the same size when used as a home link. */
.site-header .header-wordmark > img { display:block; width:100%; height:auto; }
