/* Knox Trail Partners: shared styles. Edit the colors below to restyle the whole site. */
@font-face { font-family: "Montserrat"; src: url("assets/fonts/Montserrat-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
:root {
  --cream: #f6efe4;
  --sand: #ebe0cc;
  --espresso: #2e2118;
  --clay: #b5603a;
  --clay-dark: #9a4f2e;
  --bark: #6b5545;
  --line: #d9c9ae;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; color: var(--espresso); background: var(--cream); }
a { color: var(--clay-dark); text-underline-offset: 3px; }
a:hover { color: var(--espresso); }
h1, h2 { font-family: var(--serif); font-weight: normal; line-height: 1.2; color: var(--espresso); }
h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 0 0 1rem; }
h2 { font-size: 1.5rem; margin: 0 0 0.75rem; }
p { margin: 0 0 1.1rem; }
.wrap { width: 100%; max-width: 44rem; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header { padding: 1.5rem 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 62rem; margin: 0 auto; padding: 0 1.5rem; }
.brand img { display: block; height: 4rem; width: auto; }
.site-header ul { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.site-header nav a { text-decoration: none; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bark); padding: 0.3rem 0; border-bottom: 1px solid transparent; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--espresso); border-bottom-color: var(--clay); }

main { flex: 1; }

/* Landing */
.hero { min-height: 62vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem 1.5rem 4rem; }
.hero img { width: min(22rem, 78vw); height: auto; margin-bottom: 2.25rem; }
.hero .tagline { font-family: var(--serif); font-size: clamp(1.15rem, 2.6vw, 1.45rem); color: var(--bark); max-width: 30rem; margin: 0 auto 2rem; }
.button { display: inline-block; background: var(--clay); color: var(--cream); text-decoration: none; padding: 0.8rem 1.9rem; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; border-radius: 2px; }
.button:hover { background: var(--clay-dark); color: var(--cream); }

/* Inner pages */
.page { padding: 2.5rem 0 4.5rem; }
.page .lede { font-family: var(--serif); font-size: 1.25rem; color: var(--bark); }
.rule { width: 3rem; height: 2px; background: var(--clay); border: 0; margin: 2rem 0; }
.panel { background: var(--sand); border-radius: 3px; padding: 1.75rem 1.75rem 1.25rem; margin: 2rem 0; }
.email-link { font-family: var(--serif); font-size: clamp(1.3rem, 4vw, 1.9rem); }
.advisor-list { list-style: none; padding: 0; margin: 0; }
.advisor-list li { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.advisor-list li:last-child { border-bottom: 1px solid var(--line); }
.advisor-list strong { display: block; font-family: var(--serif); font-weight: normal; font-size: 1.15rem; }
.advisor-list span { color: var(--bark); }

/* Footer */
.site-footer { padding: 2rem 0 2.5rem; text-align: center; font-size: 0.85rem; color: var(--bark); border-top: 1px solid var(--line); }
.site-footer p { margin: 0 0 0.4rem; }
.site-footer a { color: var(--bark); }

@media (max-width: 36rem) {
  .header-inner { flex-direction: column; }
  body.home .header-inner { flex-direction: row; }
  .site-header ul { gap: 1.25rem; }
  body.home .brand { display: block; }
}

.values { margin: 0 0 1.5rem; padding-left: 1.25rem; }
.values li { margin: 0 0 1rem; }
.values strong { color: var(--espresso); font-weight: 600; }

/* Landing v2.1: logo top right, blended image, large tagline, contact below the fold */
body.home .header-inner { flex-direction: row; align-items: flex-start; max-width: 72rem; }
body.home .brand img { height: 6.5rem; }
body.home .site-header nav { padding-top: 0.6rem; }
.hero-v2 { min-height: calc(100vh - 8rem); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; padding: 0 1.5rem 3rem; }
.hero-art { width: min(40rem, 92vw); height: auto; display: block; mix-blend-mode: multiply; opacity: 0.92;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 24%, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 24%, #000 70%, transparent 100%);
  mask-composite: intersect; }
.hero-v2 .tagline { font-family: "Montserrat", "Avenir Next", "Century Gothic", "Helvetica Neue", Arial, sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; font-size: clamp(0.6rem, 2.4vw, 1.3rem); line-height: 1.3; color: var(--espresso); max-width: none; white-space: nowrap; margin: 0.25rem auto 0; padding-left: 0.16em; }
.contact-band { background: var(--sand); text-align: center; padding: 5rem 1.5rem 5.5rem; }
.contact-band h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.contact-band p { max-width: 32rem; margin: 0 auto 1.75rem; color: var(--bark); }
.contact-band p + p { margin-top: -0.25rem; }
.contact-band .mail { display: block; margin-top: 1.25rem; font-size: 0.95rem; }
@media (max-width: 36rem) {
  body.home .header-inner { flex-direction: row; align-items: flex-start; }
  body.home .brand img { height: 4.5rem; }
}

/* About page: faded cannon behind the story */
.about-bg { position: relative; isolation: isolate; }
.about-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("assets/cannon.jpg") center 55% / min(46rem, 100%) auto no-repeat; opacity: 0.16; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%); }

.about-bg .wrap { padding-top: 1rem; }

.contact-only { padding: 7rem 0 9rem; text-align: center; }
.contact-only .email-big { font-family: var(--serif); font-size: clamp(1.2rem, 5vw, 2.2rem); margin: 0; word-break: break-word; }

.contact-page-band { padding: 6rem 1.5rem 7rem; }
.contact-page-band .email-big { margin-top: 2rem; }

/* Tagline above picture */
.hero-v2 .tagline { margin: 1.5rem auto 0.25rem; }

/* Tagline over softened image */
.hero-stage { position: relative; width: min(40rem, 92vw); margin-top: 1rem; display: flex; align-items: center; justify-content: center; }
.hero-stage .hero-art { width: 100%; opacity: 0.45; filter: blur(1.5px); }
.hero-stage .tagline { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); margin: 0; text-align: center; }

/* Fainter image, tagline pops */
.hero-stage .hero-art { opacity: 0.24; filter: blur(2px); }
.hero-stage .tagline { color: #1f1510; text-shadow: 0 0 0.6rem var(--cream), 0 0 1.2rem var(--cream), 0 0 2rem var(--cream); }

/* Sharper image, tagline still clear */
.hero-stage .hero-art { opacity: 0.36; filter: blur(0.6px); }
.hero-stage .tagline { text-shadow: 0 0 0.5rem var(--cream), 0 0 1rem var(--cream), 0 0 1.6rem var(--cream), 0 0 2.4rem var(--cream); }

/* Tagline raised to the visual center of the picture */
.hero-stage .tagline { top: 44%; }

/* Contact page: email link matches the copy above it */
.contact-page-band .email-big { font-family: var(--sans); font-size: inherit; margin-top: 1.75rem; }
.contact-page-band .email-big .email-link { font-family: inherit; font-size: inherit; }
.contact-page-band p + p { margin-top: -1rem; }
.contact-page-band p { max-width: 40rem; }

.contact-page-band p + p { margin-top: -0.25rem; }

/* About text color matches Contact */
.about-bg p, .about-bg .values li { color: var(--bark); }
.about-bg strong { color: var(--bark); }
