/* ==========================================================================
   Base — minimal reset + typography defaults
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  color: var(--c-ink-900);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, canvas, audio, iframe { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.15em; }

button { font: inherit; color: inherit; cursor: pointer; }

ul, ol { padding: 0; margin: 0; list-style: none; }

p { margin: 0 0 var(--s-4) 0; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  margin: 0;
}

.t-eyebrow {
  font-family: var(--font-title);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-title);
  text-transform: uppercase;
}

/* Large titles use Cordoba Sans Stamp — the heavier "stamp" cut matches the
   brand's packaging headlines. Small titles stay on regular Cordoba Sans
   for cleaner long-read legibility. */
.t-title-xl { font-family: var(--font-display); font-size: var(--text-5xl); letter-spacing: -0.02em; line-height: 1.0; }
.t-title-lg { font-family: var(--font-display); font-size: var(--text-4xl); letter-spacing: -0.015em; }
.t-title-md { font-family: var(--font-display); font-size: var(--text-3xl); letter-spacing: -0.01em; }
.t-title-sm { font-size: var(--text-2xl); }
.t-subtitle { font-family: var(--font-title); font-weight: var(--fw-bold); letter-spacing: var(--tracking-subtitle); text-transform: uppercase; font-size: var(--text-sm); }

.t-body-lg { font-size: var(--text-lg); line-height: var(--lh-relaxed); }
.t-muted { color: var(--c-ink-500); }
.t-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.95em; }

@media (max-width: 768px) {
  .t-title-xl { font-size: 3rem; }
  .t-title-lg { font-size: 2.5rem; }
  .t-title-md { font-size: 2rem; }
  .t-title-sm { font-size: 1.5rem; }
}

/* Focus ring: visible, branded */
:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 2px; }
[data-flavor]:focus-visible { outline-color: var(--c-flavor); }

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding-mobile);
  padding-right: var(--container-padding-mobile);
}
.container-narrow { max-width: var(--container-narrow); }

@media (min-width: 768px) {
  .container { padding-left: var(--container-padding-desktop); padding-right: var(--container-padding-desktop); }
}

/* Section vertical rhythm */
.section { padding-top: var(--s-16); padding-bottom: var(--s-16); }
.section-tight { padding-top: var(--s-10); padding-bottom: var(--s-10); }
.section-wide { padding-top: var(--s-24); padding-bottom: var(--s-24); }

/* Surfaces */
.bg-yellow { background: var(--c-yellow); }
.bg-black { background: var(--c-black); color: var(--c-white); }
.bg-kraft { background: var(--c-kraft-light); }
/* Kraft paper texture — photographed kraft surface from the brand assets.
   Not seamlessly tileable, so `cover` scales one tile to fill the section. */
.bg-kraft-texture {
  background: var(--c-kraft) url('../assets/kraft.png') center / cover no-repeat;
}
.bg-surface { background: var(--c-surface-100); }
.bg-flavor { background: var(--c-flavor); }
.bg-flavor-soft { background: var(--c-flavor-soft); }

.divider { height: 1px; background: var(--c-border); margin: var(--s-8) 0; }

/* Utilities */
.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; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--s-1); }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.gap-6 { gap: var(--s-6); }
.gap-8 { gap: var(--s-8); }

.grid { display: grid; gap: var(--s-6); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-cols-3, .grid-cols-2 { grid-template-columns: 1fr; }
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px;
  background: var(--c-black); color: var(--c-white);
  padding: var(--s-3) var(--s-4); font-weight: var(--fw-bold);
}
.skip-link:focus { left: var(--s-4); top: var(--s-4); z-index: 100; }
