/* ==========================================================================
   Huhn & Hopp - layout.css
   Self-contained layout/utility layer. Replaces the runtime Tailwind CDN so
   the site never collapses when an external script fails to load.
   Loaded AFTER brutal.css so inline utilities can override component styles
   (e.g. a button shrunk with py-2 px-3), mirroring Tailwind's utility layer.
   Only the utilities actually used across the pages are implemented.
   ========================================================================== */

/* --- Reset (replaces Tailwind preflight) --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

/* --- Full-width shell ---------------------------------------------------- */
/* Replaces the old centered max-w container. Sections span the full viewport
   with fluid side gutters that grow with the screen. */
.wrap {
  width: 100%;
  padding-inline: clamp(1.25rem, 5vw, 5rem);
}
/* Keep body copy legible even at full width: cap paragraph line length without
   re-centering the block, so the layout stays full-bleed but text stays readable. */
p.prose, .prose p { max-width: 78ch; }

/* --- Display / box ------------------------------------------------------- */
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.relative { position: relative; }
.sticky { position: sticky; }
.overflow-hidden { overflow: hidden; }
.min-h-screen { min-height: 100vh; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }
.h-16 { height: 4rem; }
.top-0 { top: 0; }
.z-40 { z-index: 40; }

/* --- Fl: alignment ------------------------------------------------------- */
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.place-items-center { place-items: center; }

/* --- Grid ---------------------------------------------------------------- */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2 / span 2; }

/* --- Gaps ---------------------------------------------------------------- */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

/* --- Margin -------------------------------------------------------------- */
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }

/* --- Padding ------------------------------------------------------------- */
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-12 { padding-top: 3rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-14 { padding-bottom: 3.5rem; }
.pb-16 { padding-bottom: 4rem; }
.p-2 { padding: 0.5rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }

/* --- Max width ----------------------------------------------------------- */
.max-w-6xl { max-width: 72rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }
.max-w-lg { max-width: 32rem; }
.max-w-md { max-width: 28rem; }
.max-w-sm { max-width: 24rem; }
.max-w-xs { max-width: 20rem; }
.max-w-\[230px\] { max-width: 230px; }
.max-w-\[260px\] { max-width: 260px; }

/* --- Typography ---------------------------------------------------------- */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: clamp(1.9rem, 6vw, 2.25rem); line-height: 1.08; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
.text-\[2\.2rem\] { font-size: clamp(1.65rem, 6vw, 2.2rem); line-height: 1.08; }
.text-\[2\.4rem\] { font-size: clamp(1.7rem, 7vw, 2.4rem); line-height: 1.05; }
.text-\[2\.6rem\] { font-size: clamp(1.85rem, 7.5vw, 2.6rem); line-height: 1.02; }
.text-\[6rem\] { font-size: clamp(3.5rem, 14vw, 6rem); line-height: 1; }

.font-normal { font-weight: 400; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.leading-none { line-height: 1; }
.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }
.lowercase { text-transform: lowercase; }
.underline { text-decoration: underline; }

/* --- Colors -------------------------------------------------------------- */
.text-\[\#f4f4ef\] { color: #f4f4ef; }
.text-\[\#111\] { color: #111111; }
.text-\[\#c6f432\] { color: #c6f432; }
.text-\[\#ff3b30\] { color: #ff3b30; }
.bg-\[\#f4f4ef\] { background-color: #f4f4ef; }
.bg-\[\#111\] { background-color: #111111; }
.bg-\[\#c6f432\] { background-color: #c6f432; }
.bg-\[\#ff3b30\] { background-color: #ff3b30; }
.border-\[\#111\] { border-color: #111111; }
.border-b-\[3px\] { border-bottom-width: 3px; border-bottom-style: solid; }
.border-t-\[3px\] { border-top-width: 3px; border-top-style: solid; }

/* --- Vertical rhythm helpers -------------------------------------------- */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* --- Screen-reader only + skip link ------------------------------------- */
.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;
}
.focus\:not-sr-only:focus {
  position: static; width: auto; height: auto; padding: inherit; margin: inherit;
  overflow: visible; clip: auto; white-space: normal;
}
.focus\:absolute:focus { position: absolute; }
.focus\:top-2:focus { top: 0.5rem; }
.focus\:left-2:focus { left: 0.5rem; }
.focus\:z-50:focus { z-index: 50; }

/* ==========================================================================
   Responsive variants
   ========================================================================== */

/* sm >= 640px */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:col-span-2 { grid-column: span 2 / span 2; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:justify-between { justify-content: space-between; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
  .sm\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .sm\:text-\[9rem\] { font-size: clamp(4rem, 15vw, 9rem); line-height: 1; }
  .sm\:mt-6 { margin-top: 1.5rem; }
  .sm\:mt-8 { margin-top: 2rem; }
}

/* md >= 768px */
@media (min-width: 768px) {
  .md\:hidden { display: none; }
  .md\:flex { display: flex; }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
  .md\:col-span-5 { grid-column: span 5 / span 5; }
  .md\:col-span-7 { grid-column: span 7 / span 7; }
  .md\:col-span-8 { grid-column: span 8 / span 8; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
  .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .md\:pt-16 { padding-top: 4rem; }
  .md\:pt-20 { padding-top: 5rem; }
  .md\:pb-20 { padding-bottom: 5rem; }
  .md\:pb-24 { padding-bottom: 6rem; }
  .md\:p-8 { padding: 2rem; }
  .md\:mt-8 { margin-top: 2rem; }
  .md\:mt-10 { margin-top: 2.5rem; }
  .md\:justify-end { justify-content: flex-end; }
  .md\:justify-between { justify-content: space-between; }
  .md\:items-end { align-items: flex-end; }
  .md\:flex-row { flex-direction: row; }
}

/* Navigation switch: the full desktop nav (6 links + CTA + logo) only fits
   comfortably above ~960px. Below that, keep the burger menu so items never
   collide with the logo at the 768px edge. */
@media (max-width: 959px) {
  .site-header nav.md\:flex { display: none; }
  .site-header #burger { display: inline-flex; align-items: center; }
}
.site-header #burger { align-items: center; }

/* lg >= 1024px */
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:max-w-none { max-width: none; }
}
