:root {
  --bg: #110e0c;
  --card: #1c1512;
  --ink: #f6efe8;
  --muted: #cbb5a6;
  --line: #3a2c26;
  --accent: #e7a07a;
  --accent-ink: #1a100c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Georgia, "Iowan Old Style", serif;
  color: var(--ink);
  background: var(--bg);
}
body.home { background: #0c0a09; }
a { color: inherit; }
.nav, .wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  background: rgba(12, 10, 9, 0.88);
  backdrop-filter: blur(10px);
}
.jumps { display: flex; gap: 16px; }
.jumps a { color: var(--muted); text-decoration: none; font-size: 14px; }
.jumps a:hover { color: var(--ink); }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.brand b { font-weight: 600; letter-spacing: 0.02em; }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.google, button.primary, .ghost {
  font: 600 15px/1 Georgia, serif;
  border-radius: 999px;
  padding: 12px 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.google, button.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
}
.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.scene {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
  scroll-margin-top: 72px;
}
.scene.flip { grid-template-columns: 0.85fr 1.15fr; }
.scene.flip img { order: 2; }
.scene img {
  width: 100%;
  max-height: 86vh;
  object-fit: cover;
  border-radius: 28px;
  display: block;
}
.kicker { color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; }
h1, h2 { line-height: 0.98; margin: 8px 0 12px; font-weight: 560; }
h1 { font-size: clamp(42px, 6vw, 72px); }
h2 { font-size: clamp(32px, 4vw, 52px); }
.lede { color: var(--muted); font-size: 18px; line-height: 1.45; max-width: 36ch; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.note { color: var(--muted); font-size: 14px; }
.down {
  display: inline-block;
  margin-top: 28px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}
#log { display: flex; flex-direction: column; gap: 10px; min-height: 46vh; max-height: 58vh; overflow: auto; }
.bubble { max-width: 78%; padding: 10px 12px; border-radius: 14px; line-height: 1.4; }
.bubble.you { align-self: flex-end; background: #3a241c; }
.bubble.her { align-self: flex-start; background: #2a1814; }
.composer { display: flex; gap: 8px; margin-top: 12px; }
.composer input, .gate input[type="checkbox"] { accent-color: var(--accent); }
.composer input {
  flex: 1;
  font: 16px/1.4 Georgia, serif;
  color: var(--ink);
  background: #140f0d;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 14px;
}
.people { display: flex; gap: 8px; margin: 4px 0 10px; }
.person {
  font: inherit;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.person.active { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.strip { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 12px; }
.strip img { height: 148px; width: 110px; object-fit: cover; border-radius: 16px; flex: 0 0 auto; }
.switchbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 12px; }
.modes { display: flex; gap: 8px; }
.mode, .lang {
  font: inherit;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.mode.active { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.lang { display: inline-flex; align-items: center; gap: 8px; }
.lang input { accent-color: var(--accent); width: 18px; height: 18px; }
#callLog { display: flex; flex-direction: column; gap: 10px; min-height: 220px; max-height: 46vh; overflow: auto; margin-top: 12px; }
.bubble.sys { align-self: center; color: var(--muted); font-size: 13px; background: transparent; }
.talk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.who { display: flex; gap: 10px; align-items: center; }
.who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.who p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.gate { text-align: center; padding: 28px 12px; }
.gate label { display: flex; gap: 8px; justify-content: center; align-items: center; margin: 14px 0; }
.lock-input {
  width: min(100%, 280px);
  font: 16px/1.4 Georgia, serif;
  color: var(--ink);
  background: #140f0d;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 14px;
}
.bar { margin: 0 0 12px; }
.hidden { display: none; }
.warn {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--muted);
  margin: 8px 0 18px;
}
code { font-family: ui-monospace, Menlo, monospace; font-size: 0.92em; }
footer { color: var(--muted); font-size: 13px; padding: 10px 0 28px; }
@media (max-width: 800px) {
  .jumps { display: none; }
  .scene, .scene.flip { grid-template-columns: 1fr; min-height: auto; padding-bottom: 48px; }
  .scene.flip img { order: 0; }
  .scene img { max-height: 72vh; }
}
