/* ============================================================
   base.css — reset + html/body + type defaults
   Loaded after tokens.css
   ============================================================ */

/* ─── Modern reset ─── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }

ul[role='list'], ol[role='list'] { list-style: none; }

html:focus-within { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: var(--leading-body);
  background: var(--color-bg);
  color: var(--color-cream);
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a:not([class]) { text-decoration-skip-ink: auto; color: inherit; }

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select { font: inherit; color: inherit; }

p, li, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

/* ─── Type defaults ───
   Forum (the big serif) is always rendered ALL-CAPS.
   Eyebrows = Barlow 24/600/1px (uppercase)
   Body     = Barlow Semi Condensed 28/300 (sentence case)
*/
h1, h2 {
  font-family: var(--font-display);       /* Forum — always uppercase */
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.9;
  text-transform: uppercase;              /* Forum = always caps */
  margin: 0;
  color: var(--color-cream);
}
h1 { font-size: clamp(48px, 9vw, 144px); }
h2 { font-size: clamp(40px, 7vw, 96px); }

/* Any element using the Forum display font gets uppercase by default */
.font-display,
.section__heading,
.page-hero__title,
.izdelki__heading,
.josefina__line,
.veuve__head h2,
.tasting-card__count,
.tasting-card__price,
.menu-section__title,
.room-detail__price-value,
.award-card__rating,
.room-card__name {
  text-transform: uppercase;
}

h3, h4, h5, h6 {
  font-family: var(--font-sans);          /* Barlow */
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0;
  color: var(--color-cream);
}
h3 { font-size: 28px; }
h4 { font-size: 24px; }                   /* matches FAMILIA MAHORČIČ + MICHELIN GUIDE eyebrows */
h5 { font-size: 20px; }
h6 { font-size: 18px; }

.eyebrow {
  font-family: var(--font-semi-condensed);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-cream-faint);
}

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* ─── Visually hidden (accessibility) ─── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Selection ─── */
::selection {
  background: var(--color-cream);
  color: var(--color-bg);
}

/* ─── Focus ─── */
:focus-visible {
  outline: 2px solid var(--color-cream);
  outline-offset: 3px;
  border-radius: 4px;
}
