/* ============================================================
   Gazette Labs, LLC — clean, framework-free rebuild
   ============================================================ */
:root {
  --dark: #2a2829;
  --light: #e0e0db;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: 51px;
  --maxw: 1500px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--dark);
  color: #fff;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: #6c5ce0; color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* Headings */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { font-size: clamp(40px, 5.1vw, 65px); line-height: 1.18; }
h2 { font-size: clamp(36px, 5.1vw, 65px); line-height: 1.18; }
h3 { font-size: clamp(24px, 2vw, 25px); line-height: 1.3; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 40px var(--pad) 0;
}
.brand { display: inline-flex; flex-direction: column; align-items: stretch; gap: 4px; text-decoration: none; width: 170px; }
.brand img { width: 170px; height: auto; display: block; }
.brand__labs {
  font-family: var(--sans);
  color: #fff;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.34em;
  line-height: 1;
  text-align: center;
  text-indent: 0.34em;   /* balance the trailing letter-spacing */
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 90px 0; }
.section--dark { background: var(--dark); color: #fff; }
.section--light { background: var(--light); color: #000; }

/* Hero: brick texture behind, heading anchored lower-left */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--dark);
  min-height: clamp(420px, 46vw, 620px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 60px;
  padding-top: 160px;
}
.hero__bg {
  position: absolute;
  inset: -30px;
  z-index: 0;
  background:
    linear-gradient(rgba(42,40,41,0.25), rgba(42,40,41,0.45)),
    url("../assets/images/hero-bg.svg");
  background-color: var(--dark);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform 0.4s ease-out;
  will-change: transform;
}
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero h1 { color: #fff; max-width: 1040px; opacity: 0; transition: opacity 0.7s ease; }
.fonts-ready .hero h1 { opacity: 1; }

/* About: text left, contact right */
.about__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  align-items: start;
}
.about__lead { font-family: var(--sans); font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; margin: 0; }
.about__contact h3 { margin-bottom: 18px; }
.about__contact a { color: inherit; text-decoration: none; }
.about__contact a:hover { text-decoration: underline; }

.notice {
  grid-column: 1 / -1;
  margin: 40px 0 0;
  padding: 24px 30px;
  background: #f5e4ec;
  border: 1px solid #e3bfd2;
  border-radius: 5px;
  color: #7a2f50;
  font-size: 16px;
  line-height: 1.55;
}
.notice a {
  color: #9c3264;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(156,50,100,0.35);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.notice a:hover { border-bottom-color: #9c3264; }

/* Hand-drawn emphasis underline: a tapered brush stroke (filled, so it scales
   without the stroke distortion a stretched line gets). */
.emph {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20200%2010'%20preserveAspectRatio='none'%3E%3Cpath%20fill='%236c5ce0'%20d='M2,7%20C40,3%20100,2%20150,3%20C176,3.3%20192,3%20198,5%20C193,8%20176,7.5%20150,7.5%20C100,8%2040,8%202,8%20Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.2em;
  padding-bottom: 0.24em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Areas of Practice: stacked rows */
.areas {
  color: #1c1b1b;
  background:
    radial-gradient(circle at 1px 1px, rgba(30,27,45,0.06) 1px, transparent 1.7px) 0 0 / 24px 24px,
    linear-gradient(158deg, #f3f2ed 0%, #e6e5df 62%, #dedcd5 100%);
}
.areas h2 { margin-bottom: 48px; color: #201e28; }
.area { margin-bottom: 42px; max-width: 820px; }
.area:last-child { margin-bottom: 0; }
.area h3 { color: inherit; margin-bottom: 14px; }
.area p { margin: 0 0 14px; }
.area p:last-child { margin-bottom: 0; }

/* Get in Touch */
.section--dark.touch {
  background:
    radial-gradient(120% 150% at 22% 20%, rgba(108,92,224,0.30), transparent 62%),
    linear-gradient(135deg, #322c42 0%, #272530 55%, #2a2829 100%);
}
.touch h2 { margin-bottom: 28px; }

/* Footer */
.footer { padding: 64px 0; }
.footer__row { display: flex; align-items: center; gap: 20px; }
.footer__flag { width: 46px; height: auto; flex: none; }
.footer__lines p { margin: 0; font-size: 16px; line-height: 1.28; }
.footer__lines p:first-child { text-transform: uppercase; font-weight: 600; letter-spacing: 0.03em; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Button */
.btn {
  display: inline-block;
  background: #fff;
  color: #000;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1;
  padding: 16px 32px;
  border: 0;
  border-radius: 3px;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.82; }
.section--dark .btn { background: #fff; color: #000; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  :root { --pad: 24px; }
  .site-header { padding: 24px var(--pad) 0; }
  .site-header img { width: 160px; }
  .about__grid { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 64px 0; }
}
