/*
Theme Name: talimo Literatur
Theme URI: https://wetzestein.de/
Author: Thomas Wetzestein
Author URI: https://wetzestein.de/
Description: Ein helles, warmes und literarisches WordPress-Block-Theme für talimo | Thomas Wetzestein. Entwickelt für Buchreihen, Einzelbuchseiten und eine persönliche Autorenpräsenz.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: talimo-literatur
Tags: block-theme, full-site-editing, portfolio, one-column, two-columns, wide-blocks, block-patterns
*/

:root {
  --talimo-shadow-soft: 0 18px 55px rgba(66, 50, 38, 0.10);
  --talimo-shadow-book: 0 34px 70px rgba(77, 48, 44, 0.22), 0 8px 18px rgba(77, 48, 44, 0.12);
  --talimo-border: rgba(54, 45, 39, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(201, 156, 98, 0.10), transparent 28rem),
    radial-gradient(circle at 88% 22%, rgba(138, 62, 87, 0.07), transparent 31rem),
    #fbf7f0;
}

body,
button,
input,
textarea,
select {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

::selection {
  color: #fff;
  background: #8a3e57;
}

.talimo-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(36, 33, 31, 0.08);
  background: rgba(251, 247, 240, 0.90);
  backdrop-filter: blur(16px);
}

.admin-bar .talimo-site-header {
  top: 32px;
}

.talimo-header-inner {
  min-height: 76px;
}

.talimo-brand .wp-block-site-title {
  margin: 0;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.talimo-brand .wp-block-site-title a {
  text-decoration: none;
}

.talimo-brand .wp-block-site-tagline {
  margin-top: 0.25rem;
  color: #6b625b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.talimo-primary-nav {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.talimo-primary-nav a {
  text-decoration: none;
}

.talimo-primary-nav .wp-block-navigation-item:last-child a {
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  color: #fff;
  background: #24211f;
}

.talimo-hero {
  position: relative;
  overflow: hidden;
  min-height: min(790px, calc(100vh - 76px));
  border-bottom: 1px solid var(--talimo-border);
}

.talimo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(251, 247, 240, 0.98) 0%, rgba(251, 247, 240, 0.86) 49%, rgba(251, 247, 240, 0.25) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 4px, rgba(108, 88, 69, 0.018) 5px);
}

.talimo-hero-grid {
  position: relative;
  z-index: 1;
  min-height: inherit;
  align-items: center !important;
}

.talimo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  color: #8a3e57;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.talimo-kicker::before {
  content: "";
  display: block;
  width: 2.3rem;
  height: 1px;
  background: currentColor;
}

.talimo-hero-title {
  max-width: 14ch;
  margin-top: 1.2rem !important;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.talimo-hero-copy {
  max-width: 37rem;
  color: #5f5751;
  font-size: clamp(1.04rem, 1.35vw, 1.25rem);
  line-height: 1.72;
}

.talimo-button-row .wp-block-button__link {
  min-width: 10.5rem;
  padding: 0.95rem 1.35rem;
  border: 1px solid transparent;
  box-shadow: none;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.talimo-button-row .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 24px rgba(36, 33, 31, 0.14);
}

.talimo-button-row .is-style-outline .wp-block-button__link {
  border-color: rgba(36, 33, 31, 0.25);
  color: #24211f;
  background: rgba(255, 255, 255, 0.44);
}

.talimo-cover-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 620px;
  isolation: isolate;
}

.talimo-cover-stage::before,
.talimo-cover-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}

.talimo-cover-stage::before {
  width: min(520px, 94%);
  aspect-ratio: 1;
  background: linear-gradient(145deg, rgba(243, 221, 226, 0.92), rgba(241, 229, 185, 0.50));
  box-shadow: inset 0 0 0 1px rgba(138, 62, 87, 0.08);
}

.talimo-cover-stage::after {
  width: 68%;
  height: 2.8rem;
  bottom: 3.3rem;
  filter: blur(18px);
  opacity: 0.32;
  background: #6d3b46;
}

.talimo-feature-cover {
  position: relative;
  width: min(365px, 72%);
  aspect-ratio: 0.6667;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 4px 15px 15px 4px;
  box-shadow: var(--talimo-shadow-book);
  transform: rotate(2.2deg);
  transition: transform 240ms ease;
}

.talimo-feature-cover:hover {
  transform: rotate(0.4deg) translateY(-7px);
}

.talimo-feature-cover::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 14px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(51, 22, 29, 0.20), transparent);
}

.talimo-feature-cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: right center;
}

.talimo-cover-note {
  position: absolute;
  z-index: 2;
  right: 4%;
  bottom: 5.1rem;
  width: min(230px, 44%);
  padding: 1rem 1.1rem;
  border: 1px solid rgba(138, 62, 87, 0.14);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--talimo-shadow-soft);
  transform: rotate(-2deg);
  backdrop-filter: blur(12px);
}

.talimo-cover-note p {
  margin: 0;
}

.talimo-cover-note .talimo-note-label {
  margin-bottom: 0.35rem;
  color: #8a3e57;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.talimo-cover-note .talimo-note-copy {
  color: #4c4440;
  font-family: var(--wp--preset--font-family--literary);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.42;
}

.talimo-section {
  padding-top: clamp(4.5rem, 8vw, 7.5rem) !important;
  padding-bottom: clamp(4.5rem, 8vw, 7.5rem) !important;
}

.talimo-section-heading {
  max-width: 15ch;
  margin-top: 0.75rem !important;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.talimo-section-lead {
  max-width: 44rem;
  color: #6b625b;
  font-size: 1.08rem;
  line-height: 1.75;
}

.talimo-series-grid {
  margin-top: 3rem !important;
}

.talimo-series-card {
  position: relative;
  min-height: 330px;
  padding: clamp(1.7rem, 3.8vw, 3rem) !important;
  overflow: hidden;
  border: 1px solid rgba(36, 33, 31, 0.09);
  border-radius: 24px;
  box-shadow: 0 12px 35px rgba(65, 51, 40, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.talimo-series-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(65, 51, 40, 0.12);
}

.talimo-series-card::after {
  content: "";
  position: absolute;
  right: -0.04em;
  bottom: -0.22em;
  color: rgba(36, 33, 31, 0.055);
  font-family: var(--wp--preset--font-family--literary);
  font-size: clamp(11rem, 19vw, 17rem);
  font-weight: 700;
  line-height: 0.8;
  pointer-events: none;
}

.talimo-series-jannes::after { content: "01"; }
.talimo-series-love::after { content: "02"; }
.talimo-series-night::after { content: "03"; }
.talimo-series-coloring::after { content: "04"; }

.talimo-series-card > * {
  position: relative;
  z-index: 1;
}

.talimo-series-card .talimo-series-label {
  margin: 0 0 2.8rem;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.talimo-series-card h3 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.talimo-series-card p:not(.talimo-series-label) {
  max-width: 31rem;
  color: rgba(36, 33, 31, 0.72);
}

.talimo-series-card .wp-block-button__link {
  padding: 0;
  color: #24211f;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.talimo-series-jannes {
  background: linear-gradient(145deg, #dce8ec 0%, #eef2ec 100%);
}

.talimo-series-love {
  background: linear-gradient(145deg, #f3dde2 0%, #f8ebe6 100%);
}

.talimo-series-night {
  color: #fff;
  background: linear-gradient(145deg, #2e4657 0%, #1f3443 100%);
}

.talimo-series-night::after {
  color: rgba(255, 255, 255, 0.06);
}

.talimo-series-night p:not(.talimo-series-label) {
  color: rgba(255, 255, 255, 0.74);
}

.talimo-series-night .wp-block-button__link {
  color: #fff;
}

.talimo-series-coloring {
  background: linear-gradient(145deg, #f1e5b9 0%, #e3e8d5 100%);
}

.talimo-manifesto {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  color: #fff;
  background: #24211f;
}

.talimo-manifesto::after {
  content: "talimo";
  position: absolute;
  right: -0.08em;
  bottom: -0.26em;
  color: rgba(255, 255, 255, 0.035);
  font-family: var(--wp--preset--font-family--literary);
  font-size: clamp(9rem, 21vw, 20rem);
  font-style: italic;
  line-height: 1;
}

.talimo-manifesto > * {
  position: relative;
  z-index: 1;
}

.talimo-manifesto blockquote {
  margin: 0;
  border: 0;
}

.talimo-manifesto blockquote p {
  max-width: 21ch;
  margin: 0;
  font-family: var(--wp--preset--font-family--literary);
  font-size: clamp(2.25rem, 5.5vw, 5.4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.talimo-author-signature {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #c99c62;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.talimo-author-signature::before {
  content: "TW";
  display: grid;
  place-items: center;
  width: 2.6rem;
  aspect-ratio: 1;
  border: 1px solid rgba(201, 156, 98, 0.65);
  border-radius: 50%;
  font-family: var(--wp--preset--font-family--literary);
  font-size: 0.85rem;
  letter-spacing: 0;
}

.talimo-contact-card {
  border: 1px solid var(--talimo-border);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.80);
  box-shadow: var(--talimo-shadow-soft);
}

.talimo-contact-card h2 {
  letter-spacing: -0.035em;
}

.talimo-site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.talimo-footer-brand {
  margin: 0;
  color: #fff;
  font-family: var(--wp--preset--font-family--literary);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.talimo-footer-meta,
.talimo-footer-meta a {
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.79rem;
}

.talimo-footer-meta a:hover {
  color: #fff;
}

.talimo-page-shell {
  padding-top: clamp(3.5rem, 7vw, 6rem) !important;
  padding-bottom: clamp(5rem, 10vw, 9rem) !important;
}

.talimo-page-header {
  max-width: 56rem;
  margin-bottom: 3rem !important;
}

.talimo-page-header .wp-block-post-title {
  margin-bottom: 1rem;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.talimo-page-content {
  color: #4f4843;
  font-size: 1.04rem;
  line-height: 1.82;
}

.talimo-page-content > * + * {
  margin-block-start: 1.4em;
}

.talimo-page-content h2,
.talimo-page-content h3 {
  margin-top: 2.3em;
  color: #24211f;
  letter-spacing: -0.025em;
}

.talimo-book-shell {
  padding-top: clamp(3.5rem, 7vw, 6.8rem) !important;
  padding-bottom: clamp(5rem, 9vw, 8rem) !important;
}

.talimo-book-layout {
  align-items: flex-start !important;
}

.talimo-book-cover-column {
  position: sticky;
  top: 7rem;
}

.talimo-book-cover {
  overflow: hidden;
  border-radius: 4px 14px 14px 4px;
  box-shadow: var(--talimo-shadow-book);
}

.talimo-book-cover img {
  aspect-ratio: 0.6667;
  object-fit: cover;
}

.talimo-book-title {
  margin: 0.65rem 0 1.25rem !important;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.talimo-book-excerpt {
  color: #6b625b;
  font-family: var(--wp--preset--font-family--literary);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-style: italic;
  line-height: 1.55;
}

.talimo-book-content {
  color: #4f4843;
  line-height: 1.82;
}

.talimo-back-link {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.talimo-post-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--talimo-border);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.76);
  box-shadow: 0 12px 30px rgba(65, 51, 40, 0.07);
}

.talimo-post-card .wp-block-post-featured-image {
  margin: 0;
}

.talimo-post-card .wp-block-post-featured-image img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.talimo-post-card-body {
  padding: 1.5rem !important;
}

.talimo-post-card .wp-block-post-title {
  margin: 0;
  font-size: 1.6rem;
}

.talimo-empty-cover {
  display: grid;
  place-items: center;
  min-height: 430px;
  border: 1px dashed rgba(36, 33, 31, 0.24);
  border-radius: 4px 14px 14px 4px;
  color: #746a63;
  background: linear-gradient(145deg, #efe4d6, #f9f4eb);
  box-shadow: var(--talimo-shadow-soft);
  text-align: center;
}

.talimo-order-box {
  margin-top: 2.5rem !important;
  padding: clamp(1.4rem, 3vw, 2rem) !important;
  border: 1px solid rgba(138, 62, 87, 0.15);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(243, 221, 226, 0.58), rgba(255, 253, 248, 0.88));
}

.talimo-order-box h3 {
  margin: 0;
  font-size: 1.45rem;
}

.talimo-order-box p {
  margin: 0.45rem 0 0;
  color: #6b625b;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .talimo-hero {
    min-height: auto;
  }

  .talimo-hero-grid,
  .talimo-book-layout {
    flex-direction: column;
  }

  .talimo-hero-copy-column,
  .talimo-hero-visual-column,
  .talimo-book-cover-column,
  .talimo-book-copy-column {
    flex-basis: auto !important;
    width: 100%;
  }

  .talimo-hero-copy-column {
    padding-top: 5rem !important;
  }

  .talimo-cover-stage {
    min-height: 540px;
  }

  .talimo-book-cover-column {
    position: static;
    max-width: 340px;
    margin-inline: auto;
  }
}

@media (max-width: 600px) {
  .admin-bar .talimo-site-header {
    top: 46px;
  }

  .talimo-header-inner {
    min-height: 66px;
  }

  .talimo-brand .wp-block-site-tagline {
    display: none;
  }

  .talimo-hero-copy-column {
    padding-top: 3.5rem !important;
  }

  .talimo-hero-title {
    max-width: none;
  }

  .talimo-button-row {
    gap: 0.65rem !important;
  }

  .talimo-button-row .wp-block-button,
  .talimo-button-row .wp-block-button__link {
    width: 100%;
  }

  .talimo-cover-stage {
    min-height: 470px;
  }

  .talimo-feature-cover {
    width: min(290px, 74%);
  }

  .talimo-cover-note {
    right: 1%;
    bottom: 3.4rem;
    width: 48%;
  }

  .talimo-series-card {
    min-height: 285px;
  }

  .talimo-manifesto {
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
