/* Tribe Circle landing page — warm & organic */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:ital,wght@0,300;0,400;0,700&display=swap');

/* === Tokens (scoped to landpage body to avoid leaking into other layouts) === */
body#landpage {
  --bg:           #FDFAF5;
  --bg-alt:       #F0E8DC;
  --text:         #2C1A0E;
  --text-muted:   #7A5C44;
  --accent:       #C2613A;
  --accent-dark:  #A84E2C;
  --border:       #DDD0C0;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Lato', system-ui, -apple-system, sans-serif;

  --prose:      660px;
  --pad-x:      clamp(1.25rem, 5vw, 2.5rem);
  --section-py: clamp(4rem, 8vw, 6.5rem);
}

/* === Reset (scoped to landpage to avoid overriding app-wide spacing) === */
body#landpage, body#landpage *, body#landpage *::before, body#landpage *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* === Base === */
body#landpage {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* === Navigation === */
body#landpage header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 250, 245, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

body#landpage header nav {
  max-width: calc(var(--prose) + var(--pad-x) * 2);
  margin: 0 auto;
  padding: 1rem var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body#landpage header nav a {
  text-decoration: none;
}

body#landpage header nav a:first-child {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

body#landpage header nav a:last-child {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 3px;
  padding: 0.4rem 1rem;
  transition: background 0.15s, color 0.15s;
}

body#landpage header nav a:last-child:hover {
  background: var(--accent);
  color: #fff;
}

/* === Section layout === */
body#landpage main > section {
  padding: var(--section-py) var(--pad-x);
}

/* Constrain all direct children to prose width */
body#landpage main > section > * {
  max-width: var(--prose);
  margin-left: auto;
  margin-right: auto;
}

/* Alternating section backgrounds */
body#landpage main > section:nth-child(even) {
  background: var(--bg-alt);
}

/* === Typography === */
body#landpage h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 4.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

body#landpage h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

body#landpage h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

body#landpage p {
  margin-bottom: 1.25rem;
}

body#landpage p:last-child {
  margin-bottom: 0;
}

body#landpage ul {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

body#landpage li {
  margin-bottom: 0.35rem;
}

body#landpage a {
  color: var(--accent);
  text-decoration-line: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s;
}

body#landpage a:hover {
  color: var(--accent-dark);
}

/* === Eyebrow label — first <p> in each section === */
body#landpage main > section > p:first-child {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* === Hero section === */
body#landpage main > section:first-child {
  padding-top: clamp(4.5rem, 10vw, 8rem);
  padding-bottom: clamp(4.5rem, 10vw, 8rem);
  text-align: center;
}

/* Subtitle line immediately after h1 */
body#landpage main > section:first-child h1 + p {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-muted);
}

/* Hero emoji list as inline tags */
body#landpage main > section:first-child ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1rem;
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
}

body#landpage main > section:first-child li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Hero image */
body#landpage main > section:first-child > img {
  width: 100%;
  display: block;
  height: auto;
  border-radius: 8px;
  margin-top: 3rem;
}

/* === Figures === */
body#landpage figure {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

body#landpage figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

body#landpage figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.65rem;
  text-align: center;
  font-style: italic;
}

/* === Figure grid === */
body#landpage .figure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

body#landpage .figure-grid figure {
  margin: 0;
}

body#landpage .figure-grid figure img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  height: auto;
}

body#landpage .figure-grid figcaption {
  font-size: 0.78rem;
  margin-top: 0.5rem;
}

/* === Nested sections (inside top-level sections) === */
body#landpage main > section > section {
  margin-top: 2rem;
}

body#landpage main > section > section h3 {
  color: var(--accent);
}

/* === Features section — nested sections as feature blocks === */
body#landpage #features > section {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  margin-top: 1.75rem;
}

body#landpage #features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

body#landpage #features li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 0.4rem;
  font-size: 0.975rem;
}

body#landpage #features li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--accent);
  font-size: 0.85em;
}

/* Closing line after feature cards */
body#landpage #features > p:last-child {
  margin-top: 2.5rem;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-muted);
}

/* === Contact section === */
body#landpage #contact h3 {
  margin-top: 2.5rem;
  font-size: 1.4rem;
  color: var(--text);
}

/* Contact info lines (email, phone) */
body#landpage #contact p:nth-last-child(-n+2) {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* === Footer === */
body#landpage footer {
  background: var(--text);
  color: rgba(253, 250, 245, 0.6);
  padding: var(--section-py) var(--pad-x);
}

body#landpage footer p {
  max-width: var(--prose);
  margin-left: auto;
  margin-right: auto;
}

body#landpage footer p:first-child {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--bg);
  margin-bottom: 0.4rem;
}

body#landpage footer p:nth-child(2) {
  font-size: 1rem;
  color: rgba(253, 250, 245, 0.65);
  margin-bottom: 0.3rem;
}

body#landpage footer p:nth-child(3) {
  font-size: 0.8rem;
  color: rgba(253, 250, 245, 0.35);
  margin-bottom: 2.5rem;
}

body#landpage footer img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  opacity: 0.45;
  border-radius: 6px;
  margin: 2.5rem auto 0;
  max-width: var(--prose);
}
