:root {
  color-scheme: light;
  --bg: #f3eadb;
  --paper: rgba(255, 250, 240, 0.9);
  --ink: #172235;
  --muted: #586371;
  --line: rgba(18, 51, 95, 0.18);
  --accent: #0a6f83;
  --accent-dark: #12335f;
  --shadow: 0 12px 30px rgba(23, 34, 53, 0.08);
  --serif: "Lora", Georgia, serif;
  --ui: "IBM Plex Sans", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-family: var(--serif);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(rgba(74, 67, 47, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 67, 47, .075) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(255,255,255,.52), transparent 34rem),
    var(--bg);
  background-size: 26px 26px, 26px 26px, auto, auto;
  color: var(--ink);
  font-size: clamp(17px, 2.1vw, 19px);
  line-height: 1.62;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }

.site-nav { max-width: 1080px; margin: 0 auto; padding: 14px 28px 0 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; font-family: var(--ui); }
.site-nav__brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.site-nav__brand img { height: auto; object-fit: contain; filter: drop-shadow(0 5px 10px rgba(23, 34, 53, .08)); }
.site-nav__logo-image { width: clamp(142px, 18.5vw, 194px); }
.site-nav__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.site-nav__links a { color: var(--muted); text-decoration: none; border: 1px solid transparent; border-radius: 999px; padding: 6px 10px; font-size: 14px; font-weight: 800; line-height: 1.2; }
.site-nav__links a:hover,
.site-nav__links a[aria-current="page"] { color: var(--accent-dark); background: rgba(255,255,255,.58); border-color: var(--line); }
.site-footer { max-width: 1080px; margin: 0 auto; padding: 22px 18px 28px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--ui); font-size: 13px; line-height: 1.4; text-align: center; }
.site-footer p { margin: 0; }
.site-main { max-width: 1080px; margin: 0 auto; padding: clamp(20px, 4vw, 36px) 18px 72px; }
.article-main { max-width: 920px; }
.nav-link { display: inline-flex; margin-bottom: 24px; font-weight: 700; text-decoration: none; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: var(--muted); font-weight: 800; }
h1 { font-size: clamp(42px, 10vw, 84px); line-height: .96; letter-spacing: -.035em; margin: 14px 0 18px; }
h2 { font-size: clamp(25px, 4vw, 38px); line-height: 1.12; letter-spacing: -.02em; margin-top: 42px; }
h3 { line-height: 1.15; letter-spacing: -.02em; }
.lead { font-size: clamp(20px, 4.2vw, 30px); line-height: 1.26; max-width: 820px; }
.muted { color: var(--muted); }

.hero { padding: clamp(42px, 9vw, 76px) 0 44px; }
.landing-main { max-width: 1120px; }
.landing-hero { display: grid; gap: 26px; align-items: start; }
.landing-hero__copy { max-width: 720px; }
.launch-main { min-height: 100vh; display: grid; align-items: center; max-width: 1040px; padding-top: 0; }
.landing-logo { display: flex; justify-content: center; margin: clamp(36px, 10vw, 40px) 0 clamp(30px, 8vw, 40px); }
.landing-logo img { width: min(218px, 42vw); height: auto; }
.launch-card { display: grid; gap: clamp(22px, 5vw, 42px); align-items: start; padding: 0 0 clamp(20px, 4vw, 36px); }
.launch-copy { max-width: 660px; }
.launch-copy h1 { max-width: 720px; }
.landing-card-stack { display: flex; flex-direction: column; gap: 16px; }
.production-plant-main { min-height: 100vh; display: grid; place-items: center; }
.production-plant-icon {
  width: min(58vw, 340px);
  color: var(--accent);
  filter: drop-shadow(0 24px 42px rgba(24, 37, 27, 0.12));
}
.production-plant-icon svg { width: 100%; height: auto; overflow: visible; }
.plant-stem,
.plant-ground { fill: none; stroke: currentColor; stroke-width: 10; stroke-linecap: round; }
.plant-leaf { fill: #dcefd3; stroke: currentColor; stroke-width: 7; stroke-linejoin: round; }
.plant-leaf-right { fill: #c7e4bd; }
.plant-ground { color: rgba(49, 95, 55, .48); stroke-width: 8; }
.launch-markdown h2,
.launch-markdown h3 { margin: clamp(34px, 5vw, 48px) 0 18px; }
.launch-markdown h2 { font-size: clamp(25px, 4vw, 38px); }
.launch-markdown h3 { font-size: clamp(22px, 3vw, 30px); }
.launch-markdown ul { padding-left: 1.2em; margin: 20px 0 0; }
.launch-markdown li { margin: 0 0 8px; }
.launch-waitlist { align-self: start; margin-top: clamp(12px, 3vw, 28px); }
.waitlist-card { display: grid; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 4vw, 30px); box-shadow: var(--shadow); }
.waitlist-card h2 { margin: 0; font-size: clamp(21px, 3vw, 27px); line-height: 1.18; }
.waitlist-card p { margin: 0; }
.waitlist-card form { margin: 0; }
.waitlist-card .success { margin: 16px 0; }
.form-links { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; align-items: center; padding-top: 2px; font-family: var(--ui); font-size: 14px; font-weight: 700; }
.form-note { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.trust-note {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(28, 47, 38, 0.08);
  color: var(--ink);
  padding: clamp(18px, 3vw, 26px);
}
.trust-note .eyebrow { margin: 0 0 8px; }
.trust-note h2 { margin: 0 0 10px; font-size: clamp(22px, 3vw, 29px); line-height: 1.18; }
.trust-note p { margin: 0; max-width: 780px; }
.trust-note p + p { margin-top: 10px; }
.trust-note__list { margin: 14px 0 0; padding-left: 1.15em; color: var(--muted); font-size: 15px; line-height: 1.45; }
.trust-note__list li { margin: 0 0 6px; }
.trust-note__decision { margin-top: 14px; border-left: 3px solid rgba(10, 111, 131, .42); padding: 10px 0 10px 14px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.trust-note__contact { color: var(--muted); font-size: 15px; }
.trust-page { padding-top: clamp(24px, 6vw, 54px); }
.trust-page .post-title { font-size: clamp(27px, 5.6vw, 46px); }
.trust-summary { margin-top: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 26px); box-shadow: var(--shadow); }
.trust-summary h2 { margin: 0 0 12px; font-size: clamp(19px, 2.1vw, 22px); }
.trust-summary p, .trust-summary ul { margin: 0; }
.trust-summary li { margin-bottom: 8px; }
.trust-summary--decision { border-left: 4px solid rgba(10, 111, 131, .42); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 28px 0; }
/* Add alongside a card class to center a standalone card without letting it span a whole row. */
.floating-card { --floating-card-max-width: 512px; grid-column: 1 / -1; justify-self: center; width: 100%; max-width: var(--floating-card-max-width); margin-inline: auto; text-align: center; }
.card, .shared-block, .post-cta, .compact-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.post-card { overflow: hidden; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.post-card__media { display: block; height: auto; background: rgba(255,255,255,.44); }
.post-card__image { display: block; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
.post-card__image--placeholder { background: #ecf0df; filter: saturate(.94) contrast(.98); }
.post-card__body { padding: clamp(20px, 3vw, 30px); }
.post-card__meta { color: var(--muted); font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.post-card h2, .post-card h3 { margin: 0 0 10px; font-size: clamp(24px, 3.5vw, 34px); line-height: 1.1; }
.post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--accent); }
.post-card__read-more { margin: 18px 0 0; font-family: var(--ui); font-size: 15px; font-weight: 800; }
.post-card__read-more a { display: inline-flex; align-items: center; color: var(--accent); text-decoration: none; }
.post-card__read-more a::after { content: "→"; margin-left: 7px; transform: translateY(-1px); }
.post-card__read-more a:hover { color: var(--accent-dark); }
.index-hero { padding: clamp(22px, 6vw, 54px) 0 20px; }
.post-index-section { margin-top: clamp(12px, 3vw, 24px); }
.post-list { gap: 16px; margin: 0 0 38px; }
.section-heading h2 { margin-top: 8px; }
.empty-notes-card { grid-column: 1 / -1; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 5vw, 40px); box-shadow: var(--shadow); max-width: 780px; }
.empty-notes-card h2 { margin-top: 8px; }
.cta, button {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: .01em;
  border: 0;
  cursor: pointer;
}
.cta-secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
form { display: grid; gap: 12px; max-width: 520px; }
input, select, textarea { font-family: var(--ui); font-size: 16px; line-height: 1.25; padding: 13px 14px; border: 1px solid rgba(36,92,58,.32); border-radius: 8px; background: white; }
textarea { min-height: 120px; resize: vertical; }
label { display: grid; gap: 6px; font-weight: 800; color: var(--ink); }
.success { background: #dcefd3; border: 1px solid #9cc18b; padding: 20px 16px; border-radius: 16px; line-height: 1.35; }

.dashboard-main { max-width: 1040px; }
.dashboard-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; margin: 22px 0 28px; padding: 16px 18px; background: rgba(255,255,255,.52); border: 1px solid var(--line); border-radius: 18px; }
.dashboard-toolbar p { margin: 0; }
.role-switcher { display: flex; flex-wrap: wrap; gap: 10px; }
.role-switcher form, .assignment-row form { display: inline-flex; max-width: none; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 18px; align-items: start; }
.dashboard-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 26px); box-shadow: var(--shadow); }
.dashboard-card h2 { margin: 6px 0 16px; }
.printable-card { grid-row: span 2; }
.billing-card, .admin-card { margin-top: 18px; }
.participant-list, .assignment-list, .billing-list, .mentor-thread-list { display: grid; gap: 12px; }
.howto-list { margin: 0 0 14px 1.2em; padding: 0; }
.howto-list li { margin: 0 0 8px; }
.participant-chip { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; background: rgba(255,255,255,.58); border: 1px solid rgba(84,78,52,.16); border-radius: 14px; }
.billing-row { display: grid; gap: 4px; padding: 12px 14px; background: rgba(255,255,255,.58); border: 1px solid rgba(84,78,52,.16); border-radius: 14px; }
.billing-helper { margin: 4px 0 0; color: var(--muted); font-size: 15px; line-height: 1.4; }
.mentor-card, .mentor-inbox-card { grid-column: 1 / -1; }
.mentor-message-form, .mentor-reply-form { max-width: 720px; }
.mentor-reply-form textarea { min-height: 76px; }
.small-note { font-size: 15px; line-height: 1.45; }
.mentor-thread { display: grid; gap: 9px; padding: 14px; background: rgba(255,255,255,.62); border: 1px solid rgba(84,78,52,.16); border-radius: 16px; }
.mentor-thread__header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.mentor-thread__header span { padding: 4px 9px; border-radius: 999px; background: #f4dfad; color: #6b4a12; font-size: 14px; font-weight: 800; }
.mentor-thread p { margin: 0; }
.mentor-message { padding: 10px 12px; background: rgba(244,239,225,.72); border-radius: 12px; }
.delivery-note { padding: 10px 12px; background: rgba(255,255,255,.72); border: 1px dashed rgba(84,78,52,.28); border-radius: 12px; }
.mentor-message--reply { background: #dcefd3; }
.mentor-message strong { display: block; margin-bottom: 4px; }
.assignment-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 15px; background: rgba(255,255,255,.62); border: 1px solid rgba(84,78,52,.16); border-radius: 16px; }
.assignment-participant { margin: 0 0 2px; color: var(--muted); font-size: 15px; font-weight: 800; }
.assignment-row h3 { margin: 0 0 4px; font-size: 21px; }
.status-pill { justify-self: end; padding: 6px 10px; border-radius: 999px; font-size: 14px; font-weight: 800; }
.status-pill--pending { color: #6b4a12; background: #f4dfad; }
.status-pill--done { color: #27512e; background: #dcefd3; }

.post-header { margin-bottom: 24px; }
.post-title { font-size: clamp(27px, 5.6vw, 46px); line-height: 1.04; letter-spacing: -.035em; max-width: 820px; }
.post-subtitle { font-size: clamp(17px, 2.7vw, 22.5px); line-height: 1.36; color: var(--muted); max-width: 760px; }
.post-meta { color: color-mix(in srgb, var(--muted) 82%, white); font-size: clamp(18px, 2.1vw, 20px); font-style: italic; }
.post-body { max-width: 720px; margin: 34px auto 0; font-size: clamp(18px, 2.1vw, 20px); }
.post-body p { margin: 0 0 1.05em; }
.post-body blockquote { margin: 1.4em 0; padding-left: 1em; border-left: 4px solid var(--accent); color: #344233; }
.content-page-media { margin: 22px 0 34px; }
.content-page-media img { width: 100%; height: clamp(300px, 58vw, 520px); object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.content-page-recent { max-width: 920px; margin: 46px 0 0; }
.content-page-recent h2 { font-size: clamp(24px, 4vw, 34px); margin-bottom: 12px; }
.content-page-recent .post-list { margin-bottom: 0; }
.block-body { max-width: 700px; }
.block-body p { margin: 0 0 .9em; }
.signature-block { margin: 10px 0 clamp(28px, 5vw, 44px); max-width: 280px; }
.signature-block img { width: 100%; height: auto; mix-blend-mode: multiply; }

.landing-photos { margin-top: 8px; }
.landing-photos__intro { max-width: 680px; }
.landing-photos__intro h2 { margin-top: 8px; }
.photo-strip { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; align-items: stretch; margin: 24px 0 34px; }
.photo-card { margin: 0; min-height: 210px; background: #fdf8ed; border: 1px solid rgba(84,78,52,.28); padding: 8px 8px 12px; box-shadow: 0 10px 24px rgba(24,37,27,.08); transform: rotate(.35deg); }
.photo-card:nth-child(2) { transform: rotate(-.45deg); }
.photo-card:nth-child(3) { transform: rotate(.2deg); }
.photo-card img { width: 100%; height: 100%; min-height: 210px; object-fit: cover; filter: saturate(.92) contrast(.97); }
.photo-card figcaption { margin: 11px 3px 0; color: #303b2e; font-size: 15px; line-height: 1.4; }
.photo-card--large { grid-row: span 2; }

.media-carousel { position: relative; margin: 22px 0 34px; }
.carousel-stage {
  position: relative;
  overflow: hidden;
  height: clamp(300px, 58vw, 520px);
  background: #111813;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .42s ease;
}
.carousel-slide.is-active { opacity: 1; pointer-events: auto; }
.carousel-slide img,
.carousel-image-button img { width: 100%; height: 100%; object-fit: cover; }
.carousel-image-button { display: block; width: 100%; height: 100%; padding: 0; border-radius: 0; background: transparent; }
.carousel-caption-panel { max-width: 720px; margin: 12px auto 0; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.72); border: 1px solid var(--line); }
.carousel-caption-panel.is-empty { display: none; }
.carousel-caption { display: none; margin: 0; text-align: center; color: #344233; font-size: 15px; line-height: 1.45; }
.carousel-caption.is-active { display: block; }
.carousel-controls { position: absolute; top: 0; left: 0; right: 0; height: clamp(300px, 58vw, 520px); display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; pointer-events: none; padding: 0 12px; }
.carousel-control { width: 42px; height: 42px; padding: 0; border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.76); border: 1px solid rgba(255,255,255,.85); font-size: 30px; line-height: 1; pointer-events: auto; box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.carousel-control[data-carousel-next] { justify-self: end; grid-column: 3; }
.carousel-dots { grid-column: 2; align-self: end; justify-self: center; display: flex; gap: 9px; align-items: center; margin-bottom: 14px; padding: 7px 9px; border-radius: 999px; background: rgba(17,24,19,.42); pointer-events: auto; }
.carousel-dot { width: 10px; height: 10px; padding: 0; background: rgba(255,255,255,.64); border-radius: 999px; }
.carousel-dot.is-active { background: white; transform: scale(1.18); }
.post-hero-media { margin: 22px 0 34px; }
.post-hero-media__image { width: 100%; height: clamp(300px, 58vw, 520px); object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.post-hero-media__image--placeholder { background: #ecf0df; filter: saturate(.94) contrast(.98); }

.post-footer-cards { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; margin-top: 42px; }
.post-footer-cards > * { flex: 1 1 320px; min-width: 0; }
.post-footer-cards .post-cta,
.post-footer-cards .shared-block { margin-top: 0; }
.post-footer-cards .post-cta { grid-template-columns: 1fr; }
.post-footer-cards .post-cta form { max-width: none; }
.post-cta, .shared-block, .more-posts { margin-top: 42px; }
.post-cta { display: grid; gap: 18px; align-items: start; }
.newsletter-card { gap: 12px; padding: clamp(18px, 2.5vw, 24px); }
.newsletter-card form { width: min(100%, 360px); margin-inline: auto; }
.newsletter-card form input { width: 100%; }
.newsletter-card form button { justify-self: center; }
.newsletter-card__title { margin: 0 0 8px; font-size: clamp(21px, 2.4vw, 27px); line-height: 1.16; }
.newsletter-card .block-body p { margin: 0; }
.shared-block { background: rgba(255,255,255,.58); }
.more-posts h2 { font-size: clamp(24px, 4vw, 34px); }

.image-modal[hidden] { display: none; }
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.9);
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  grid-template-rows: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 18px;
}
.image-modal img { grid-column: 2; max-height: calc(100vh - 120px); max-width: 100%; justify-self: center; border-radius: 14px; object-fit: contain; }
.image-modal p { grid-column: 1 / -1; color: white; text-align: center; margin: 0; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; padding: 0; font-size: 28px; background: rgba(255,255,255,.55); color: #111; }
.modal-nav { width: 46px; height: 46px; padding: 0; font-size: 34px; background: rgba(255,255,255,.55); color: #111; }

@media (min-width: 780px) {
  .landing-hero, .launch-card { grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr); }
  .post-list { grid-template-columns: 1fr; }
  .post-card--featured { grid-column: auto; }
  .post-card { display: grid; grid-template-columns: minmax(220px, 36%) minmax(0, 1fr); align-items: stretch; }
  .post-card__media { height: 100%; }
  .post-card__image { aspect-ratio: auto; min-height: 245px; height: 100%; }
  .compact-card .post-card__image { min-height: 180px; }
  .post-cta { grid-template-columns: 1.1fr .9fr; }
  .newsletter-card { grid-template-columns: 1fr; }
}

@media (max-width: 779px) {
  .launch-card { gap: 0; }
  .launch-waitlist { margin-top: 0; }
}

@media (max-width: 560px) {
  .site-nav { justify-content: center; padding-top: 14px; }
  .site-nav__logo-image { width: 112px; }
  .site-nav__links { justify-content: center; }
  .site-main { padding-left: 14px; padding-right: 14px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .assignment-row { grid-template-columns: 1fr; }
  .status-pill { justify-self: start; }
  .card, .post-card, .shared-block, .post-cta { border-radius: 16px; }
  .photo-strip { grid-template-columns: 1fr; }
  .photo-card, .photo-card:nth-child(2), .photo-card:nth-child(3) { transform: none; }
  .post-title { font-size: clamp(26px, 8vw, 35px); }
  .trust-page .post-title { font-size: clamp(29px, 9vw, 40px); }
  .carousel-stage { height: min(62vh, 390px); border-radius: 16px; }
  .content-page-media img,
  .post-hero-media__image { height: min(62vh, 390px); border-radius: 16px; }
  .carousel-controls { grid-template-columns: 44px 1fr 44px; height: min(62vh, 390px); padding: 0 8px; }
  .carousel-control { width: 36px; height: 36px; }
  .carousel-caption-panel { margin-left: 4px; margin-right: 4px; }
  .image-modal { grid-template-columns: 40px minmax(0, 1fr) 40px; padding: 12px; }
  .modal-nav { width: 38px; height: 38px; }
}
