/* =====================================================================
   Fort Mercer LLC - fortmercerllc.com
   Single page company site
   ===================================================================== */

:root {
  --pine-950: #0b1512;
  --pine-900: #0f1f1a;
  --pine-800: #152b25;
  --pine-700: #1d3d34;
  --pine-600: #2a5548;

  --brass-700: #86601b;   /* brass for text on paper */
  --brass-500: #c8973f;
  --brass-300: #e6c583;

  --paper: #f7f4ed;
  --ink: #18221f;
  --ink-muted: #56635e;
  --line: #ddd5c4;

  --on-dark: #eef1ec;
  --on-dark-muted: #a3b3ac;
  --line-dark: rgba(230, 197, 131, .2);

  --wrap: 1160px;
  --header-h: 68px;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

/* ---------------------------------------------------------- reset */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; border: 0; }

a { color: var(--pine-700); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.01em;
  text-wrap: balance;
}
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brass-500);
  color: var(--pine-950);
  padding: 10px 18px;
  z-index: 999;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--brass-500); outline-offset: 3px; }

/* ---------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 21, 18, .93);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}

.header-bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--on-dark);
  text-decoration: none;
}
.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand-llc {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--brass-300);
  margin-left: 4px;
}

.site-nav { display: flex; align-items: center; gap: 34px; }

.nav-link {
  font-size: 15px;
  color: var(--on-dark-muted);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav-link:hover { color: var(--on-dark); }
.nav-link.is-active { color: var(--brass-300); border-bottom-color: var(--brass-500); }

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--brass-300);
  text-decoration: none;
  padding: 9px 18px;
  border: 1px solid var(--brass-500);
  border-radius: 2px;
  transition: background .2s ease, color .2s ease;
}
.nav-cta:hover,
.nav-cta.is-active { background: var(--brass-500); color: var(--pine-950); }

/* ---------------------------------------------------------- hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(86vh, 780px);
  padding: 96px 0 104px;
  background: var(--pine-950);
  color: var(--on-dark);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

/* keeps the headline readable over any picture placed behind it */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 21, 18, .95) 0%, rgba(11, 21, 18, .8) 34%, rgba(11, 21, 18, 0) 68%),
    linear-gradient(0deg, rgba(11, 21, 18, .6) 0%, rgba(11, 21, 18, 0) 32%);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass-300);
  margin-bottom: 26px;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 1px;
  background: var(--brass-500);
}

.hero h1 {
  max-width: 7.7em;   /* always two lines, so it stays clear of the picture */
  font-size: clamp(42px, 6.2vw, 86px);
  line-height: 1.03;
  letter-spacing: -.018em;
  margin-bottom: 28px;
}
.hero h1 em { font-style: italic; color: var(--brass-300); }

.lede {
  max-width: 520px;
  font-size: clamp(17px, 1.5vw, 19.5px);
  color: #c7d1cb;
  margin-bottom: 40px;
}

.hero-content > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-content > :nth-child(2) { animation-delay: .08s; }
.hero-content > :nth-child(3) { animation-delay: .16s; }
.hero-content > :nth-child(4) { animation-delay: .24s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------- buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.btn-primary { background: var(--brass-500); color: var(--pine-950); }
.btn-primary:hover { background: var(--brass-300); }

.btn-ghost { color: var(--on-dark); border-color: rgba(238, 241, 236, .38); }
.btn-ghost:hover { border-color: var(--on-dark); background: rgba(238, 241, 236, .06); }

/* ---------------------------------------------------------- sections */
.section { padding: 108px 0; }

.kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass-700);
  margin-bottom: 18px;
}

.section h2 { font-size: clamp(30px, 3.7vw, 47px); }

/* ---------------------------------------------------------- what we do */
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}

.split-head { position: sticky; top: calc(var(--header-h) + 40px); }
.split-head h2 { margin-bottom: 22px; }
.split-head p:last-child { color: var(--ink-muted); max-width: 420px; }

.cap-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }

.cap-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  padding: 30px 0 32px;
  border-top: 1px solid var(--line);
}

.cap-num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--brass-700);
  padding-top: 9px;
}

.cap-list h3 { font-size: 26px; margin-bottom: 8px; }
.cap-list p { color: var(--ink-muted); max-width: 520px; }

/* ---------------------------------------------------------- how we work */
.section-dark { background: var(--pine-900); color: var(--on-dark); }
.section-dark .kicker { color: var(--brass-300); }

.section-head { max-width: 720px; margin-bottom: 60px; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 44px;
}

.principle { padding-top: 26px; border-top: 1px solid var(--line-dark); position: relative; }
.principle::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 1px;
  background: var(--brass-500);
}
.principle h3 { font-size: 25px; margin-bottom: 12px; }
.principle p { color: var(--on-dark-muted); font-size: 16px; }

/* ---------------------------------------------------------- contact */
.contact-inner { text-align: center; }
.contact h2 { margin-bottom: 18px; }
.contact-sub { color: var(--ink-muted); max-width: 520px; margin: 0 auto 40px; }

.contact-email {
  display: inline-block;
  max-width: 100%;
  font-family: var(--serif);
  font-size: clamp(21px, 4.4vw, 50px);
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--ink);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--brass-500);
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
  transition: color .2s ease;
}
.contact-email:hover { color: var(--brass-700); }

/* ---------------------------------------------------------- footer */
.site-footer { background: var(--pine-950); color: var(--on-dark-muted); }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 40px;
  padding-top: 44px;
  padding-bottom: 44px;
}
.site-footer .brand-name { font-size: 19px; }

.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 30px; }
.footer-links a,
.footer-email { font-size: 15px; color: var(--on-dark-muted); text-decoration: none; transition: color .2s ease; }
.footer-links a:hover { color: var(--on-dark); }
.footer-email { color: var(--brass-300); }
.footer-email:hover { text-decoration: underline; }

.footer-bar { border-top: 1px solid var(--line-dark); }
.footer-bar p { padding: 18px 0; font-size: 13px; color: #8a9b94; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .split-head { position: static; }
  .principles { grid-template-columns: 1fr; gap: 36px; }
  .section-head { margin-bottom: 44px; }
}

@media (max-width: 768px) {
  /* three links do not need a menu button - the page is short, so on a
     phone the header keeps only the Contact button */
  .nav-link { display: none; }

  .hero { min-height: 0; padding: 72px 0 80px; }
  .hero-media { object-position: 86% center; opacity: .8; }
  .hero-scrim {
    background: linear-gradient(180deg, rgba(11, 21, 18, .82) 0%, rgba(11, 21, 18, .7) 100%);
  }

  .section { padding: 64px 0; }
  .cap-list li { grid-template-columns: 46px 1fr; padding: 24px 0 26px; }
  .cap-list h3 { font-size: 23px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .brand-name { font-size: 19px; }
  .eyebrow { font-size: 12px; letter-spacing: .14em; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
}

/* ---------------------------------------------------------- motion / print */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

@media print {
  .site-header, .hero-media, .hero-scrim, .btn-row { display: none !important; }
  .hero, .section-dark, .site-footer { background: none; color: #000; }
  .hero { min-height: 0; padding: 20px 0; }
  .hero h1 em, .lede, .eyebrow, .principle p, .section-dark .kicker { color: #000; }
}
