@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600&family=Instrument+Serif&display=swap');

:root {
  --paper: #f5f0e5;
  --ink: #163d2c;
  --muted: #586451;
  --rule: #d8d2c3;
  --blue: #dce5fb;
  --peach: #ffd7c7;
  --yellow: #f6e7a5;
  --sage: #dce7c6;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.76' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%235c4829' opacity='.045' filter='url(%23p)' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
header, main, footer { max-width: 1300px; margin: auto; padding: 24px 32px; }
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 30px;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}

nav, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
a { color: #174f36; text-underline-offset: 4px; }
h1, h2 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(42px, 6vw, 78px); line-height: 1; margin: 22px 0; }
h2 { font-size: clamp(34px, 4vw, 48px); line-height: 1.06; }
p { line-height: 1.65; }
.lede { font-size: 20px; max-width: 900px; }
.small, footer { font-size: 14px; color: var(--muted); }
.actions { margin: 28px 0; }

button, .button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fffaf0;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

button:disabled { opacity: .5; cursor: default; }
.button:hover { background: #255741; color: #fffaf0; }
.button-outline { background: transparent; color: var(--ink); }
:focus-visible { outline: 3px solid #a55032; outline-offset: 4px; }

.example-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.bubble {
  border: 1px solid var(--rule);
  border-radius: 24px 24px 24px 5px;
  background: #fff9eb;
  padding: 20px;
  margin: 20px 25px 25px 0;
}
.bubble.user { background: var(--blue); margin: 20px 0 25px 25px; border-radius: 24px 24px 5px 24px; }
.bubble.user:nth-child(3) { background: var(--yellow); }
.bubble h2 { font: 600 15px 'DM Sans', sans-serif; margin-top: 0; }
.bubble p { font-size: 18px; overflow-wrap: anywhere; }
.bubble.speaking { outline: 3px solid #527354; animation: appear .3s ease; }
audio { display: block; max-width: 100%; width: 100%; height: 38px; }
.collage { width: 100%; height: auto; }
.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.note {
  position: relative;
  padding: 24px;
  background: var(--blue);
  border: 1px solid #163d2c20;
  box-shadow: 0 3px 6px #42321b15;
  transform: rotate(-1deg);
}

.note::before {
  content: '';
  position: absolute;
  top: 8px;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a55032;
  box-shadow: inset 1px 1px #fff6, 1px 2px 2px #3b261444;
}

.note-1 { background: var(--peach); transform: rotate(1deg); margin-top: 25px; }
.note-2 { background: var(--yellow); }
.note-3 { background: var(--sage); transform: rotate(1deg); margin-top: 20px; }
.note h3 { font-size: 16px; }
.closing { text-align: center; padding: 55px 0; }
.closing h2 { margin: 0 0 18px; }
video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--ink);
}
details { margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 600; min-height: 32px; }
footer { border-top: 1px solid var(--rule); }

.demo-page header {
  position: sticky;
  top: 0;
  z-index: 1;
  padding-block: 14px;
  background: #f5f0e5f2;
  backdrop-filter: blur(8px);
}

.demo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(28px, 6vw, 82px) 0 56px;
}

.demo-hero h1 { margin: 0 0 20px; }
.demo-hero .lede { max-width: 42ch; margin: 0; }
.demo-hero .actions { margin-bottom: 0; }
.hero-art {
  position: relative;
  margin: 0 5px;
  padding: 10px 10px 0;
  background: #fffaf0;
  border: 1px solid var(--rule);
  box-shadow: 0 3px 6px #42321b19;
  transform: rotate(2deg);
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--sage);
}

.hero-art figcaption { padding: 10px 4px; font-size: 14px; color: var(--muted); }
.idea-story { padding: 6px 0 40px; }
.idea-story h2, .demo-watch h2, .demo-more h2 { margin: 0 0 24px; }
.idea-path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  list-style: none;
  margin: 0;
  padding: 5px 6px;
}

.idea-path::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 4%;
  right: 4%;
  border-top: 2px dashed #69856f;
}

.idea-path .note { margin: 0; padding: 26px 20px 18px; }
.idea-path .note:nth-child(2) { transform: rotate(1deg) translateY(6px); }
.note-label { display: block; margin-bottom: 6px; font-weight: 600; }
.idea-path p { margin: 0; }
.story-outcome { max-width: 70ch; margin: 24px 0 0; }
.eyebrow{font-size:13px;font-weight:600;letter-spacing:.05em;color:#527354}.language-story{display:grid;grid-template-columns:1fr 1fr;gap:60px;padding:24px 0 50px;align-items:center}.language-story h2{font-size:40px;margin:0 0 18px}.language-list{font-family:Georgia,serif;font-size:25px;line-height:1.9;color:#245a40}.hero-copy{animation:appear .4s ease-out}.hero-art{animation:appear .55s ease-out}.demo-closing .brand{font-size:32px;margin:10px 0 28px}

.demo-watch {
  scroll-margin-top: 84px;
  margin: 8px 0 0;
  padding: clamp(22px, 4vw, 48px);
  background: var(--sage);
  border: 1px solid #163d2c20;
}

.watch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 235px);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
}

.recording-note { align-self: center; padding: 22px; }
.recording-note h3 { margin: 6px 0 0; }
.recording-note p { margin: 8px 0 16px; }
.qr { display: block; width: 128px; height: 128px; max-width: 100%; margin-bottom: 16px; }
.demo-more {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(30px, 6vw, 78px);
  padding: clamp(38px, 6vw, 76px) 0;
}

.demo-closing {
  background: var(--peach);
  border: 1px solid #163d2c20;
  padding: 35px 16px;
}

@keyframes appear {
  from { opacity: .6; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 800px) {
  header, main, footer { padding: 20px; }
  .example-layout, .demo-hero, .demo-more, .watch-grid { grid-template-columns: minmax(0, 1fr); }
  .language-story{grid-template-columns:1fr;gap:12px}.language-story h2{font-size:34px}.language-list{font-size:22px}
  .demo-hero { gap: 30px; padding: 28px 0 40px; }
  .hero-art { max-width: 540px; }
  .wide-break { display: none; }
  .notes { gap: 20px; }
  .lede { font-size: 18px; }
  .recording-note { max-width: 325px; }
}

@media (max-width: 550px) {
  header { flex-wrap: wrap; gap: 8px; }
  .brand { font-size: 28px; }
  nav { font-size: 14px; column-gap: 14px; row-gap: 8px; }
  .demo-page nav > a[href="#watch"] { display: none; }
  .demo-page header { position: static; }
  .demo-watch { scroll-margin-top: 12px; }
  .idea-path, .notes { grid-template-columns: minmax(0, 1fr); }
  .idea-path { gap: 20px; }
  .idea-path::before {
    top: 4%;
    bottom: 4%;
    left: 50%;
    right: auto;
    border-top: 0;
    border-left: 2px dashed #69856f;
  }
  .idea-path .note:nth-child(2) { transform: rotate(1deg); }
  .note-1, .note-3 { margin-top: 0; }
  .bubble, .bubble.user { margin-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none!important; transition: none!important; scroll-behavior:auto!important; }
}
