/*
Theme Name: Sahtein
Theme URI: https://example.com/sahtein
Author: Amru
Author URI: https://example.com
Description: Sahtein (صحتين) is a clean, editorial recipe theme for a Palestinian food blog. White canvas, hairline rules, letter-spaced serif wordmark, and generous whitespace — with small cultural flourishes: a stitch-pattern divider, a tatreez-edged recipe card with the dish's Arabic name, and a Region taxonomy for documenting where dishes come from.
Version: 1.0.37
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sahtein
Tags: blog, food-and-drink, custom-menu, featured-images, translation-ready, rtl-language-support
*/

/* -------------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------------- */
:root {
  --st-bg: #fdfdfb;
  --st-ink: #21201c;
  --st-muted: #6b675e;
  --st-line: #e7e3d8;
  --st-line-dark: #21201c;
  --st-accent: #a13c3c;       /* sumac — the single accent */
  --st-accent-dark: #7e2f30;
  --st-flair: #b96b5b;        /* peach clay — buttons, stitch divider, small accents */
  --st-wash: #f7f5ef;         /* faint warm wash for alternating surfaces */

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --font-arabic: "Amiri", serif;

  --wide: 1140px;
  --narrow: 700px;
}

/* -------------------------------------------------------------------------
   2. Base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--st-bg);
  color: var(--st-ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--st-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--st-accent-dark); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.18;
  color: var(--st-ink);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
h3 { font-size: 1.4rem; }

blockquote {
  margin: 2rem 0;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--st-ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--st-muted);
}

hr { border: 0; height: 1px; background: var(--st-line); margin: 3rem auto; }

::selection { background: var(--st-accent); color: #fff; }
/* Selection paints on text, not on layout containers — otherwise selecting
   across paragraphs draws full-width bands over the page. */
body::selection, div::selection, main::selection, article::selection,
section::selection, aside::selection, nav::selection, header::selection,
footer::selection, ul::selection, ol::selection, figure::selection {
  background: transparent;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px; width: 1px;
  overflow: hidden;
  position: absolute !important;
  word-wrap: normal !important;
}

.arabic, [lang="ar"] {
  font-family: var(--font-arabic);
  direction: rtl;
  unicode-bidi: isolate;
}

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }
.wrap--narrow { max-width: var(--narrow); }

/* Eyebrow labels — spaced caps */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--st-accent);
}

/* Tatreez shadow border — embossed cross-stitch band at the very top of the
   page. Tone-on-tone by design: it should read as texture, not decoration. */
.tatreez-top {
  height: 40px;
  background-color: #fbf6f0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2740%27%20height%3D%2740%27%20viewBox%3D%270%200%2040%2040%27%3E%3Crect%20width%3D%2740%27%20height%3D%2740%27%20fill%3D%27%23fbf6f0%27%2F%3E%3Crect%20x%3D%27-7.3%27%20y%3D%2712.7%27%20width%3D%274.2%27%20height%3D%274.2%27%20fill%3D%27%23dfab99%27%2F%3E%3Crect%20x%3D%2732.7%27%20y%3D%2712.7%27%20width%3D%274.2%27%20height%3D%274.2%27%20fill%3D%27%23dfab99%27%2F%3E%3Crect%20x%3D%273.1%27%20y%3D%2712.7%27%20width%3D%274.2%27%20height%3D%274.2%27%20fill%3D%27%23dfab99%27%2F%3E%3Crect%20x%3D%2743.1%27%20y%3D%2712.7%27%20width%3D%274.2%27%20height%3D%274.2%27%20fill%3D%27%23dfab99%27%2F%3E%3Crect%20x%3D%27-2.1%27%20y%3D%2717.9%27%20width%3D%274.2%27%20height%3D%274.2%27%20fill%3D%27%23dfab99%27%2F%3E%3Crect%20x%3D%2737.9%27%20y%3D%2717.9%27%20width%3D%274.2%27%20height%3D%274.2%27%20fill%3D%27%23dfab99%27%2F%3E%3Crect%20x%3D%27-7.3%27%20y%3D%2723.1%27%20width%3D%274.2%27%20height%3D%274.2%27%20fill%3D%27%23dfab99%27%2F%3E%3Crect%20x%3D%2732.7%27%20y%3D%2723.1%27%20width%3D%274.2%27%20height%3D%274.2%27%20fill%3D%27%23dfab99%27%2F%3E%3Crect%20x%3D%273.1%27%20y%3D%2723.1%27%20width%3D%274.2%27%20height%3D%274.2%27%20fill%3D%27%23dfab99%27%2F%3E%3Crect%20x%3D%2743.1%27%20y%3D%2723.1%27%20width%3D%274.2%27%20height%3D%274.2%27%20fill%3D%27%23dfab99%27%2F%3E%3Crect%20x%3D%2717.4%27%20y%3D%2717.4%27%20width%3D%275.300000000000001%27%20height%3D%275.300000000000001%27%20fill%3D%27%23d29680%27%20transform%3D%27rotate%2845%2020.0%2020.0%29%27%2F%3E%3C%2Fsvg%3E");
  background-repeat: repeat-x;
  background-position: center;
  border-bottom: 1px solid var(--st-line);
}

/* Stitch divider — the small cultural flourish, used sparingly */
.stitch {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: none;
  height: auto;
}
.stitch span {
  width: 7px; height: 7px;
  transform: rotate(45deg);
  background: var(--st-accent);
}
.stitch span:nth-child(even) { background: var(--st-flair); }
.stitch--section { margin: 3.5rem auto; }

/* -------------------------------------------------------------------------
   3. Header — one row: nav left, stacked wordmark center, tools right
   ------------------------------------------------------------------------- */
.site-header { margin-bottom: 3rem; }
.wrap--header { max-width: 1360px; }

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.6rem;
  padding-bottom: 1.5rem;
}
.masthead__nav { justify-self: start; }
.masthead__tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.masthead__sep { width: 1px; height: 20px; background: var(--st-line); }

/* Nav */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.7rem;
}
.site-nav a {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--st-ink);
}
.masthead .site-nav > ul > li > a { display: block; padding: 0.6rem 0; }
.site-nav a:hover,
.site-nav .current-menu-item > a { color: var(--st-accent); }

/* Dropdowns */
.masthead .site-nav li { position: relative; }
.masthead .site-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;
  gap: 0;
  min-width: 190px;
  background: var(--st-bg);
  border: 1px solid var(--st-line);
  border-top: 2px solid var(--st-accent);
  box-shadow: 0 10px 24px rgba(33, 32, 28, 0.08);
  padding: 0.55rem 0;
  z-index: 60;
}
.masthead .site-nav li:hover > .sub-menu,
.masthead .site-nav li:focus-within > .sub-menu { display: flex; }
.masthead .site-nav .sub-menu a {
  display: block;
  padding: 0.5rem 1.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  white-space: nowrap;
}
.masthead .site-nav .sub-menu a:hover { color: var(--st-accent); background: var(--st-wash); }
.masthead .site-nav > ul > li.menu-item-has-children > a::after {
  content: "▾";
  font-size: 0.62em;
  margin-left: 0.45em;
  color: var(--st-muted);
}

/* Stacked wordmark */
.site-branding { text-align: center; }
.site-title { margin: 0; line-height: 1; }
.site-title a { color: var(--st-ink); text-decoration: none; display: inline-block; }
.site-title__the {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-indent: 0.42em; /* balance trailing letterspace */
  color: var(--st-ink);
  margin-bottom: 0.35rem;
}
.site-title__name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.2vw, 3.1rem);
  font-weight: 500;
  line-height: 1;
}
.site-description {
  margin: 0.7rem 0 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--st-flair);
}

/* Tools: social + search toggle */
.social-links { display: flex; gap: 1rem; align-items: center; }
.social-links a { color: var(--st-ink); display: inline-flex; }
.social-links a:hover { color: var(--st-accent); }
.social-links svg { width: 17px; height: 17px; fill: currentColor; }

.header-search { position: relative; display: flex; align-items: center; }
.search-toggle {
  border: 0;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--st-ink);
  display: inline-flex;
  align-items: center;
}
.search-toggle:hover { color: var(--st-accent); }
.header-search__form {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  z-index: 70;
  background: var(--st-bg);
  border: 1px solid var(--st-line);
  box-shadow: 0 10px 24px rgba(33, 32, 28, 0.08);
  padding: 0.5rem;
}
.header-search__form[hidden] { display: none; }
.header-search .search-form { display: flex; align-items: center; }
.header-search .search-form input[type="search"] {
  border: 1px solid var(--st-line);
  background: var(--st-bg);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  width: 220px;
  color: var(--st-ink);
}
.header-search .search-form input[type="search"]:focus { outline: 1px solid var(--st-ink); }
.header-search .search-form button {
  border: 0;
  background: transparent;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--st-ink);
  display: inline-flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
  color: var(--st-ink);
}
.nav-toggle__bars { display: block; width: 22px; }
.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  margin: 5px 0;
}

/* Mobile drawer */
.site-drawer[hidden] { display: none; }
.site-drawer { position: fixed; inset: 0; z-index: 200; }
.site-drawer__scrim { position: absolute; inset: 0; background: rgba(33, 32, 28, 0.35); }
.site-drawer__panel {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: min(84vw, 340px);
  background: var(--st-bg);
  box-shadow: 8px 0 30px rgba(33, 32, 28, 0.15);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  animation: sahtein-drawer-in 0.22s ease-out;
}
@keyframes sahtein-drawer-in { from { transform: translateX(-100%); } to { transform: none; } }
.site-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--st-line);
}
.site-drawer__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--st-muted);
}
.site-drawer__close {
  border: 0;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--st-ink);
  padding: 0 0.25rem;
}
.site-drawer__nav { padding: 0.5rem 0; }
.site-drawer__nav ul { list-style: none; margin: 0; padding: 0; }
.site-drawer__nav > ul > li { border-bottom: 1px solid var(--st-line); }
.site-drawer__nav a {
  display: block;
  padding: 0.95rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--st-ink);
}
.site-drawer__nav .current-menu-item > a { color: var(--st-accent); }
/* parents: label + expand toggle */
.site-drawer__nav .menu-item-has-children > a { display: flex; align-items: center; justify-content: space-between; }
.site-drawer__nav .menu-item-has-children > a::after {
  content: "+";
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--st-muted);
  transition: transform 0.15s ease;
}
.site-drawer__nav .menu-item-has-children.is-open > a::after { content: "–"; }
.site-drawer__nav .sub-menu { display: none; background: var(--st-wash); padding: 0.25rem 0 0.5rem; }
.site-drawer__nav .menu-item-has-children.is-open > .sub-menu { display: block; }
.site-drawer__nav .sub-menu a {
  padding: 0.55rem 1.25rem 0.55rem 2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--st-muted);
}
.site-drawer__foot { margin-top: auto; padding: 1.25rem; border-top: 1px solid var(--st-line); }
.site-drawer__foot .social-links { justify-content: center; }
body.drawer-open { overflow: hidden; }

@media (max-width: 960px) {
  .site-header { margin-bottom: 2rem; }
  .masthead {
    grid-template-columns: 44px 1fr 44px;
    gap: 0.75rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  .masthead__nav { justify-self: start; }
  .site-nav { display: none; }              /* full menu lives in the drawer */
  .nav-toggle { display: inline-flex; }
  .masthead__social, .masthead__sep { display: none; }
  .masthead__tools { gap: 0; }
  .site-title__the { font-size: 0.56rem; letter-spacing: 0.34em; text-indent: 0.34em; margin-bottom: 0.15rem; }
  .site-title__name { font-size: 1.55rem; }
  .site-description { display: none; }
  .header-search__form { right: -0.25rem; }
  .header-search .search-form input[type="search"] { width: min(70vw, 260px); }
}
@media (max-width: 400px) {
  .site-title__name { font-size: 1.4rem; }
}

/* -------------------------------------------------------------------------
   4. Buttons & text links
   ------------------------------------------------------------------------- */
.btn,
button.btn,
input[type="submit"],
.textlink {
  display: inline-block;
  background: var(--st-flair);
  color: #fbf9f4;
  border: 1px solid var(--st-flair);
  border-radius: 5px;
  padding: 0.75rem 1.7rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover,
input[type="submit"]:hover,
.textlink:hover {
  background: transparent;
  color: var(--st-flair);
  border-color: var(--st-flair);
}

.btn--ghost { background: transparent; color: var(--st-flair); }
.btn--ghost:hover { background: var(--st-flair); border-color: var(--st-flair); color: #fbf9f4; }

/* Core editor buttons inherit the theme button look */
.wp-block-button__link {
  background: var(--st-flair);
  color: #fbf9f4;
  border: 1px solid var(--st-flair);
  border-radius: 5px;
  padding: 0.75rem 1.7rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.wp-block-button__link:hover { background: transparent; color: var(--st-flair); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--st-flair); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--st-flair); color: #fbf9f4; }

.wp-block-separator {
  border: 0;
  border-top: 1px solid var(--st-line);
  margin: 3rem auto;
}

/* Arabic sign-off pairing — big Amiri line with a quiet translation under it */
.signoff-arabic {
  font-family: var(--font-arabic);
  font-size: 2.1rem;
  line-height: 1.4;
  color: var(--st-flair);
  margin-top: 2.5rem;
  margin-bottom: 0 !important;
}
.signoff-translation {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--st-muted);
  margin-top: 0.4rem;
}

/* Landing page built from blocks (static front page) */
.entry-content--landing { padding: 1rem 0 4rem; }
/* Wide/full blocks must never bleed past the page padding on small screens */
@media (max-width: 960px) {
  .entry-content .alignwide,
  .entry-content .alignfull,
  .entry-content--landing .alignwide,
  .entry-content--landing .alignfull {
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: auto !important;
  }
}
.entry-content--landing > .wp-block-columns { margin-top: 1rem; }
.entry-content .category-menu { border-top: 0; padding: 1.5rem 0 0.5rem; }
.card-grid--embedded { margin-top: 1rem; }

/* -------------------------------------------------------------------------
   5. Front page
   ------------------------------------------------------------------------- */
.section { padding-bottom: 4rem; }
.section__head { text-align: center; margin: 0 auto 2.5rem; }
.section__head .eyebrow { display: block; margin-bottom: 0.6rem; }

/* Featured latest recipe — split layout */
.featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-bottom: 4rem;
}
.featured__media {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--st-wash);
}
.featured__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.featured__media .recipe-card__placeholder svg { width: 64px; height: 64px; }
.featured__body .eyebrow { display: block; margin-bottom: 0.9rem; }
.featured__title { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 500; }
.featured__title a { color: var(--st-ink); text-decoration: none; }
.featured__title a:hover { color: var(--st-accent); }
.featured__excerpt { color: var(--st-muted); margin: 1rem 0 1.8rem; }

@media (max-width: 860px) {
  .featured { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* Category slash strip */
.category-strip {
  text-align: center;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 3rem;
}
.category-strip a { color: var(--st-ink); text-decoration: none; padding: 0 0.5rem; display: inline-block; }
@media (max-width: 720px) {
  .category-strip { font-size: 0.68rem; letter-spacing: 0.14em; line-height: 2.2; }
  .category-strip a { padding: 0 0.3rem; }
}
.category-strip a:hover { color: var(--st-accent); }
.category-strip .sep { color: var(--st-accent); }

/* Category menu — huge stacked links, restaurant-menu style */
.category-menu {
  text-align: center;
  border-top: 1px solid var(--st-line);
  padding: 4.5rem 1.5rem 5rem;
}
.category-menu .eyebrow { display: block; margin-bottom: 1.6rem; color: var(--st-ink); }
.category-menu__link {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--st-ink);
  text-decoration: none;
  transition: color 0.15s ease;
}
.category-menu__link:hover { color: var(--st-accent); }
.category-menu__count {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  vertical-align: super;
  margin-left: 0.5rem;
  color: var(--st-muted);
}
.category-menu__link:hover .category-menu__count { color: var(--st-accent); }

/* About band */
.about-band {
  background: var(--st-wash);
  border-top: 1px solid var(--st-line);
  border-bottom: 1px solid var(--st-line);
  text-align: center;
  padding: 3.75rem 1.5rem;
}
.about-band__text {
  max-width: 40rem;
  margin: 1.4rem auto 1.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--st-ink);
}

/* -------------------------------------------------------------------------
   6. Recipe cards / grids
   ------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
  gap: 2.5rem 2rem;
}

.recipe-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--st-wash);
}
.recipe-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.recipe-card:hover .recipe-card__media img { transform: scale(1.03); opacity: 0.92; }

.recipe-card__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.recipe-card__placeholder svg { width: 40px; height: 40px; stroke: #b5ae9a; fill: none; stroke-width: 1.2; }

.recipe-card__cat {
  margin: 1.05rem 0 0.3rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.recipe-card__cat a { color: var(--st-accent); text-decoration: none; }
.recipe-card__cat a:hover { color: var(--st-accent-dark); }

.recipe-card__title { font-size: 1.32rem; margin: 0; font-weight: 500; }
.recipe-card__title a { color: var(--st-ink); text-decoration: none; }
.recipe-card__title a:hover { color: var(--st-accent); }

.recipe-card__excerpt { font-size: 0.92rem; color: var(--st-muted); margin: 0.5rem 0 0; }

/* Archive header */
.archive-header { text-align: center; padding: 0 0 2.25rem; }
.archive-header .archive-description { max-width: 42rem; margin: 0.5rem auto 0; color: var(--st-muted); }

/* Pagination */
.pagination { margin: 3.5rem 0 1rem; text-align: center; }
.pagination .nav-links { display: inline-flex; gap: 0.4rem; }
.pagination .page-numbers {
  display: inline-block;
  min-width: 2.3rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--st-line);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--st-ink);
}
.pagination .page-numbers.current { background: var(--st-ink); color: var(--st-bg); border-color: var(--st-ink); }
.pagination .page-numbers:hover { border-color: var(--st-ink); }

/* -------------------------------------------------------------------------
   7. Blog layout with sidebar
   ------------------------------------------------------------------------- */
.archive-main { padding-bottom: 4rem; }

.widget { margin-bottom: 2.75rem; }
.widget__title,
.sidebar .widget h2 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  color: var(--st-ink);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.widget__title::before, .widget__title::after,
.sidebar .widget h2::before, .sidebar .widget h2::after {
  content: ""; flex: 1; height: 1px; background: var(--st-line);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 0.45rem 0; border-bottom: 1px solid var(--st-line); font-size: 0.95rem; }
.widget a { color: var(--st-ink); text-decoration: none; }
.widget a:hover { color: var(--st-accent); }

.widget--intro { text-align: center; border: 1px solid var(--st-line); padding: 1.8rem 1.4rem; }
.widget--intro .widget__tagline {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.45;
  margin: 0 0 1.2rem;
}
.widget--intro .stitch { margin-bottom: 1.2rem; }
.widget--intro .social-links { justify-content: center; }

/* -------------------------------------------------------------------------
   8. Single post / recipe
   ------------------------------------------------------------------------- */
.entry-header { text-align: center; padding: 0 0 1.75rem; }
.entry-header .entry-meta {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--st-muted);
  margin-bottom: 0.9rem;
}
.entry-header .entry-meta a { color: var(--st-accent); text-decoration: none; }
.entry-header__actions { margin-top: 1.5rem; display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

.entry-hero-image { margin: 0 0 2.5rem; }
.entry-hero-image img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
}

.entry-content { font-size: 1.0625rem; }
.entry-content > * { max-width: var(--narrow); margin-left: auto; margin-right: auto; }
.entry-content .alignwide { max-width: var(--wide); }
.entry-content .alignfull { max-width: none; }
.single .entry-content h2 {
  margin-top: 2.4em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--st-line);
}

/* Tame in-post photos: phone shots are often very tall.
   Non-lead images keep their aspect but never exceed 640px tall. */
.entry-content .wp-block-image img,
.entry-content > figure img {
  max-height: 640px;
  width: auto;
  margin-left: auto;
  margin-right: auto;
}
/* The lead image (first block in the post) always crops to a consistent
   4:3 editorial frame, whatever shape the original photo is. */
.entry-content > figure.wp-block-image:first-child img,
.entry-content > .wp-block-image:first-child img {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: none;
  object-fit: cover;
}

.entry-content ul li::marker { color: var(--st-accent); }
.entry-content ol { counter-reset: step; list-style: none; padding-left: 0; }
.entry-content ol > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.9rem;
  margin-bottom: 1.05rem;
}
.entry-content ol > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0.15rem;
  width: 1.9rem; height: 1.9rem;
  border: 1px solid var(--st-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--st-ink);
}

/* Recipe card — hairline box with a single tatreez top edge */
.recipe-box {
  max-width: var(--narrow);
  margin: 3.25rem auto;
  border: 1px solid var(--st-ink);
  background: var(--st-bg);
}
.recipe-box__stripe {
  height: 20px;
  background-color: #fbf6f0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2724%27%20height%3D%2720%27%20viewBox%3D%270%200%2024%2020%27%3E%3Crect%20width%3D%2724%27%20height%3D%2720%27%20fill%3D%27%23fbf6f0%27%2F%3E%3Crect%20x%3D%27-4.9%27%20y%3D%275.1%27%20width%3D%272.6%27%20height%3D%272.6%27%20fill%3D%27%23dfab99%27%2F%3E%3Crect%20x%3D%2719.1%27%20y%3D%275.1%27%20width%3D%272.6%27%20height%3D%272.6%27%20fill%3D%27%23dfab99%27%2F%3E%3Crect%20x%3D%272.3%27%20y%3D%275.1%27%20width%3D%272.6%27%20height%3D%272.6%27%20fill%3D%27%23dfab99%27%2F%3E%3Crect%20x%3D%2726.3%27%20y%3D%275.1%27%20width%3D%272.6%27%20height%3D%272.6%27%20fill%3D%27%23dfab99%27%2F%3E%3Crect%20x%3D%27-1.3%27%20y%3D%278.7%27%20width%3D%272.6%27%20height%3D%272.6%27%20fill%3D%27%23dfab99%27%2F%3E%3Crect%20x%3D%2722.7%27%20y%3D%278.7%27%20width%3D%272.6%27%20height%3D%272.6%27%20fill%3D%27%23dfab99%27%2F%3E%3Crect%20x%3D%27-4.9%27%20y%3D%2712.3%27%20width%3D%272.6%27%20height%3D%272.6%27%20fill%3D%27%23dfab99%27%2F%3E%3Crect%20x%3D%2719.1%27%20y%3D%2712.3%27%20width%3D%272.6%27%20height%3D%272.6%27%20fill%3D%27%23dfab99%27%2F%3E%3Crect%20x%3D%272.3%27%20y%3D%2712.3%27%20width%3D%272.6%27%20height%3D%272.6%27%20fill%3D%27%23dfab99%27%2F%3E%3Crect%20x%3D%2726.3%27%20y%3D%2712.3%27%20width%3D%272.6%27%20height%3D%272.6%27%20fill%3D%27%23dfab99%27%2F%3E%3Crect%20x%3D%2710.2%27%20y%3D%278.2%27%20width%3D%273.7%27%20height%3D%273.7%27%20fill%3D%27%23d29680%27%20transform%3D%27rotate%2845%2012.0%2010.0%29%27%2F%3E%3C%2Fsvg%3E");
  background-repeat: repeat-x;
  background-position: center;
  border-bottom: 1px solid var(--st-line);
}
.recipe-box__inner { padding: 2.75rem 2.75rem 2.9rem; }
.recipe-box__head { text-align: center; margin-bottom: 1.9rem; }
.recipe-box__title { font-size: 1.85rem; margin-bottom: 0.2em; }
.recipe-box__arabic { font-family: var(--font-arabic); font-size: 1.3rem; color: var(--st-muted); margin: 0; }

.recipe-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  border-top: 1px solid var(--st-line);
  border-left: 1px solid var(--st-line);
  margin: 1.5rem 0;
}
.recipe-facts__item {
  border-right: 1px solid var(--st-line);
  border-bottom: 1px solid var(--st-line);
  text-align: center;
  padding: 0.9rem 0.5rem;
}
.recipe-facts__label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--st-muted);
  margin-bottom: 0.25rem;
}
.recipe-facts__value { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; }

.recipe-box__region { text-align: center; font-style: italic; color: var(--st-muted); margin: 0 0 0.4rem; }
.recipe-box__region a { color: var(--st-accent); }
.recipe-box .entry-tags { margin-top: 1.4rem; text-align: center; }

/* Taxonomy pills at the end of a post */
.entry-taxonomy {
  max-width: var(--narrow);
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--st-line);
  text-align: center;
}
.entry-taxonomy .eyebrow { display: block; margin-bottom: 0.9rem; }

/* Archive calendar page — menu-style, dotted leaders */
.archive-page__intro { color: var(--st-muted); margin-top: 0.5rem; }
.archive-calendar { padding-bottom: 4rem; }
.archive-calendar__year {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 500;
  text-align: center;
  margin: 2.5rem 0 1.25rem;
}
.archive-calendar__year:first-of-type { margin-top: 0.5rem; }
.archive-calendar__months { margin-bottom: 1rem; }
.archive-calendar__row {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.65rem 0;
  text-decoration: none;
  color: var(--st-ink);
}
.archive-calendar__month {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}
.archive-calendar__row:hover .archive-calendar__month { color: var(--st-accent); }
.archive-calendar__leader {
  flex: 1;
  border-bottom: 2px dotted var(--st-line);
  transform: translateY(-0.3em);
}
.archive-calendar__count {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st-muted);
}
.archive-calendar__row:hover .archive-calendar__count { color: var(--st-accent); }
.archive-calendar__total {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  margin-top: 3rem;
}

/* Tags */
.entry-tags a {
  display: inline-block;
  margin: 0.2rem;
  padding: 0.28rem 0.85rem;
  border: 1px solid var(--st-line);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--st-muted);
}
.entry-tags a:hover { border-color: var(--st-accent); color: var(--st-accent); }

/* Post navigation */
.post-navigation { border-top: 1px solid var(--st-line); margin: 3.5rem auto 0; max-width: var(--narrow); padding: 2rem 0; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 2rem; }
.post-navigation a { text-decoration: none; color: var(--st-ink); max-width: 45%; }
.post-navigation a:hover .post-navigation__title { color: var(--st-accent); }
.post-navigation__label {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--st-muted);
  margin-bottom: 0.3rem;
}
.post-navigation__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.post-navigation .nav-next { text-align: right; margin-left: auto; }

/* Author box */
.author-box {
  max-width: var(--narrow);
  margin: 3rem auto 0;
  display: flex;
  gap: 1.4rem;
  align-items: center;
  border: 1px solid var(--st-line);
  padding: 1.5rem 1.7rem;
}
.author-box img { border-radius: 50%; }
.author-box__name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; margin-bottom: 0.2rem; }
.author-box p { margin: 0; font-size: 0.95rem; color: var(--st-muted); }

/* -------------------------------------------------------------------------
   9. Comments
   ------------------------------------------------------------------------- */
.comments-area { max-width: var(--narrow); margin: 3rem auto 0; }
.comments-title { text-align: center; font-size: 1.6rem; }
.comment-list { list-style: none; margin: 2rem 0; padding: 0; }
.comment-list .children { list-style: none; padding-left: 2rem; }
.comment-body {
  border: 1px solid var(--st-line);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.2rem;
}
.comment-meta { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }
.comment-meta img { border-radius: 50%; }
.comment-author .fn { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; font-style: normal; }
.comment-metadata { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.comment-metadata a { color: var(--st-muted); text-decoration: none; }
.comment-content { font-size: 0.98rem; }
.reply a { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; }

.comment-form label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  color: var(--st-muted);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.page-search-form input[type="search"] {
  width: 100%;
  border: 1px solid var(--st-line);
  background: var(--st-bg);
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--st-ink);
  margin-bottom: 1.1rem;
}
.comment-form input:focus, .comment-form textarea:focus { outline: 1px solid var(--st-ink); border-color: var(--st-ink); }

/* -------------------------------------------------------------------------
   10. Newsletter — minimal centered band
   ------------------------------------------------------------------------- */
.newsletter {
  border-top: 1px solid var(--st-line);
  text-align: center;
  padding: 3.75rem 1.5rem;
}
.newsletter h2 { margin-top: 0.6rem; }
.newsletter p { max-width: 34rem; margin: 0.5rem auto 1.6rem; color: var(--st-muted); }
.newsletter form {
  display: flex;
  max-width: 430px;
  margin: 0 auto;
  border: 1px solid var(--st-ink);
}
.newsletter input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: var(--st-bg);
  padding: 0.8rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.newsletter input[type="email"]:focus { outline: none; }
.newsletter .btn { border: 0; }

/* Follow band — large social icon buttons in place of the newsletter form */
.follow-band__icons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.follow-band__icons a {
  width: 64px;
  height: 64px;
  border: 1px solid var(--st-ink);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--st-ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.follow-band__icons svg { width: 26px; height: 26px; fill: currentColor; }
.follow-band__icons a:hover {
  background: var(--st-flair);
  border-color: var(--st-flair);
  color: #fbf9f4;
}

/* -------------------------------------------------------------------------
   11. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--st-line);
  padding: 3rem 0 2.25rem;
  text-align: center;
}
.site-footer__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
}
.site-footer__title .site-title__the {
  display: inline;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-indent: 0;
  margin: 0 0.4em 0 0;
  vertical-align: 0.5em;
  color: var(--st-muted);
}
.site-footer__title .site-title__name { display: inline; text-transform: none; font-size: 1em; }
.site-footer .stitch { margin: 0 auto 1.4rem; }
.site-footer .site-nav { margin: 0.5rem 0 1rem; }
.site-footer .site-nav ul { justify-content: center; }
.site-footer .social-links { justify-content: center; margin-bottom: 1.4rem; }
.site-footer__colophon {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--st-muted);
}
.site-footer__colophon .arabic {
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--st-flair);
}

/* -------------------------------------------------------------------------
   12. 404 & misc
   ------------------------------------------------------------------------- */
.error-404 { text-align: center; padding: 3rem 0 5rem; }
.error-404 .page-search-form { max-width: 420px; margin: 2rem auto; display: flex; gap: 0.6rem; }
.error-404 .page-search-form input { margin: 0; }

.page-content--plain { padding-bottom: 4rem; }

.sticky .recipe-card__cat::after { content: " ·"; color: var(--st-flair); }

.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--st-muted);
  text-align: center;
  padding-top: 0.5rem;
}

/* -------------------------------------------------------------------------
   13. Print
   ------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .newsletter, .comments-area, .post-navigation,
  .author-box, .entry-header__actions, .sidebar { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .recipe-box { border: 1pt solid #000; }
  .entry-content a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
