/* EMPTY - rebuilt from scratch */

/* =====================================================
   layout.css v1 — CLEAN FOUNDATION
   Single Source Layout Contract
===================================================== */
:root {
  --section-xs: var(--space-4);  /* 1rem */
  --section-sm: var(--space-5);  /* 1.25rem */
  --section-md: var(--space-6);  /* 1.5rem */
  --section-lg: var(--space-7);  /* 2rem */
  --section-xl: var(--space-8);  /* 2.5rem */
}


/* =====================================================
   2. SECTION SYSTEM (VERTICAL RHYTHM AUTHORITY)
===================================================== */

.section {
  width: 100%;
  padding-block: var(--space-6);
}

.section--tight { padding-block: var(--space-4); }
.section--normal { padding-block: var(--space-6); }
.section--loose { padding-block: var(--space-8); }
.section--xl { padding-block: var(--space-9); }

/* EVENTUALLY ELIMINATE - controlled rhythm levels */
.section--xs { --section-space: var(--space-3); }
.section--sm { --section-space: var(--space-4); }
.section--md { --section-space: var(--space-6); }
.section--lg { --section-space: var(--space-7); }

/* remove vertical spacing completely when needed */
.section--flush {
  --section-space: 0;
}

.mt-md { margin-top: var(--space-6); }
.mb-md { margin-bottom: var(--space-6); }

/* =====================================================
   5. STACK (VERTICAL FLOW COMPONENT)
===================================================== */

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.stack--sm { gap: var(--space-2); }
.stack--md { gap: var(--space-4); }
.stack--lg { gap: var(--space-6); }


/* =====================================================
   FLOW (parent containers) -  MT LARGE (utility class)
===================================================== */
.flow {
  display: flex;
  flex-direction: column;
}

/* universal vertical rhythm */
.flow > * + * {
  margin-top: var(--flow-space, var(--space-5));
}

.flow--sm { --flow-space: var(--space-3); }
.flow--md { --flow-space: var(--space-5); }
.flow--lg { --flow-space: var(--space-7); }
.flow--xl { --flow-space: var(--space-9); }

.mt-lg {
  margin-top: var(--space-8);
}

/* =====================================================
    content break - featured statement - pull-quote
===================================================== */
.content-break {
  text-indent: 2rem;
  height: var(--space-8);
}

.featured-statement {
  max-width: 38ch;
  margin: var(--space-8) auto;
  text-align: center;
}

.featured-statement p {
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.5;
}

.pull-quote {
  margin: var(--space-4) auto;
  max-width: 55ch;  /* controls the width */

  padding-inline: var(--space-5);
  border-left: 3px solid var(--accent);

  font-style: italic;
  text-align: center;
}

.theme-intro {
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
}

/* =====================================================
   6. CLUSTER (INLINE GROUPING)
===================================================== */

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-hero__subtitle2);
  align-items: center;
}
.cluster--center {
  justify-content: center;
}

.cluster--start {
  justify-content: flex-start;
}

.cluster--end {
  justify-content: flex-end;
}

.cluster--between {
  justify-content: space-between;
}


/* =====================================================
   RESPONSIVE - C-Grid
===================================================== */
.c-grid {
  display: grid;
  gap: var(--space-4);
  align-items: start;

}

.c-grid > * {
  min-width: 0;
}

.c-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.c-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.c-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.c-grid--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.c-grid--6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.c-grid--auto-fit {
  grid-template-columns:
    repeat(auto-fit, minmax(240px, 1fr));
}

@media (max-width: 768px) {

  .c-grid--6,
  .c-grid--5,
  .c-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .c-grid--3,
  .c-grid--2 {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   7. IMAGE CONTAINER.container--standard (MINIMAL SAFE BASE)
===================================================== */

.media {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.media img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* optional aspect control */
.media--square,
.media--landscape,
.media--wide {
  aspect-ratio: 1 / 1; /* overridden per class */
  overflow: hidden;
}

.media--square { aspect-ratio: 1 / 1; }
.media--landscape { aspect-ratio: 4 / 3; }
.media--wide { aspect-ratio: 16 / 9; }

.media--square img,
.media--landscape img,
.media--wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* =====================================================
   GLOBAL RESET
===================================================== */

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

html,
body {
  margin: 0;
  padding: 0;
}

figure {
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}
/* =========================================
   TYPOGRAPHY BASE (RESTORES HEADINGS)
========================================= */

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: 1.2;
  color: var(--text-strong, inherit);
  font-weight: 600;
}


/* H1 */
h1 {
  font-size: clamp(1.75rem, 2vw, 2.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 1.75vw, 2rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 1.25vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
}

h5,
h6 {
  font-size: 1rem;
}

/* Paragraph baseline */
p {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text);
  /*max-width: 70ch;*/
}


/* =========================================
   CONTAINER SYSTEM
========================================= */

.container {
  width: min(1400px, 92%);
  margin-inline: auto;
}

/* Reading content */
.container--narrow,
.narrow {
  max-width: 720px;
}

/* Default content */
.container--standard,
.standard {
  max-width: 960px;
}

/* Large content */
.container--wide,
.wide {
  max-width: 1200px;
}

/* Gallery / hero */
.container--xwide,
.x-wide {
  max-width: 1400px;
}

.container--full {
  width: 100vw;
  max-width: 100vw;
}


.content-indent {
  margin-top: var(--space-3);
  padding-left: var(--space-6);
}

.content-indent-line {
  margin-top: var(--space-3);
  padding-left: var(--space-6);
  border-left: 2px solid var(--border);
}
/* =====================================================
   MEDIA
===================================================== */
/* gallery grid variant */
.gallery {
  display: grid;
  gap: var(--space-3);
}

.gallery--2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery--3 {
  grid-template-columns: repeat(3, 1fr);
}
