/* The Faithful Way visual system */

:root {
  --tfw-cream: #fbf8f0;
  --tfw-paper: #f7f3e9;
  --tfw-sage: #9caf88;
  --tfw-sage-pale: #dce3d3;
  --tfw-olive: #6f7b55;
  --tfw-olive-deep: #4f5b3b;
  --tfw-sepia: #7d6c51;
  --tfw-ink: #3e362a;
  --tfw-lavender: #a79fb5;
  --tfw-rule: rgba(94, 105, 72, 0.24);
  --tfw-shadow: 0 20px 60px rgba(62, 54, 42, 0.09);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--tfw-cream);
}

.wp-site-blocks {
  overflow: clip;
}

.tfw-paper {
  background-color: var(--tfw-paper);
  background-image:
    radial-gradient(circle at 18% 22%, rgba(156, 175, 136, 0.06), transparent 32%),
    repeating-linear-gradient(103deg, rgba(62, 54, 42, 0.012) 0, rgba(62, 54, 42, 0.012) 1px, transparent 1px, transparent 6px);
}

.tfw-home h1,
.tfw-home h2,
.tfw-home h3 {
  text-wrap: balance;
}

.tfw-home p {
  text-wrap: pretty;
}

.tfw-kicker {
  margin: 0 0 1rem;
  color: var(--tfw-olive-deep);
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.tfw-section-title {
  margin-top: 0;
  color: var(--tfw-ink);
  font-size: clamp(2.45rem, 5vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

.tfw-section-lede {
  max-width: 52ch;
  margin: 1.2rem auto 0;
  color: var(--tfw-sepia);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.7;
}

.tfw-primary-button .wp-element-button,
.tfw-text-link,
.tfw-outline-button .wp-element-button {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.83rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tfw-primary-button .wp-element-button {
  min-width: 180px;
  padding: 1rem 1.7rem;
  border: 1px solid var(--tfw-olive-deep);
  background: var(--tfw-olive-deep);
  box-shadow: 0 8px 22px rgba(79, 91, 59, 0.15);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.tfw-primary-button .wp-element-button:hover {
  color: var(--tfw-olive-deep);
  background: transparent;
  transform: translateY(-2px);
}

.tfw-outline-button .wp-element-button {
  padding: 0.85rem 1.5rem;
  border-color: var(--tfw-olive-deep) !important;
  color: var(--tfw-olive-deep) !important;
  background: transparent !important;
}

.tfw-outline-button .wp-element-button:hover {
  color: var(--tfw-cream) !important;
  background: var(--tfw-olive-deep) !important;
}

.tfw-text-link {
  display: inline-block;
  margin-top: 0.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--tfw-olive);
  color: var(--tfw-olive-deep);
  text-decoration: none;
}

.tfw-text-link:hover {
  color: var(--tfw-sepia);
  border-color: var(--tfw-sepia);
}

/* Header */
.tfw-site-header {
  position: relative;
  z-index: 20;
  padding-top: 1.15rem !important;
  padding-bottom: 1.15rem !important;
  border-bottom: 1px solid var(--tfw-rule);
  background: rgba(251, 248, 240, 0.94);
  backdrop-filter: blur(14px);
}

.tfw-site-header > .wp-block-group {
  width: calc(100% - 3rem);
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
}

.tfw-site-header .wp-block-site-title {
  margin: 0;
  color: var(--tfw-ink);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem) !important;
  font-weight: 600;
  letter-spacing: 0.035em !important;
}

.tfw-site-header .wp-block-site-title a {
  text-decoration: none;
}

.tfw-site-header .wp-block-navigation-item__content {
  position: relative;
  color: var(--tfw-ink);
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tfw-site-header .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 1px;
  background: var(--tfw-olive);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.tfw-site-header .wp-block-navigation-item__content:hover::after {
  transform: scaleX(1);
}

.wc-block-mini-cart {
  display: none !important;
}

/* Hero */
.tfw-home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--tfw-cream);
  background-image: url("/wp-content/themes/the-faithful-way/assets/img/png/hero-botanical-frame.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.tfw-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(251, 248, 240, 0.58), rgba(251, 248, 240, 0.08) 52%, transparent 72%);
}

.tfw-home-hero::after {
  display: none;
}

.tfw-home-hero .wp-block-cover__background {
  opacity: 0 !important;
}

.tfw-home-hero .wp-block-cover__inner-container {
  position: relative;
  z-index: 3;
  width: 100%;
}

.tfw-hero-frame {
  position: relative;
  box-sizing: border-box;
  width: calc(100% - 2rem);
  max-width: 820px;
  margin: 4.5rem auto 8rem;
  padding: clamp(3.5rem, 7vw, 5.4rem) clamp(1.5rem, 6vw, 4.8rem);
  border: 1px solid rgba(94, 105, 72, 0.34);
  background: rgba(251, 248, 240, 0.48);
  box-shadow: 0 26px 80px rgba(62, 54, 42, 0.08);
}

.tfw-hero-frame::before,
.tfw-hero-frame::after {
  content: "";
  position: absolute;
  width: 52px;
  height: 52px;
  border-color: var(--tfw-olive);
  opacity: 0.55;
}

.tfw-hero-frame::before {
  top: -10px;
  left: -10px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.tfw-hero-frame::after {
  right: -10px;
  bottom: -10px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.tfw-home-title {
  margin: 0;
  color: var(--tfw-ink);
  font-size: clamp(3.8rem, 8vw, 7.4rem);
  font-weight: 450;
  letter-spacing: -0.045em;
  line-height: 0.82;
}

.tfw-home-subtitle {
  max-width: 650px;
  margin: 2rem auto 2.2rem;
  color: var(--tfw-sepia);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 350;
  line-height: 1.65;
}

/* Introduction */
.tfw-intro-section {
  position: relative;
  padding: clamp(6rem, 10vw, 10rem) 1.5rem;
}

.tfw-intro-section::after {
  content: "";
  position: absolute;
  right: clamp(0.5rem, 3vw, 3rem);
  bottom: 1.5rem;
  width: clamp(58px, 7vw, 95px);
  height: 310px;
  background: url("/wp-content/themes/the-faithful-way/assets/img/png/lavender-sprig-001.png") no-repeat center bottom / contain;
  opacity: 0.2;
  pointer-events: none;
}

.tfw-intro-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 58px;
  background: var(--tfw-olive);
  opacity: 0.55;
}

.tfw-intro-grid {
  gap: clamp(3rem, 7vw, 7rem);
}

.tfw-intro-grid .tfw-section-title {
  max-width: 9ch;
}

.tfw-intro-quote {
  max-width: 28ch;
  margin-top: 2.6rem;
  padding: 1.2rem 0 1.2rem 1.5rem;
  border-left: 2px solid var(--tfw-sage);
  color: var(--tfw-olive-deep);
  font-family: var(--wp--preset--font-family--serif);
  font-size: 1.35rem;
  line-height: 1.45;
}

.tfw-intro-copy {
  padding-top: 0.4rem;
  color: #574d3d;
  font-size: 1.08rem;
}

.tfw-intro-copy p:first-child::first-letter {
  float: left;
  margin: 0.05em 0.12em 0 0;
  color: var(--tfw-olive-deep);
  font-family: var(--wp--preset--font-family--serif);
  font-size: 4.4rem;
  line-height: 0.72;
}

.tfw-intro-copy p {
  margin-top: 0;
  margin-bottom: 1.35rem;
}

/* Featured article */
.tfw-featured-section {
  position: relative;
  padding: clamp(5rem, 9vw, 9rem) 1.5rem;
  background:
    radial-gradient(circle at 18% 50%, rgba(220, 227, 211, 0.85), transparent 32%),
    linear-gradient(115deg, #d3dec9 0%, #edf0e6 45%, #f7f3e9 100%);
}

.tfw-featured-section::after {
  content: "";
  position: absolute;
  top: 2rem;
  right: 6vw;
  width: clamp(80px, 12vw, 140px);
  height: clamp(80px, 12vw, 140px);
  background: url("/wp-content/themes/the-faithful-way/assets/img/png/botanical-wreath-001.png") no-repeat center / contain;
  opacity: 0.12;
  pointer-events: none;
}

.tfw-featured-grid {
  position: relative;
  z-index: 2;
  gap: clamp(2rem, 6vw, 6rem);
}

.tfw-featured-art img {
  width: min(100%, 540px);
  filter: drop-shadow(0 18px 30px rgba(62, 54, 42, 0.1));
}

.tfw-featured-copy {
  padding: clamp(2rem, 4vw, 4rem) 0;
}

.tfw-featured-title {
  margin: 1.25rem 0 0.8rem;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 500;
  line-height: 1.02;
}

.tfw-featured-title a {
  color: var(--tfw-ink);
  text-decoration: none;
}

.tfw-featured-title a:hover {
  color: var(--tfw-olive-deep);
}

.tfw-featured-excerpt {
  color: #574d3d;
  font-size: 1.08rem;
  line-height: 1.75;
}

/* Merch */
.tfw-shop-section {
  position: relative;
  padding: clamp(6rem, 10vw, 9rem) 1.5rem;
}

.tfw-shop-section::before,
.tfw-shop-section::after {
  content: "";
  position: absolute;
  top: 4rem;
  width: 150px;
  height: 1px;
  background: var(--tfw-rule);
}

.tfw-shop-section::before {
  left: calc(50% - 250px);
}

.tfw-shop-section::after {
  right: calc(50% - 250px);
}

.tfw-merch-grid {
  gap: 1.3rem;
  margin-top: 3.8rem;
  margin-bottom: 2.5rem;
}

.tfw-merch-card {
  position: relative;
  min-height: 380px;
  padding: 3rem 1.5rem 2rem;
  border: 1px solid var(--tfw-rule);
  background: rgba(251, 248, 240, 0.66);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.tfw-merch-card:hover {
  border-color: rgba(94, 105, 72, 0.5);
  box-shadow: var(--tfw-shadow);
  transform: translateY(-4px);
}

.tfw-merch-card figure {
  display: grid;
  min-height: 190px;
  place-items: center;
  margin-bottom: 1.5rem;
}

.tfw-merch-card img {
  max-width: 92%;
  max-height: 210px;
  object-fit: contain;
  opacity: 0.96;
}

.tfw-merch-card h3 {
  margin: 0;
  font-size: 2rem;
  font-weight: 500;
}

.tfw-card-note {
  margin-top: 0.4rem;
  color: var(--tfw-sepia);
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Recent studies */
.tfw-recent-section {
  padding: clamp(6rem, 10vw, 9rem) 1.5rem;
  background: var(--tfw-cream);
}

.tfw-section-heading-row {
  align-items: flex-end;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--tfw-rule);
}

.tfw-section-heading-row .tfw-section-title {
  margin-bottom: 0;
}

.tfw-heading-link {
  margin-bottom: 0.35rem;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tfw-study-card {
  height: 100%;
  padding: 2rem;
  border-top: 3px solid var(--tfw-sage);
  background: var(--tfw-paper);
}

.tfw-study-card h3 {
  font-size: 2rem;
  font-weight: 500;
}

.tfw-study-card h3 a {
  color: var(--tfw-ink);
  text-decoration: none;
}

.tfw-card-number {
  color: var(--tfw-sepia);
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tfw-coming-soon {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem);
  border: 1px solid var(--tfw-rule);
  background: var(--tfw-paper);
}

.tfw-coming-soon::before,
.tfw-coming-soon::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(40px, 9vw, 120px);
  height: 1px;
  background: var(--tfw-sage);
  opacity: 0.55;
}

.tfw-coming-soon::before {
  left: 0;
}

.tfw-coming-soon::after {
  right: 0;
}

.tfw-coming-soon p:last-child {
  max-width: 48ch;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
  color: var(--tfw-sepia);
}

/* Challenge */
.tfw-challenge-section {
  position: relative;
  isolation: isolate;
  padding: clamp(6rem, 10vw, 10rem) 1.5rem;
  color: #f1ecdf;
  background: var(--tfw-olive-deep);
}

.tfw-challenge-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(79, 91, 59, 0.91), rgba(79, 91, 59, 0.96)),
    url("/wp-content/themes/the-faithful-way/assets/img/png/olive-branch-003.png"),
    url("/wp-content/themes/the-faithful-way/assets/img/png/olive-branch-004.png");
  background-position: center, left bottom, right top;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: cover, min(620px, 58vw) auto, min(620px, 58vw) auto;
  filter: saturate(0.7);
}

.tfw-challenge-section::after {
  content: "";
  position: absolute;
  top: 3rem;
  bottom: 3rem;
  left: 50%;
  z-index: -1;
  width: min(900px, calc(100% - 3rem));
  border: 1px solid rgba(241, 236, 223, 0.2);
  transform: translateX(-50%);
}

.tfw-kicker-light {
  color: #dfe7d6;
}

.tfw-challenge-title {
  margin: 0;
  color: #fbf8f0;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 450;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.tfw-challenge-answer {
  margin: 1rem 0 3rem;
  color: #dce3d3;
  font-family: var(--wp--preset--font-family--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
}

.tfw-challenge-section > p:not(.tfw-kicker):not(.tfw-challenge-answer):not(.tfw-challenge-close) {
  max-width: 650px;
  margin-right: auto;
  margin-left: auto;
  color: rgba(251, 248, 240, 0.88);
}

.tfw-challenge-close {
  margin-top: 2.6rem;
  color: #fbf8f0;
  font-family: var(--wp--preset--font-family--serif);
  font-size: 1.6rem;
}

/* Call to action */
.tfw-cta-section {
  position: relative;
  padding: clamp(6rem, 10vw, 9rem) 1.5rem;
}

.tfw-cta-section figure {
  margin-bottom: 2rem;
  opacity: 0.8;
}

.tfw-cta-section .wp-block-buttons {
  margin-top: 2rem;
}

.tfw-cta-note {
  margin-top: 1rem;
  color: var(--tfw-sepia);
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.82rem;
}

/* Footer */
footer.wp-block-group {
  border-top: 1px solid var(--tfw-rule);
  background-color: #eee8db !important;
  background-image: repeating-linear-gradient(103deg, rgba(62, 54, 42, 0.012) 0, rgba(62, 54, 42, 0.012) 1px, transparent 1px, transparent 6px);
}

footer .wp-block-site-title a {
  color: var(--tfw-ink);
  text-decoration: none;
}

footer .wp-block-navigation-item__content {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== Page hero (interior pages) ===== */
.tfw-page-hero {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 1.5rem clamp(3rem, 5vw, 5rem);
  text-align: center;
  background: var(--tfw-paper);
}

.tfw-page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 48px;
  background: var(--tfw-olive);
  opacity: 0.5;
}

.tfw-page-hero h1 {
  margin: 0;
  color: var(--tfw-ink);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 450;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.tfw-page-hero .tfw-page-lede {
  max-width: 56ch;
  margin: 1.5rem auto 0;
  color: var(--tfw-sepia);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.65;
}

.tfw-page-hero .tfw-kicker {
  text-align: center;
}

/* ===== Articles listing page ===== */
.tfw-articles-page {
  background: var(--tfw-cream);
}

.tfw-articles-list {
  padding: clamp(2rem, 4vw, 4rem) 1.5rem clamp(4rem, 8vw, 7rem);
}

.tfw-article-item {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  border-bottom: 1px solid var(--tfw-rule);
}

.tfw-article-item:first-child {
  padding-top: clamp(1rem, 3vw, 2rem);
}

.tfw-article-item:last-child {
  border-bottom: none;
}

.tfw-article-item h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 500;
  line-height: 1.05;
}

.tfw-article-item h2 a {
  color: var(--tfw-ink);
  text-decoration: none;
}

.tfw-article-item h2 a:hover {
  color: var(--tfw-olive-deep);
}

.tfw-article-meta {
  color: var(--tfw-sepia);
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.tfw-article-item .wp-block-post-excerpt__excerpt {
  color: #574d3d;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== Bible Studies page ===== */
.tfw-wash {
  background: var(--tfw-paper);
}

.tfw-sample-card {
  position: relative;
  max-width: 680px;
  margin: clamp(2rem, 4vw, 4rem) auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--tfw-sage);
  background: rgba(251, 248, 240, 0.7);
  box-shadow: var(--tfw-shadow);
}

.tfw-sample-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 60px;
  height: 1px;
  background: var(--tfw-sage);
  opacity: 0;
}

.tfw-study-card-full {
  padding: clamp(1.8rem, 3vw, 2.5rem);
  border: 1px solid var(--tfw-rule);
  background: rgba(251, 248, 240, 0.6);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
  height: 100%;
}

.tfw-study-card-full:hover {
  border-color: rgba(94, 105, 72, 0.45);
  box-shadow: var(--tfw-shadow);
  transform: translateY(-3px);
}

.tfw-study-card-full h3 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 500;
  line-height: 1.1;
}

.tfw-study-card-full .tfw-paired {
  color: var(--tfw-sepia);
  font-family: var(--wp--preset--font-family--serif);
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.tfw-study-card-full .tfw-study-desc {
  color: #574d3d;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.tfw-study-card-full .tfw-study-meta {
  color: var(--tfw-sepia);
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.tfw-steps-section {
  background: var(--tfw-sage-pale);
  background-image: repeating-linear-gradient(103deg, rgba(62, 54, 42, 0.008) 0, rgba(62, 54, 42, 0.008) 1px, transparent 1px, transparent 6px);
}

.tfw-steps {
  max-width: 620px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  counter-reset: tfw-step;
}

.tfw-steps li {
  position: relative;
  padding: 1.2rem 0 1.2rem 3.5rem;
  border-bottom: 1px solid rgba(94, 105, 72, 0.18);
  color: var(--tfw-ink);
  line-height: 1.6;
}

.tfw-steps li:last-child {
  border-bottom: none;
}

.tfw-steps li::before {
  counter-increment: tfw-step;
  content: counter(tfw-step);
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tfw-olive);
  border-radius: 50%;
  color: var(--tfw-olive-deep);
  font-family: var(--wp--preset--font-family--serif);
  font-size: 1.1rem;
  font-weight: 600;
}

.tfw-steps li strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--tfw-olive-deep);
  font-family: var(--wp--preset--font-family--serif);
  font-size: 1.15rem;
  font-weight: 600;
}

/* ===== Shop page ===== */
.tfw-shop-page {
  background: var(--tfw-cream);
}

.tfw-shop-intro {
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
  text-align: center;
}

.tfw-shop-intro .tfw-section-lede {
  margin: 1.2rem auto 0;
}

.tfw-shop-placeholder {
  max-width: 760px;
  margin: clamp(2rem, 5vw, 4rem) auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 4rem);
  border: 1px solid var(--tfw-rule);
  background: var(--tfw-paper);
  text-align: center;
}

.tfw-shop-placeholder::before {
  content: "";
  display: block;
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
  background: url("/wp-content/themes/the-faithful-way/assets/img/png/botanical-wreath-001.png") no-repeat center / contain;
  opacity: 0.4;
}

.tfw-shop-placeholder h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 500;
}

.tfw-shop-placeholder p {
  max-width: 48ch;
  margin: 0 auto 1.2rem;
  color: var(--tfw-sepia);
  font-size: 1.05rem;
  line-height: 1.7;
}

.tfw-shop-design-philosophy {
  padding: clamp(4rem, 8vw, 7rem) 1.5rem;
  max-width: 760px;
  margin: 0 auto;
}

.tfw-shop-design-philosophy h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.tfw-shop-design-philosophy p {
  color: #574d3d;
  font-size: 1.08rem;
  line-height: 1.75;
  margin-bottom: 1.4rem;
}

/* ===== About page ===== */
.tfw-about-page {
  background: var(--tfw-cream);
}

.tfw-about-section {
  padding: clamp(2rem, 4vw, 4rem) 1.5rem;
}

.tfw-about-section:first-of-type {
  padding-top: clamp(3rem, 6vw, 5rem);
}

.tfw-about-section h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.tfw-about-section p {
  color: #574d3d;
  font-size: 1.08rem;
  line-height: 1.8;
  margin-bottom: 1.3rem;
}

.tfw-about-section p em {
  color: var(--tfw-olive-deep);
}

.tfw-about-privacy {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--tfw-rule);
  background: var(--tfw-paper);
  max-width: 680px;
  margin: 2rem auto;
}

.tfw-about-privacy h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.tfw-about-privacy p {
  color: #574d3d;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== Contact page ===== */
.tfw-contact-page {
  background: var(--tfw-cream);
}

.tfw-contact-info {
  padding: clamp(2rem, 4vw, 4rem) 1.5rem;
  max-width: 680px;
  margin: 0 auto;
}

.tfw-contact-info h2 {
  margin: 2rem 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
}

.tfw-contact-info p {
  color: #574d3d;
  font-size: 1.08rem;
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.tfw-contact-notes {
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--tfw-rule);
  background: var(--tfw-paper);
  margin: 2rem auto;
  max-width: 680px;
}

.tfw-contact-notes h2 {
  margin: 0 0 1.2rem;
  text-align: center;
}

.tfw-contact-notes ul {
  list-style: none;
  padding: 0;
}

.tfw-contact-notes li {
  position: relative;
  padding: 1rem 0 1rem 2rem;
  border-bottom: 1px solid rgba(94, 105, 72, 0.12);
  color: #574d3d;
  line-height: 1.6;
}

.tfw-contact-notes li:last-child {
  border-bottom: none;
}

.tfw-contact-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.4rem;
  width: 8px;
  height: 8px;
  border: 1px solid var(--tfw-sage);
  border-radius: 50%;
}

.tfw-contact-notes li strong {
  color: var(--tfw-olive-deep);
}

.tfw-contact-form-placeholder {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--tfw-sage);
  background: rgba(251, 248, 240, 0.7);
  text-align: center;
}

.tfw-contact-form-placeholder h2 {
  margin: 0 0 1rem;
}

.tfw-contact-form-placeholder p {
  color: var(--tfw-sepia);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== Signup page ===== */
.tfw-signup-page {
  background: var(--tfw-cream);
}

.tfw-signup-columns {
  padding: clamp(2rem, 4vw, 4rem) 1.5rem;
}

.tfw-signup-columns h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  margin-bottom: 1.2rem;
}

.tfw-signup-columns ul {
  list-style: none;
  padding: 0;
}

.tfw-signup-columns li {
  position: relative;
  padding: 0.8rem 0 0.8rem 2rem;
  border-bottom: 1px solid rgba(94, 105, 72, 0.1);
  color: #574d3d;
  line-height: 1.6;
}

.tfw-signup-columns li:last-child {
  border-bottom: none;
}

.tfw-signup-columns li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 8px;
  height: 8px;
  background: var(--tfw-sage);
  border-radius: 50%;
}

.tfw-signup-get li::before {
  background: var(--tfw-sage);
}

.tfw-signup-not-get li::before {
  background: var(--tfw-sepia);
}

.tfw-signup-card {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--tfw-sage);
  background: rgba(251, 248, 240, 0.7);
  box-shadow: var(--tfw-shadow);
}

.tfw-signup-card h2 {
  text-align: center;
  margin: 0 0 1.5rem;
}

.tfw-signup-privacy {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) 1.5rem;
  text-align: center;
}

.tfw-signup-privacy h2 {
  margin: 0 0 1.5rem;
}

.tfw-signup-privacy p {
  color: var(--tfw-sepia);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* Reading experience and dark mode */
.single-post .wp-block-post-content {
  font-size: 1.125rem;
}

.single-post .wp-block-post-content p {
  margin-bottom: 1.4em;
}

html.tfw-dark body,
html.tfw-dark .wp-site-blocks {
  color: var(--wp--preset--color--paper-dark);
  background-color: var(--wp--preset--color--night);
}

html.tfw-dark h1,
html.tfw-dark h2,
html.tfw-dark h3,
html.tfw-dark h4,
html.tfw-dark h5,
html.tfw-dark h6 {
  color: var(--wp--preset--color--paper-dark);
}

html.tfw-dark a {
  color: var(--wp--preset--color--sage-light);
}

html.tfw-dark .wp-block-quote,
html.tfw-dark .wp-block-pullquote {
  color: var(--wp--preset--color--taupe);
}

.tfw-dark-toggle {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--wp--preset--color--taupe);
  border-radius: 999px;
  color: var(--wp--preset--color--ink);
  background: var(--wp--preset--color--parchment);
  box-shadow: 0 2px 10px rgba(46, 42, 36, 0.12);
  cursor: pointer;
  font-family: var(--wp--preset--font-family--serif);
  font-size: 0.95rem;
}

html.tfw-dark .tfw-dark-toggle {
  border-color: var(--wp--preset--color--olive);
  color: var(--wp--preset--color--paper-dark);
  background: var(--wp--preset--color--night-soft);
}

.tfw-dark-toggle svg {
  width: 16px;
  height: 16px;
}

/* WooCommerce */
.woocommerce .products .product {
  padding: 1rem;
  border: 1px solid var(--tfw-sage-pale);
  border-radius: 0;
  background: var(--tfw-paper);
}

.woocommerce a.button,
.woocommerce button.button {
  border-radius: 0;
  color: var(--tfw-cream);
  background: var(--tfw-olive);
  font-family: var(--wp--preset--font-family--sans);
}

/* Responsive */
@media (max-width: 900px) {
  .tfw-home-hero {
    min-height: 650px !important;
  }

  .tfw-hero-frame {
    margin: 3rem 1rem 7rem;
  }

  .tfw-home-title {
    font-size: clamp(3.4rem, 12vw, 5.7rem);
  }

  .tfw-intro-grid,
  .tfw-featured-grid {
    gap: 2.5rem;
  }

  .tfw-featured-art {
    flex-basis: 36% !important;
  }

  .tfw-featured-copy {
    flex-basis: 64% !important;
  }

  .tfw-merch-card {
    min-height: 340px;
  }
}

@media (max-width: 781px) {
  .tfw-site-header > .wp-block-group {
    width: calc(100% - 2rem);
  }

  .tfw-site-header .wp-block-navigation__responsive-container-open {
    display: flex;
    color: var(--tfw-ink);
  }

  .tfw-site-header .wp-block-navigation__responsive-container.is-menu-open {
    padding: 2rem;
    color: var(--tfw-ink);
    background: var(--tfw-paper);
  }

  .tfw-home-hero {
    min-height: 610px !important;
  }

  .tfw-home-hero::after {
    display: none;
  }

  .tfw-home-hero {
    background-position: 18% center;
  }

  .tfw-hero-frame {
    margin: 2.5rem 0.75rem 6rem;
    padding: 3.5rem 1.25rem;
  }

  .tfw-home-title {
    font-size: clamp(3.15rem, 15vw, 5.2rem);
  }

  .tfw-home-subtitle {
    font-size: 1.05rem;
  }

  .tfw-intro-grid .tfw-section-title {
    max-width: none;
  }

  .tfw-intro-quote {
    max-width: none;
  }

  .tfw-intro-copy {
    padding-top: 0;
  }

  .tfw-featured-art {
    max-width: 430px;
    margin: 0 auto;
  }

  .tfw-featured-copy {
    text-align: center;
  }

  .tfw-featured-copy .tfw-text-link {
    margin-right: auto;
    margin-left: auto;
  }

  .tfw-merch-grid {
    gap: 1rem;
  }

  .tfw-merch-card {
    min-height: 0;
  }

  .tfw-section-heading-row {
    align-items: flex-start;
  }

  .tfw-coming-soon::before,
  .tfw-coming-soon::after {
    display: none;
  }

  .tfw-challenge-section::after {
    top: 1.5rem;
    bottom: 1.5rem;
  }

  footer .wp-block-navigation {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .tfw-kicker {
    letter-spacing: 0.13em;
  }

  .tfw-home-title {
    font-size: 3rem;
    letter-spacing: -0.035em;
    line-height: 0.92;
  }

  .tfw-home-title br {
    display: none;
  }

  .tfw-home-subtitle {
    font-size: 1rem;
    line-height: 1.55;
  }

  .tfw-hero-frame {
    width: calc(100% - 1rem);
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.1rem;
    padding-left: 1.1rem;
  }

  .tfw-section-title {
    font-size: clamp(2.5rem, 13vw, 3.4rem);
  }

  .tfw-shop-section::before,
  .tfw-shop-section::after {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}