/* Base */

:root {
  --ink: #14110f;
  --paper: #fffdf8;
  --soft: #f3efe6;
  --line: #ddd4c5;
  --muted: #6d665d;
  --gold: #b88b3d;
  --clay: #9b3f34;
  --forest: #28463a;

  --container: min(1160px, calc(100% - 36px));
  --container-mobile: min(100% - 28px, 1160px);
  --hairline: 1px solid var(--line);
  --eyebrow-margin-top: 56px;
  --eyebrow-line-spacing: 10px;
  --eyebrow-margin-bottom: 14px;
  --eyebrow-border: 2px solid var(--line);  
  --gofundme-embed-width: 320px;

  --serif: "Playfair Display", Georgia, serif;
  --sans: Inter, Arial, sans-serif;
  --text-root: 16px;
  --text-xs: 0.72rem;
  --text-sm: 0.88rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.35rem;
  --text-amount: 2.4rem;
  --text-amount-mobile: 2rem;
  --text-h1: clamp(1.8rem, 2.25vw, 2.25rem);
  --text-h1-tablet: clamp(1.5rem, 6vw, 2rem);
  --text-section-title: clamp(1.8rem, 3vw, 2.6rem);
  --text-display: clamp(2rem, 3.6vw, 3.2rem);
  --text-display-mobile: clamp(1.85rem, 12vw, 2.65rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--text-root);
  line-height: 1.6;
  overflow-x: hidden;
}

:where(h1, h2, h3, p, ul) {
  margin: 0;
}

:where(h1, h2, h3) {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
}

:where(p, li) {
  font-size: var(--text-md);
}

ul {
  padding-left: 1.25rem;
}

:where(img, iframe) {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

:where(.header-inner, .hero-grid, .support-inner, .section-inner, .footer-inner) {
  width: var(--container);
  min-width: 0;
  margin: 0 auto;
}

:where(.hero-grid, .support-grid, .project-grid, .funding-grid, .connect-grid, .join-grid) {
  display: grid;
}

:where(.header-inner, .nav-links, .footer-inner) {
  display: flex;
  align-items: center;
}

:where(.header-meta, .project-play, .join-grid button, footer) {
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow {
  display: block;
  margin-top: var(--eyebrow-margin-top);
  margin-bottom: var(--eyebrow-margin-bottom);
  padding-top: var(--eyebrow-line-spacing);
  border-top: var(--eyebrow-border);
  color: var(--gold);
  font-family: var(--sans);
  font-size: var(--text-xs);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Header */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  border-bottom: 1px solid rgba(20, 17, 15, 0.12);
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--serif);
  font-size: var(--text-xl);
  font-weight: 700;
}

.header-meta {
  color: var(--muted);
  font-family: var(--sans);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
}

.nav-links {
  gap: 22px;
}

.nav-links a:hover {
  color: var(--ink);
}

/* Hero */

#mission {
  scroll-margin-top: 86px;
}

.hero {
  padding: 135px 0 64px;
  border-bottom: var(--hairline);
  background: var(--soft);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
}

.hero h1 {
  max-width: 780px;
  font-size: var(--text-h1);
}

.hero p {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: var(--text-xl);
  line-height: 1.7;
}

.hero-media {
  padding: 8px;
  border: var(--hairline);
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(20, 17, 15, 0.09);
}

.hero-media img {
  width: 100%;
  max-height: 330px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: grayscale(100%);
}

/* Support */

.support-inner {
  border-bottom: var(--hairline);
  background: var(--soft);
}

.support-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: var(--hairline);
  background: var(--line);
}

.support-card {
  min-height: 150px;
  padding: 18px 20px;
  background: var(--paper);
}

.support-card h2 {
  margin-bottom: 8px;
  font-size: var(--text-lg);
}

.support-card p {
  color: var(--muted);
  font-size: var(--text-lg);
  line-height: 1.55;
}

/* Current Project */

#project {
  scroll-margin-top: 78px;
}

.project-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(30px, 6vw, 72px);
  padding: clamp(28px, 4vw, 48px) clamp(32px, 5vw, 68px) clamp(32px, 5vw, 68px);
  background: var(--ink);
  color: white;
}

.project h2 {
  max-width: 780px;
  font-family: var(--sans);
  font-size: var(--text-display);
  line-height: 1.05;
}

.project h2 em {
  font-family: "Metal Mania", var(--serif);
  font-style: normal;
  letter-spacing: 0.02em;
  text-shadow:
    1px 1px 0 #050505,
    -1px -1px 0 #050505,
    0 3px 0 #050505,
    0 0 0.18em rgba(231, 116, 53, 0.82),
    0 0 0.36em rgba(231, 116, 53, 0.55);
}

.project h3 {
  margin: 10px 0 0 24px;
  font-family: var(--sans);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.35;
}

.project h3 + .project-media {
  margin-top: 26px;
}

.project-media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--ink);
}

.project-media a,
.project-media iframe,
.project-media img {
  display: block;
  width: 100%;
  height: 100%;
}

.project-media a {
  position: relative;
}

.project-media img {
  object-fit: cover;
}

.project-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(20, 17, 15, 0.08), rgba(20, 17, 15, 0.58));
  color: #fff;
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
}

.project-play::before {
  content: "";
  width: 68px;
  height: 68px;
  margin-right: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  clip-path: polygon(0 0, 0 100%, 100% 50%);
}

.project-grid p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

/* Funding */

.funding-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(var(--gofundme-embed-width), 1fr);
  align-items: stretch;
  gap: 18px;
}

.funding-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 24px 22.8px 18px;
  border: var(--hairline);
  background: var(--paper);
}

.funding-card h2 {
  margin-bottom: 10px;
  color: var(--clay);
  font-family: var(--serif);
  font-size: var(--text-amount);
  font-weight: 700;
  line-height: 1;
}

.funding-card h3 {
  color: var(--ink);
  font-family: var(--serif);  
  font-size: var(--text-xl);
  line-height: 1.2;
}

.funding-card ul {
  color: var(--muted);
  padding-left: 18px;
}

.funding-card li,
.funding-card li p {
  font-size: var(--text-lg);
  line-height: 1.55;
}

.funding-card-plus {
  width: 100%;
  margin-bottom: 18px;
  padding-bottom: 42px;
}

.funding-gofundme,
.funding-gofundme-widget.gfm-embed {
  min-width: var(--gofundme-embed-width);
}

.funding-gofundme-widget {
  width: 100%;
  overflow: hidden;
  background: var(--paper);
  line-height: 0;
}

.funding-gofundme-widget iframe {
  width: 100%;
  border: 0;
}

.funding-gofundme p {
  margin: 0 18px;
  padding: 10px 12px;
  background: #fff2b8;
  color: #4f3a00;
  font-size: var(--text-sm);
  line-height: 1.45;
  text-align: center;
}

/* Connect */

#connect {
  scroll-margin-top: 68px;
}

.connect-intro {
  position: relative;
  z-index: 0;
  display: block;
  max-width: 100%;
  margin-bottom: 24px;
  overflow: hidden;
}

.connect-intro [class^="elfsight-app-"],
.connect-intro [class*=" elfsight-app-"] {
  width: 100%;
  min-height: 360px;
  max-width: 100%;
  overflow: hidden;
}

.connect-intro iframe {
  max-width: 100%;
}

.connect {
  position: relative;
  z-index: 1;
  padding: 0.25cm 0;
  background: var(--forest);
  color: white;
}

.connect-grid {
  grid-template-columns: minmax(220px, 0.5fr) minmax(0, 1.5fr);
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
}

.ceo-info {
  justify-self: center;
  width: 240px;
  overflow: hidden;
  padding: 4px 0;
}

.ceo-info img {
  width: 75%;
  margin: 0 auto;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  filter: sepia(18%) saturate(0.85) contrast(1.05);
}

.ceo-name,
.ceo-title {
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--text-sm);
  line-height: 1.35;
  text-align: center;
}

.ceo-name {
  margin-top: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.connect h2 {
  font-size: var(--text-section-title);
}

.connect p {
  max-width: 650px;
  margin: 18px 0 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-lg);
  line-height: 1.55;
}

.join-grid {
  grid-template-columns: minmax(0, 1fr) auto;
  flex: 0 1 420px;
  width: min(100%, 420px);
  height: 42px;
  overflow: hidden;
  border: var(--hairline);
  background: rgba(255, 255, 255, 0.08);
}

.join-grid input,
.join-grid button {
  height: 42px;
  border: 0;
  color: white;
  font: inherit;
}

.join-grid input {
  min-width: 0;
  width: 100%;
  padding: 0 16px;
  background: transparent;
  outline: none;
}

.join-grid input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.join-grid button {
  padding: 0 22px;
  border-left: var(--hairline);
  background: #000;
  cursor: pointer;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.join-grid button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.join-status {
  min-height: 1.35em;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-sm);
}

.join-status[data-state="success"] {
  color: rgba(255, 255, 255, 0.9);
}

.join-status[data-state="error"] {
  color: #ffd8c9;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  visibility: hidden;
}

/* Footer */

footer {
  padding: 28px 0;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
}

.footer-inner {
  justify-content: space-between;
  gap: 20px;
}

footer p {
  color: var(--muted);
  font-size: inherit;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.6;
}

.copyright-symbol {
  font-size: var(--text-md);
  line-height: 1;
  vertical-align: -0.04em;
}

/* Tablet */

@media (max-width: 860px) {
  .hero h1 {
    font-size: var(--text-h1-tablet);
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    height: auto;
    min-height: 66px;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .hero {
    padding-top: 128px;
  }

  #mission,
  #project,
  #connect {
    scroll-margin-top: 112px;
  }

  .support-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .support-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  .hero-grid,
  .project-grid,
  .funding-grid,
  .connect-grid {
    grid-template-columns: 1fr;
  }

  .funding-gofundme,
  .funding-gofundme-widget {
    min-width: 0;
  }

  .project-grid {
    padding: 28px;
  }

  .connect {
    padding: 44px 0;
  }

  .connect-intro {
    width: min(100%, 360px);
    height: 430px;
    margin-bottom: 28px;
    margin-inline: auto;
  }

  .connect-intro [class^="elfsight-app-"],
  .connect-intro [class*=" elfsight-app-"] {
    height: 100%;
    min-height: 0;
    max-height: 100%;
  }

  .connect-intro iframe {
    height: 100% !important;
  }

}

/* Mobile */

@media (max-width: 560px) {
  .header-inner,
  .hero-grid,
  .support-inner,
  .section-inner,
  .footer-inner {
    width: var(--container-mobile);
  }

  .header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    gap: 8px;
    padding: 10px 0;
  }

  .brand {
    font-size: var(--text-lg);
  }

  .nav-links {
    gap: 10px;
    letter-spacing: 0.04em;
  }

  .hero {
    padding-top: 34px;
    padding-bottom: 44px;
  }

  #mission,
  #project,
  #connect {
    scroll-margin-top: 98px;
  }

  .hero-grid {
    gap: 22px;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .support-card:nth-child(3) {
    grid-column: auto;
  }

  .project-grid {
    width: 100%;
    padding: 24px 18px;
  }

  .project h2 {
    font-size: var(--text-display-mobile);
  }

  .project h3 {
    margin-left: 0;
    font-size: var(--text-lg);
  }

  .hero p {
    font-size: var(--text-md);
  }

  .funding-card {
    padding: 20px 19px;
  }

  .funding-card h2 {
    font-size: var(--text-amount-mobile);
  }

  .funding-gofundme p {
    margin-inline: 0;
  }

  .connect-intro {
    width: min(100%, 280px);
    height: 350px;
    margin-bottom: 24px;
    margin-inline: auto;
  }

  .connect-intro [class^="elfsight-app-"],
  .connect-intro [class*=" elfsight-app-"] {
    height: 100%;
    min-height: 0;
    max-height: 100%;
  }

  .connect-intro iframe {
    height: 100% !important;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .join-grid input[type="email"] {
    padding: 0 12px;
  }

  .join-grid button {
    padding: 0 14px;
  }

  .ceo-info {
    width: 190px;
    max-width: 100%;
  }
}
