/* ================================================================
   BLUE 42 MARKET — MAIN STYLESHEET
   Edit the color variables below to quickly change the whole theme.
   ================================================================ */
:root {
  --ink: #171a12;
  --cream: #f3eddf;
  --paper: #fffaf0;
  --gold: #e6a238;
  --rust: #a43e28;
  --moss: #445336;
  --line: rgba(23, 26, 18, 0.22);
  --max: 1240px;
}

/* ---------- Base / reset styles ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 1000; padding: .75rem 1rem; background: var(--gold); font-weight: 800; }
.skip-link:focus { top: 1rem; }

/* ---------- Announcement bar ---------- */
.announcement {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem max(1.25rem, calc((100vw - var(--max)) / 2));
  color: var(--cream);
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.18);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.announcement p { margin: 0; }
.announcement a { color: var(--gold); text-decoration: none; }

/* ---------- Header, logo, and desktop navigation ---------- */
.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem max(1.25rem, calc((100vw - var(--max)) / 2));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand { display: grid; grid-template-columns: auto auto; grid-template-rows: 1fr 1fr; column-gap: .35rem; color: var(--ink); text-decoration: none; font-weight: 950; line-height: .8; letter-spacing: -.06em; }
.brand-blue, .brand-market { font-size: 1.1rem; }
.brand-number { grid-row: 1 / 3; grid-column: 2; color: var(--rust); font-size: 2.55rem; align-self: center; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); }
.site-nav a { text-decoration: none; font-size: .86rem; font-weight: 800; }
.site-nav a:not(.nav-cta):hover { color: var(--rust); }
.nav-cta { padding: .7rem 1rem; color: var(--paper); background: var(--rust); border: 1px solid var(--rust); }
.nav-cta:hover { color: var(--ink); background: var(--gold); border-color: var(--ink); }
.menu-button { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--ink); background: transparent; cursor: pointer; }
.menu-button > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

/* ---------- Hero section ---------- */
.hero {
  max-width: 1440px;
  min-height: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  background: var(--cream);
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(4rem, 7vw, 7rem) clamp(1.5rem, 5.5vw, 6rem); }
.eyebrow { margin: 0 0 1.25rem; color: var(--rust); font-size: .78rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; line-height: .98; }
h1 { max-width: 700px; margin-bottom: 1.5rem; font-size: clamp(3.6rem, 7vw, 7rem); font-weight: 500; letter-spacing: -.065em; }
h1 em { color: var(--rust); font-weight: inherit; }
.hero-lede { max-width: 620px; margin: 0 0 2rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.hero-actions, .visit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .78rem 1.1rem; border: 1px solid var(--ink); text-decoration: none; font-size: .85rem; font-weight: 900; letter-spacing: .03em; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--paper); background: var(--rust); }
.button-primary:hover { color: var(--ink); background: var(--gold); }
.button-dark { color: var(--paper); background: var(--ink); }
.button-dark:hover { color: var(--ink); background: var(--paper); }
.button-gold { background: var(--gold); }
.button-gold:hover { color: var(--paper); background: var(--rust); }
.text-link { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; font-weight: 900; border-bottom: 2px solid var(--gold); }
.text-link:hover { border-color: var(--rust); }
.hero-details { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 4rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero-details dt { margin-bottom: .35rem; color: var(--rust); font-size: .75rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hero-details dd { margin: 0; font-size: .95rem; font-weight: 700; line-height: 1.45; }
.hero-visual { min-height: 700px; position: relative; overflow: hidden; background: #c8b8a2; }
.hero-visual > img { height: 100%; object-fit: cover; object-position: 52% center; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(23,26,18,.72)); }
.hero-stamp { position: absolute; z-index: 2; top: 2rem; right: 2rem; width: 128px; aspect-ratio: 1; display: grid; place-content: center; text-align: center; background: var(--gold); border: 2px solid var(--ink); transform: rotate(6deg); box-shadow: 8px 8px 0 var(--ink); }
.hero-stamp span { font-size: .58rem; font-weight: 900; letter-spacing: .12em; }
.hero-stamp strong { font-family: Georgia, serif; font-size: 3rem; line-height: 1; }
.photo-note { position: absolute; z-index: 2; left: 2rem; bottom: 1rem; color: white; font-family: Georgia, serif; font-size: 1.15rem; font-style: italic; }

/* ---------- Moving brand-message strip ---------- */
.ticker { overflow: hidden; color: var(--ink); background: var(--gold); border-block: 2px solid var(--ink); transform: rotate(-1deg) scale(1.01); }
.ticker > div { width: max-content; display: flex; align-items: center; gap: 1.2rem; padding: .9rem 0; animation: ticker 28s linear infinite; }
.ticker span { font-size: .88rem; font-weight: 950; letter-spacing: .14em; }
.ticker i { color: var(--rust); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Shared section spacing and headings ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(5rem, 9vw, 9rem) 1.25rem; }
.section-heading { display: grid; grid-template-columns: .65fr 1.6fr .8fr; gap: 2rem; align-items: start; margin-bottom: 3.5rem; }
.section-heading .eyebrow { padding-top: .65rem; }
.section-heading h2, .story h2, .experience-copy h2, .founders h2, .visit h2 { margin-bottom: 0; font-size: clamp(2.7rem, 5vw, 5.3rem); font-weight: 500; letter-spacing: -.055em; }
.section-heading > p:last-child { margin: .55rem 0 0; }
/* ---------- Market offerings cards ---------- */
.offering-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); }
.offering-card { min-height: 320px; padding: 2rem; display: flex; flex-direction: column; border-right: 1px solid var(--ink); background: var(--paper); }
.offering-card:last-child { border-right: 0; }
.offering-card.feature-card { color: var(--paper); background: var(--rust); }
.card-number { margin-bottom: auto; font-size: .78rem; font-weight: 900; }
.offering-card h3 { margin: 3rem 0 1rem; font-size: 2rem; font-weight: 500; }
.offering-card p { margin: 0; }

/* ---------- Community story / Our Work ---------- */
.story { min-height: 720px; display: grid; grid-template-columns: 1fr 1fr; color: var(--paper); background: var(--moss); }
.story-image { min-height: 620px; position: relative; padding: clamp(2rem, 5vw, 5rem); background: #1f2a18; }
.story-image img { height: 100%; object-fit: cover; filter: sepia(.25) contrast(1.05); }
.story-image p { position: absolute; left: clamp(2rem, 5vw, 5rem); bottom: 1.3rem; padding: .55rem .8rem; color: var(--ink); background: var(--gold); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.story-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(4rem, 8vw, 8rem); }
.story-copy .eyebrow { color: var(--gold); }
.story-lede { margin: 2rem 0 1rem; font-family: Georgia, serif; font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.3; }
.story-copy > p:not(.eyebrow):not(.story-lede) { max-width: 620px; color: rgba(255,250,240,.82); }
.light-link { align-self: flex-start; margin-top: 1rem; }

/* ---------- Events and experiences ---------- */
.experiences { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: auto auto; gap: 1.25rem; }
.experience-copy { padding: clamp(2rem, 5vw, 5rem); background: var(--gold); border: 1px solid var(--ink); }
.experience-copy .eyebrow { color: var(--ink); }
.experience-copy > p:not(.eyebrow) { max-width: 650px; font-size: 1.1rem; }
.experience-list { display: flex; flex-wrap: wrap; gap: .65rem; margin: 2rem 0; padding: 0; list-style: none; }
.experience-list li { padding: .45rem .7rem; border: 1px solid var(--ink); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.experience-image { min-height: 520px; grid-row: 1 / 3; grid-column: 2; overflow: hidden; border: 1px solid var(--ink); }
.experience-image img { height: 100%; object-fit: cover; object-position: center 70%; }
.artifact-note { display: grid; grid-template-columns: .55fr 1.4fr 1.4fr auto; gap: 1.5rem; align-items: center; padding: 1.5rem; border: 1px solid var(--ink); }
.artifact-note > span { color: var(--rust); font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.artifact-note h3 { margin: 0; font-size: 1.7rem; line-height: 1.1; }
.artifact-note p { margin: 0; font-size: .9rem; }
.artifact-note a { white-space: nowrap; font-size: .8rem; font-weight: 900; }

/* ---------- Founders' Club membership tiers ---------- */
.founders { padding: clamp(5rem, 9vw, 9rem) max(1.25rem, calc((100vw - var(--max)) / 2)); color: var(--paper); background: var(--ink); }
.founders-intro { display: grid; grid-template-columns: .55fr 1.25fr 1fr; gap: 2rem; margin-bottom: 3.5rem; }
.founders-intro .eyebrow { color: var(--gold); padding-top: .6rem; }
.founders-intro p:last-child { margin-top: .65rem; color: rgba(255,250,240,.75); }
.membership-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255,255,255,.28); }
.membership-grid article { min-height: 260px; display: flex; flex-direction: column; padding: 1.5rem; border-right: 1px solid rgba(255,255,255,.28); }
.membership-grid article:last-child { border: 0; }
.membership-grid span { color: var(--gold); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.membership-grid strong { margin: 2.5rem 0 1rem; font-family: Georgia, serif; font-size: clamp(2rem, 3vw, 3.1rem); font-weight: 500; }
.membership-grid p { margin-top: auto; color: rgba(255,250,240,.72); font-size: .88rem; }
.membership-grid .student-tier { color: var(--ink); background: var(--gold); }
.membership-grid .student-tier span, .membership-grid .student-tier p { color: var(--ink); }
.founders-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 1.5rem; }
.founders-cta p { margin: 0; color: rgba(255,250,240,.76); }

/* ---------- Visit / location section ---------- */
.visit { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 680px; background: var(--cream); }
.visit-image { min-height: 620px; overflow: hidden; }
.visit-image img { height: 100%; object-fit: cover; }
.visit-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 7vw, 7rem); }
.visit-info { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; margin: 2.5rem 0; border-top: 1px solid var(--line); }
.visit-info > div { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.visit-info > div:first-child { grid-row: span 2; }
.visit-info span { color: var(--rust); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.visit-info p { margin: .4rem 0 0; font-weight: 750; }

/* ---------- Footer ---------- */
.site-footer { display: grid; grid-template-columns: 1fr 1.5fr auto; gap: 2rem; align-items: center; padding: 3rem max(1.25rem, calc((100vw - var(--max)) / 2)); color: var(--paper); background: var(--rust); }
.footer-mark { display: flex; align-items: baseline; gap: .35rem; font-size: .8rem; font-weight: 950; }
.footer-mark strong { font-family: Georgia, serif; font-size: 2.5rem; }
.site-footer p { font-family: Georgia, serif; font-size: 1.15rem; font-style: italic; }
.site-footer nav { display: flex; gap: 1rem; }
.site-footer nav a, .site-footer small { font-size: .74rem; font-weight: 800; }
.site-footer small { grid-column: 3; }

/* ---------- Scroll-reveal animation (activated by main.js) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Tablet layout ---------- */
@media (max-width: 980px) {
  .menu-button { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 1.25rem; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--ink); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .6rem 0; }
  .nav-cta { text-align: center; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { min-height: 620px; }
  .hero-visual { min-height: 600px; }
  .section-heading, .founders-intro { grid-template-columns: 1fr; gap: 1rem; }
  .section-heading .eyebrow, .founders-intro .eyebrow { padding: 0; }
  .story { grid-template-columns: 1fr; }
  .story-image { min-height: 560px; }
  .experiences { grid-template-columns: 1fr 1fr; }
  .experience-copy { grid-column: 1 / 3; }
  .experience-image { grid-row: 2; grid-column: 1; min-height: 460px; }
  .artifact-note { grid-column: 2; display: flex; flex-direction: column; align-items: flex-start; }
  .membership-grid { grid-template-columns: 1fr 1fr; }
  .membership-grid article:nth-child(2) { border-right: 0; }
  .membership-grid article:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.28); }
  .visit { grid-template-columns: 1fr; }
  .visit-image { min-height: 520px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer small { grid-column: 2; }
}

/* ---------- Phone layout ---------- */
@media (max-width: 680px) {
  .announcement { justify-content: center; text-align: center; }
  .announcement p { display: none; }
  .site-header { min-height: 74px; }
  h1 { font-size: clamp(3.4rem, 17vw, 5.4rem); }
  .hero-copy { min-height: auto; padding-block: 4.5rem; }
  .hero-details { margin-top: 3rem; }
  .hero-visual { min-height: 520px; }
  .hero-stamp { top: 1rem; right: 1rem; width: 106px; }
  .photo-note { left: 1rem; }
  .section { padding-block: 5rem; }
  .offering-grid { grid-template-columns: 1fr; }
  .offering-card { min-height: 280px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .offering-card:last-child { border-bottom: 0; }
  .story-image { min-height: 420px; padding: 1.25rem; }
  .story-image p { left: 1.25rem; }
  .story-copy { padding: 4.5rem 1.25rem; }
  .experiences { display: flex; flex-direction: column; }
  .experience-copy { padding: 3rem 1.5rem; }
  .experience-image { min-height: 500px; }
  .artifact-note { padding: 2rem 1.5rem; }
  .membership-grid { grid-template-columns: 1fr; }
  .membership-grid article { min-height: 230px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.28); }
  .membership-grid article:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.28); }
  .founders-cta { align-items: stretch; flex-direction: column; }
  .visit-image { min-height: 400px; }
  .visit-copy { padding: 4rem 1.25rem; }
  .visit-info { grid-template-columns: 1fr; }
  .visit-info > div:first-child { grid-row: auto; }
  .site-footer { grid-template-columns: 1fr; align-items: start; }
  .site-footer nav { flex-wrap: wrap; }
  .site-footer small { grid-column: 1; }
}

/* Respect visitors who disable animation in their device settings. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker > div { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
}
