/* Jean Clawd site, in the office's own style: cream paper, ink outlines, rounded type, pastel pills, one orange accent.
   Light and dark both work. No build step, no framework. */
:root {
  --paper: #fff8ec;
  --paper-2: #fdf0dc;
  --card: #ffffff;
  --ink: #1d1a24;
  --ink-2: #4a4556;
  --dim: #8a8496;
  --edge: #1d1a24;
  --line: 2.5px solid var(--edge);
  --pop: 0 3px 0 var(--edge);
  --pop-lg: 0 5px 0 var(--edge);
  --accent: #e0784f;
  --live: #7fe0a8; --idle: #ffd36e; --away: #d9d4e3; --watch: #8ec5ff; --wait: #ffb3c6;
  --sky: linear-gradient(180deg, #bfe3ff 0%, #ffe3ec 100%);
  --font: "M PLUS Rounded 1c", ui-rounded, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --chip: #1d1a24;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16141b;
    --paper-2: #1e1b24;
    --card: #23202c;
    --ink: #f6eddf;
    --ink-2: #c3bcce;
    --dim: #8e889c;
    --edge: #0c0b10;
    --sky: linear-gradient(180deg, #2b3a52 0%, #42313c 100%);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font: 500 16px/1.6 var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 19px; }
p { margin: 0; }
code { font: 500 13.5px/1.6 var(--mono); }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
section.wrap { padding-top: 84px; padding-bottom: 20px; }

/* the notice at the very top */
.notice {
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; justify-content: center;
  padding: 11px 22px; text-align: center;
  background: var(--idle); color: #1d1a24;
  border-bottom: var(--line);
  font-size: 14px; font-weight: 700;
}
.notice span { font-weight: 500; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 12px 22px;
  background: var(--paper-2);
  border-bottom: var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 10px; border: 2px solid var(--edge); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 7px 12px; border-radius: 11px; text-decoration: none;
  font-size: 14px; font-weight: 700; color: var(--ink-2);
  border: 2.5px solid transparent;
}
.nav-links a:hover { background: var(--card); border-color: var(--edge); color: var(--ink); }
.nav-cta { height: 40px; font-size: 14px; }

/* buttons and pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 14px;
  border: var(--line); box-shadow: var(--pop);
  background: var(--card); color: var(--ink);
  font-weight: 800; font-size: 15px; text-decoration: none;
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--pop-lg); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
.btn.go { background: var(--accent); color: #1a0f0a; }
.btn.big { height: 54px; padding: 0 26px; font-size: 16.5px; }
.pill {
  display: inline-flex; align-items: center; height: 26px; padding: 0 11px;
  border-radius: 99px; border: 2px solid var(--edge); background: var(--away);
  color: var(--chip); font-size: 12px; font-weight: 800; white-space: nowrap;
}
.pill.live { background: var(--live); } .pill.idle { background: var(--idle); }
.pill.watch { background: var(--watch); } .pill.tag { background: var(--accent); color: #1a0f0a; }
.kicker { display: block; font: 700 12.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.hint { font-size: 13.5px; color: var(--dim); font-weight: 600; }
.hint code { background: var(--paper-2); border: 2px solid var(--edge); border-radius: 7px; padding: 1px 6px; }
.lead { color: var(--ink-2); font-size: 17px; line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* cards */
.card { background: var(--card); border: var(--line); border-radius: 22px; box-shadow: var(--pop); }
.card.pad { padding: 22px 24px; }
.card.pad h3 { margin: 12px 0 8px; }
.card.pad p { color: var(--ink-2); font-size: 15px; }
.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: start; margin-top: 20px; }

/* screenshots of the office */
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border: var(--line); border-radius: 20px; box-shadow: var(--pop); background: var(--paper-2); }
.shot figcaption { margin-top: 9px; font-size: 13px; font-weight: 700; color: var(--dim); }
.shot.wide img { border-radius: 24px; }
.gallery { margin-top: 18px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 42px; align-items: center; padding-top: 58px; padding-bottom: 10px; }
.hero h1 { margin: 14px 0 16px; }
.hero .lead { font-size: 18px; }
.hero .actions { margin: 26px 0 12px; }
.hero-shot img { border-radius: 24px; box-shadow: var(--pop-lg); }

/* works with */
.works { padding-top: 54px; }
.works .kicker { text-align: center; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.logos li {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 15px; border-radius: 99px;
  background: var(--card); border: var(--line); box-shadow: var(--pop);
  font-size: 14px; font-weight: 700;
}
.logos img { width: 22px; height: 22px; }
@media (prefers-color-scheme: dark) { .logos img { filter: invert(1) hue-rotate(180deg); } }

/* section heads */
.head { max-width: 760px; margin-bottom: 26px; }
.head h2 { margin-bottom: 12px; }

/* the memory card */
.memo { padding: 20px 22px; }
.memo-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.memo-head b { font-size: 18px; font-family: var(--mono); }
.memo-body { font-size: 15.5px; color: var(--ink-2); padding-bottom: 14px; border-bottom: 2.5px dashed var(--edge); }
.memo-foot { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; font-size: 13px; color: var(--dim); font-weight: 600; }
.memo-foot b { color: var(--ink-2); }

/* the room's feed */
.radio { overflow: hidden; }
.radio-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: var(--line); background: var(--paper-2); font-size: 13px; font-weight: 800; color: var(--ink-2); }
.dots { display: flex; gap: 5px; }
.dots i { width: 10px; height: 10px; border-radius: 99px; border: 2px solid var(--edge); background: var(--wait); }
.dots i:nth-child(2) { background: var(--idle); } .dots i:nth-child(3) { background: var(--live); }
.feed { display: flex; flex-direction: column; gap: 9px; padding: 16px; min-height: 290px; }
.msg { align-self: flex-start; max-width: 86%; padding: 9px 13px; border-radius: 16px 16px 16px 6px; border: 2px solid var(--edge); background: var(--paper-2); font-size: 14.5px; font-weight: 600; }
.msg .who { display: block; font: 500 11.5px var(--mono); color: var(--accent); margin-bottom: 2px; }
.msg.is-me { align-self: flex-end; background: var(--watch); color: #1d1a24; border-radius: 16px 16px 6px 16px; }
.msg.is-me .who { color: #3b4a63; }
.msg.is-event { align-self: center; background: none; border: 0; color: var(--dim); font: 500 12px var(--mono); padding: 2px; }
.typing { display: flex; gap: 5px; padding: 11px 14px; border: 2px solid var(--edge); border-radius: 16px; background: var(--paper-2); align-self: flex-start; }
.typing i { width: 7px; height: 7px; border-radius: 99px; background: var(--dim); animation: blink 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; } .typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.beats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.beats li { padding: 16px 20px; background: var(--card); border: var(--line); border-radius: 18px; box-shadow: var(--pop); font-size: 15px; color: var(--ink-2); }
.beats b { color: var(--ink); }

/* the office call to action */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 28px; margin-top: 26px; background: var(--sky); }
.cta h3 { font-size: 23px; margin-bottom: 6px; }
.cta p { color: var(--ink-2); font-size: 15px; max-width: 46ch; }
@media (prefers-color-scheme: dark) { .cta p { color: #e6e0ef; } .cta h3 { color: #fff; } }

/* steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; }
.steps li { padding: 22px 24px; background: var(--card); border: var(--line); border-radius: 22px; box-shadow: var(--pop); }
.step-n { font: 500 12px var(--mono); letter-spacing: .14em; color: var(--accent); }
.steps h3 { margin: 8px 0 8px; }
.steps p { color: var(--ink-2); font-size: 15px; margin-bottom: 14px; }
.steps code { display: block; padding: 11px 13px; border-radius: 12px; background: var(--paper-2); border: 2px solid var(--edge); font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }

/* closing panel */
.close-panel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 30px 32px; margin-bottom: 10px; }
.close-panel h2 { margin: 6px 0 12px; }
.close-panel .lead { margin-bottom: 14px; }
.close-panel .shot img { border-radius: 16px; }

/* footer */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 70px; padding-top: 24px; padding-bottom: 50px; border-top: var(--line); font-size: 14px; }
.foot-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; }
.foot-brand img { border-radius: 8px; border: 2px solid var(--edge); }
.foot nav { display: flex; flex-wrap: wrap; gap: 14px; }
.foot nav a, .foot-made a { color: var(--ink-2); text-decoration: none; font-weight: 700; }
.foot nav a:hover, .foot-made a:hover { color: var(--accent); }
.foot-made { margin-left: auto; color: var(--dim); font-weight: 600; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(14px); }
.rv.in { opacity: 1; transform: none; transition: opacity .5s ease var(--d, 0ms), transform .5s ease var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) { .rv, .rv.in { opacity: 1; transform: none; transition: none; } }

/* narrower screens */
@media (max-width: 960px) {
  .hero, .split, .close-panel { grid-template-columns: minmax(0, 1fr); }
  .grid.three, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 640px) {
  section.wrap { padding-top: 58px; }
  .grid.three, .steps { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 30px; padding-top: 36px; }
  .nav { gap: 10px; padding: 10px 16px; }
  .nav-cta { font-size: 12.5px; padding: 0 12px; height: 38px; text-align: center; line-height: 1.15; }
  .notice { font-size: 13px; padding: 10px 16px; }
  .btn.big { height: 50px; font-size: 15px; width: 100%; }
  .cta { padding: 22px; }
  .close-panel { padding: 24px; }
  .foot-made { margin-left: 0; }
}

/* the office is on the reader's machine: the note when nothing answers there */
.office-off { display: block; flex-basis: 100%; margin-top: 2px; color: var(--ink-2); }
.office-off code { background: var(--paper-2); border: 2px solid var(--edge); border-radius: 7px; padding: 1px 6px; }
.nav .office-off { display: none; }
