/* Landing page (Stitch redesign). Loaded on the front page only; reuses the theme tokens. */
.ak-hero--home { display: block; height: 640px; position: relative; }
.ak-slides { display: contents; }
.ak-slide { position: absolute; inset: 0; background: var(--hero) left center / cover no-repeat; opacity: 0; visibility: hidden; transition: opacity .9s, visibility .9s; }
.ak-slide.is-active { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .ak-slide { transition: none; } }
.ak-hero--home .ak-hero__copy { position: absolute; inset-block: 0; right: 0; left: auto; width: 46%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 78px 68px 0 0; }
.ak-hero--home h1 { font-size: 60px; font-weight: 800; line-height: 1.3; color: #263125; }
.ak-hero--home .ak-lead { color: #2F3D2E; font-size: 20px; font-weight: 500; }
.ak-hero--home .ak-btn { border-radius: 999px; padding-inline: 32px; background: #2B352B; border-color: #2B352B; }

.ak-pill { display: flex; justify-content: space-between; align-items: center; margin: 32px 0 0; padding: 22px 48px; border-radius: 999px; background: #E7EFE1; border: 1px solid #DAE5D3; }
.ak-pill strong { font-size: 24px; color: #2A362B; }
.ak-pill span { font: 600 15px/1 Georgia, serif; letter-spacing: .2em; color: #4A5D48; direction: ltr; }

.ak-services { gap: 16px; border: 0; padding: 32px 0 0; }
.ak-services li + li { border: 0; }
.ak-services a { justify-content: flex-start; padding: 18px 20px; background: #F6F8F5; border: 1px solid #E7ECE4; border-radius: 24px; }
.ak-services .ak-icon { width: 44px; height: 44px; padding: 10px; border-radius: 16px; background: #E6EFE0; color: #2A362B; stroke-width: 1.5; }

body.home .ak-section__head h2 { font-weight: 500; font-size: 24px; line-height: 1.6; }
.ak-cats a { border-radius: 32px; }



.ak-story--card { grid-template-columns: 1fr 240px; gap: 56px; padding: 56px; border-radius: 40px; background: #F7FAF5; border: 1px solid #E3ECE0; }
.ak-story__emblem { aspect-ratio: 1; display: grid; place-content: center; justify-items: center; gap: 12px; border-radius: 32px; background: #DDE7D8; border: 1px solid rgba(255,255,255,.6); }
.ak-story__emblem img { width: 80px; aspect-ratio: 1; object-fit: contain; }
.ak-story__emblem span { font: 700 24px/1 Georgia, serif; letter-spacing: .25em; color: #2A362B; }

/* Header floats over the hero as glass; solid white after scroll (.is-scrolled set in main.js). */
.home .ak-header { position: fixed; inset-inline: 0; inset-block-start: 0; width: 100%; max-width: 1440px; margin-inline: auto; z-index: 30; }
.home .ak-header__in { transition: background .3s, border-color .3s, box-shadow .3s; background: rgba(255, 255, 255, .55); border-color: rgba(255, 255, 255, .8); }
.home .ak-header.is-scrolled .ak-header__in { background: rgba(255, 255, 255, .96); border-color: #fff; }
.ak-hero--home { height: 720px; padding-block-start: 60px; }
.ak-hero--home .ak-lead { margin-block: 4px 0; line-height: 2; }
.ak-hero--home .ak-hero__cta { margin: 28px 0 0; }

/* One gutter (40px) and one vertical rhythm (64px) for every band below the hero. */
.home #main .ak-container { padding-inline: 40px; }
.home #main .ak-section { padding-block: 64px 0; }
.home #main .ak-pill { margin-block: 32px 0; }
.home #main .ak-services { padding: 32px 0 0; }
.home #main > .ak-container:last-child, .home #main > .ak-section:last-child { padding-block-end: 0; }
.home .ak-footer { margin-block-start: 80px; }
.home #main .ak-section ul.products { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-block-end: 0; }
.home .ak-posts > * { border-radius: 32px; overflow: hidden; }

.ak-home-banner { overflow: hidden; }
.ak-home-banner img { display: block; width: 100%; height: auto; border-radius: 28px; }
.ak-installment-banner { margin-block: 48px 0; overflow: hidden; }
.ak-installment-banner img { display: block; width: 100%; height: auto; border-radius: 28px; }

/* Hero = same width as the navbar and the bands below (40px gutter), rounded card with the navbar floating inside it. */
.ak-hero--home { margin: 14px 40px 0; border-radius: 40px; overflow: hidden; }
.home .ak-header { padding-block-start: 28px; transition: padding .3s; }
.home .ak-header.is-scrolled { padding-block-start: 14px; }
.home .ak-header__in { padding-inline: 48px; }
.ak-hero--home .ak-hero__copy { padding-right: 48px; padding-left: 0; }

/* Navbar nests inside the hero's rounded card (16px inset), full width once scrolled. */
.home .ak-header { padding-block-start: 30px; padding-inline: 56px; transition: padding .3s; }
.home .ak-header.is-scrolled { padding-block-start: 14px; padding-inline: 40px; }
.home .ak-header__in { padding-inline: 32px; }



/* Hero best-seller carousel. Each card is its own frosted-glass tile and really slides.
   Sliding uses LAYOUT properties (left + font-size; the card is em-sized), never transform/opacity:
   backdrop-filter is re-blurred every frame that way, and no ancestor becomes a "backdrop root".
   The container clips cards waiting outside, so nothing needs to fade. */
.ak-hcar { position: absolute; inset-block-end: 4px; left: 16px; width: 760px; height: 167px; overflow: hidden; z-index: 3; }
.ak-hcar__track { position: absolute; inset: 0; }
.ak-hcar__item { position: absolute; inset-block-end: 24px; left: 24px; font-size: 0; z-index: 0; width: 19.3em; height: 8.5em; box-sizing: border-box; border-radius: 2em; overflow: hidden; color: #fff; background: rgba(40, 50, 40, .45); -webkit-backdrop-filter: blur(28px) saturate(1.3); backdrop-filter: blur(28px) saturate(1.3); border: .08em solid rgba(255, 255, 255, .22); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .45); transition: left .7s cubic-bezier(.65, 0, .35, 1), font-size .7s cubic-bezier(.65, 0, .35, 1); }
.ak-hcar__item.is-prev { left: 534px; font-size: 10.4px; z-index: 1; cursor: pointer; }
.ak-hcar__item.is-next { left: 24px; font-size: 10.4px; z-index: 1; cursor: pointer; }
.ak-hcar__item.is-active { left: 244px; font-size: 14px; background: rgba(40, 50, 40, .52); z-index: 2; }
.ak-hcar__item.is-far-prev { left: 734px; }
.ak-hcar__item a { display: flex; align-items: center; gap: .85em; box-sizing: border-box; height: 100%; padding: .7em; color: #fff; }
.ak-hcar__item a:hover { color: #fff; }
.ak-hcar__item img { width: 6.9em; height: 6.9em; flex: none; object-fit: cover; border-radius: 1.3em; background: #F2F4F0; }
.ak-hcar__item span { display: grid; gap: .15em; min-width: 0; line-height: 1.5; }
.ak-hcar__item small { font-size: .8em; color: #BDD1B7; }
.ak-hcar__item strong { font-size: 1.08em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ak-hcar__item em { font-style: normal; font-size: 1.05em; font-weight: 700; }
.ak-hcar__item em .woocommerce-Price-amount { display: inline-flex; align-items: center; gap: .3em; }
.ak-hcar__item em .woocommerce-Price-currencySymbol { flex: none; width: 1.3em; height: 1.3em; margin: 0; font-size: 1em; font-weight: 400; opacity: .85; vertical-align: baseline; }
.ak-hcar__item em del { display: none; }
.ak-hcar__item em ins { text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .ak-hcar__item { transition: none; } }
@media (max-width: 767px) { .ak-hcar { left: 50%; margin-left: -380px; transform: scale(.5); transform-origin: bottom center; } }

/* Logged-in admins: the header is fixed, so it has to clear the WordPress admin bar (32px, 46px on phones) like the page does. */
.admin-bar.home .ak-header { inset-block-start: 32px; }
@media (max-width: 782px) { .admin-bar.home .ak-header { inset-block-start: 46px; } }

/* Journal: newest three beside the photo, the rest in a strip. */
.ak-mag__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.ak-mag__list { display: grid; gap: 16px; align-content: center; }
.ak-mag__list .ak-section__head { margin: 0; }
.ak-mag__list ul { display: grid; gap: 12px; }
.ak-mag__list li a, .ak-mag__strip li a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; color: var(--ink); transition: border-color .2s; }
.ak-mag__list li a:hover, .ak-mag__strip li a:hover { border-color: var(--gold-soft); }
.ak-mag__list li a:focus-visible, .ak-mag__strip li a:focus-visible, .ak-mag__go:focus-visible, .ak-mag__strip:focus-visible, .ak-mag__asks a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ak-mag li img, .ak-mag li .ak-post__ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: var(--sand); display: block; }
.ak-mag li span { display: grid; gap: 4px; min-width: 0; align-content: start; }
.ak-mag li strong { font-size: 16px; font-weight: 700; line-height: 1.7; }
.ak-mag li small { font-size: 13px; line-height: 1.9; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ak-mag__list .ak-btn { justify-self: stretch; justify-content: center; border-radius: 999px; min-height: 52px; background: var(--ink); border-color: var(--ink); color: var(--paper); }

.ak-mag__visual { position: relative; justify-self: center; width: min(100%, 440px); }
.ak-mag__visual > img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 24px 24px; box-shadow: 0 24px 48px -28px rgba(40, 44, 39, .45); }
.ak-mag__asks { list-style: none; margin: 0; padding: 0; }
.ak-mag__asks li { position: absolute; max-width: 210px; }
.ak-mag__asks li:nth-child(1) { inset-block-start: 8%; inset-inline-start: -14%; }
.ak-mag__asks li:nth-child(2) { inset-block-start: 36%; inset-inline-end: -14%; }
.ak-mag__asks li:nth-child(3) { inset-block-end: 5%; inset-inline-start: -10%; }
.ak-mag__asks a { display: block; padding: 10px 16px; border-radius: 20px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--ink); font-size: 13px; line-height: 1.8; box-shadow: 0 10px 24px -14px rgba(40, 44, 39, .5); transition: background-color .2s; }
.ak-mag__asks a:hover { background: var(--paper); }

.ak-mag__nav { display: flex; justify-content: flex-end; gap: 8px; margin-block: 40px 16px; }
.ak-mag__go { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; transition: background-color .2s; }
.ak-mag__go:hover { background: var(--sand); }
.ak-mag__go:active { transform: scale(.94); }
.ak-mag__go--prev .ak-icon { transform: scaleX(-1); }
.ak-mag__strip { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 24px; }
.ak-mag__strip::-webkit-scrollbar { display: none; }
.ak-mag__strip ul { display: flex; gap: 16px; }
.ak-mag__strip li { flex: 0 0 380px; scroll-snap-align: start; }
.ak-mag__strip li a { grid-template-columns: 128px minmax(0, 1fr); }
@media (prefers-reduced-motion: reduce) { .ak-mag li a, .ak-mag__go, .ak-mag__asks a { transition: none; } }

/* Equal-height journal cards: strip and list rows share the tallest card's height; titles stop at two lines. */
.ak-mag__strip li { display: flex; }
.ak-mag__strip li a { flex: 1; }
.ak-mag__list ul { grid-auto-rows: 1fr; }
.ak-mag li strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Phone: portrait hero image on top (4:5 crop), copy underneath on the image's own off-white. */
@media (max-width: 767px) {
	.ak-hero--home { height: auto; padding: 0 0 32px; margin: 8px 12px 0; border-radius: 28px; background: #F4F4F2; }
	.ak-hero--home .ak-hero__copy { position: static; width: auto; padding: 20px 24px 0; align-items: center; text-align: center; }
	.ak-hero--home h1 { font-size: 36px; }
	.ak-hero--home .ak-lead { font-size: 16px; }
}

/* Hero copy: headline and lead stay on one line; type scales with the copy box (cqi) instead of wrapping. */
.ak-hero--home .ak-hero__copy { container-type: inline-size; }
.ak-hero--home h1, .ak-hero--home .ak-lead { white-space: nowrap; }
.ak-hero--home h1 { font-size: min(60px, 7.4cqi); }
.ak-hero--home .ak-lead { font-size: min(20px, 4.2cqi); }

/* Main homepage banner supplied by the store. */
.ak-home-main-banner { display: block; margin: 58px 40px 0; border-radius: 28px; overflow: hidden; }
.ak-home-main-banner img { display: block; width: 100%; height: auto; }
@media (max-width: 767px) {
  .ak-home-main-banner { margin: 16px 14px 0; border-radius: 16px; }
}

@media (max-width: 767px) { body.home .ak-section__head h2 { font-size: 20px; } }
