/* PADSTAL · rustic farm stall / plaas-padstal
   Warm earth: terracotta, ochre, sun-bleached cream. Slab serif heads (Bitter) +
   friendly sans (Nunito Sans). Paper grain + gingham motif. Default hero: split. */
:root {
  --c-bg: #f6eedf;
  --c-surface: #fffaf1;
  --c-surface-2: #efe1c6;
  --c-text: #3b2416;
  --c-muted: #644733;
  --c-primary: #9c3f25;
  --c-on-primary: #fffaf1;
  --c-accent: #d4952a;
  --c-on-accent: #2b1a0f;
  --c-accent-text: #8a4b12;
  --c-line: #d9c19b;
  --c-hero-bg: #5b2f1b;
  --c-hero-text: #fff6e6;
  --c-cta: var(--c-accent);       /* one CTA colour: ochre reads on the dark hero, so it is the main action everywhere */
  --c-on-cta: var(--c-on-accent);
  --c-cta-edge: var(--c-on-accent); /* dark 2px edge: the ochre button stands out on the cream page too (UI contrast >= 3:1) */
  --c-footer-bg: #3b2416;
  --c-footer-text: #f6eedf;
  --c-ph-a: #e6c9a0; --c-ph-b: #d9b07a;
  --c-ph-label-text: #3b2416;

  --f-head: "Bitter", "Bitter fallback", "Rockwell", Georgia, serif;
  --f-body: "Nunito Sans", "Nunito Sans fallback", system-ui, sans-serif;
  --fw-head: 700;
  --radius-s: 4px; --radius-m: 8px; --radius-l: 14px; --radius-btn: 8px;
  --shadow: 0 2px 0 #d9c19b;
  --motif-color: #9c3f25;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .2 0 0 0 0 .08 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --texture: var(--grain);
  --hero-texture: var(--grain), radial-gradient(ellipse at 80% 0%, #8a4628 0%, transparent 60%);
  --ph-pattern: var(--grain), linear-gradient(160deg, #e9cfa6 0%, #d39b5e 55%, #9c5a32 100%);
}
.brand__mark { border-radius: 50%; background: var(--c-accent); color: var(--c-on-accent); box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 5px var(--c-accent); }
.hero h1 { font-weight: 700; }
/* (round 2) hero button colour now comes from --c-cta, like every other main action */
.site-header { border-bottom: 0; box-shadow: 0 6px 0 -2px var(--c-bg), 0 8px 0 -2px var(--c-line); }
.card { border-width: 2px; }
.card__title::after { content: ""; display: block; width: 2.5rem; height: 3px; margin-top: .4rem; background: var(--c-accent); border-radius: 2px; }
.hours__table th, .hours__table td { border-bottom-style: dotted; border-bottom-width: 2px; }


/* 22 Nov (#134): on portrait phones with a tall enough viewport, cap the hero
   oval (max-height / clamp) so roughly 60px of .section.features peeks above
   the fold. Do not set a fixed height on .hero — the text block must stay
   visible on short viewports (QA FAIL at 320x568 and 740x360 landscape).
   Scoped to (orientation: portrait) and (min-height: 640px). Tighter padding
   and gap only in this query, so the oval can stay reasonably large at 390.
   A narrower query accounts for the taller stacked text at 360. The signed-off
   illustration asset is unchanged. No scroll cue. 48rem+ unchanged. */
@media (max-width: 47.99rem) and (orientation: portrait) and (min-height: 640px) {
  .hero {
    padding-block: var(--space-4) var(--space-3);
  }
  .hero__inner {
    gap: var(--space-3);
  }
  .hero .ph--hero {
    width: auto;
    max-width: 100%;
    align-self: center;
    justify-self: center; /* #136: .hero__inner is a grid; align-self only centres vertically */
    min-height: 0; /* .ph has min-height: 10rem; that would block a shorter cap */
    /* 27.4rem ≈ text + padding + gap at 390; leftover oval aims at a 60px peek. */
    /* height must equal max-height: the oval is an empty <figure>, so once
       justify-self leaves stretch, width:auto collapses to 0 unless height is
       definite and aspect-ratio (5/4 in site.css) can compute width. */
    max-height: clamp(5.5rem, calc(100dvh - 7.75rem - 60px - 27.4rem), 14rem);
    height: clamp(5.5rem, calc(100dvh - 7.75rem - 60px - 27.4rem), 14rem);
  }
}
@media (max-width: 22.5rem) and (orientation: portrait) and (min-height: 640px) {
  .hero .ph--hero {
    /* 29.16rem ≈ the taller lead + stacked CTAs at 360. Floor keeps ~the 90px oval. */
    max-height: clamp(5.5rem, calc(100dvh - 7.75rem - 60px - 29.16rem), 14rem);
    height: clamp(5.5rem, calc(100dvh - 7.75rem - 60px - 29.16rem), 14rem);
  }
}
