/* About: texstarchiroaustin.fit — quote-led founder, four-room ledger */

#main {
  background: var(--dna-bg);
  color: var(--dna-ink);
}

#main h1,
#main h2,
#main h3 {
  text-wrap: balance;
}

#main p {
  text-wrap: pretty;
}

#main h1,
#main h2,
#main h3,
#main p,
#main blockquote,
#main figure {
  margin: 0;
}

#main .tex36-kicker {
  color: var(--dna-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#main .tex36-lead,
#main .tex36-head p,
#main .tex36-cite span,
#main .tex36-sheetwhen p {
  color: var(--dna-ink-soft);
}

#main .tex36-call,
#main .tex36-textlink {
  text-decoration: none;
}

#main .tex36-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 0;
  background: var(--dna-accent);
  color: var(--dna-accent-ink);
  font-weight: 700;
}

#main .tex36-call:hover { background: var(--dna-accent-2); }

#main .tex36-textlink {
  display: inline-block;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding-block: 0.55rem;
  color: var(--dna-ink);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Quote-led founder: type leads, exterior bleeds to the edge */
#main .tex36-founder {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(16rem, 0.78fr);
  align-items: stretch;
  background: var(--dna-bg);
}

#main .tex36-founder-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.05rem;
  min-width: 0;
  padding: clamp(2.4rem, 5vw, 4.25rem) clamp(1.25rem, 3vw, 2.5rem);
  padding-left: max(var(--tex36-pad), calc((100vw - var(--tex36-max)) / 2));
}

#main .tex36-founder blockquote {
  margin: 0;
  padding: 0;
  border: 0;
}

#main .tex36-founder h1 {
  max-width: 11em;
  font-size: clamp(2.15rem, 3.6vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

#main .tex36-cite {
  display: grid;
  gap: 0.15rem;
}

#main .tex36-cite strong {
  font-family: Syne, "Avenir Next", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

#main .tex36-cite span { font-size: 0.95rem; }

#main .tex36-lead {
  max-width: min(38rem, 100%);
  min-width: 0;
  overflow-wrap: anywhere;
}

#main .tex36-founder-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.15rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

#main .tex36-founder-visual {
  position: relative;
  min-height: 28rem;
  min-width: 0;
  background: var(--dna-surface);
}

#main .tex36-founder-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

/* Four-room ledger: city, address, hours share one row grid */
#main .tex36-band {
  padding: 3.75rem 0 4.25rem;
  border-top: 1px solid var(--dna-line);
  background: var(--dna-surface);
}

#main .tex36-band-inner {
  width: min(var(--tex36-max), calc(100% - (2 * var(--tex36-pad))));
  margin-inline: auto;
  display: grid;
  gap: 1.65rem;
  min-width: 0;
}

#main .tex36-head {
  display: grid;
  gap: 0.7rem;
  max-width: 40rem;
  min-width: 0;
  justify-items: start;
}

#main .tex36-sheet {
  display: grid;
  min-width: 0;
}

#main .tex36-sheetrow {
  display: grid;
  grid-template-columns: minmax(11.5rem, 14.5rem) minmax(0, 1.35fr) minmax(12.5rem, 0.9fr);
  grid-template-rows: auto;
  column-gap: 1.5rem;
  align-items: start;
  min-width: 0;
  padding: 1.15rem 0 1.25rem;
  border-top: 1px solid var(--dna-line);
}

#main .tex36-sheet .tex36-sheetrow:last-child {
  border-bottom: 1px solid var(--dna-line);
}

#main .tex36-sheetrow h3 {
  min-width: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

#main .tex36-sheetbody,
#main .tex36-sheetwhen {
  display: grid;
  align-content: start;
  gap: 0.15rem;
  min-width: 0;
}

#main .tex36-sheetbody p { color: var(--dna-ink); }

#rooms {
  scroll-margin-top: calc(var(--nav-h) + 0.75rem);
}

@media (max-width: 860px) {
  #main .tex36-founder { grid-template-columns: minmax(0, 1fr); }

  #main .tex36-founder-copy {
    padding: 2.25rem var(--tex36-pad) 1.6rem;
  }

  #main .tex36-founder-visual {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  #main .tex36-sheetrow {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    grid-template-rows: auto auto;
    row-gap: 0.45rem;
  }

  #main .tex36-sheetrow h3 {
    grid-column: 1;
    grid-row: 1;
  }

  #main .tex36-sheetbody {
    grid-column: 1;
    grid-row: 2;
  }

  #main .tex36-sheetwhen {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 640px) {
  #main .tex36-band { padding: 2.75rem 0 3.15rem; }
  #main .tex36-founder h1 { max-width: 100%; }
  #main .tex36-founder-visual { aspect-ratio: 4 / 3; }

  #main .tex36-sheetrow {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    row-gap: 0.35rem;
  }

  #main .tex36-sheetwhen {
    grid-column: 1;
    grid-row: 3;
  }
}
