/* The Capsule Project — thecapsuleproject.io */
:root {
  --purple: #721F7D;      /* Capsule Purple (SOSA) */
  --plum: #2A0B33;        /* Night Plum */
  --shell: #F7F5F8;       /* Shell White */
  --lavender: #EADCF0;    /* Lavender Mist */
  --cyan: #5BC8E6;        /* Live Cyan, on dark */
  --cyan-ink: #36A9C4;    /* Live Cyan, on light */
  --ink: #2A0B33;
  --ink-soft: #4A3A50;
  --muted: #5B4A60;
  --line: #E6DCEA;
  --on-dark: #E3D6E8;
  --display: 'Outfit', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --hebrew: 'Heebo', system-ui, sans-serif;
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--shell); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--purple); }
a:hover { color: var(--plum); }
:focus-visible { outline: 2px solid var(--cyan-ink); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--display); font-size: 14px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--purple); margin: 0; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
h1 { font-weight: 200; font-size: clamp(2.6rem, 5.4vw, 4.8rem); line-height: 1.02; letter-spacing: -0.01em; }
h2 { font-weight: 200; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.1; }
h3 { font-weight: 500; font-size: 20px; }
p { margin: 0; }
.he { font-family: var(--hebrew); font-weight: 300; direction: rtl; }

/* Buttons: square corners, brand rule */
.btn { display: inline-block; text-decoration: none; padding: 15px 25px; font-weight: 600; border: 1px solid var(--purple); background: var(--purple); color: #fff; }
.btn:hover { background: var(--plum); border-color: var(--plum); color: #fff; }
.btn-ghost { background: transparent; color: var(--purple); font-weight: 500; }
.btn-ghost:hover { background: var(--purple); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--purple); }
.btn-light:hover { background: var(--lavender); border-color: var(--lavender); color: var(--plum); }
.btn-outline-light { background: transparent; border-color: var(--lavender); color: #fff; font-weight: 500; }
.btn-outline-light:hover { background: #fff; color: var(--purple); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Nav */
.nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.nav .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand span { font-family: var(--display); font-weight: 300; font-size: 13px; letter-spacing: 0.28em; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-size: 15px; }
.nav-links a { text-decoration: none; }
.nav-links .btn { padding: 12px 20px; }

/* Language switcher: עב · EN · 日本語 */
.lang { display: flex; align-items: center; gap: 2px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
.lang a { padding: 4px 6px; text-decoration: none; color: var(--muted); }
.lang a:hover { color: var(--purple); }
.lang a[aria-current="page"] { color: var(--purple); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.lang span { color: #CDBDD3; }

/* Hero */
.hero { display: flex; flex-direction: column; gap: 32px; padding-top: 72px; padding-bottom: 40px; }
.hero-title { display: flex; flex-direction: column; gap: 22px; }
.hero-side { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 40px; }
.hero-side p { flex: 1 1 420px; min-width: 0; max-width: 600px; font-size: 18px; color: var(--ink-soft); }
.photo { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--lavender); }

/* Meaning */
.meaning { background: var(--plum); color: var(--shell); margin-top: 96px; }
.meaning .wrap, .inside, .hood .wrap, .join { padding-top: 96px; padding-bottom: 96px; }
.meaning .wrap { display: flex; flex-direction: column; gap: 56px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head h2 { max-width: 640px; }
.meaning .he { font-size: 24px; color: var(--cyan); }
.letters { display: flex; flex-wrap: wrap; border-top: 1px solid #4A2A55; }
.letter { flex: 1 1 280px; min-width: 0; padding-block: 36px 8px; padding-inline: 0 32px; display: flex; flex-direction: column; gap: 16px; }
.letter-head { display: flex; align-items: baseline; gap: 14px; }
.letter-head b { font-family: var(--display); font-weight: 200; font-size: 64px; line-height: 1; }
.letter-head span { font-family: var(--display); font-size: 14px; letter-spacing: 0.3em; color: var(--cyan); }
.letter p { color: var(--on-dark); }

/* Inside */
.inside { display: flex; flex-direction: column; gap: 40px; }
.inside .section-head p { max-width: 420px; color: var(--ink-soft); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--line); }
.feature { padding-block: 32px 0; padding-inline: 0 24px; display: flex; flex-direction: column; gap: 14px; }
.feature p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.icon { width: 56px; height: 56px; }

/* Hood */
.hood { background: var(--purple); color: #fff; }
.hood .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hood-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hood .eyebrow { color: var(--lavender); }
.hood-text p { color: #F3E9F6; }
.hood-art { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; }
.hood-art svg { width: min(300px, 70vw); height: auto; }

/* Join */
.join { display: flex; flex-wrap: wrap; gap: 56px; }
.join-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.join-text p { color: var(--ink-soft); }
.join form { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.join label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }
.join input { height: 50px; border: 1px solid #CDBDD3; background: #fff; padding: 0 14px; font-size: 16px; font-family: inherit; color: var(--ink); border-radius: 0; }
.join input:focus { outline: 2px solid var(--cyan-ink); outline-offset: 0; border-color: var(--purple); }
.join button { height: 54px; background: var(--purple); color: #fff; border: none; font-size: 16px; font-weight: 600; font-family: inherit; cursor: pointer; }
.join button:hover { background: var(--plum); }
.hp { position: absolute; inset-inline-start: -9999px; }

/* Footer */
.footer { background: var(--plum); color: #CDBDD3; font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 40px; padding-bottom: 40px; }
.footer .brand span { color: var(--shell); }
.footer a { color: #CDBDD3; }
.footer a:hover { color: #fff; }
/* Project Elijah strip: the one link back to the hub, same on every venture site (colours follow this footer) */
.pe-strip-row { border-top: 1px solid rgba(205, 189, 211, .16); padding: 14px 20px 18px; text-align: center; }
.footer a.pe-strip { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: .02em; color: #A894AF; text-decoration: none; }
.footer a.pe-strip:hover, .footer a.pe-strip:focus-visible { color: var(--shell); }
.footer a.pe-strip:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
.pe-spark { flex: none; }
.pe-strip > span { text-align: center; }
.pe-nw { white-space: nowrap; }

/* LANGUAGE VERSIONS — / English, /he/ Hebrew (RTL), /ja/ Japanese */
html[lang="he"] { --display: 'Outfit', 'Heebo', system-ui, sans-serif; --body: 'DM Sans', 'Heebo', system-ui, sans-serif; }
html[lang="he"] .eyebrow, html[lang="he"] .letter-head span { letter-spacing: 0.06em; }
html[lang="he"] h1 { line-height: 1.1; letter-spacing: 0; }
.echo { font-family: var(--display); font-weight: 300; letter-spacing: 0.06em; }
.meaning .echo { font-size: 20px; color: var(--cyan); }
html[lang="ja"] { --display: 'Outfit', 'Noto Sans JP', system-ui, sans-serif; --body: 'DM Sans', 'Noto Sans JP', system-ui, sans-serif; }
html[lang="ja"] body { line-break: strict; }
html[lang="ja"] .eyebrow, html[lang="ja"] .letter-head span { letter-spacing: 0; }
html[lang="ja"] h1, html[lang="ja"] h2 { word-break: keep-all; overflow-wrap: anywhere; letter-spacing: 0; } /* break only at <wbr> */
html[lang="ja"] h1 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); line-height: 1.25; font-weight: 300; }
html[lang="ja"] h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.35; font-weight: 300; }
html[lang="ja"] .letter-head span { font-size: 15px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links > a:not(.btn) { display: none; }
  .nav-links { gap: 8px 12px; flex-wrap: nowrap; }
  .nav-links .btn { white-space: nowrap; padding: 11px 12px; font-size: 14px; }
  .nav .wrap { gap: 12px; }
  .lang a { padding: 4px 3px; }
  .nav .brand span { display: none; }
  .nav .wrap { flex-wrap: nowrap; }
  .hero { padding-top: 48px; }
  .meaning { margin-top: 64px; }
  .meaning .wrap, .inside, .hood .wrap, .join { padding-top: 64px; padding-bottom: 64px; }
  .letter, .feature { padding-inline-end: 0; }
}
@media (max-width: 379px) {
  .nav-links { flex-wrap: wrap; justify-content: flex-end; gap: 6px 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
