/* ============================================================
   MERIDIAN — corporate identity site
   Shared stylesheet
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap");

:root {
  /* color */
  --bg:        #F4F1EA;
  --bg-2:      #ECE7DB;
  --ink:       #0E1814;
  --ink-2:     #2A332E;
  --muted:     #6B716A;
  --rule:      rgba(14, 24, 20, 0.16);
  --rule-2:    rgba(14, 24, 20, 0.32);

  /* Brand colors — Abrabel = lime, Global = deep sky */
  --green:      #4ADE80;        /* bright lime — large/display use */
  --green-ink:  #16A34A;        /* readable green for text accents */
  --green-deep: #15803D;        /* deepest green for max contrast */
  --blue:       #00BFFF;        /* deep sky — large/display use */
  --blue-ink:   #0284C7;        /* readable sky for text accents */
  --blue-deep:  #0369A1;        /* deepest sky for max contrast */

  /* type */
  --serif: "Geist", "Inter Tight", system-ui, -apple-system, sans-serif; /* display */
  --sans:  "Geist", system-ui, -apple-system, sans-serif;
  --mono:  "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* layout */
  --gutter: clamp(20px, 4vw, 56px);
  --max:    1440px;
  --nav-h:  72px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

::selection { background: var(--green); color: var(--ink); }

/* ============================================================
   Layout primitives
   ============================================================ */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.rule-strong { border: 0; border-top: 1px solid var(--rule-2); margin: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
}

/* ============================================================
   Typography
   ============================================================ */

.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; }
.mono  { font-family: var(--mono); font-weight: 400; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(52px, 8.4vw, 132px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 0;
  text-wrap: balance;
}

.h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 5.6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.lede {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}

.body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
}

.body p + p { margin-top: 1em; }

.italic { font-style: italic; }

/* Display accents — color + weight instead of italic (sans grotesk) */
.accent-g { color: var(--green-deep); font-style: normal; }
.accent-b { color: var(--blue-deep);  font-style: normal; }

/* Brand colored word fragments */
.word-g { color: var(--green-ink); }
.word-b { color: var(--blue-ink); }
.word-g--bright { color: var(--green); }
.word-b--bright { color: var(--blue); }

/* ============================================================
   Top nav
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.022em;
}

.brand__mark {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: linear-gradient(to right, var(--green) 50%, var(--blue) 50%);
  transform: translateY(-1px);
  border-radius: 2px;
}

.brand__sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav__links {
  display: flex;
  gap: 32px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav__link {
  position: relative;
  padding: 6px 0;
  color: var(--ink-2);
  transition: color .15s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__link[aria-current="page"] { color: var(--ink); }

/* ============================================================
   Footer
   ============================================================ */

.foot {
  margin-top: 120px;
  border-top: 1px solid var(--rule);
  padding: 56px 0 32px;
}

.foot__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 64px;
}

.foot__col-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 16px;
}

.foot__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.foot__col a:hover { color: var(--green-ink); }

.foot__bottom {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.foot__wordmark-block {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.foot__wordmark {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.foot__wordmark--main {
  font-size: clamp(64px, 13vw, 184px);
  letter-spacing: -0.05em;
}

.foot__wordmark--alt {
  font-size: clamp(28px, 5.2vw, 72px);
  letter-spacing: -0.045em;
}

.foot__wordmark .word-g { color: var(--green); }
.foot__wordmark .word-b { color: var(--blue); }
.foot__wordmark .dot { color: var(--green); }

/* ============================================================
   Reusable bits
   ============================================================ */

.index-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  color: var(--ink-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.btn:hover { background: var(--ink); color: var(--bg); }

.btn--solid { background: var(--blue); border-color: var(--blue); color: var(--ink); }
.btn--solid:hover { background: var(--green); border-color: var(--green); color: var(--ink); }

.btn .arrow {
  display: inline-block;
  width: 14px;
  height: 1px;
  background: currentColor;
  position: relative;
}
.btn .arrow::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 6px; height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* placeholder image slot (per spec: minimal imagery) */
.slot {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      rgba(14,24,20,0.04) 0 1px,
      transparent 1px 8px),
    var(--bg-2);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 24px;
  aspect-ratio: 4 / 3;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 880px) {
  .grid { grid-template-columns: repeat(6, 1fr); }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .nav__links { gap: 18px; font-size: 11px; }
  .brand__sub { display: none; }
}

@media (max-width: 560px) {
  .nav__links { gap: 14px; }
  .foot__top { grid-template-columns: 1fr; }
  .foot__bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}
