/*
Theme Name: Penntos Base
Theme URI: https://penntos.site
Author: Penntos Digital
Description: Shared block-theme codebase behind the Penntos catalogue. Products ship renamed per design (Vermillion, Linen, Onyx …) with a single style variation. Requires no plugins and no parent theme.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: penntos-base
Tags: block-patterns, full-site-editing, blog, food-and-drink, one-column, wide-blocks, accessibility-ready
*/

/* Block themes get their styling from theme.json. Only the handful of things theme.json
   cannot express live here — keep this file short on purpose. */

/* The hero emphasis device (DECISIONS D10). Sans-led designs like Vermillion use accent
   colour rather than italic, because a synthetic italic on a grotesque reads as a mistake. */
.penntos-emphasis { color: var(--wp--preset--color--primary); font-style: normal; }

/* Ingredient checkboxes: a real affordance, no plugin, no JS. */
.penntos-ingredients { list-style: none; padding-left: 0; }
.penntos-ingredients li { display: flex; gap: .7em; align-items: baseline; padding: .45em 0; border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent); }
.penntos-ingredients input[type="checkbox"] { flex: 0 0 auto; width: 1.05em; height: 1.05em; accent-color: var(--wp--preset--color--primary); }
.penntos-ingredients input:checked + span { opacity: .45; text-decoration: line-through; }

/* Numbered method steps, counter-driven so authors can reorder freely. */
.penntos-method { list-style: none; padding-left: 0; counter-reset: step; }
.penntos-method li { counter-increment: step; display: grid; grid-template-columns: 2.1em 1fr; gap: .9em; padding: .6em 0; }
.penntos-method li::before { content: counter(step); font-family: var(--wp--preset--font-family--display); font-size: 1.15em; line-height: 1.1; color: var(--wp--preset--color--primary); }

/* Recipe meta strip */
.penntos-recipe-meta { display: flex; flex-wrap: wrap; gap: 1.75em; padding: 1.1em 0; border-block: 2px solid var(--wp--preset--color--contrast); }
.penntos-recipe-meta div { display: flex; flex-direction: column; gap: .2em; }
.penntos-recipe-meta dt { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.penntos-recipe-meta dd { margin: 0; font-family: var(--wp--preset--font-family--display); font-size: 1.15rem; }

@media print { .penntos-noprint, .wp-block-template-part { display: none !important; } }

/* ── Recipe page furniture ──────────────────────────────────────────────────────────── */

/* Jump-to-recipe: measured as a near-universal convention on food blogs, and the single
   most requested affordance from readers who arrive from search. Pure anchor, no JS. */
.penntos-jump { display: inline-flex; align-items: center; gap: .5em; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase; font-weight: 600; text-decoration: none;
  padding: .75em 1.3em; background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--contrast); }
.penntos-jump:hover { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }

.penntos-byline { display: flex; flex-wrap: wrap; gap: 1em; align-items: center;
  font-size: .8rem; opacity: .72; }
.penntos-byline span::after { content: "·"; margin-left: 1em; opacity: .5; }
.penntos-byline span:last-child::after { content: none; }

.penntos-print { background: none; border: 1px solid currentColor; font: inherit;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: .5em 1em;
  cursor: pointer; color: inherit; }
.penntos-print:hover { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }

/* Author box — the trust signal food blogs live on. */
.penntos-author { display: grid; grid-template-columns: 96px 1fr; gap: 1.4em; align-items: start;
  padding: 1.6em; border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 15%, transparent); }
.penntos-author img { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; }
@media (max-width: 600px) { .penntos-author { grid-template-columns: 1fr; } }

/* Notes callout */
.penntos-notes { border-left: 3px solid var(--wp--preset--color--primary); padding: .2em 0 .2em 1.2em; }

/* Chips */
.penntos-chip { display: inline-block; font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 600; padding: .35em .8em;
  background: var(--wp--preset--color--accent); color: var(--wp--preset--color--contrast); }

/* Grid cards: equal-height images so rows never go ragged when titles wrap differently. */
.wp-block-post-template.is-layout-grid > li { display: flex; flex-direction: column; }
