/* ==========================================================================
   Seven Bites — Base / reset
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* The page itself must never slide left/right (rows inside may swipe) */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* no overflow-x: hidden here — it would stop the sticky header and menu
     sidebar from sticking; overflow-x: clip above does the job safely */
}

/* "hidden" always wins over component display rules */
[hidden] {
  display: none !important;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol {
  margin: 0;
}

h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

:focus-visible {
  outline: 3px solid var(--c-yellow);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection {
  background: var(--c-yellow);
  color: var(--c-navy);
}

/* ---------- Utilities ---------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Large screens: use the full width, 20px from each edge */
@media (min-width: 1024px) {
  .container {
    max-width: none;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 200;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-yellow);
  color: var(--c-navy);
  font-weight: var(--fw-semibold);
  border-radius: var(--r-sm);
  transition: top var(--t-base) var(--ease-out);
}

.skip-link:focus {
  top: var(--sp-4);
}

/* Show/hide by breakpoint */
@media (max-width: 767.98px) {
  .only-desktop { display: none !important; }
}
@media (min-width: 768px) {
  .only-mobile { display: none !important; }
}
/* lg = 1024px and wider (full desktop header) */
@media (max-width: 1023.98px) {
  .lg-only { display: none !important; }
}
@media (min-width: 1024px) {
  .lg-hide { display: none !important; }
}
/* hidden on phones only (the tab bar covers it there) */
@media (max-width: 767.98px) {
  .phone-hide { display: none !important; }
}

/* ---------- Scroll reveal ---------- */

/* Content rises in as it enters the screen, a soft blur clears,
   and any photo inside settles from a slight zoom. */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition:
    opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1000ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 900ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

[data-reveal] .media img {
  transform: scale(1.06);
  transition: transform 1400ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible .media img {
  transform: none;
}

/* Without JS, never hide content */
.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal],
  [data-reveal] .media img {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
