/* Lat39 Designs starter site
   Edit the values in :root to change the overall look quickly. */

:root {
  --bg: #f3f2ee;
  --surface: #ffffff;
  --ink: #151515;
  --muted: #676762;
  --line: #d8d6cf;
  --dark: #171817;
  --dark-muted: #c8c8c2;
  --max-width: 1180px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.wrap {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 242, 238, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  letter-spacing: 0.08em;
}

.brand-mark {
  font-size: 1.25rem;
  font-weight: 900;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 26px;
}

.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero {
  padding: 68px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.74rem;
  letter-spacing: 0.17em;
  font-weight: 900;
  color: var(--muted);
}

.hero h1,
.section h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero h1 {
  font-size: clamp(3.2rem, 8vw, 6.4rem);
}

.lede {
  max-width: 650px;
  margin: 28px 0 34px;
  font-size: 1.15rem;
  color: var(--muted);
}

.button {
  display: inline-block;
  padding: 14px 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  border-radius: 4px;
}

.button:hover,
.button:focus {
  opacity: 0.86;
}

.button-disabled {
  cursor: default;
  opacity: 0.5;
}

.hero-panel {
  min-height: 540px;
  border-radius: var(--radius);
  border: 1px solid #31322f;
  background:
    linear-gradient(145deg, rgba(255,255,255,.06), rgba(0,0,0,.35)),
    repeating-linear-gradient(
      135deg,
      #31322f 0,
      #31322f 16px,
      #292a28 16px,
      #292a28 32px
    );
  display: flex;
  align-items: end;
  padding: 24px;
}

.placeholder-label {
  display: inline-block;
  background: rgba(255,255,255,.9);
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
}

.section {
  padding: 92px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 50px;
  align-items: end;
  margin-bottom: 48px;
}

.section h2 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.section-heading p,
.about-copy,
.feature-copy {
  color: var(--muted);
  font-size: 1.03rem;
}

.product-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.product-photo {
  min-height: 360px;
  display: grid;
  place-items: center;
  color: #e1e1dd;
  font-size: 0.85rem;
  font-weight: 700;
  background:
    linear-gradient(150deg, rgba(255,255,255,.02), rgba(0,0,0,.35)),
    #242523;
}

.product-body {
  padding: 28px;
}

.product-body h3 {
  margin: 5px 0 12px;
  font-size: 1.6rem;
}

.product-body p {
  color: var(--muted);
}

.product-kicker {
  margin: 0 !important;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  font-weight: 900;
}

.future-card {
  min-height: 100%;
  display: flex;
  align-items: end;
}

.section-dark {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

.feature-grid,
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
}

.eyebrow-light,
.section-dark .feature-copy {
  color: var(--dark-muted);
}

.feature-copy p:first-child,
.about-copy p:first-child {
  margin-top: 0;
}

.contact-section {
  padding-bottom: 110px;
}

.contact-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 42px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.contact-box h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 46px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand strong {
  color: var(--ink);
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (max-width: 780px) {
  .wrap {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .header-inner {
    min-height: 68px;
  }

  .nav {
    gap: 14px;
  }

  .nav a {
    font-size: 0.8rem;
  }

  .brand-sub {
    display: none;
  }

  .hero {
    padding: 44px 0 58px;
  }

  .hero-grid,
  .section-heading,
  .product-grid,
  .feature-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .section-heading,
  .feature-grid,
  .about-grid {
    gap: 32px;
  }

  .hero-panel {
    min-height: 350px;
  }

  .section {
    padding: 64px 0;
  }

  .contact-box,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
