/* Page-level compositions for AKG Editorial Phase 2 */

.site-footer,
.site-footer__links a,
.about-hero__meta,
.essay-item__date,
.entry-meta,
.book-card__series,
.home-stat,
.legal-page .entry-content {
  font-family: var(--font-ui);
}

/* Home */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  gap: clamp(1.75rem, 3.5vw, 3.5rem);
  align-items: center;
  min-height: calc(100svh - 5.75rem);
  padding-block: clamp(0.75rem, 2.2vh, 1.75rem);
  box-sizing: border-box;
}

.home-hero > div {
  max-width: 38rem;
}

.home-hero__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.06em;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.9rem, 5.2vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  width: max-content;
  max-width: 100%;
}

.home-hero__title .hero-line {
  display: block;
  white-space: nowrap;
}

.home-hero__title em {
  color: var(--mocha);
  font-style: italic;
}

.home-hero .lede {
  max-width: var(--measure);
}

.home-hero .button-row {
  margin-top: 1.35rem;
}

.home-hero__frame {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ebe4d8;
  aspect-ratio: 1 / 1;
  max-height: min(58svh, 620px);
  width: min(100%, 32rem);
  justify-self: end;
}

.home-hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-band {
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.home-band--dark {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(230, 224, 240, 0.14), transparent 55%),
    var(--espresso);
  color: var(--ivory);
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad);
}

.home-band--dark .eyebrow {
  color: rgba(250, 248, 244, 0.55);
}

.home-band--dark .lede,
.home-band--dark p {
  color: rgba(250, 248, 244, 0.78);
}

.home-philosophy {
  width: min(100%, var(--max-wide));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
}

.home-philosophy__quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ivory);
}

.home-philosophy__quote p {
  margin: 0;
  color: var(--ivory);
}

.home-philosophy__quote p + p {
  margin-top: 0.15em;
}

.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.home-essay {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.home-essay a {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem 1.25rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.home-essay a:hover h3 {
  color: var(--mocha);
}

.home-essay time {
  color: var(--muted);
  font-size: 0.86rem;
}

.home-essay h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.2;
}

.home-essay p {
  margin: 0;
  color: var(--mocha);
  font-size: 0.98rem;
}

.home-book-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-book-rail a {
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
  padding: 0.85rem;
}

.home-book-rail img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  margin-bottom: 0.7rem;
  background: var(--platinum);
}

.home-book-rail strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
}

.home-cta {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(230, 224, 240, 0.45), transparent 55%),
    rgba(255, 255, 255, 0.4);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 1.5rem;
  align-items: center;
}

/* Books */
.books-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 0.8fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.books-hero__art {
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  background: #1a1513;
}

.books-hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.books-series {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.books-series__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.books-series__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem 1.25rem;
}

.book-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
  padding: 0.9rem 0.9rem 1.1rem;
}

.book-card__cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--platinum);
  margin-bottom: 0.9rem;
}

.book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-card__series {
  margin: 0 0 0.35rem;
  color: var(--lavender-ink);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.book-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.2;
}

.book-card p:not(.book-card__series) {
  margin: 0 0 1rem;
  color: var(--mocha);
  font-size: 0.92rem;
  flex: 1;
}

.book-card .button {
  align-self: flex-start;
  min-height: 44px;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
}

.subscribe-pending {
  padding: 0.25rem 0;
}

.subscribe-pending .subscribe-note {
  margin: 0;
}

.books-series--voice {
  padding: clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(700px 360px at 10% 0%, rgba(230, 224, 240, 0.5), transparent 60%),
    linear-gradient(180deg, rgba(33, 27, 25, 0.04), transparent 40%);
  border: 1px solid var(--line);
}

/* Blog refinements */
.archive-intro .archive-title {
  max-width: 14ch;
}

.archive-intro .lede {
  max-width: 38rem;
}

.essay-item h2 {
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
}

.essay-item p {
  font-size: 0.98rem;
}

@media (min-width: 1700px) {
  .essay-list {
    max-width: 1100px;
  }
}

/* Single */
.single-article {
  max-width: 720px;
}

.single-article .entry-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}

.single-article .entry-content {
  font-size: 1.125rem;
  line-height: 1.8;
}

.single-article .akg-subscribe-panel {
  margin-top: 2.75rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: rgba(230, 224, 240, 0.28);
}

/* Contact / Subscribe */
.utility-hero {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.contact-layout,
.subscribe-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.contact-panel,
.subscribe-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.contact-aside h2,
.subscribe-panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
}

.contact-aside a {
  color: var(--mocha);
}

.contact-panel .wpforms-container {
  margin: 0 !important;
}

.contact-panel input[type="text"],
.contact-panel input[type="email"],
.contact-panel textarea,
.subscribe-panel input[type="email"] {
  width: 100%;
  border: 1px solid rgba(33, 27, 25, 0.22) !important;
  background: var(--ivory) !important;
  color: var(--espresso) !important;
  border-radius: 0 !important;
  padding: 0.75rem 0.85rem !important;
  font-family: var(--font-ui) !important;
}

.contact-panel .wpforms-submit,
.subscribe-panel button,
.subscribe-panel input[type="submit"] {
  background: var(--espresso) !important;
  color: var(--ivory) !important;
  border: 0 !important;
  border-radius: 0 !important;
  min-height: 46px;
  padding: 0.7rem 1.2rem !important;
  font-family: var(--font-ui) !important;
  font-weight: 600 !important;
}

.subscribe-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Developer/integration notes are not rendered in public templates. */

/* Legal */
.legal-page {
  max-width: 760px;
}

.legal-page .entry-content {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--espresso);
}

.legal-page .entry-content h2,
.legal-page .entry-content h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
}

@media (max-width: 980px) {
  .home-hero,
  .home-philosophy,
  .home-split,
  .home-cta,
  .books-hero,
  .books-grid,
  .contact-layout,
  .subscribe-layout {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: 0;
  }

  .home-hero__title {
    font-size: clamp(2.45rem, 11vw, 3.2rem);
  }

  .home-hero__frame {
    width: 100%;
    max-height: none;
    justify-self: stretch;
  }

  .books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-book-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile books: single-column readable cards */
@media (max-width: 600px) {
  .books-grid,
  .home-book-rail {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .book-card {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    grid-template-areas:
      "cover series"
      "cover title"
      "cover blurb"
      "cover action";
    column-gap: 0.95rem;
    row-gap: 0.2rem;
    align-items: start;
    padding: 0.85rem;
  }

  .book-card__cover {
    grid-area: cover;
    margin: 0;
    aspect-ratio: 2 / 3;
    max-height: 9.5rem;
  }

  .book-card__series {
    grid-area: series;
    margin: 0;
  }

  .book-card h3 {
    grid-area: title;
    margin: 0;
    font-size: 1.15rem;
  }

  .book-card p:not(.book-card__series) {
    grid-area: blurb;
    margin: 0.15rem 0 0;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .book-card .button {
    grid-area: action;
    align-self: end;
    justify-self: stretch;
    width: 100%;
    margin-top: 0.55rem;
    min-height: 44px;
  }

  .books-series--voice {
    padding: 1.15rem;
  }
}

@media (min-width: 1440px) {
  .home-hero__title {
    font-size: clamp(3.5rem, 3.8vw, 5.2rem);
  }
}

@media (min-width: 1700px) {
  .home-hero__title {
    font-size: clamp(3.9rem, 3.5vw, 5.8rem);
  }

  .home-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 1fr);
    gap: clamp(2rem, 4vw, 4.5rem);
  }

  .home-hero__frame {
    max-height: min(68svh, 820px);
    width: min(100%, 38rem);
  }

  .books-grid {
    gap: 1.6rem;
  }
}

/* Apple-inspired refinement: hierarchy, focus and cinematic fiction atmosphere */
@media (min-width: 981px) {
  .home-hero {
    min-height: calc(82svh - 5.75rem);
  }

  .about-hero--atlas {
    min-height: calc(82svh - 5.75rem);
  }
}

.home-hero .button-row .button--ghost {
  min-height: 44px;
  padding-inline: 0.4rem;
  border-color: transparent;
  background: transparent;
  color: var(--mocha);
  text-decoration: underline;
  text-decoration-color: rgba(87, 70, 57, 0.35);
  text-underline-offset: 0.35em;
}

.home-hero .button-row .button--ghost:hover {
  border-color: transparent;
  color: var(--espresso);
  text-decoration-color: currentColor;
}

.about-practice {
  max-width: 46rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line);
}

.about-practice h3 {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
}

/* Books: a restrained, cinematic world for psychological thrillers. */
.books-page {
  --book-accent: #c9ad7a;
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(2rem, 5vw, 4.5rem) var(--pad) clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  color: var(--ivory);
  background:
    radial-gradient(80rem 42rem at 82% -8%, rgba(201, 173, 122, 0.16), transparent 58%),
    radial-gradient(65rem 40rem at -5% 52%, rgba(125, 112, 151, 0.13), transparent 62%),
    linear-gradient(180deg, #171412 0%, #211b18 48%, #12100f 100%);
}

.books-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 100% 4rem;
}

.books-page > section {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max-wide));
  margin-inline: auto;
}

.books-page .eyebrow,
.books-page .book-card__series {
  color: var(--book-accent);
}

.books-page .page-title,
.books-page h2,
.books-page h3 {
  color: var(--ivory);
}

.books-page .page-title em {
  color: var(--book-accent);
}

.books-page .lede,
.books-page .book-card p:not(.book-card__series) {
  color: rgba(250, 248, 244, 0.72);
}

.books-hero {
  min-height: min(70svh, 760px);
  align-items: center;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.books-hero__signal {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  color: var(--book-accent);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.books-hero__signal::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
}

.books-enter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.books-enter a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(250, 248, 244, 0.24);
  color: var(--ivory);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  text-decoration: none;
}

.books-enter a:first-child {
  border-color: var(--book-accent);
  background: var(--book-accent);
  color: #171412;
}

.books-enter a:hover {
  border-color: var(--book-accent);
  color: var(--book-accent);
}

.books-enter a:first-child:hover {
  background: var(--ivory);
  border-color: var(--ivory);
  color: #171412;
}

.books-hero__art {
  border-color: rgba(201, 173, 122, 0.42);
  box-shadow: 1.3rem 1.3rem 0 rgba(201, 173, 122, 0.08), 0 2rem 5rem rgba(0,0,0,0.35);
}

.books-hero__art img {
  opacity: 0.88;
  filter: saturate(0.82) contrast(1.04);
}

.books-series {
  scroll-margin-top: 6rem;
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.books-series__head {
  border-color: rgba(250, 248, 244, 0.18);
}

.book-card {
  border-color: rgba(250, 248, 244, 0.15);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.16);
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.book-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 173, 122, 0.55);
  background: rgba(255, 255, 255, 0.065);
}

.book-card__cover {
  background: #0e0d0c;
}

.books-page .book-card .button--ghost {
  border-color: rgba(201, 173, 122, 0.68);
  color: var(--ivory);
}

.books-page .book-card .button--ghost:hover {
  border-color: var(--book-accent);
  background: var(--book-accent);
  color: #171412;
}

.books-series--voice {
  padding: clamp(2rem, 4vw, 3rem);
  border-color: rgba(250, 248, 244, 0.16);
  background:
    radial-gradient(50rem 25rem at 8% 0%, rgba(125, 112, 151, 0.18), transparent 62%),
    rgba(255, 255, 255, 0.025);
}

.subscribe-panel h2.widgettitle:empty {
  display: none;
}

@media (max-width: 980px) {
  .books-hero {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  .books-page {
    padding-top: 2rem;
  }

  .books-hero {
    margin-bottom: 3.5rem;
  }

  .books-hero__art {
    box-shadow: 0.75rem 0.75rem 0 rgba(201, 173, 122, 0.08);
  }

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

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


/* Mobile overflow hardening for long citations and compact hero type. */
.legal-content a,
.post-content a,
.entry-content a,
.single-post .article-content a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 360px) {
  .about-hero .hero-line {
    font-size: clamp(2.15rem, 11.5vw, 3rem);
  }
}


/* Large-display compositions: preserve readable measures while using QHD space. */
@media (min-width: 1920px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(32rem, 0.92fr);
    gap: clamp(4rem, 7vw, 8rem);
    min-height: min(calc(72svh - 6rem), 56rem);
    padding-block: 2.5rem;
  }

  .home-hero > div {
    max-width: 44rem;
  }

  .home-hero__title {
    font-size: clamp(5rem, 4.2vw, 5.9rem);
    letter-spacing: -0.04em;
  }

  .home-hero__frame {
    width: min(100%, 38rem);
    max-height: 38rem;
  }

  .about-hero--atlas {
    min-height: min(calc(72svh - 6rem), 58rem);
    gap: clamp(4rem, 6vw, 7rem);
  }

  .about-page .hero-title {
    font-size: clamp(5rem, 3.8vw, 6rem);
  }

  .about-hero--atlas .about-hero__frame {
    width: min(100%, 40rem);
    max-height: 52rem;
  }

  .books-hero {
    grid-template-columns: minmax(0, 1fr) minmax(34rem, 0.82fr);
    gap: clamp(4rem, 7vw, 8rem);
    min-height: min(68svh, 52rem);
    align-items: center;
  }

  .books-hero .page-title {
    font-size: clamp(4.5rem, 3.5vw, 5.5rem);
  }

  .books-hero__art {
    width: min(100%, 40rem);
    justify-self: end;
  }

  .archive-intro {
    max-width: 48rem;
  }

  .archive-intro .archive-title {
    font-size: clamp(4.5rem, 3.7vw, 5.4rem);
  }

  .essay-list {
    max-width: 76rem;
  }

  .utility-hero {
    max-width: 48rem;
  }

  .contact-layout,
  .subscribe-layout {
    grid-template-columns: minmax(0, 0.82fr) minmax(42rem, 1.18fr);
    gap: clamp(4rem, 6vw, 7rem);
  }

  .contact-panel,
  .subscribe-panel {
    padding: 2.75rem;
  }
}


/* Release 0.4.3 — accessibility and layout fixes (F-15 to F-18), 2026-10-24. */

/* F-15: the skip link moves focus to <main tabindex="-1">; no ring on the container itself. */
.site-main:focus {
  outline: none;
}

/* F-16: full-bleed bands use width:100vw, which includes the scrollbar; clip the overflow. */
.site-shell {
  overflow-x: clip;
}

/* F-17: on phones the stacked header (~151 px) stops sticking and scrolls away. */
@media (max-width: 600px) {
  .site-header {
    position: static;
  }
}

/* F-18: brown is for reading text; inline text links are ink with a brown underline. */
.entry-content a,
.contact-aside a,
.home-hero .button-row .button--ghost {
  color: var(--espresso);
  text-decoration-line: underline;
  text-decoration-color: var(--mocha);
  text-underline-offset: 0.2em;
}

.entry-content a:hover,
.contact-aside a:hover,
.home-hero .button-row .button--ghost:hover {
  color: var(--mocha);
  text-decoration-color: currentColor;
}

/* 0.4.7 (F-37): header name link meets the 24 px minimum tap target. */
.site-brand { display: block; min-height: 24px; }


/* ------------------------------------------------------------------
   0.4.8 (F-31): the reviewer's mark — approval stamp + margin note.
   Home: stamp and note together beside the working philosophy.
   Essays: REVIEWED stamp by the title, signed seal at the end,
   optional "Reviewer's note" and "Key line" block styles.
   ------------------------------------------------------------------ */
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/caveat-latin-600.woff2") format("woff2");
}

:root {
  --stamp-ink: #9b3b2f;
  --note-ink: var(--lavender-ink);
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
}

.akg-stamp {
  display: inline-block;
  color: var(--stamp-ink);
  border: 3px solid currentColor;
  border-radius: 8px;
  padding: 5px;
  transform: rotate(-7deg);
  opacity: 0.92;
  font-family: var(--font-ui);
  line-height: 1;
  text-transform: uppercase;
  user-select: none;
}

.akg-stamp__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  border: 1.5px solid currentColor;
  border-radius: 5px;
  padding: 0.6rem 1.05rem 0.55rem;
}

.akg-stamp__word {
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.24em;
  margin-right: -0.24em;
}

.akg-stamp__sub {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  margin-right: -0.22em;
}

.akg-note {
  margin: 0;
  color: var(--note-ink);
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.2vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: 0;
  transform: rotate(-2.5deg);
  transform-origin: left center;
}

.akg-note a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.akg-note__sign {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8em;
}

/* Home: dark band, so the same two inks in lighter tints. */
.home-philosophy__aside {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
}

.akg-mark--home {
  --stamp-ink: #e58a76;
  --note-ink: #cfc6ea;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.home-band--dark .akg-mark--home .akg-note {
  color: var(--note-ink);
  padding-left: 0.6rem;
}

/* Essays */
.single-article {
  position: relative;
}

.akg-stamp--essay {
  float: right;
  margin: 0 0 1rem 1rem;
}

.akg-stamp--essay .akg-stamp__word {
  font-size: 1rem;
}

.akg-stamp--essay .akg-stamp__inner {
  padding: 0.45rem 0.8rem 0.4rem;
}

.akg-signoff {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.akg-seal {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  width: 5.75rem;
  height: 5.75rem;
  border: 2.5px solid currentColor;
  border-radius: 50%;
  color: var(--stamp-ink);
  font-family: var(--font-ui);
  line-height: 1.1;
  transform: rotate(-10deg);
  opacity: 0.92;
  user-select: none;
}

.akg-seal::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.akg-seal__top,
.akg-seal__date {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  margin-right: -0.18em;
  text-transform: uppercase;
}

.akg-seal__top {
  font-weight: 600;
}

.akg-seal__mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.akg-signoff__text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.akg-signoff__name {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.akg-note--small {
  font-size: 1.45rem;
  transform: rotate(-1.5deg);
}

/* Optional block styles inside essays */
.entry-content .is-style-akg-note {
  margin: 1.5rem 0 -0.75rem;
  color: var(--note-ink);
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.15;
  transform: rotate(-2deg);
  transform-origin: left center;
}

.entry-content .wp-block-quote.is-style-akg-key-line {
  margin: 2rem 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.entry-content .wp-block-quote.is-style-akg-key-line p {
  display: inline;
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--note-ink);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
  text-decoration-skip-ink: none;
}

.entry-content .wp-block-quote.is-style-akg-key-line cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--muted);
}

/* Put the note block just above the line it is about: on phones it sits above
   that line (arrow down); on wide screens it floats beside it (arrow left). */
.entry-content .is-style-akg-note::before {
  content: "\2193\00a0";
}

@media (max-width: 980px) {
  .akg-mark--home {
    margin-top: 0.75rem;
  }
}

/* Wide screens: stamp and notes move into the empty right margin. */
@media (min-width: 1180px) {
  .akg-stamp--essay {
    float: none;
    position: absolute;
    top: 3.5rem;
    left: calc(100% + 3rem);
    margin: 0;
  }

  .akg-stamp--essay .akg-stamp__word {
    font-size: 1.15rem;
  }

  .entry-content .is-style-akg-note {
    float: right;
    clear: right;
    width: 14rem;
    margin: 0.4rem calc(-14rem - 3rem) 1rem 0;
    font-size: 1.65rem;
  }

  .entry-content .is-style-akg-note::before {
    content: "\2190\00a0";
  }
}

@media print {
  .akg-stamp,
  .akg-seal {
    opacity: 1;
  }
}

/* 0.4.34: hero only, from 0.4.39 (centred mockup hero) */
/* Home mockup (0.4.38): centred layout from the approved mockup, live colours */
.home-mock { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); color: var(--espresso); }
.home-mock__tag { font-family: var(--font-ui); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mocha); margin: 0 0 0.75rem; }
.home-mock__hero { padding: clamp(4rem, 9vw, 6rem) 0 clamp(3rem, 6vw, 4rem); text-align: center; }
.home-mock__name { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 5.5vw, 3.6rem); line-height: 1.1; margin: 0 0 1rem; }
.home-mock__lead { font-family: var(--font-body); font-size: 1.2rem; line-height: 1.6; max-width: 40rem; margin: 0 auto 2rem; }
.home-mock__btns { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.home-mock__btn { display: inline-block; padding: 0.75rem 1.4rem; font-family: var(--font-ui); font-size: 14px; text-decoration: none; border: 1px solid var(--espresso); color: var(--espresso); }
.home-mock__btn--solid { background: var(--espresso); color: var(--ivory); }
@media (max-width: 760px) { .home-mock__hero { text-align: left; } .home-mock__lead { margin-left: 0; } .home-mock__btns { justify-content: flex-start; } }

/* 0.4.41: philosophy band centred under the centred hero (mockup layout) */
.home-band--dark .home-philosophy {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}
.home-band--dark .home-philosophy__quote {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  margin: 0;
  padding: 0;
  border: 0;
}
.home-band--dark .home-philosophy__quote p {
  margin: 0;
}
.home-band--dark .home-philosophy__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.home-band--dark .home-philosophy__aside .lede {
  margin-inline: auto;
  max-width: 40rem;
}
.home-band--dark .akg-mark--home {
  margin-inline: auto;
}

/* 0.4.44: Books hero caption and centred principle line */
.books-hero__art { position: relative; }
.books-hero__caption { display: block; padding: 0.9rem 1rem; text-align: center; font-family: var(--font-ui); font-size: 0.95rem; color: var(--ivory); background: rgba(26, 21, 19, 0.85); }
.books-hero__caption strong { display: block; font-weight: 700; margin-bottom: 0.25rem; }
.books-hero__caption span { display: block; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; }


/* 0.4.46: About working-principle band centred, like the home philosophy band */
.about-manifesto { text-align: center; }
.about-manifesto__head { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.about-manifesto__quote { margin-inline: auto; }
.about-manifesto__quote p { text-align: center; }
.about-manifesto .about-manifesto__eyebrow { margin-inline: auto; }

/* 0.4.47: keep Books hero caption inside the image frame (bottom overlay) */
.books-hero__art .books-hero__caption { position: absolute; left: 0; right: 0; bottom: 0; }
