/* Omegal: hand-written stylesheet (not generated by build.js)
   Look: chat-conversation theme. Deep green ink, mint and butter accents, serif headlines (Instrument Serif) + Plus Jakarta Sans. */

:root {
  --bg: #f3f7f4;
  --bg-2: #e6efe9;
  --surface: #ffffff;
  --ink: #10261f;
  --ink-2: #3b5249;
  --muted: #536860;
  --line: #d5e2db;
  --green: #134e3a;
  --green-ink: #ffffff;
  --mint: #8ef0c6;
  --butter: #ffd84d;
  --coral: #ff7a59;
  --on-accent: #10261f;
  --shadow: 0 1px 2px rgba(16, 38, 31, .06), 0 18px 40px -22px rgba(16, 38, 31, .35);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1814; --bg-2: #10221c; --surface: #142a23; --ink: #e8f4ee; --ink-2: #b6cbc2; --muted: #84a096; --line: #224139;
    --green: #8ef0c6; --green-ink: #0b1814; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px -22px rgba(0,0,0,.8); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1814; --bg-2: #10221c; --surface: #142a23; --ink: #e8f4ee; --ink-2: #b6cbc2; --muted: #84a096; --line: #224139;
  --green: #8ef0c6; --green-ink: #0b1814; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px -22px rgba(0,0,0,.8); color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.7 var(--sans); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--green); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0 0 .5em; color: var(--ink); line-height: 1.1; }
h1, h2, h3.big { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); line-height: 1.02; }
h1 em, h2 em { font-style: italic; color: var(--green); }
h2, h3.big { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font: 700 1.1rem/1.35 var(--sans); }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 22px; }
.wrap.narrow { width: min(820px, 100%); }
.lead { font-size: 1.14rem; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.mt-lg { margin-top: 56px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 10px; background: var(--ink); color: var(--bg); }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 14px; border: 1.5px solid transparent; font: 700 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.98); }
.btn-green { background: var(--green); color: var(--green-ink); }
.btn-green:hover { color: var(--green-ink); filter: brightness(1.08); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { color: var(--ink); border-color: var(--green); }
.btn-sm { padding: 10px 16px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn-row.center { justify-content: center; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }

/* the message-box call to action */
.composer {
  display: flex; align-items: center; gap: 10px; max-width: 520px; margin-top: 30px; padding: 8px 8px 8px 22px; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--line); box-shadow: var(--shadow); text-decoration: none; transition: border-color .15s ease, transform .15s ease;
}
.composer:hover { border-color: var(--green); transform: translateY(-2px); }
.composer-ph { flex: 1; min-width: 0; color: var(--muted); font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer-ph::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 3px; background: var(--green); vertical-align: -3px; animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.composer-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 999px; background: var(--green); color: var(--green-ink); font-weight: 800; white-space: nowrap; }
.composer-btn svg { width: 17px; height: 17px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.bar { display: flex; align-items: center; gap: 22px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 36px; height: 36px; flex: none; }
.logo-text { font: 400 1.75rem/1 var(--serif); letter-spacing: -.01em; }
.nav { display: flex; gap: 2px; margin: 0 auto; padding: 5px; border-radius: 999px; background: var(--bg-2); }
.nav a { padding: 8px 15px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .94rem; text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(16, 38, 31, .12); }
.bar-tools { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
.theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-moon { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: inline; }
}
@media (max-width: 960px) {
  .menu-btn { display: inline-grid; }
  .bar-tools { margin-left: auto; }
  .nav { position: absolute; top: 72px; left: 12px; right: 12px; display: none; flex-direction: column; margin: 0; padding: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 14px; border-radius: 12px; }
}
@media (max-width: 560px) { .hide-sm { display: none; } }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 6vw, 84px) 0 clamp(56px, 8vw, 100px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.eyebrow { display: inline-block; margin: 0 0 20px; padding: 6px 14px; border-radius: 999px; background: var(--mint); color: var(--on-accent); font-size: .85rem; font-weight: 700; }
.hero h1 { max-width: 15ch; }
.hero-alt { margin: 16px 0 0 22px; color: var(--muted); font-size: .95rem; }
.hero-alt a { font-weight: 700; }

.transcript { position: relative; padding: 22px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .95rem; }
.transcript::after { content: ""; position: absolute; left: 44px; bottom: -14px; width: 28px; height: 28px; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.tr-head { display: flex; align-items: center; gap: 9px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px dashed var(--line); color: var(--muted); font-size: .82rem; font-weight: 600; }
.tr-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.msg { width: fit-content; max-width: 86%; margin: 0 0 10px; padding: 9px 14px; border-radius: 18px; line-height: 1.45; }
.msg b { display: block; margin-bottom: 1px; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; opacity: .65; }
.msg.them { background: var(--bg-2); color: var(--ink); border-bottom-left-radius: 6px; }
.msg.you { margin-left: auto; background: var(--green); color: var(--green-ink); border-bottom-right-radius: 6px; }
.typing { display: flex; align-items: center; gap: 4px; margin: 6px 0 0; color: var(--muted); font-size: .8rem; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; margin-right: 6px; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ---------- blocks ---------- */
.block { padding: clamp(60px, 8vw, 104px) 0; }
.block-soft { background: var(--bg-2); }
.head-c { margin-bottom: 40px; text-align: center; }
.head-c .lead { margin: 0 auto; }

.bubbles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.bubble { position: relative; display: flex; flex-direction: column; padding: 30px 28px 26px; border-radius: 30px 30px 30px 8px; color: var(--on-accent); text-decoration: none; transition: transform .2s ease; }
.bubble:nth-child(2) { margin-top: 34px; border-radius: 30px 30px 8px 30px; }
.bubble:hover { transform: translateY(-5px); color: var(--on-accent); }
.bubble h3 { font: 400 1.9rem/1.1 var(--serif); color: var(--on-accent); margin-bottom: 10px; }
.bubble p { color: rgba(16, 38, 31, .78); }
.b-mint { background: var(--mint); }
.b-butter { background: var(--butter); }
.b-plain { background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); }
.b-plain h3 { color: var(--ink); }
.b-plain p { color: var(--ink-2); }
.b-ico { display: inline-grid; place-items: center; width: 50px; height: 50px; margin-bottom: 20px; border-radius: 16px; background: rgba(16, 38, 31, .1); }
.b-plain .b-ico { background: var(--bg-2); color: var(--green); }
.b-ico svg { width: 24px; height: 24px; }
.b-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-weight: 800; }
.b-go svg { width: 17px; height: 17px; }

.convo { display: grid; gap: 26px; }
.ex { display: grid; gap: 10px; }
.who { display: block; margin-bottom: 4px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ex-q, .ex-a { max-width: 78%; padding: 16px 20px; border-radius: 22px; }
.ex-q { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.ex-q h3 { margin: 0; font-size: 1.12rem; }
.ex-a { justify-self: end; background: var(--green); color: var(--green-ink); border-bottom-right-radius: 6px; }
.ex-a .who { color: inherit; opacity: .7; }
.ex-a p { margin: 0; }

.story { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.story-mark { font: italic 400 clamp(5rem, 15vw, 11rem)/.9 var(--serif); color: transparent; -webkit-text-stroke: 1.5px var(--green); letter-spacing: -.03em; }
.story-text p { color: var(--ink-2); font-size: 1.08rem; }

.notes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.note { position: relative; padding: 22px 18px 20px; background: var(--butter); color: var(--on-accent); border-radius: 4px; box-shadow: 0 10px 22px -14px rgba(16, 38, 31, .55); transform: rotate(-1.4deg); }
.note:nth-child(even) { background: var(--mint); transform: rotate(1.2deg); margin-top: 18px; }
.note::before { content: ""; position: absolute; left: 50%; top: -9px; width: 58px; height: 18px; transform: translateX(-50%) rotate(-2deg); background: rgba(255, 255, 255, .55); border-radius: 2px; }
.note .n { display: block; font: italic 400 2.2rem/1 var(--serif); margin-bottom: 8px; }
.note h3 { color: var(--on-accent); font-size: 1.02rem; }
.note p { margin: 0; font-size: .93rem; color: rgba(16, 38, 31, .82); }

.rules-band { padding: clamp(60px, 8vw, 100px) 0; background: #10261f; color: #d7e7df; }
.rules-band h3.big, .rules-band h3 { color: #fff; }
.rules-band .lead { color: #b6cbc2; }
.rule-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.rl { padding: 28px 24px 4px; border-right: 1px solid rgba(255, 255, 255, .15); }
.rl:last-child { border-right: 0; }
.rl-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 50%; background: var(--mint); color: #10261f; }
.rl-ico svg { width: 22px; height: 22px; }
.rl p { color: #b6cbc2; }

.faq-list { border-top: 1.5px solid var(--ink); }
.fq { padding: 22px 0; border-bottom: 1px solid var(--line); }
.fq h3 { font: 400 1.55rem/1.2 var(--serif); margin-bottom: 8px; }
.fq p { margin: 0; color: var(--ink-2); }

.closing { padding: clamp(64px, 9vw, 112px) 0; background: radial-gradient(ellipse at 50% 0%, var(--mint) 0, transparent 60%), var(--bg-2); }
:root[data-theme="dark"] .closing { background: radial-gradient(ellipse at 50% 0%, rgba(142, 240, 198, .18) 0, transparent 60%), var(--bg-2); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .closing { background: radial-gradient(ellipse at 50% 0%, rgba(142, 240, 198, .18) 0, transparent 60%), var(--bg-2); }
}
.closing-title { margin: 0 0 12px; font: 400 clamp(2.2rem, 5vw, 3.6rem)/1.05 var(--serif); }
.closing-text { max-width: 50ch; margin: 0 auto; color: var(--ink-2); font-size: 1.1rem; }
.closing .composer { margin: 30px auto 0; }

/* ---------- inner pages ---------- */
.page-head { padding: clamp(40px, 6vw, 76px) 0 6px; }
.page-head h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: .9rem; }
.crumbs a { color: var(--muted); }
.page-body { padding-top: 26px; }
.prose h2 { margin-top: 1.4em; font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.prose h3 { margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; }
.callout { margin: 28px 0; padding: 22px 24px; border-radius: 20px 20px 20px 6px; background: var(--butter); color: var(--on-accent); }
.callout h3 { margin: 0 0 4px; color: var(--on-accent); }
.prose .callout p { margin: 0; color: rgba(16, 38, 31, .85); }
.mail-card { display: flex; align-items: center; gap: 18px; margin-bottom: 34px; padding: 24px; border-radius: 26px 26px 26px 8px; background: var(--mint); color: var(--on-accent); text-decoration: none; }
.mail-card:hover { color: var(--on-accent); }
.mail-ico { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 16px; background: rgba(16, 38, 31, .1); }
.mail-ico svg { width: 24px; height: 24px; }
.mail-label { display: block; font-size: .88rem; opacity: .7; }
.mail-addr { display: block; font: 400 clamp(1.4rem, 4vw, 1.9rem)/1.2 var(--serif); word-break: break-all; }

/* ---------- chat room pages ---------- */
.room-page { --bar: 60px; }
.room-bar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 12px; height: var(--bar); padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); background: #10261f; }
.room-bar .logo { color: #fff; }
.room-bar .logo-text { font-size: 1.45rem; }
.room-bar .logo-mark { width: 32px; height: 32px; }
/* underline tabs: they run the full height of the bar, and the active room gets a mint underline */
.room-tabs { display: flex; align-self: stretch; gap: 4px; margin: 0 auto; }
.room-tabs a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; color: #9fb8ad; font-weight: 700; font-size: .95rem; text-decoration: none; transition: color .15s ease; }
.room-tabs a svg { width: 18px; height: 18px; transition: color .15s ease; }
.room-tabs a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--mint); transform: scaleX(0); transition: transform .2s ease; }
.room-tabs a[aria-current="page"] { color: #fff; }
.room-tabs a[aria-current="page"] svg { color: var(--mint); }
.room-tabs a[aria-current="page"]::after { transform: scaleX(1); }
.room-tabs a:not([aria-current]):hover { color: #fff; }
.room-tabs a:not([aria-current]):hover::after { transform: scaleX(.6); background: rgba(142, 240, 198, .45); }
.room-tabs a:focus-visible { outline-offset: -4px; }
.room-bar .fs-btn { border-color: rgba(255, 255, 255, .18); color: #fff; }
.room { height: calc(100vh - var(--bar)); height: calc(100dvh - var(--bar)); background: #050b09; }
.room:fullscreen { height: 100vh; }
.room-frame, .room #app_container, .room #app_container > iframe, .room #app_container > div { display: block; width: 100% !important; height: 100% !important; border: 0; }
.room #app_container { position: relative; overflow: hidden; background: #fff; }
.two { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: 8px; }
.h1-room { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.tip-card { padding: 28px; border-radius: 28px 28px 28px 8px; background: var(--surface); border: 1px solid var(--line); }
.tip-card h2 { font-size: 1.9rem; }
.tip-card ul { padding-left: 1.1em; margin: 0 0 14px; }
.tip-card li { margin-bottom: .5em; color: var(--ink-2); }
@media (max-width: 640px) {
  .room-bar .logo-text { display: none; }
  .room-tabs a { padding: 0 11px; }
}
@media (max-width: 380px) { .room-tabs a span { display: none; } }

/* ---------- footer ---------- */
.site-footer { padding: 64px 0 30px; background: #10261f; color: #b6cbc2; font-size: .95rem; }
.site-footer .logo, .site-footer .logo:hover { color: #fff; }
.foot-top { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.foot-about p { max-width: 34ch; margin: 16px 0 0; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-h { margin: 0 0 14px; color: var(--mint); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.site-footer ul a { color: #d7e7df; text-decoration: none; }
.site-footer ul a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); color: #84a096; font-size: .86rem; }
.foot-bottom span:last-child { max-width: 72ch; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .notes { grid-template-columns: repeat(3, 1fr); }
  .rule-row { grid-template-columns: 1fr 1fr; }
  .rl:nth-child(2) { border-right: 0; }
  .rl:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .15); }
}
@media (max-width: 900px) {
  .hero-grid, .story, .two, .foot-top { grid-template-columns: 1fr; }
  .bubbles { grid-template-columns: 1fr; }
  .bubble:nth-child(2) { margin-top: 0; }
  .story-mark { font-size: clamp(4.5rem, 22vw, 7rem); }
  .ex-q, .ex-a { max-width: 92%; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .notes { grid-template-columns: 1fr 1fr; }
  .note:nth-child(even) { margin-top: 0; }
  .rule-row { grid-template-columns: 1fr; }
  .rl { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .composer { padding-left: 16px; }
  .composer-btn { padding: 12px 16px; }
  .hero-alt { margin-left: 4px; }
  .btn-row .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .composer-ph::after, .typing span { animation: none; }
  html { scroll-behavior: auto; }
}
