:root {
  --paper: #f4f1ea;
  --surface: #fffdf7;
  --ink: #20211f;
  --muted: #60645e;
  --line: #d5d0c4;
  --accent: #9a3f32;
  --blue: #244d67;
  --olive: #65763f;
  --gold: #b9822d;
  --hero-scrim: linear-gradient(90deg, rgba(15, 18, 16, 0.82), rgba(15, 18, 16, 0.5) 46%, rgba(15, 18, 16, 0.08));
  --shadow: 0 16px 38px rgba(32, 33, 31, 0.12);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #151716;
  --surface: #20231f;
  --ink: #f2eee4;
  --muted: #c0c5bd;
  --line: #3d423b;
  --accent: #df8b72;
  --blue: #9ec3d0;
  --olive: #c2d28b;
  --gold: #e0b05c;
  --hero-scrim: linear-gradient(90deg, rgba(5, 7, 7, 0.84), rgba(5, 7, 7, 0.58) 48%, rgba(5, 7, 7, 0.18));
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}

a {
  color: var(--accent);
  text-underline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 92vh;
  background: #151716;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 14px 20px;
  overflow-x: auto;
  overflow-y: hidden;
  color: #f5f1e8;
  background: rgba(17, 18, 17, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  white-space: nowrap;
}

.topbar a,
.theme-toggle {
  color: inherit;
}

.topbar a {
  text-decoration-thickness: 1px;
}

.first-event-link {
  margin-right: auto;
}

.icon-link,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.theme-toggle {
  appearance: none;
  -webkit-appearance: none;
  padding: 0 0 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.theme-toggle .light-icon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .dark-icon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .light-icon {
  display: inline-block;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image: var(--hero-scrim), url("../ProposalConcept-Synagogue.png");
  background-position: center;
  background-size: cover;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: 108px 0 clamp(72px, 10vh, 112px);
  color: #fffaf0;
}

.eyebrow,
.section-label,
.side-note,
.side-copy,
.image-caption,
.button,
.email-meta {
  font-family: Arial, Helvetica, sans-serif;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.25rem, 11vw, 8.5rem);
  line-height: 0.9;
  font-weight: 500;
}

.hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 24px 0 0;
  color: #f2eadb;
  font-size: clamp(1.05rem, 2vw, 1.38rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  color: #fffaf0;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.1);
}

.section {
  padding: clamp(46px, 8vw, 84px) 0;
  border-top: 1px solid var(--line);
}

.intro-section {
  background: var(--surface);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.02;
  font-weight: 500;
}

.copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.image-section {
  background: linear-gradient(180deg, var(--paper), color-mix(in srgb, var(--surface) 72%, var(--paper)));
}

.proposal-plate {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.proposal-plate img {
  width: 100%;
  border-radius: 8px;
}

.image-caption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.timeline-section {
  background: linear-gradient(180deg, var(--paper), var(--surface));
}

.side-copy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.side-note {
  margin: 14px 0 0;
  color: var(--olive);
  font-weight: 700;
}

.email-thread {
  display: grid;
  gap: 18px;
}

.email-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 88%, var(--paper));
  overflow: hidden;
}

.email-meta {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 96%, var(--paper));
  font-family: Arial, Helvetica, sans-serif;
}

.email-meta div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
}

.email-meta span {
  color: var(--olive);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.email-meta strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

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

.email-details summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 12px 18px;
  color: var(--accent);
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.email-details summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.email-details[open] summary {
  margin-bottom: 0;
}

.summary-less,
.email-details[open] .summary-more {
  display: none;
}

.email-details[open] .summary-less {
  display: inline;
}

.email-body {
  padding: 18px;
  font-size: 0.98rem;
}

.email-body p {
  margin: 0 0 15px;
  color: var(--muted);
}

.email-body p:last-child {
  margin-bottom: 0;
}

.email-body a {
  overflow-wrap: anywhere;
}

.email-continuation {
  margin-top: 2px;
}

.site-footer {
  padding: 28px 0;
  color: #f5f1e8;
  background: #20211f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
}

.site-footer a {
  color: #f0b878;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
}

@media (max-width: 780px) {
  .site-header,
  .hero {
    min-height: 88vh;
  }

  .topbar {
    justify-content: flex-start;
    gap: 12px;
  }

  .hero-copy {
    padding-bottom: 58px;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .email-meta div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 520px) {
  .wrap,
  .hero-copy {
    width: min(100% - 28px, 1120px);
  }

  .hero h1 {
    font-size: clamp(2.7rem, 18vw, 4.5rem);
  }

  .button {
    width: 100%;
  }
}
