/* Sunset Rock Ventures — shared styles
   Aesthetic: letterpress field guide. Warm paper, ink, deep green.
   The engraved emblem is the hero — everything else stays quiet. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Instrument+Sans:wght@400;500&family=Azeret+Mono:wght@400;500&display=swap');

:root {
  --paper: #f3eee1;
  --paper-deep: #eae3d0;
  --ink: #1b231e;
  --ink-soft: #46514a;
  --ink-faint: #5d665f;   /* darkened from #7c8680 to clear WCAG AA 4.5:1 on paper */
  --green-950: #0c2e21;
  --green-900: #0e3a29;
  --green-700: #0f5c3f;   /* the Babson green */
  --green-500: #2e7d5b;
  --line: #d4cab2;
  --paper-on-green: #ecf2ea;
  --soft-on-green: #a9c4b4;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Instrument Sans', 'Helvetica Neue', sans-serif;
  --mono: 'Azeret Mono', 'SF Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

/* ---- accessibility ---- */
/* Skip link: hidden until keyboard focus, then slides into view */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--green-700);
  text-decoration: none;
  border-radius: 2px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* Visible keyboard focus indicator on every interactive element */
a:focus-visible,
.skip-link:focus {
  outline: 2px solid var(--green-700);
  outline-offset: 3px;
  border-radius: 2px;
}
.band a:focus-visible { outline-color: var(--paper-on-green); }
.skip-link:focus { outline-color: var(--ink); }

/* Don't draw a box around <main> when the skip link moves focus to it */
[tabindex="-1"]:focus { outline: none; }

/* ---- paper grain ---- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- layout ---- */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 36px;
}

/* ---- header ---- */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.wordmark .mark {
  width: 36px;
  height: 36px;
  display: block;
  mix-blend-mode: multiply;  /* drops the near-white png ground into the paper */
}

.wordmark span span { color: var(--green-700); }

nav { display: flex; gap: 30px; }

nav a {
  position: relative;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 3px;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--green-700);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

nav a:hover { color: var(--green-700); }
nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---- hero ---- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 74vh;
  background-color: var(--paper);
  background-image: url('assets/hero-etching.jpg');
  background-size: cover;
  background-position: right bottom;
  background-blend-mode: multiply;  /* etching's cream ground merges into the paper */
}

.hero::before {
  /* paper fade behind the text column for legibility; art stays full-strength right */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(243, 238, 225, 0.92) 0%, rgba(243, 238, 225, 0.65) 46%, rgba(243, 238, 225, 0) 74%);
}

.hero .wrap { width: 100%; position: relative; }

.hero-text {
  max-width: 580px;
  padding: 96px 0;
}

.hero .kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero .kicker::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--green-700);
  transform-origin: left;
  animation: draw 1.1s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(42px, 6.4vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--green-700);
}

.hero .lede {
  margin-top: 30px;
  max-width: 44ch;
  font-size: 18px;
  color: var(--ink-soft);
}

@keyframes draw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

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

.rule-top { border-top: 1px solid var(--line); }

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.cols {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 72px;
  align-items: start;
}

.cols h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.cols .body p { color: var(--ink-soft); max-width: 58ch; }
.cols .body p + p { margin-top: 1.2em; }
.cols .body strong { color: var(--ink); font-weight: 500; }

/* ---- green band (commitments) ---- */
.band {
  background: linear-gradient(180deg, var(--green-900), var(--green-950));
  color: var(--paper-on-green);
}

.band .label { color: var(--soft-on-green); }
.band .label::after { background: rgba(236, 242, 234, 0.18); }
.band .cols h2 { color: var(--paper-on-green); }

.principles {
  list-style: none;
  counter-reset: p;
}

.principles li {
  counter-increment: p;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid rgba(236, 242, 234, 0.14);
}

.principles li:first-child { border-top: none; padding-top: 0; }

.principles li::before {
  content: counter(p, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--soft-on-green);
  padding-top: 6px;
}

.principles h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  margin-bottom: 6px;
  color: var(--paper-on-green);
}

.principles p { color: var(--soft-on-green); font-size: 16px; max-width: 52ch; }

/* ---- contact ---- */
.contact-rows { list-style: none; }

.contact-rows li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.contact-rows li:first-child { border-top: none; padding-top: 4px; }

.contact-rows .row-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.contact-rows a {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--green-700);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.contact-rows a:hover { color: var(--green-900); border-color: var(--green-700); }

/* ---- footer ---- */
footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
}

.foot p, .foot a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
}

.foot a { transition: color 0.3s ease; }
.foot a:hover { color: var(--green-700); }

.foot .links { display: flex; gap: 26px; }

/* ---- inner pages (support / privacy) ---- */
.page {
  padding: 10vh 0 96px;
  min-height: 55vh;
}

.page h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.page .rule {
  width: 64px;
  height: 1px;
  background: var(--green-700);
  margin: 30px 0 46px;
  transform-origin: left;
  animation: draw 1.1s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page p { color: var(--ink-soft); max-width: 58ch; }
.page p + p { margin-top: 1.2em; }

.page a {
  color: var(--green-700);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s ease;
}

.page a:hover { border-color: var(--green-700); }

.page h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  margin: 48px 0 12px;
}

.page .updated {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---- entrance + scroll reveal ---- */
.rise {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rise.d1 { animation-delay: 0.12s; }
.rise.d2 { animation-delay: 0.24s; }
.rise.d3 { animation-delay: 0.36s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* reveal is opt-in via .js on <html>, so content stays visible without JS */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .hero .kicker::before, .page .rule {
    animation: none; opacity: 1; transform: none;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

@media (max-width: 820px) {
  .hero { min-height: 68vh; background-position: 72% bottom; }
  .hero::before {
    /* soften the etching under the text on narrow screens */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(243, 238, 225, 0.72) 0%, rgba(243, 238, 225, 0.35) 60%, rgba(243, 238, 225, 0) 100%);
  }
  .hero-text { position: relative; padding: 72px 0; }
  .cols { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 64px 0; }
  nav { gap: 18px; }
  .wordmark span.wordmark-text { display: none; }
}
