/*
Theme Name: Foodtippr Editorial
Theme URI: https://foodtippr.com/
Author: OpenAI
Author URI: https://openai.com/
Description: Editorial WordPress theme for Foodtippr with improved typography, readable article layouts, and support for recipe/review style presentation.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: foodtippr-editorial
*/

:root {
  --ft-bg: #ede0cf;
  --ft-bg-soft: #f7f1e8;
  --ft-surface: #f6f4f1;
  --ft-white: #ffffff;
  --ft-text: #1f1a17;
  --ft-muted: #83786f;
  --ft-accent: #dc6f32;
  --ft-accent-dark: #b95721;
  --ft-border: rgba(44, 29, 15, 0.08);
  --ft-shadow: 0 18px 60px rgba(62, 36, 14, 0.06);
  --ft-radius-xl: 34px;
  --ft-radius-lg: 28px;
  --ft-radius-md: 18px;
  --ft-radius-pill: 999px;
  --ft-max: 1180px;
  --ft-reading: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ft-text);
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.55), transparent 30%),
    linear-gradient(180deg, var(--ft-bg-soft) 0%, var(--ft-bg) 100%);
}

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

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

a:hover {
  color: var(--ft-accent-dark);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell,
.site-footer__inner,
.site-header__inner,
.post-card,
.archive-shell {
  width: min(calc(100% - 32px), var(--ft-max));
  margin-inline: auto;
}

.site-header {
  padding: 22px 0 16px;
}

.site-header__inner {
  background: rgba(249, 246, 241, 0.92);
  border: 1px solid var(--ft-border);
  box-shadow: var(--ft-shadow);
  border-radius: 0 0 32px 32px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}

.site-branding {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-title,
.site-title a {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.9rem, 2vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.site-description {
  margin: 0;
  font-size: 0.96rem;
  color: #61574f;
}

.primary-nav {
  display: flex;
  justify-content: center;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  font-size: 0.98rem;
  font-weight: 700;
  color: #403730;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-toggle,
.menu-toggle,
.read-more-link,
.submit,
input[type='submit'],
button,
.wp-block-button__link {
  border-radius: var(--ft-radius-pill);
}

.search-toggle,
.menu-toggle,
button,
input[type='submit'] {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255,255,255,0.75);
  color: #2f2823;
  font-weight: 700;
  padding: 13px 22px;
  cursor: pointer;
}

.site-shell {
  padding-bottom: 56px;
}

.post-card,
.page-card,
.archive-shell {
  background: linear-gradient(180deg, rgba(255,255,255,0.68), rgba(246,244,241,0.98));
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-xl);
  box-shadow: var(--ft-shadow);
}

.post-card,
.page-card {
  margin-top: 26px;
  margin-bottom: 56px;
  padding: 52px 54px 60px;
}

.post-card__header {
  margin-bottom: 22px;
}

.post-card__eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--ft-accent);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--ft-muted);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.post-card__title,
.entry-title {
  margin: 0 0 24px;
  max-width: 920px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.post-card__hero,
.post-card__hero img,
.wp-post-image,
.post-thumbnail img {
  border-radius: var(--ft-radius-lg);
}

.post-card__hero {
  overflow: hidden;
  margin-bottom: 28px;
}

.post-card__content,
.entry-content {
  max-width: var(--ft-reading);
  font-size: 1.08rem;
  line-height: 1.9;
  color: #403833;
}

.post-card__content > *:first-child,
.entry-content > *:first-child {
  margin-top: 0;
}

.post-card__content p,
.entry-content p {
  margin: 0 0 24px;
}

.post-card__content img,
.entry-content img {
  border-radius: 22px;
  margin: 14px 0 28px;
}

.post-card__content h2,
.post-card__content h3,
.entry-content h2,
.entry-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #26201c;
  margin: 40px 0 18px;
}

.post-card__content a,
.entry-content a {
  color: var(--ft-accent);
  font-weight: 700;
}

.recipe-panel,
.review-panel,
.generic-panel,
.comments-area {
  margin-top: 36px;
}

.recipe-grid,
.review-grid {
  display: grid;
  grid-template-columns: minmax(280px, 320px) 1fr;
  gap: 24px;
  align-items: start;
  max-width: 100%;
}

.card-panel {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(36, 24, 13, 0.08);
  border-radius: 22px;
  padding: 24px;
}

.card-panel h2,
.card-panel h3 {
  margin-top: 0;
}

.recipe-list,
.step-list,
.review-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.recipe-list li,
.review-points li {
  padding: 14px 16px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(36, 24, 13, 0.08);
  border-radius: 16px;
}

.step-list {
  counter-reset: step;
}

.step-list li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(36, 24, 13, 0.08);
  border-radius: 16px;
}

.step-list li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ft-accent), #f09a5d);
  color: white;
  font-weight: 800;
}

.video-embed {
  margin-top: 20px;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
}

.video-embed iframe,
.video-embed video,
.video-embed embed,
.video-embed object {
  width: 100%;
  min-height: 360px;
  display: block;
  border: 0;
}

.archive-shell {
  margin-top: 26px;
  padding: 34px 34px 40px;
}

.archive-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  margin: 0 0 10px;
  letter-spacing: -0.04em;
}

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

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.post-tile {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(36, 24, 13, 0.08);
  border-radius: 22px;
  overflow: hidden;
}

.post-tile__body {
  padding: 18px;
}

.post-tile__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.65rem;
  line-height: 1.08;
  margin: 0 0 10px;
}

.post-tile__meta {
  color: var(--ft-muted);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.post-tile__excerpt {
  color: #4c433d;
  line-height: 1.7;
}

.site-footer {
  padding: 0 0 52px;
}

.site-footer__inner {
  background: rgba(247, 242, 235, 0.76);
  border-top: 1px solid rgba(0,0,0,0.05);
  border-radius: 28px 28px 0 0;
  padding: 36px 22px 42px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}

.site-footer__title {
  margin: 0 0 8px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
}

.site-footer__copy,
.site-footer li,
.site-footer p {
  color: #5f554d;
  line-height: 1.7;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.comments-area {
  max-width: 100%;
  padding: 28px;
  background: rgba(255,255,255,0.66);
  border: 1px solid var(--ft-border);
  border-radius: 28px;
}

textarea,
input[type='text'],
input[type='email'],
input[type='search'],
input[type='url'] {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
  padding: 14px 16px;
  font: inherit;
}

.sticky-bar,
.mobile-bottom-bar,
.sidebar,
.widget-area,
.floating-share {
  display: none !important;
}

@media (max-width: 980px) {
  .site-header__inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .primary-nav {
    justify-content: flex-start;
  }

  .recipe-grid,
  .review-grid,
  .site-footer__grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-card,
  .page-card,
  .archive-shell {
    padding: 36px 24px 42px;
  }
}

@media (max-width: 720px) {
  .site-shell,
  .site-footer__inner,
  .site-header__inner,
  .post-card,
  .archive-shell {
    width: min(calc(100% - 20px), var(--ft-max));
  }

  .site-header {
    padding-top: 10px;
  }

  .site-header__inner {
    border-radius: 0 0 26px 26px;
    padding: 16px;
  }

  .post-card,
  .page-card,
  .archive-shell {
    padding: 24px 18px 30px;
    border-radius: 26px;
  }

  .post-card__title,
  .entry-title {
    font-size: clamp(2.45rem, 10vw, 3.6rem);
    margin-bottom: 18px;
  }

  .post-card__content,
  .entry-content {
    font-size: 1rem;
    line-height: 1.82;
  }

  .step-list li {
    grid-template-columns: 1fr;
  }

  .video-embed iframe,
  .video-embed video,
  .video-embed embed,
  .video-embed object {
    min-height: 220px;
  }
}
