/*
Theme Name: Cedar Table Journal
Author: Elara North Studio
Description: A warm editorial WordPress theme for food, dining, and lifestyle publishers.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: ttobh-theme
*/

:root {
  --ttobh-bg: #f8f4ec;
  --ttobh-cream: #fffaf1;
  --ttobh-card: #fffdf8;
  --ttobh-ink: #171614;
  --ttobh-muted: #6d685f;
  --ttobh-line: #e6ded0;
  --ttobh-green: #087f5b;
  --ttobh-green-dark: #05543d;
  --ttobh-lime: #cff43d;
  --ttobh-orange: #ff6840;
  --ttobh-orange-dark: #e34f2b;
  --ttobh-shadow: 0 18px 42px rgba(28, 25, 20, 0.1);
  --ttobh-soft-shadow: 0 12px 28px rgba(28, 25, 20, 0.07);
  --ttobh-radius: 13px;
  --ttobh-max: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ttobh-bg);
  color: var(--ttobh-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--ttobh-green);
}

button,
input,
textarea,
select {
  font: inherit;
}

.ttobh-skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--ttobh-ink);
  color: #fff;
}

.ttobh-skip-link:focus {
  top: 1rem;
}

.ttobh-section {
  width: min(100% - 42px, var(--ttobh-max));
  margin: 0 auto;
}

.ttobh-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 241, 0.96);
  border-bottom: 1px solid rgba(230, 222, 208, 0.9);
  backdrop-filter: blur(14px);
}

.ttobh-header-inner {
  width: min(100% - 48px, var(--ttobh-max));
  min-height: 64px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}

.ttobh-brand {
  display: inline-flex;
  width: max-content;
  min-width: 0;
  align-items: center;
  color: var(--ttobh-green-dark);
}

.ttobh-brand-text {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ttobh-green-dark);
  line-height: 0.9;
  letter-spacing: 0;
}

.ttobh-brand-line-one {
  position: relative;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 800;
}

.ttobh-brand-line-two {
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  font-weight: 900;
}

.ttobh-logo-sprig {
  position: absolute;
  right: -1.05rem;
  top: 0.06rem;
  width: 0.95rem;
  height: 1.15rem;
}

.ttobh-logo-sprig::before {
  position: absolute;
  left: 0.46rem;
  top: 0.18rem;
  width: 2px;
  height: 0.8rem;
  background: var(--ttobh-green);
  transform: rotate(26deg);
  content: "";
}

.ttobh-logo-sprig span {
  position: absolute;
  width: 0.42rem;
  height: 0.26rem;
  border-radius: 999px 0;
  background: var(--ttobh-green);
}

.ttobh-logo-sprig span:first-child {
  left: 0.1rem;
  top: 0.28rem;
  transform: rotate(-25deg);
}

.ttobh-logo-sprig span:last-child {
  right: 0.05rem;
  top: 0.06rem;
  transform: rotate(35deg);
}

.ttobh-custom-logo {
  width: auto;
  max-height: 48px;
}

.ttobh-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.ttobh-nav-toggle {
  min-width: 42px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--ttobh-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ttobh-ink);
  cursor: pointer;
}

.ttobh-nav-toggle-icon,
.ttobh-nav-toggle-icon::before,
.ttobh-nav-toggle-icon::after {
  width: 18px;
  height: 2px;
  display: block;
  background: currentColor;
  content: "";
}

.ttobh-nav-toggle-icon {
  position: relative;
}

.ttobh-nav-toggle-icon::before,
.ttobh-nav-toggle-icon::after {
  position: absolute;
  left: 0;
}

.ttobh-nav-toggle-icon::before {
  top: -6px;
}

.ttobh-nav-toggle-icon::after {
  top: 6px;
}

.ttobh-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(80vw, 320px);
  display: none;
  flex-direction: column;
  gap: 0.1rem;
  margin: 0;
  padding: 0.65rem;
  list-style: none;
  border: 1px solid var(--ttobh-line);
  border-radius: var(--ttobh-radius);
  background: #fff;
  box-shadow: var(--ttobh-shadow);
}

.ttobh-nav.ttobh-is-open .ttobh-menu {
  display: flex;
}

.ttobh-menu a {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 999px;
  color: var(--ttobh-ink);
  font-size: 0.94rem;
  font-weight: 650;
}

.ttobh-menu a:hover,
.ttobh-menu a:focus-visible,
.ttobh-menu .current-menu-item > a {
  background: rgba(8, 127, 91, 0.08);
  color: var(--ttobh-green);
}

.ttobh-header-cta,
.ttobh-button,
.ttobh-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  font-weight: 800;
}

.ttobh-header-cta,
.ttobh-button {
  min-height: 42px;
  padding: 0.68rem 1.25rem;
  border-radius: 999px;
  background: var(--ttobh-orange);
  color: #fff;
  box-shadow: 0 10px 18px rgba(255, 104, 64, 0.18);
}

.ttobh-header-cta {
  display: none;
  min-height: 36px;
  padding: 0.58rem 1.15rem;
  font-size: 0.88rem;
}

.ttobh-header-cta:hover,
.ttobh-header-cta:focus-visible,
.ttobh-button:hover,
.ttobh-button:focus-visible {
  background: var(--ttobh-orange-dark);
  color: #fff;
}

.ttobh-main {
  overflow: hidden;
}

.ttobh-hero {
  position: relative;
  padding: 2.8rem 0 0;
  background:
    linear-gradient(174deg, rgba(255, 255, 255, 0.7) 0 14%, transparent 14.2%),
    radial-gradient(ellipse at 50% 10%, rgba(255, 255, 255, 0.9), rgba(248, 244, 236, 0) 54%);
}

.ttobh-hero-shell {
  width: min(100% - 20px, 1440px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1.2rem;
}

.ttobh-hero-gallery {
  display: grid;
  gap: 0.75rem;
}

.ttobh-hero-gallery-left {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ttobh-hero-gallery-right {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ttobh-hero-photo {
  width: 100%;
  height: 100%;
  min-height: 128px;
  object-fit: cover;
  border-radius: var(--ttobh-radius);
  background: #ded6c8;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--ttobh-soft-shadow);
}

.ttobh-hero-photo-wide {
  grid-column: 1 / -1;
  min-height: 180px;
}

.ttobh-hero-copy {
  max-width: 580px;
  margin: 0 auto;
  padding: 1.2rem 0.3rem;
  text-align: center;
}

.ttobh-kicker {
  display: none;
}

.ttobh-hero-title {
  max-width: 560px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 9.4vw, 5.9rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
}

.ttobh-hero-text {
  margin: 1.1rem auto 1.35rem;
  color: var(--ttobh-muted);
  font-size: clamp(0.98rem, 1.8vw, 1.16rem);
}

.ttobh-benefit-strip {
  width: min(100% - 20px, 1440px);
  margin: 1.2rem auto 0;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--ttobh-line);
  border-bottom: 1px solid var(--ttobh-line);
  background: rgba(255, 250, 241, 0.78);
}

.ttobh-benefit {
  min-height: 94px;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  border-bottom: 1px solid var(--ttobh-line);
}

.ttobh-benefit:last-child {
  border-bottom: 0;
}

.ttobh-benefit strong {
  display: block;
  margin-bottom: 0.18rem;
  font-size: 0.96rem;
  line-height: 1.15;
}

.ttobh-benefit p {
  margin: 0;
  color: var(--ttobh-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.ttobh-benefit-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(8, 127, 91, 0.23);
  border-radius: 50%;
  background: #fffdf8;
}

.ttobh-benefit-icon span {
  width: 16px;
  height: 10px;
  display: block;
  border: 2px solid var(--ttobh-green);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 100% 0;
  transform: rotate(-38deg);
}

.ttobh-benefit-highlight {
  grid-template-columns: 46px 1fr auto;
  background: var(--ttobh-lime);
  border-radius: 14px;
  margin: 0.8rem;
  border: 0;
}

.ttobh-benefit-highlight a {
  min-width: 86px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(8, 127, 91, 0.2);
  border-radius: 999px;
  color: var(--ttobh-green-dark);
  font-size: 0.76rem;
  font-weight: 800;
}

.ttobh-latest {
  padding: 1.9rem 0 4rem;
  background: #fbf7ee;
}

.ttobh-latest-head {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.ttobh-section-title,
.ttobh-archive-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.ttobh-topic-row,
.ttobh-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.ttobh-topic-row .ttobh-chip-row {
  display: contents;
}

.ttobh-chip {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--ttobh-line);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--ttobh-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.ttobh-chip:hover,
.ttobh-chip:focus-visible,
.ttobh-chip-active {
  border-color: var(--ttobh-lime);
  background: var(--ttobh-lime);
  color: var(--ttobh-green-dark);
}

.ttobh-view-all {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 0.5rem;
  color: var(--ttobh-ink);
  font-size: 0.84rem;
  font-weight: 750;
}

.ttobh-view-all span {
  color: var(--ttobh-green);
}

.ttobh-post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.ttobh-post-card {
  overflow: hidden;
  border: 1px solid rgba(230, 222, 208, 0.9);
  border-radius: 12px;
  background: var(--ttobh-card);
  box-shadow: 0 10px 24px rgba(26, 22, 17, 0.06);
}

.ttobh-post-card-image {
  display: block;
  aspect-ratio: 1.55 / 1;
  overflow: hidden;
  background: #ded6c8;
}

.ttobh-post-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.ttobh-post-card:hover .ttobh-post-card-img {
  transform: scale(1.03);
}

.ttobh-post-card-body {
  padding: 0.95rem 1rem 1rem;
}

.ttobh-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.42rem;
  color: #8a8378;
  font-size: 0.72rem;
  font-weight: 700;
}

.ttobh-post-meta span {
  color: var(--ttobh-green);
}

.ttobh-post-card-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: 0;
}

.ttobh-post-card-title a:hover,
.ttobh-post-card-title a:focus-visible {
  color: var(--ttobh-green);
}

.ttobh-post-card-excerpt {
  margin: 0.55rem 0 0.8rem;
  color: var(--ttobh-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.ttobh-text-link {
  color: var(--ttobh-orange);
  font-size: 0.82rem;
  font-weight: 850;
}

.ttobh-empty-state {
  padding: 2rem;
  border: 1px solid var(--ttobh-line);
  border-radius: var(--ttobh-radius);
  background: var(--ttobh-card);
}

.ttobh-archive {
  padding: 2.6rem 0 4rem;
}

.ttobh-archive-head {
  margin-bottom: 1.35rem;
}

.ttobh-archive-description {
  max-width: 680px;
  color: var(--ttobh-muted);
}

.ttobh-single {
  padding: 2.8rem 0 4.4rem;
}

.ttobh-single-wrap {
  width: 80vw;
  max-width: 960px;
  margin: 0 auto;
}

.ttobh-single-header {
  margin-bottom: 1.7rem;
  text-align: center;
}

.ttobh-single-title {
  margin: 0.85rem auto 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 7vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.ttobh-single-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
  color: var(--ttobh-muted);
  font-size: 0.9rem;
}

.ttobh-content {
  overflow-wrap: break-word;
  color: var(--ttobh-ink);
  font-size: clamp(1rem, 2.4vw, 1.1rem);
  line-height: 1.72;
}

.ttobh-content p {
  margin: 0 0 1.25rem;
}

.ttobh-content h2,
.ttobh-content h3,
.ttobh-content h4 {
  margin: 2rem 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.1;
  letter-spacing: 0;
}

.ttobh-content a {
  color: var(--ttobh-green-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.ttobh-content img {
  border-radius: var(--ttobh-radius);
}

.ttobh-content :where(.alignwide) {
  width: min(100%, 1120px);
}

.ttobh-content :where(.wp-block-quote) {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--ttobh-orange);
  background: rgba(255, 253, 248, 0.75);
}

.ttobh-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1.5rem;
}

.ttobh-single-footer,
.ttobh-post-nav {
  margin-top: 2rem;
}

.ttobh-post-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.ttobh-post-nav a {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid var(--ttobh-line);
  border-radius: var(--ttobh-radius);
  background: var(--ttobh-card);
}

.ttobh-site-footer {
  border-top: 1px solid var(--ttobh-line);
  background: #111611;
  color: #fffaf1;
}

.ttobh-footer-inner {
  width: min(100% - 42px, var(--ttobh-max));
  margin: 0 auto;
  padding: 2rem 0;
  display: grid;
  gap: 1rem;
}

.ttobh-footer-brand p,
.ttobh-footer-note {
  color: rgba(255, 250, 241, 0.72);
}

.ttobh-footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ttobh-footer-menu a {
  color: #fffaf1;
}

.ttobh-footer-menu a:hover,
.ttobh-footer-menu a:focus-visible {
  color: var(--ttobh-lime);
}

@media (min-width: 700px) {
  .ttobh-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 980px) {
  .ttobh-header-inner {
    grid-template-columns: 260px 1fr auto;
    min-height: 68px;
  }

  .ttobh-nav {
    justify-content: center;
  }

  .ttobh-nav-toggle {
    display: none;
  }

  .ttobh-menu {
    position: static;
    width: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.65rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .ttobh-menu a {
    position: relative;
    padding: 0.45rem 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.78rem;
  }

  .ttobh-menu a::after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.28rem;
    height: 2px;
    background: transparent;
    content: "";
  }

  .ttobh-menu a:hover,
  .ttobh-menu a:focus-visible,
  .ttobh-menu .current-menu-item > a {
    background: transparent;
    color: var(--ttobh-green);
  }

  .ttobh-menu a:hover::after,
  .ttobh-menu a:focus-visible::after,
  .ttobh-menu .current-menu-item > a::after {
    background: var(--ttobh-green);
  }

  .ttobh-header-cta {
    display: inline-flex;
  }

  .ttobh-hero {
    padding-top: 2.2rem;
  }

  .ttobh-hero-shell {
    grid-template-columns: minmax(300px, 0.92fr) minmax(360px, 0.84fr) minmax(300px, 0.92fr);
    gap: 1.2rem;
  }

  .ttobh-hero-copy {
    padding-top: 0;
  }

  .ttobh-hero-gallery-left {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ttobh-hero-gallery-right {
    grid-template-columns: 0.92fr 1.08fr;
  }

  .ttobh-hero-photo {
    min-height: 154px;
  }

  .ttobh-hero-photo-wide {
    min-height: 176px;
  }

  .ttobh-benefit-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ttobh-benefit {
    border-right: 1px solid var(--ttobh-line);
    border-bottom: 0;
  }

  .ttobh-benefit:last-child {
    border-right: 0;
  }

  .ttobh-benefit-highlight {
    margin: 0.7rem;
  }

  .ttobh-latest-head {
    grid-template-columns: auto 1fr auto;
  }

  .ttobh-topic-row {
    justify-content: center;
  }

  .ttobh-view-all {
    justify-self: end;
  }

  .ttobh-post-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ttobh-footer-inner {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

@media (min-width: 1240px) {
  .ttobh-hero-photo {
    min-height: 168px;
  }

  .ttobh-hero-photo-wide {
    min-height: 194px;
  }
}

@media (max-width: 520px) {
  .ttobh-header-inner {
    width: min(100% - 28px, var(--ttobh-max));
  }

  .ttobh-brand-line-one {
    font-size: 0.96rem;
  }

  .ttobh-brand-line-two {
    font-size: 1.38rem;
  }

  .ttobh-hero-shell,
  .ttobh-benefit-strip {
    width: min(100% - 20px, 1440px);
  }

  .ttobh-benefit-highlight {
    grid-template-columns: 42px 1fr;
  }

  .ttobh-benefit-highlight a {
    grid-column: 2;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
