/* Mountain Finance Group — correspondence layout: airmail edges, postcard promises,
   "Re:" service slips, stamp-numbered reply thread. Fonts: Gloock / Geologica. */
:root {
  --primary: #A5D4E8;        /* brand colour: bands, accents (always with ink text) */
  --glacier: var(--primary);
  --glacier-pale: #E6F3F9;   /* tinted band */
  --glacier-deep: #4F8FA8;   /* decorative strokes only, never text */
  --ink: #102530;            /* text, buttons, dark bands */
  --ink-soft: #3C5664;       /* secondary text (7:1 on white) */
  --paper: #FBFDFE;
  --white: #FFFFFF;
  --rule: #C6DCE6;
  --head: "Gloock", Georgia, "Times New Roman", serif;
  --body: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --airmail: repeating-linear-gradient(135deg, var(--ink) 0 12px, transparent 12px 20px, var(--glacier) 20px 32px, transparent 32px 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.65; font-weight: 400;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.32rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--white); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

/* Airmail edge */
.airmail { height: 8px; background: var(--airmail); }

/* Buttons: dark ink, square, with a glacier "stamp" inset edge */
.btn {
  display: inline-block; background: var(--ink); color: var(--white);
  font-family: var(--body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: 14px 24px; text-decoration: none; border: 2px solid var(--ink);
  box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4px var(--glacier);
}
.btn:hover { background: #1E3A48; border-color: #1E3A48; box-shadow: inset 0 0 0 3px #1E3A48, inset 0 0 0 4px var(--glacier); }
.link-quiet { font-weight: 600; }

/* Masthead */
.masthead { background: var(--white); border-bottom: 1px solid var(--rule); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-family: var(--head); font-size: 1.45rem; color: var(--ink); text-decoration: none; line-height: 1; }
.wordmark svg { width: 38px; height: 38px; flex: none; }
.nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-size: .96rem; }
.nav a:not(.btn):hover { text-decoration: underline; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--glacier-deep); text-decoration-thickness: 2px; }

/* Hero */
.hero { background: var(--glacier); padding: 72px 0 84px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero .lead { font-size: 1.15rem; max-width: 34em; }
.hero-actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.kicker { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 16px; }

/* Postcard of promises */
.postcard {
  position: relative; background: var(--white); color: var(--ink);
  padding: 34px 32px 26px; border: 1px solid var(--ink);
  transform: rotate(-1.2deg);
}
.postcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--airmail); }
.postcard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.postcard-head p { font-family: var(--head); font-size: 1.3rem; margin: 6px 0 0; }
.stamp {
  flex: none; width: 64px; height: 76px; background: var(--glacier-pale);
  border: 2px dashed var(--glacier-deep); outline: 4px solid var(--white); outline-offset: -8px;
  display: grid; place-items: center;
}
.stamp svg { width: 34px; height: 34px; }
.promises { list-style: none; margin: 0; padding: 0; }
.promises li { border-bottom: 1px solid var(--rule); padding: 12px 0; font-size: .98rem; }
.promises li:last-child { border-bottom: 0; }
.promises strong { display: block; font-weight: 600; }

/* Section shells */
.section { padding: 92px 0; }
.section-tint { background: var(--glacier-pale); }
.section-ink { background: var(--ink); color: var(--white); }
.section-ink a { color: var(--white); }
.section-head { max-width: 40em; margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); font-size: 1.06rem; }
.section-ink .section-head p { color: #D3E6EE; }

/* Overview as a letter */
.letter { max-width: 780px; margin: 0 auto; background: var(--white); border: 1px solid var(--rule); padding: 52px 56px 44px; position: relative; }
.letter::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--airmail); }
.letter .salute { font-family: var(--head); font-size: 1.25rem; margin-bottom: 18px; }
.letter .sign { font-family: var(--head); font-size: 1.15rem; margin: 26px 0 0; border-top: 1px solid var(--rule); padding-top: 14px; display: inline-block; }

/* Services as "Re:" slips */
.slips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; list-style: none; margin: 0; padding: 0; }
.slip { background: var(--white); border: 1px solid var(--ink); padding: 26px 26px 22px; position: relative; }
.slip::before { content: ""; position: absolute; inset: -1px -1px auto -1px; height: 22px; background: linear-gradient(to bottom right, transparent 49.5%, var(--rule) 50%, transparent 51%) left / 50% 100% no-repeat, linear-gradient(to bottom left, transparent 49.5%, var(--rule) 50%, transparent 51%) right / 50% 100% no-repeat; }
.slip .re { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); margin: 10px 0 6px; }
.slip p { margin: 0; color: var(--ink-soft); }
.slip-feature { background: var(--glacier); }
.slip-feature p, .slip-feature .re { color: var(--ink); }

/* Reasons with postmark rings */
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.reason { padding-top: 4px; }
.postmark { width: 58px; height: 58px; margin-bottom: 18px; color: var(--glacier); }
.reason p { color: #D3E6EE; margin: 0; }

/* Reply thread (steps) */
.thread-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.thread { list-style: none; margin: 0; padding: 0; position: relative; }
.thread li:not(:last-child)::before { content: ""; position: absolute; left: 33px; top: 76px; bottom: 0; border-left: 2px dashed var(--glacier-deep); }
.thread li { display: grid; grid-template-columns: 68px 1fr; gap: 24px; padding: 0 0 34px; position: relative; }
.thread li:last-child { padding-bottom: 0; }
.numstamp {
  width: 68px; height: 76px; background: var(--white); border: 2px dashed var(--ink);
  outline: 5px solid var(--glacier-pale); display: grid; place-items: center;
  font-family: var(--head); font-size: 2rem; line-height: 1; position: relative; z-index: 1;
}
.thread li:nth-child(even) .numstamp { background: var(--glacier); }
.from { display: inline-block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; border: 1px solid var(--ink); padding: 2px 8px; margin-bottom: 8px; }
.thread p { margin: 0; color: var(--ink-soft); }

/* CTA band */
.cta { background: var(--glacier); padding: 0; }
.cta .inner { padding-top: 72px; padding-bottom: 72px; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; max-width: 36em; font-size: 1.08rem; }
.cta .actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }

/* Footer */
.footer { background: var(--ink); color: #DCEBF1; padding: 64px 0 34px; font-size: .95rem; }
.footer a { color: var(--white); }
.footer .wordmark { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h3 { font-family: var(--body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--glacier); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; overflow-wrap: anywhere; }
.footer-note { border-top: 1px solid #2E4956; margin-top: 44px; padding-top: 24px; font-size: .88rem; color: #C2D7E0; }
.footer-note p { max-width: 62em; }

/* Inner pages */
.page-hero { background: var(--glacier); padding: 60px 0 56px; }
.page-hero p { max-width: 40em; font-size: 1.1rem; margin: 0; }
.prose { max-width: 760px; padding: 64px 32px 88px; margin: 0 auto; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.effective { font-size: .92rem; color: var(--ink-soft); }
.envelope {
  background: var(--white); border: 1px solid var(--ink); padding: 34px 32px 30px; position: relative; margin: 0 0 40px;
}
.envelope::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--airmail); }
.envelope .addr { font-family: var(--head); font-size: clamp(1.1rem, 4.4vw, 1.7rem); overflow-wrap: anywhere; }
.faq h2 { font-size: 1.35rem; }

/* Responsive */
@media (max-width: 1000px) {
  .slips { grid-template-columns: repeat(2, 1fr); }
  .reasons { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero .wrap, .thread-wrap { grid-template-columns: 1fr; gap: 40px; }
  .postcard { transform: none; }
  .nav { gap: 14px 18px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .prose { padding: 44px 16px 64px; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 60px; }
  .slips, .reasons, .footer-grid { grid-template-columns: 1fr; }
  .letter { padding: 34px 22px 32px; }
  .postcard { padding: 30px 20px 20px; }
  .thread li:not(:last-child)::before { left: 25px; top: 60px; }
  .thread li { grid-template-columns: 52px 1fr; gap: 16px; }
  .numstamp { width: 52px; height: 60px; font-size: 1.6rem; }
  .envelope { padding: 30px 18px 24px; }
}
