/*
Theme Name:   Ixiun Onyx - Weiss Meats
Template:     ixiun-onyx
Author:       Ixiun
Description:  Weiss Meats child theme of Ixiun Onyx. Holds the Weiss palette, fonts and site-specific styling so the shared parent theme can update without losing them. See README.md.
Version:      1.5.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain:  ixiun-onyx-weiss
*/

/* =============================================================================
   HOW THIS FILE WORKS
   -----------------------------------------------------------------------------
   Colors and fonts live in theme.json (palette slugs + self-hosted fonts). The
   parent theme reads every color through --color-* tokens that default to those
   palette slugs, so most of the re-skin happens there with no CSS at all.

   This file only does what theme.json can't:
     1. Re-scopes the parent's tokens inside particular areas (the white nav,
        the burgundy footer, dark sections) instead of overriding rules one by one.
     2. Adds the Weiss "signature" pieces from the design guide (eyebrow rule,
        square buttons, framed box, photo frames).

   Loaded after the parent's style.css (see functions.php), so equal-specificity
   rules here win. Hex values are never repeated below: everything points at a
   palette slug, so a color change in Global Styles flows through.
   ============================================================================= */

/* Root size guard. Core Framework (left over from the Bricks build) sets
   html { font-size: 62.5% }, which shrinks EVERY rem size on the site to 62.5%:
   19px body text renders at ~12px. :root outranks a plain html selector, so
   this wins regardless of load order. Harmless once Core Framework is gone. */
:root {
  font-size: 100%;
}

:root {
  /* Weiss aliases. Short names for the brand slugs, for use in this file and in
     plugins (weiss-store-info reads --weiss-* with its own fallbacks). */
  --weiss-burgundy:      var(--wp--preset--color--burgundy, #7E1F2A);
  --weiss-burgundy-dark: var(--wp--preset--color--burgundy-dark, #5E1420);
  --weiss-burgundy-deep: var(--wp--preset--color--burgundy-deep, #4A1019);
  --weiss-accent-red:    var(--wp--preset--color--accent-red, #C8443F);
  --weiss-ink:           var(--wp--preset--color--ink, #1E1614);
  --weiss-espresso:      var(--wp--preset--color--espresso, #1A0F0D);
  --weiss-cream:         var(--wp--preset--color--cream, #F6F0E7);
  --weiss-line:          var(--wp--preset--color--line, #DCCFC0);
  --weiss-on-dark-label: var(--wp--preset--color--on-dark-label, #E8C9C9);
  --weiss-overlay:       rgba(26, 11, 10, 0.76);   /* see-through box over photos */
  --weiss-frame-on-dark: rgba(255, 255, 255, 0.6); /* hairline frames over photos */
  --weiss-frame-width:   3px;                      /* line thickness of every framed box (hero, weekly tiles, play button) */
  --weiss-frame-on-light: #C9B8AE;                 /* photo outline on light bgs */

  --weiss-section-pad:   clamp(64px, 9vw, 120px);
  --weiss-side-pad:      clamp(20px, 4vw, 40px);

  /* Parent tokens with no theme.json slot. --font-heading / --font-body are NOT
     set here: the parent's font bridge feeds them from theme.json (and from
     Global Styles if the client changes fonts), and setting them would block that. */
  --font-script:   var(--wp--preset--font-family--libre-caslon-text, 'Libre Caslon Text', Georgia, serif);
  --border-radius: 0;   /* square corners everywhere */
}


/* =============================================================================
   1. BASE TYPE
   ============================================================================= */

/* Headings: Libre Caslon BOLD, in ink.
   The parent theme loads Bootstrap, and Bootstrap loads AFTER the theme.json
   styles, so its heading reset won: weight 500, line-height 1.2, color
   "inherit". Libre Caslon has no 500, so headings fell back to the thin
   Regular, and they took on the soft brown body color. Only headings with a
   weight picked by hand in the editor looked right. This file loads after
   Bootstrap, so restating the theme.json values here puts them back.
   Body copy stays --color-text (a softer brown). */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.1;
  color: var(--weiss-ink);
}

h1 { line-height: 1; }
h2 { line-height: 1.02; }

/* Where the text is meant to be light, headings follow it instead of staying
   ink: blocks given their own text color, dark backgrounds, Cover blocks
   (white text over a photo). A light background such as cream keeps ink. */
:is(.has-text-color,
    .has-espresso-background-color,
    .has-ink-background-color,
    .has-primary-background-color,
    .has-burgundy-background-color,
    .has-burgundy-dark-background-color,
    .has-burgundy-deep-background-color,
    .wp-block-cover) :is(h1, h2, h3, h4, h5, h6) {
  color: inherit;
}

/* Links in running text (paragraphs, lists). The parent resets every <a> to
   inherit, which is right for nav/cards but leaves inline links invisible. */
:where(.wp-block-post-content, .entry-content) :where(p, li) a:where(:not(.wp-element-button, .wp-block-button__link)) {
  color: var(--weiss-burgundy);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

:where(.wp-block-post-content, .entry-content) :where(p, li) a:where(:not(.wp-element-button, .wp-block-button__link)):hover {
  color: var(--weiss-burgundy-dark);
}

/* Taglines and quotes: Libre Caslon italic. */
blockquote,
.wp-block-quote,
.wp-block-pullquote {
  font-family: var(--font-script);
  font-style: italic;
}


/* =============================================================================
   2. DARK SECTIONS
   -----------------------------------------------------------------------------
   Any block given a dark background from the palette gets light text, and the
   parent's "accent" (eyebrows, link hovers, quote marks) switches from burgundy
   to the pale label color, because burgundy on espresso is unreadable.
   ============================================================================= */

.has-espresso-background-color,
.has-ink-background-color,
.has-primary-background-color,
.has-burgundy-background-color,
.has-burgundy-dark-background-color,
.has-burgundy-deep-background-color {
  --color-accent: var(--weiss-on-dark-label);
}

.has-espresso-background-color:not(.has-text-color),
.has-ink-background-color:not(.has-text-color),
.has-primary-background-color:not(.has-text-color),
.has-burgundy-background-color:not(.has-text-color),
.has-burgundy-dark-background-color:not(.has-text-color),
.has-burgundy-deep-background-color:not(.has-text-color) {
  color: var(--color-text-inverse);
}


/* =============================================================================
   3. HEADER: white nav, burgundy top bar
   -----------------------------------------------------------------------------
   The parent paints the nav with --color-primary and its text with
   --color-text-inverse (a dark bar with light links). Rather than override each
   rule, those two tokens are swapped inside the nav only, so the logo text, links,
   dropdowns and underline all follow automatically.

   NOTE: don't turn on Customize ▸ Nav Animations ▸ "Transparent over hero" on
   this site. It would put the dark links over the hero photo.
   ============================================================================= */

.site-header {
  /* Top bar defaults to burgundy. Customize ▸ Top Bar colors still win (the
     parent sets them inline on the bar itself). */
  --topbar-bg:    var(--weiss-burgundy);
  --topbar-color: var(--color-text-inverse);
}

.site-nav {
  --color-primary:      var(--wp--preset--color--white, #fff);
  --color-text-inverse: var(--weiss-ink);
  --color-accent:       var(--weiss-burgundy);
  --color-accent-bold:  var(--weiss-burgundy);
  border-bottom: 1px solid var(--weiss-line);
}

/* ---- Top bar layout ---------------------------------------------------------
   Set up in Customize ▸ Top Bar as: Left = Custom text (the hours, fed by
   weiss-store-info), Center = Nothing, Right = Contact info.

   The parent splits the bar into three equal columns so a center item stays
   centered. Here there's no center item, so the bar is a simple row instead:
   the hours take all the room they need on the left, contact sits on the right,
   and an empty slot takes up no space at all. */
.nav-topbar {
  /* The parent's accent is burgundy, which made the pin and phone icons
     invisible on the burgundy bar. */
  --color-accent: var(--weiss-on-dark-label);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.topbar-slot--left {
  flex: 1 1 auto;
  min-width: 0;
}

.topbar-slot--center,
.topbar-slot--right {
  flex: 0 0 auto;
}

.topbar-slot:not(:has(*)) {
  display: none;
}

.topbar-contact {
  gap: 1.75rem;
}

.nav-topbar .contact-item {
  opacity: 1;
}

.nav-topbar .contact-item svg {
  width: 17px;
  height: 17px;
}

/* The address is a directions link: underline it so it reads as one. */
.nav-topbar a.contact-address span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.nav-topbar a.contact-item:hover,
.nav-topbar a.contact-item:focus-visible {
  color: var(--weiss-on-dark-label);
}

/* ---- Top bar on phones and tablets ------------------------------------------
   Always on (functions.php forces "Keep the top bar on mobile").
   Two rows: the hours (centered, wrapping to a second line in a holiday week
   rather than being cut off), then two equal tap targets, "Directions" and the
   phone number.

   The bar's height is whatever its content needs. functions.php measures it
   and sets --topbar-height, which the parent uses to push the page down, so
   nothing is hidden behind it. The value below is only the starting guess
   before that runs (one line of hours). */
@media (max-width: 1100px) {
  body.has-topbar-mobile {
    --topbar-height: 104px;
  }

  .has-topbar-mobile .topbar-inner {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    height: auto;
    padding: 10px 16px 12px;
  }

  .has-topbar-mobile .topbar-slot {
    flex: none;
    justify-content: center;
    width: 100%;
  }

  .has-topbar-mobile .topbar-text--plain {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    font-size: 1.0625rem;
    line-height: 1.3;
    letter-spacing: 0;
    text-wrap: balance;
  }

  .has-topbar-mobile .topbar-contact {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 480px;
  }

  .has-topbar-mobile .nav-topbar .contact-item {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  /* The address becomes a "Directions" button. The address stays in the
     link for screen readers. */
  .has-topbar-mobile .nav-topbar a.contact-address span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .has-topbar-mobile .nav-topbar a.contact-address::after {
    content: 'Directions';
  }
}

/* ---- Top bar rolls up with the scroll ---------------------------------------
   The parent collapses the bar in one 0.3s snap at 80px of scroll and pulls
   the page up by the bar's height at the same moment, which reads as a jump.
   Here (only once functions.php's script has added .weiss-topbar-roll):
     - the bar keeps its height and the page keeps its top spacing, so nothing
       below the header ever moves;
     - the header and the menu button slide up by --weiss-topbar-shift, which
       follows the scroll position, so the bar scrolls away with the page
       pixel for pixel and the white nav stays pinned at the top.
   The desktop logo still shrinks smoothly once scrolled (that's the nav, not
   the page, so it doesn't jump). */
body.weiss-topbar-roll.nav-anim-shrink.is-scrolled .nav-topbar {
  height: var(--topbar-height);
  opacity: 1;
}

body.weiss-topbar-roll.nav-anim-shrink.is-scrolled.has-topbar .site-main {
  padding-top: calc(var(--topbar-height) + var(--nav-height));
}

body.weiss-topbar-roll:not(.nav-anim-hide) .site-header,
body.weiss-topbar-roll .nav-hamburger {
  transform: translateY(calc(-1 * var(--weiss-topbar-shift, 0px)));
}

body.weiss-topbar-roll:not(.nav-anim-hide) .site-header {
  transition: none;
}

/* The menu button sits outside the header. The parent moves it up when the
   bar collapses; here it keeps its place under the bar and slides with it. */
body.weiss-topbar-roll.nav-anim-shrink.is-scrolled.has-topbar-mobile .nav-hamburger {
  top: calc(var(--topbar-height) + (var(--nav-height-shrunk) - 40px) / 2);
}

body.weiss-topbar-roll.admin-bar.nav-anim-shrink.is-scrolled.has-topbar-mobile .nav-hamburger {
  top: calc(32px + var(--topbar-height) + (var(--nav-height-shrunk) - 40px) / 2);
}

@media screen and (max-width: 782px) {
  body.weiss-topbar-roll.admin-bar.nav-anim-shrink.is-scrolled.has-topbar-mobile .nav-hamburger {
    top: calc(46px + var(--topbar-height) + (var(--nav-height-shrunk) - 40px) / 2);
  }
}

/* Logo breathing room (desktop). The parent sizes the logo to the full height
   of the bar, so it touches the top and bottom. Here the BAR grows by the
   padding instead, so the logo stays its full Customize ▸ Logo ▸ Logo size and
   just gets white space above and below it.
     --logo-pad          space above and below the logo             16px
     --logo-pad-shrunk   the same, once the bar shrinks on scroll    8px
   The logo heights below copy the parent's per-size bar heights; keep them in
   step if the parent's ever change. Phones and tablets (1100px and under)
   already get a gap from the parent, so they're left alone. */
@media (min-width: 1101px) {
  body {
    --logo-pad: 16px;
    --logo-pad-shrunk: 8px;
    --weiss-logo-h: 115px;
    --weiss-logo-h-shrunk: 70px;
  }
  body.logo-size-small  { --weiss-logo-h: 90px;  --weiss-logo-h-shrunk: 58px; }
  body.logo-size-large  { --weiss-logo-h: 144px; --weiss-logo-h-shrunk: 88px; }
  body.logo-size-xlarge { --weiss-logo-h: 172px; --weiss-logo-h-shrunk: 104px; }

  body,
  body.logo-size-small,
  body.logo-size-large,
  body.logo-size-xlarge {
    --nav-height:        calc(var(--weiss-logo-h) + 2 * var(--logo-pad));
    --nav-height-shrunk: calc(var(--weiss-logo-h-shrunk) + 2 * var(--logo-pad-shrunk));
  }

  .nav-logo {
    box-sizing: border-box;
    padding-block: var(--logo-pad);
    transition: height var(--transition), padding var(--transition);
  }

  body.nav-anim-shrink.is-scrolled .nav-logo {
    padding-block: var(--logo-pad-shrunk);
  }
}

/* Nav type: Work Sans 600, uppercase, wide tracking. 15px rather than the
   mockup's 13px, for readability. */
.nav-menu a {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

/* The drawer keeps its own (dark) palette and a larger tap size. */
.nav-drawer .nav-menu a {
  font-size: 1.125rem;
}

/* Hamburger sits over the white nav (ink bars), then over the espresso drawer
   once open (white bars, forming the X). */
.nav-hamburger span {
  background: var(--weiss-ink);
}

.nav-hamburger.is-open span {
  background: var(--color-drawer-link);
}


/* =============================================================================
   4. FOOTER: burgundy-deep, pale accents
   ============================================================================= */

.site-footer {
  --color-accent:      var(--weiss-on-dark-label);
  --color-accent-bold: var(--weiss-on-dark-label);
}

/* Markup comes from inc/footer.php: logo + italic tagline, then VISIT / HOURS /
   FOLLOW columns of plain text with underlined links, a hairline, and a bottom
   bar. Four equal columns on desktop, two on tablets, one on phones. */
.weiss-footer {
  --weiss-footer-text:  var(--weiss-cream);
  --weiss-footer-muted: rgba(246, 240, 231, 0.72);
  --weiss-footer-rule:  rgba(246, 240, 231, 0.14);
  color: var(--weiss-footer-text);
  font-family: var(--font-body);
}

.weiss-footer__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(64px, 7vw, 92px) var(--weiss-side-pad) clamp(40px, 4vw, 48px);
  box-sizing: content-box;
}

.weiss-footer__logo .custom-logo-link {
  display: inline-block;
  line-height: 0;
}

.weiss-footer__logo img {
  width: auto;
  height: 112px;
  max-width: 100%;
}

.weiss-footer__sitename {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--weiss-footer-text);
  text-decoration: none;
}

.weiss-footer__tagline {
  margin: 22px 0 0;
  max-width: 13em;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: 1.625rem;
  line-height: 1.2;
  color: var(--weiss-footer-text);
}

.weiss-footer__heading {
  margin: 0 0 20px;
  padding-top: 6px;
  font-family: var(--font-body) !important;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--weiss-on-dark-label) !important;
}

.weiss-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.125rem;
  line-height: 1.65;
}

.weiss-footer__list li {
  margin: 0;
}

.weiss-footer__list li + li {
  margin-top: 6px;
}

.weiss-footer__hours li + li {
  margin-top: 0;
}

.weiss-footer__social li + li {
  margin-top: 10px;
}

/* :not(.footer-ixiun): the "Site by Ixiun" logo credit keeps the parent's styling. */
.weiss-footer a:not(.footer-ixiun) {
  color: var(--weiss-footer-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.weiss-footer a:not(.footer-ixiun):hover,
.weiss-footer a:not(.footer-ixiun):focus-visible {
  color: var(--weiss-on-dark-label);
}

.weiss-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px var(--weiss-side-pad) 34px;
  box-sizing: content-box;
  border-top: 1px solid var(--weiss-footer-rule);
  font-size: 1rem;
  color: var(--weiss-footer-muted);
}

.weiss-footer__bar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
}

.weiss-footer__credit {
  color: var(--weiss-footer-muted);
}

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

@media (max-width: 1000px) {
  .weiss-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .weiss-footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .weiss-footer__bar {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* =============================================================================
   5. EYEBROW LABEL
   -----------------------------------------------------------------------------
   Restyles the parent's .section-eyebrow: Work Sans 600, very wide tracking,
   burgundy, led by a short accent-red rule. 14px rather than the mockup's 12px,
   for readability. Centered eyebrows drop the rule (it reads as a stray dash
   when centered, as in the "From the Shop" mockup).
   ============================================================================= */

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.875rem;
  letter-spacing: 0.24em !important;
  line-height: 1.4;
}

.section-eyebrow::before {
  content: '';
  flex: none;
  width: 40px;
  height: 2px;
  background: var(--weiss-accent-red);
}

.section-eyebrow.has-text-align-center {
  justify-content: center;
}

.section-eyebrow.has-text-align-center::before {
  display: none;
}


/* =============================================================================
   6. BUTTONS: square, Work Sans 600, 13px, 52px tall
   -----------------------------------------------------------------------------
   Colors already come from the btn-* palette slots in theme.json; this only
   changes shape and type. Matches the parent's selectors (and !important) so
   the overrides land.
   ============================================================================= */

.wp-block-button__link {
  border-radius: 0 !important;
}

.is-style-primary .wp-block-button__link,
.is-style-secondary .wp-block-button__link,
.is-style-outline .wp-block-button__link,
.is-style-outline-inverse .wp-block-button__link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 56px;
  padding: 0 32px !important;
  font-family: var(--font-body) !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  border-radius: 0 !important;
  border-width: 1px !important;
}

/* No sliding arrow after the label. (The parent adds "→" to Primary and
   Secondary buttons; the Weiss buttons are plain text.) The "Arrow link"
   styles keep theirs, since the arrow is the whole point of those. */
.is-style-primary .wp-block-button__link::after,
.is-style-secondary .wp-block-button__link::after {
  content: none !important;
}

.wp-block-button.is-style-lift,
.wp-block-button.is-style-lift-outline {
  --lift-btn-radius: 0;
}

.nav-menu .nav-cta > a {
  border-radius: 0;
}


/* =============================================================================
   6b. READABILITY FLOOR
   -----------------------------------------------------------------------------
   The parent sets its top bar, footer and dropdown text at 13–15px, too small
   for this audience. Nothing anyone actually reads goes below 16px here.
   (Body copy is 19px, set in theme.json.)
   ============================================================================= */

.topbar-contact,
.topbar-text {
  font-size: 1rem;
}

/* Store hours in the top bar (fed by weiss-store-info into the "Custom text"
   slot). Libre Caslon bold and a touch larger, per the mockup, so the hours are
   the first thing people see. */
.topbar-text--plain {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav-right .sub-menu a {
  font-size: 1.0625rem;
}

/* Footer sizes live with the footer in § 4. */

.wp-block-quote .wp-block-quote__citation {
  font-size: 1rem;
}


/* =============================================================================
   7. SIGNATURE ELEMENTS (add the class under Block ▸ Advanced ▸ CSS classes)
   ============================================================================= */

/* framed-box: the see-through dark box over a photo, with the photo blurred
   behind it and a thin white frame standing off it. Put it on ONE Group (the
   dark box itself) inside a Cover block. Don't build the frame as a second,
   outer Group with a border: the frame here is drawn by the box itself.
   Text inside turns white.

   Tune per block in Advanced ▸ Additional CSS, or site-wide here:
     --frame-gap     space between the box and the frame      16px
     --frame-width   thickness of the frame line              3px (site-wide: --weiss-frame-width)
     --frame-color   frame color                              white at 60%
     --frame-blur    how much the photo behind is blurred      10px
     --frame-pad     space inside the box                      see below

   Padding is built in and always wins over the block's Dimensions ▸ Padding
   (the editor's "reset" can leave a stray 0 behind, which would otherwise
   squash the box). To change it for one box, set --frame-pad in that block's
   Additional CSS, e.g. --frame-pad: 48px. On phones it's exactly the
   weekly specials tiles' box: 32px top, 34px sides, 30px bottom, with the frame
   9px out. From tablet up it grows to 56px.                                  */
.framed-box {
  --frame-gap:   16px;
  --frame-width: var(--weiss-frame-width);
  --frame-color: var(--weiss-frame-on-dark);
  --frame-blur:  10px;
  --frame-pad:   clamp(40px, 4vw, 56px);

  padding: var(--frame-pad) !important;
  background: var(--weiss-overlay) !important;
  -webkit-backdrop-filter: blur(var(--frame-blur));
  backdrop-filter: blur(var(--frame-blur));
  outline: var(--frame-width) solid var(--frame-color);
  outline-offset: var(--frame-gap);
  color: var(--color-text-inverse);
  --color-accent: var(--weiss-on-dark-label);
}

/* Phones: the same proportions as the weekly specials tiles. */
@media (max-width: 781px) {
  .framed-box {
    --frame-gap: 9px;
    --frame-pad: 32px 34px 30px;
  }
}

.framed-box :where(h1, h2, h3, h4, h5, h6) {
  color: inherit;
}

/* hero-left: put the Cover's content on the left, with the dark box's left
   edge on the same line as the logo (the header's 1440px line). The frame
   hangs just outside that line, on purpose.
   Put it on the Cover block. The box width comes from the Cover's own
   Layout ▸ Content width setting; this only moves it to the left.
     --hero-side   the least space between the box and the screen edge, so
                   the frame never touches it on narrower screens.
   The container is 1440px plus that space on each side, so once the screen
   is wide enough, the padding sits outside the 1440px line rather than
   pushing the box in from it. */
.wp-block-cover.hero-left {
  --hero-side: clamp(24px, 5vw, 72px);
  justify-content: flex-start;
}

.wp-block-cover.hero-left > .wp-block-cover__inner-container {
  width: 100%;
  max-width: calc(var(--max-width, 1440px) + 2 * var(--hero-side));
  margin-inline: auto;
  padding-inline: var(--hero-side);
}

/* Beats WordPress's "center everything" layout rule, which uses !important.
   Only the margins change, so the Content width set on the Cover still applies. */
.wp-block-cover.hero-left > .wp-block-cover__inner-container > * {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* hero-shade: the design guide's hero shading. Darkest on the left behind the
   text, fading to almost nothing on the right, so the photo still reads.
   Put it on the Cover block. It replaces the Cover's own Overlay (whatever
   Overlay opacity is set in the editor is ignored).
     hero-shade--right   dark side on the right instead (right-aligned text)
     --hero-shade-strength   0–1, multiplies the whole shade       1        */
.wp-block-cover.hero-shade {
  --hero-shade-strength: 1;
  --hero-shade-angle: 90deg;
}

.wp-block-cover.hero-shade--right {
  --hero-shade-angle: 270deg;
}

.wp-block-cover.hero-shade > .wp-block-cover__background {
  background: linear-gradient(var(--hero-shade-angle),
    rgba(22, 9, 9, 0.82) 0%,
    rgba(22, 9, 9, 0.5) 42%,
    rgba(22, 9, 9, 0.12) 100%) !important;
  opacity: var(--hero-shade-strength) !important;
}

/* On phones the text spans the full width, so even out the shade. */
@media (max-width: 781px) {
  .wp-block-cover.hero-shade > .wp-block-cover__background {
    background: linear-gradient(180deg,
      rgba(22, 9, 9, 0.55) 0%,
      rgba(22, 9, 9, 0.7) 100%) !important;
  }
}

/* hero-motion: the design guide's entrance. The photo slowly settles from
   112% to 100% over 16s, and the framed box rises 28px and fades in. Put it
   on the Cover block, alongside hero-shade. Off for anyone who has asked their
   device to reduce motion. */
.wp-block-cover.hero-motion {
  overflow: hidden;
}

.wp-block-cover.hero-motion > .wp-block-cover__image-background,
.wp-block-cover.hero-motion > .wp-block-cover__video-background {
  animation: weiss-hero-zoom 16s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}

.wp-block-cover.hero-motion .framed-box {
  animation: weiss-hero-rise 1s cubic-bezier(0.2, 0.6, 0.2, 1) 0.15s both;
}

@keyframes weiss-hero-zoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

@keyframes weiss-hero-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wp-block-cover.hero-motion > .wp-block-cover__image-background,
  .wp-block-cover.hero-motion > .wp-block-cover__video-background,
  .wp-block-cover.hero-motion .framed-box {
    animation: none;
  }
}

/* photo-outline: a hairline frame standing 12px off a photo, for light
   backgrounds. Put it on an Image block. The block reserves room for the frame
   itself, so the frame is never clipped and never touches the next block.
     --photo-frame-gap     space between photo and frame    12px (8px on phones)
     --photo-frame-width   line thickness                   1px
     --photo-frame-color   line color                       warm tan       */
.photo-outline {
  --photo-frame-gap:   12px;
  --photo-frame-width: 1px;
  --photo-frame-color: var(--weiss-frame-on-light);
  padding: calc(var(--photo-frame-gap) + var(--photo-frame-width));
  box-sizing: border-box;
}

.photo-outline img {
  display: block;
  outline: var(--photo-frame-width) solid var(--photo-frame-color);
  outline-offset: var(--photo-frame-gap);
}

@media (max-width: 781px) {
  .photo-outline {
    --photo-frame-gap: 8px;
  }
}

/* photo-inset: a hairline frame 12px inside a product photo. Put it on an
   Image block. */
.photo-inset {
  position: relative;
}

.photo-inset::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid var(--weiss-frame-on-dark);
  pointer-events: none;
}

/* section-pad: the standard section spacing (64-120px top and bottom, 20-40px
   sides). Put it on a full-width Group. */
.section-pad {
  padding-top: var(--weiss-section-pad) !important;
  padding-bottom: var(--weiss-section-pad) !important;
  padding-left: var(--weiss-side-pad) !important;
  padding-right: var(--weiss-side-pad) !important;
}


/* =============================================================================
   8. STORY CHAPTERS (patterns/story-chapters.php + js/story.js)
   -----------------------------------------------------------------------------
   A story told in chapters that visitors click through: a timeline of numbered
   steps, one chapter at a time in a framed box, Prev / Next underneath.

     .weiss-story                the espresso section (full-width Group)
       .story-intro              Columns: eyebrow + title | quote
         .story-quote            burgundy quote box with a hairline frame
       .story-steps              timeline        (built by js/story.js)
       .story-chapters           the framed box
         .story-stage            holds the chapters (built by js/story.js)
           .story-chapter        one Group per chapter, heading first
         .story-pager            Prev · 03 / 04 · Next (built by js/story.js)

   In the editor and without JavaScript, every chapter shows, one under the
   other, numbered and split by a hairline. js/story.js adds .is-story-ready,
   and only then are chapters hidden.

   Tune per section (Advanced ▸ Additional CSS on the .weiss-story Group):
     --story-frame          frame line color              white at 60%
     --story-frame-width    frame line thickness          1px
     --story-frame-gap      space between frame and box   10px
     --story-surface        the box's fill                a shade lighter than espresso
     --story-dot            timeline dot size             26px
   ============================================================================= */

.weiss-story {
  --story-frame:       var(--weiss-frame-on-dark);
  --story-frame-width: 1px;
  --story-frame-gap:   10px;
  --story-surface:     rgba(255, 255, 255, 0.035);
  --story-dot:         26px;
  --story-track:       rgba(255, 255, 255, 0.22);
}

/* ---- Intro: title and quote ------------------------------------------------ */
.weiss-story .story-intro {
  gap: clamp(32px, 5vw, 72px);
}

.weiss-story .story-intro :is(h1, h2) {
  margin-top: 0.35em;
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  text-transform: uppercase;
}

/* The quote: burgundy, with a hairline frame standing off it. The margin makes
   room for the frame, so the frame lines up with the content edge instead of
   hanging past it. */
.weiss-story .story-quote {
  margin: calc(var(--story-frame-gap) + var(--story-frame-width)) !important;
  padding: clamp(28px, 3.2vw, 44px) clamp(28px, 3.4vw, 48px) !important;
  outline: var(--story-frame-width) solid var(--story-frame);
  outline-offset: var(--story-frame-gap);
}

.weiss-story .story-quote p {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(1.375rem, 2.1vw, 1.75rem);
  font-style: italic;
  line-height: 1.4;
  text-wrap: pretty;
}

/* ---- The framed box --------------------------------------------------------
   The box's border is the frame. The slightly lighter fill (a ::before) sits
   --story-frame-gap inside it, so the frame lines up with the content edge. */
.weiss-story .story-chapters {
  position: relative;
  isolation: isolate;
  margin-top: clamp(40px, 5vw, 64px);
  padding: calc(var(--story-frame-gap) + clamp(28px, 6vw, 80px)) !important;
  border: var(--story-frame-width) solid var(--story-frame);
  counter-reset: story-chapter;
}

.weiss-story .story-chapters::before {
  content: '';
  position: absolute;
  inset: var(--story-frame-gap);
  z-index: -1;
  background: var(--story-surface);
  pointer-events: none;
}

/* ---- A chapter ------------------------------------------------------------- */
.weiss-story .story-chapter {
  counter-increment: story-chapter;
}

.weiss-story .story-chapter > .wp-block-heading:first-child {
  margin: 0 0 0.75em;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* The chapter number (01, 02 …), counted automatically. */
.weiss-story .story-chapter > .wp-block-heading:first-child::before {
  content: counter(story-chapter, decimal-leading-zero);
  margin-right: 0.45em;
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--weiss-on-dark-label);
}

/* Story text in Libre Caslon, a touch larger than body copy, at a comfortable
   line length. */
.weiss-story .story-chapter > :is(p, ul, ol) {
  max-width: 40em;
  font-family: var(--font-script);
  font-size: clamp(1.1875rem, 1.55vw, 1.3125rem);
  line-height: 1.75;
}

.weiss-story .story-chapter > :last-child {
  margin-bottom: 0;
}

/* Before the script runs (and in the editor): chapters stacked, split by a
   hairline. */
.weiss-story:not(.is-story-ready) .story-chapter + .story-chapter {
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* ---- One chapter at a time -------------------------------------------------
   Desktop: every chapter sits in the same grid cell, so the box is always as
   tall as the longest chapter and the buttons don't jump as you click through.
   Phones: only the open chapter takes up room, so a short chapter doesn't leave
   a screenful of empty space. Hidden chapters are never display: none, which
   would throw off the automatic numbers. */
.weiss-story.is-story-ready .story-stage {
  display: grid;
}

.weiss-story.is-story-ready .story-chapter {
  grid-area: 1 / 1;
  margin: 0 !important;
}

.weiss-story.is-story-ready .story-chapter:not(.is-active) {
  visibility: hidden;
}

@media (max-width: 781px) {
  .weiss-story.is-story-ready .story-stage {
    display: block;
    position: relative;
  }

  .weiss-story.is-story-ready .story-chapter:not(.is-active) {
    position: absolute;
    inset: 0 0 auto 0;
    height: 0;
    overflow: hidden;
  }
}

.weiss-story.story-has-moved .story-chapter.is-active {
  animation: weiss-story-in 0.45s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}

@keyframes weiss-story-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---- Timeline -------------------------------------------------------------- */
.weiss-story .story-steps {
  --story-progress: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--story-count, 4), minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 80px);
  scroll-margin-top: calc(var(--nav-height, 90px) + 24px);
}

/* The line through the dots, and the red part that fills up to the open one.
   Both run from the middle of the first step to the middle of the last. */
.weiss-story .story-steps::before,
.weiss-story .story-steps::after {
  content: '';
  position: absolute;
  top: calc(var(--story-dot) / 2);
  left: calc(50% / var(--story-count, 4));
  height: 1px;
}

.weiss-story .story-steps::before {
  right: calc(50% / var(--story-count, 4));
  background: var(--story-track);
}

.weiss-story .story-steps::after {
  width: calc((100% - 100% / var(--story-count, 4)) * var(--story-progress));
  background: var(--weiss-accent-red);
  transition: width 0.5s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.weiss-story .story-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0 8px 6px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.weiss-story .story-step__dot {
  position: relative;
  display: block;
  width: var(--story-dot);
  height: var(--story-dot);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: var(--weiss-espresso); /* hides the line behind the dot */
  transition: background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.weiss-story .story-step__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 6px;
  height: 6px;
  margin: auto;
  border-radius: 50%;
  background: transparent;
}

.weiss-story .story-step__num {
  font-family: var(--font-script);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1;
  color: var(--weiss-on-dark-label);
}

.weiss-story .story-step__label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Chapters already read: red ring, red center. */
.weiss-story .story-step.is-done .story-step__dot {
  border-color: var(--weiss-accent-red);
}

.weiss-story .story-step.is-done .story-step__dot::after {
  background: var(--weiss-accent-red);
}

/* The open chapter: solid red with a white center and a soft halo. */
.weiss-story .story-step.is-active {
  color: var(--wp--preset--color--white, #fff);
}

.weiss-story .story-step.is-active .story-step__dot {
  border-color: var(--weiss-accent-red);
  background: var(--weiss-accent-red);
  box-shadow: 0 0 0 5px rgba(200, 68, 63, 0.22);
}

.weiss-story .story-step.is-active .story-step__dot::after {
  background: var(--wp--preset--color--white, #fff);
}

.weiss-story .story-step.is-active .story-step__num {
  color: var(--wp--preset--color--white, #fff);
}

.weiss-story .story-step:hover {
  color: var(--wp--preset--color--white, #fff);
}

.weiss-story .story-step:hover:not(.is-active) .story-step__dot {
  border-color: var(--weiss-on-dark-label);
}

.weiss-story .story-step:focus-visible {
  outline: 2px solid var(--weiss-on-dark-label);
  outline-offset: 4px;
}

/* Phones: four long labels won't fit across, so the timeline keeps only its
   dots and numbers. The open chapter's title is right below in the box, and
   screen readers still get the labels. */
@media (max-width: 700px) {
  .weiss-story .story-step__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .weiss-story .story-step {
    padding-bottom: 0;
  }
}

/* ---- Prev · 03 / 04 · Next ------------------------------------------------- */
.weiss-story .story-pager {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-top: clamp(36px, 4.5vw, 56px) !important;
}

.weiss-story .story-pager__count {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
}

.weiss-story .story-pager__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 56px;
  margin: 0;
  padding: 0 28px;
  border: 1px solid var(--story-frame);
  border-radius: 0;
  background: transparent;
  color: var(--wp--preset--color--white, #fff);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

.weiss-story .story-pager__btn:not(:disabled):hover {
  border-color: var(--wp--preset--color--white, #fff);
  background: var(--wp--preset--color--white, #fff);
  color: var(--weiss-ink);
}

/* Next is the main way forward, so it's the solid one. */
.weiss-story .story-pager__next {
  border-color: var(--wp--preset--color--white, #fff);
  background: var(--wp--preset--color--white, #fff);
  color: var(--weiss-ink);
}

.weiss-story .story-pager__next:not(:disabled):hover {
  border-color: var(--weiss-cream);
  background: var(--weiss-cream);
}

.weiss-story .story-pager__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.weiss-story .story-pager__btn:focus-visible {
  outline: 2px solid var(--weiss-on-dark-label);
  outline-offset: 4px;
}

/* Small phones: the counter gets its own row, and the two buttons share the
   row below it. */
@media (max-width: 520px) {
  .weiss-story .story-pager {
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
  }

  .weiss-story .story-pager__count {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .weiss-story .story-pager__btn {
    padding: 0 16px;
  }
}

/* Screen-reader-only text from the script ("Prev chapter", announcements). */
.weiss-story .story-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .weiss-story.story-has-moved .story-chapter.is-active {
    animation: none;
  }

  .weiss-story .story-steps::after,
  .weiss-story .story-step__dot {
    transition: none;
  }
}


/* =============================================================================
   9. REVIEWS (patterns/reviews.php)
   -----------------------------------------------------------------------------
   Eyebrow, big uppercase title, and a row of quote cards. Each card is a core
   Quote block with the class "review-card": a hairline tan frame, with a cream
   fill standing 10px inside it, a large burgundy opening mark above the words,
   and the source (the Quote's citation) in small caps below.

     .weiss-reviews              the white section (full-width Group)
       .reviews-grid             Columns, one card per column
         .review-card            Quote block: paragraph(s) + cite

   Builds on the parent's Quote styles (ixiun-onyx style.css "QUOTE"), turning
   off the parts that don't fit a card: the inline closing mark, the dash
   before the citation, the muted color and the display-size type.

   Tune per section (Advanced ▸ Additional CSS on the .weiss-reviews Group):
     --review-frame        frame line color              Line (#DCCFC0)
     --review-frame-gap    space between frame and fill  10px
     --review-surface      the card's fill               Cream
   ============================================================================= */

.weiss-reviews {
  --review-frame:     var(--weiss-line);
  --review-frame-gap: 10px;
  --review-surface:   var(--weiss-cream);
}

.weiss-reviews > h2,
.weiss-reviews > .wp-block-heading {
  margin-top: 0.35em;
  text-transform: uppercase;
}

.weiss-reviews .reviews-grid {
  gap: clamp(20px, 2.4vw, 32px);
  margin-top: clamp(36px, 4.5vw, 64px);
}

/* Cards in a row share one height, whatever the quote length. */
.weiss-reviews .reviews-grid > .wp-block-column {
  display: flex;
  flex-direction: column;
}

/* ---- The card --------------------------------------------------------------
   The border is the frame; the fill is a ::before sitting --review-frame-gap
   inside it. */
.weiss-reviews .review-card {
  position: relative;
  isolation: isolate;
  flex: 1;
  margin: 0;
  padding: calc(var(--review-frame-gap) + clamp(24px, 3vw, 40px)) !important;
  border: 1px solid var(--review-frame);
  color: var(--weiss-ink);
  font-size: clamp(1.3rem, 1.9vw, 1.625rem);
  line-height: 1.45;
}

.weiss-reviews .review-card::before {
  content: '';
  position: absolute;
  inset: var(--review-frame-gap);
  z-index: -1;
  background: var(--review-surface);
}

.weiss-reviews .review-card p {
  text-wrap: pretty;
}

/* The opening mark gets its own line above the quote, as in the mockup. */
.weiss-reviews .review-card p:first-of-type::before {
  display: block;
  margin: 0 0 0.45em;
  color: var(--weiss-burgundy);
  font-size: 2.2em;
  line-height: 0.6;
  vertical-align: baseline;
}

.weiss-reviews .review-card p:last-of-type::after {
  content: none;
}

/* Source: "GOOGLE REVIEW". 14px is the floor for short all-caps tags. */
.weiss-reviews .review-card cite,
.weiss-reviews .review-card .wp-block-quote__citation {
  margin-top: 1.4rem;
  color: var(--wp--preset--color--muted, #6B5C55);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  opacity: 1;
}

.weiss-reviews .review-card cite::before,
.weiss-reviews .review-card .wp-block-quote__citation::before {
  content: none;
}


/* =============================================================================
   10. CONTACT (patterns/contact.php)
   -----------------------------------------------------------------------------
   Two columns. Left: "Visit the Shop" eyebrow, a 2 x 2 grid of details
   (address, hours, phone, follow) and a framed map. Right: a framed cream box
   with the ixiun-forms "contact" form. The columns stack under 782px.

     .weiss-contact              the white section (full-width Group)
       .weiss-contact__title         H1 for screen readers and search engines only
       .weiss-contact__layout           Columns
         .weiss-contact__details        Group: the 2 x 2 grid of .weiss-contact__item
         .weiss-contact__map            Group around [weiss_map]: hairline frame
         .weiss-contact__card           Group: framed cream box with the form

   The form's look is set here through ixiun-forms' --ixf-* variables plus a
   few rules, so it doesn't depend on its Form Settings. A color picked in
   Form Settings still wins, because the plugin sets it inline on the form.

   Tune per section (Advanced ▸ Additional CSS on the .weiss-contact Group):
     --contact-frame       frame line color              Line (#DCCFC0)
     --contact-frame-gap   space between frame and fill  12px
     --contact-surface     the form box's fill           Cream
   ============================================================================= */

.weiss-contact {
  --contact-frame:     var(--weiss-line);
  --contact-frame-gap: 12px;
  --contact-surface:   var(--weiss-cream);
}

/* The mockup has no visible page title, but every page needs an H1. */
.weiss-contact .weiss-contact__title {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.weiss-contact .weiss-contact__layout {
  gap: clamp(40px, 8vw, 120px);
}

/* ---- Details: 2 x 2 grid ---------------------------------------------------- */
.weiss-contact .weiss-contact__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3.5vw, 44px) clamp(24px, 3vw, 40px);
  margin-top: clamp(28px, 3.5vw, 44px);
}

/* WordPress gives every block after the first a top margin; inside a grid
   that pushed items 2-4 down out of line with the first. The grid's gap
   does the spacing instead. */
.weiss-contact .weiss-contact__details > *,
.weiss-contact .weiss-contact__item > * {
  margin: 0;
}

/* "ADDRESS", "HOURS" …: like the eyebrow, without the rule. */
.weiss-contact .weiss-contact__label {
  margin-bottom: 0.75rem;
  color: var(--weiss-burgundy);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Same size as [weiss_hours] (20px), so the four blocks read as one set. */
.weiss-contact .weiss-contact__item p:not(.weiss-contact__label) {
  font-size: 1.25rem;
  line-height: 1.6;
}

/* Address, phone and social links: ink, underlined, burgundy on hover. */
.weiss-contact .weiss-contact__item a:not(.ws-store--directions) {
  color: var(--weiss-ink);
}

.weiss-contact .weiss-contact__item a:not(.ws-store--directions):hover {
  color: var(--weiss-burgundy);
}

.weiss-contact .weiss-contact__directions {
  margin-top: 0.9rem !important;
}

.weiss-contact .weiss-contact__social a + a {
  margin-left: 0.9em;
}

/* ---- Map: hairline frame standing off the map ------------------------------ */
.weiss-contact .weiss-contact__map {
  margin-top: clamp(36px, 4.5vw, 56px);
  padding: var(--contact-frame-gap);
  border: 1px solid var(--contact-frame);
}

/* ---- Form box ---------------------------------------------------------------
   The border is the frame; the cream fill is a ::before sitting
   --contact-frame-gap inside it (as on the review cards). */
.weiss-contact .weiss-contact__card {
  position: relative;
  isolation: isolate;
  padding: calc(var(--contact-frame-gap) + clamp(24px, 4vw, 50px)) !important;
  border: 1px solid var(--contact-frame);
}

.weiss-contact .weiss-contact__card::before {
  content: '';
  position: absolute;
  inset: var(--contact-frame-gap);
  z-index: -1;
  background: var(--contact-surface);
}

.weiss-contact .weiss-contact__card > h2 {
  margin: 0 0 clamp(24px, 3vw, 36px);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

/* ---- The form ------------------------------------------------------------- */
.weiss-contact .ixiun-form {
  --ixf-font:       var(--font-body, 'Work Sans', sans-serif);
  --ixf-label-font: var(--font-body, 'Work Sans', sans-serif);
  --ixf-ink:        var(--weiss-ink);
  --ixf-surface:    var(--wp--preset--color--white, #fff);
  --ixf-border:     var(--weiss-line);
  --ixf-focus:      var(--weiss-burgundy);
  --ixf-required:   var(--weiss-burgundy);
  --ixf-radius:     0;
  --ixf-row-gap:    1.6rem;
  max-width: none;
}

/* One field per row, as in the mockup: the box is too narrow for two fields
   side by side, even when the form sets Name and Email to Half width. */
.weiss-contact .ixiun-form__row {
  grid-template-columns: 1fr;
}

.weiss-contact .ixiun-form__label {
  margin-bottom: 0.6rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.weiss-contact .ixiun-form__field input,
.weiss-contact .ixiun-form__field textarea,
.weiss-contact .ixiun-form__field select {
  min-height: 60px;
  padding: 0.85rem 1rem;
  font-size: 1.1875rem;
}

.weiss-contact .ixiun-form__field textarea {
  min-height: 9.5rem;
}

/* Submit: full-width, flat burgundy, like the site's other buttons. Turns off
   the plugin's gradient, colour wipe, arrow and shadow. */
.weiss-contact .ixiun-form__actions {
  margin-top: 1.75rem;
}

.weiss-contact .ixiun-form__submit {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 64px;
  padding: 0 28px;
  border: 0;
  border-radius: 0;
  background: var(--weiss-burgundy);
  box-shadow: none;
  color: var(--wp--preset--color--white, #fff);
  font-family: var(--font-body, 'Work Sans', sans-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

.weiss-contact .ixiun-form__submit::before,
.weiss-contact .ixiun-form__submit::after {
  content: none;
}

.weiss-contact .ixiun-form__submit:hover {
  background: var(--weiss-burgundy-dark);
  box-shadow: none;
  transform: none;
  filter: none;
  color: var(--wp--preset--color--white, #fff);
}

.weiss-contact .ixiun-form__submit:focus-visible {
  outline: 3px solid var(--weiss-burgundy);
  outline-offset: 3px;
}

/* ---- Phones ------------------------------------------------------------------ */
@media (max-width: 560px) {
  .weiss-contact .weiss-contact__details {
    grid-template-columns: 1fr;
  }

  .weiss-contact {
    --contact-frame-gap: 8px;
  }
}


/* =============================================================================
   11. PRIVACY POLICY (patterns/privacy-policy.php)
   -----------------------------------------------------------------------------
   A cream header (eyebrow with the "Last updated" date, uppercase H1, intro in
   Libre Caslon), then numbered sections split by hairlines, and a framed dark
   "Questions?" box. Both parts are 920px wide, a comfortable reading measure.

     .weiss-policy-hero          cream header (full-width Group)
       .weiss-policy-hero__lede      intro paragraph
     .weiss-policy               white body (full-width Group)
       .weiss-policy__section        Group: H2 + paragraphs, lists, H3s
       .weiss-policy__contact        Group: the hairline frame
         .weiss-policy__contact-inner  espresso Group inside it
       .weiss-policy__note           small print at the end

   The section numbers (01, 02 …) are a CSS counter on the H2s of
   .weiss-policy__section, so they renumber when sections are added, removed
   or moved. The contact box's H2 isn't in a section, so it gets no number.

   Tune per page (Advanced ▸ Additional CSS on the .weiss-policy Group):
     --policy-frame        frame line color              Line (#DCCFC0)
     --policy-frame-gap    space between frame and box   12px
   ============================================================================= */

/* ---- Header ----------------------------------------------------------------- */
.weiss-policy-hero h1 {
  margin-top: 0.3em;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

.weiss-policy-hero .weiss-policy-hero__lede {
  margin-top: clamp(20px, 2.4vw, 32px);
  color: var(--weiss-ink);
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  line-height: 1.45;
  text-wrap: pretty;
}

/* The URL in the intro: ink rather than burgundy, so the line reads as one. */
.weiss-policy-hero .weiss-policy-hero__lede a {
  color: inherit;
}

/* ---- Body ------------------------------------------------------------------- */
.weiss-policy {
  --policy-frame:     var(--weiss-line);
  --policy-frame-gap: 12px;
  counter-reset: policy;
}

.weiss-policy .weiss-policy__section {
  counter-increment: policy;
  margin-top: clamp(36px, 4vw, 48px);
  padding-top: clamp(36px, 4vw, 48px);
  border-top: 1px solid var(--weiss-line);
}

.weiss-policy > .weiss-policy__section:first-child {
  margin-top: 0;
}

.weiss-policy .weiss-policy__section > h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

/* "01": Libre Caslon italic, burgundy, smaller than the heading. */
.weiss-policy .weiss-policy__section > h2::before {
  content: counter(policy, decimal-leading-zero);
  margin-right: 0.45em;
  color: var(--weiss-burgundy);
  font-size: 0.7em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.weiss-policy .weiss-policy__section > h3 {
  margin: 2rem 0 0.75rem;
  font-size: clamp(1.3rem, 1.8vw, 1.5rem);
  line-height: 1.25;
}

.weiss-policy .weiss-policy__section > h2 + h3 {
  margin-top: 1.25rem;
}

.weiss-policy .weiss-policy__section > :is(p, ul, ol) {
  margin: 0 0 1.1rem;
}

.weiss-policy .weiss-policy__section > :last-child {
  margin-bottom: 0;
}

.weiss-policy .weiss-policy__section :is(ul, ol) {
  padding-left: 1.4em;
}

.weiss-policy .weiss-policy__section li + li {
  margin-top: 0.45rem;
}

.weiss-policy .weiss-policy__section li::marker {
  color: var(--weiss-burgundy);
}

.weiss-policy strong {
  color: var(--weiss-ink);
}

/* ---- "Questions?" box ---------------------------------------------------------
   The outer Group is the hairline frame; the espresso Group sits
   --policy-frame-gap inside it (as on the contact form box). */
.weiss-policy .weiss-policy__contact {
  margin-top: clamp(48px, 6vw, 72px);
  padding: var(--policy-frame-gap);
  border: 1px solid var(--policy-frame);
}

.weiss-policy .weiss-policy__contact-inner {
  margin: 0;
  padding: clamp(32px, 5vw, 56px) !important;
}

.weiss-policy .weiss-policy__contact-inner > * {
  margin: 0;
}

.weiss-policy .weiss-policy__contact-inner > h2 {
  margin: 0.4em 0 0.6em;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

.weiss-policy .weiss-policy__contact-inner > p + p {
  margin-top: 1rem;
}

.weiss-policy .weiss-policy__contact-links {
  line-height: 1.9;
}

.weiss-policy .weiss-policy__contact-inner strong {
  color: inherit;
}

/* Burgundy links vanish on espresso: white, pale label color on hover. */
.weiss-policy .weiss-policy__contact-inner a {
  color: inherit;
  overflow-wrap: anywhere;
}

.weiss-policy .weiss-policy__contact-inner a:hover {
  color: var(--weiss-on-dark-label);
}

/* ---- Small print ------------------------------------------------------------ */
.weiss-policy .weiss-policy__note {
  margin-top: clamp(28px, 3vw, 40px);
  color: var(--wp--preset--color--muted, #6B5C55);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.6;
}

@media (max-width: 560px) {
  .weiss-policy {
    --policy-frame-gap: 8px;
  }
}
