:root {
  --paper: #f4eee2;
  --ink: #3b2f23;
  --ink-soft: #6b5a46;
  --line: #b9a280;
  --rust: #8c3b1f;
  --serif: "Cormorant Garamond", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

html { -webkit-text-size-adjust: 100%; }

/* no gray box over whatever a finger presses on an iPhone: each thing shows
   its own press, the way it shows a hover (script.js turns :active on there) */
html { -webkit-tap-highlight-color: transparent; }

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 252, 244, 0.9), transparent 70%),
    var(--paper);
  color: var(--ink);
  font-family: var(--serif);
}

/* the cipher: a faint field of letters, AREPO hidden in it both ways */
#cipher {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

.sketches {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.sketch {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  color: var(--line);
}

.sketch.main {
  left: 50%;
  top: 40px;
  width: min(1100px, 150vw);
  transform: translateX(-50%);
  opacity: 0.55;
}

.sketch.corner-tr {
  right: -60px;
  top: -40px;
  width: 320px;
  opacity: 0.5;
}

.sketch.corner-bl {
  left: -70px;
  bottom: -30px;
  width: 300px;
  opacity: 0.45;
}

.page {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 24px 40px;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

/* the page's title, not a link: there's nowhere else to go */
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.wordmark svg { width: 42px; height: 42px; flex: none; }

.contact {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 13px;
}

.contact a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.contact a:active { border-bottom-color: var(--ink); }

@media (hover: hover) {
  .contact a:hover { border-bottom-color: var(--ink); }
}

.copy {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
}

.copy:active { color: var(--ink); }

@media (hover: hover) {
  .copy:hover { color: var(--ink); }
}

.copy svg { width: 17px; height: 17px; }

.copy .done { display: none; color: var(--rust); }
.copy.copied .idle { display: none; }
.copy.copied .done { display: block; }

/* the check says it; the note is only for screen readers */
.copy-note {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.intro {
  text-align: center;
  margin: 84px auto 60px;
  max-width: 620px;
}

.intro p {
  margin: 0;
  font-size: 24px;
  font-style: italic;
  color: var(--ink-soft);
}

.figures {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 48px;
}

/* cards side by side share one height */
figure {
  display: flex;
  flex-direction: column;
  margin: 0;
  width: calc(50% - 24px);
  max-width: 460px;
}

figure .frame {
  flex: 1;
  display: flex;
}

figure .app { flex: 1; min-width: 0; }

/* a technical drawing's frame around each app */
.frame {
  position: relative;
  padding: 14px;
  border: 1px solid var(--line);
}

.frame::before,
.frame::after,
.frame > .tick-a,
.frame > .tick-b {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--ink);
  border-style: solid;
  border-width: 0;
}

.frame::before { left: -7px; top: -7px; border-left-width: 1px; border-top-width: 1px; }
.frame::after { right: -7px; bottom: -7px; border-right-width: 1px; border-bottom-width: 1px; }
.frame > .tick-a { right: -7px; top: -7px; border-right-width: 1px; border-top-width: 1px; }
.frame > .tick-b { left: -7px; bottom: -7px; border-left-width: 1px; border-bottom-width: 1px; }

figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--line);
}

.app {
  --pad: 26px;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: var(--pad);
  text-decoration: none;
  /* holding a card does nothing: no link preview or menu on an iPhone, no
     text selection, and no lifting it to drag it elsewhere (a linked card
     also says draggable="false", for Firefox); a tap still opens it */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.frame,
.frame::before,
.frame::after,
.frame > i { transition: border-color 0.2s, width 0.2s, height 0.2s; }

/* only a card that links somewhere inks its frame, hovered or pressed; one
   coming soon stays still. hover only where there's a pointer, so a tap on a
   phone doesn't leave the frame inked */
.frame:has(a.app:active) { border-color: var(--ink); }

.frame:has(a.app:active)::before,
.frame:has(a.app:active)::after,
.frame:has(a.app:active) > i { width: 28px; height: 28px; }

@media (hover: hover) {
  .frame:has(a.app:hover) { border-color: var(--ink); }

  .frame:has(a.app:hover)::before,
  .frame:has(a.app:hover)::after,
  .frame:has(a.app:hover) > i { width: 28px; height: 28px; }
}

a.app:active .go { opacity: 0.7; }

.app-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-head svg { flex: none; }

.app-name { margin: 0; line-height: 1; }

.app-tag { margin: 6px 0 0; }

.go {
  margin-top: auto;
  align-self: flex-start;
}

/* Tempo: its black, its pink, its chat */
.tempo {
  background: #000;
  border-radius: 26px;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}

.tempo .app-name { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.tempo .app-tag { color: #999; font-size: 15px; }

.chat { display: flex; flex-direction: column; gap: 6px; }

.bubble {
  max-width: 75%;
  padding: 9px 15px;
  border-radius: 20px;
  font-size: 15px;
}

.bubble.in { background: #2b2b2b; align-self: flex-start; }
.bubble.out { background: #ff3d99; color: #000; align-self: flex-end; }

.timer {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 6px 4px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #999;
}

.timer.mine { align-self: flex-end; }

.timer svg { width: 10px; height: 10px; overflow: visible; }

/* square-cornered, like the other apps' buttons, so it never reads as a
   message bubble */
.tempo .go {
  padding: 11px 20px;
  border-radius: 12px;
  background: #ff3d99;
  color: #000;
  font-size: 15px;
  font-weight: 500;
}

/* TimeMatch: white and blue, as its banner shows it */
.timematch {
  background: #fff;
  border-radius: 20px;
  color: #0b1b3f;
  font-family: Lato, sans-serif;
  box-shadow: 0 1px 3px rgba(59, 47, 35, 0.1);
}

.timematch .app-name {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.timematch .app-name b { color: #0a78f8; font-weight: 800; }
.timematch .app-tag { color: #4a5568; font-size: 15px; }

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
  font-size: 13px;
}

.days .dow { color: #8a94a6; font-weight: 700; font-size: 11px; }

.days .d {
  padding: 8px 0;
  border-radius: 9px;
  background: #f1f4f9;
  font-weight: 700;
}

.days .d.on { background: #0a78f8; color: #fff; }

/* side by side, the card is as tall as Tempo's: the week grows a little
   and sits midway between the title and the button */
@media (min-width: 761px) {
  .timematch .days { margin: auto 0; gap: 10px 8px; font-size: 15px; }
  .timematch .days .dow { font-size: 12px; }
  .timematch .days .d { padding: 12px 0; border-radius: 11px; }
  .timematch .go { margin-top: 0; }
}

.timematch .go {
  padding: 11px 20px;
  border-radius: 12px;
  background: #0a78f8;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

/* Cadence8: its mono type, and its dark stream of colored dots as its
   banner draws it, each row's last dot trailing off toward the dots still
   to come; the panel ends on whole dots (its width fitted below) */
.cadence8 {
  background: #fff;
  border-radius: 20px;
  color: #111113;
  font-family: var(--mono);
  box-shadow: 0 1px 3px rgba(59, 47, 35, 0.1);
}

.cadence8 .app-head { gap: 8px; }
.cadence8 .app-name { font-size: 30px; font-weight: 700; }
.cadence8 .app-tag { font-family: Lato, sans-serif; color: #4a5568; font-size: 15px; }

/* alone on its row, it gets more room around its dense panel */
@media (min-width: 761px) {
  .cadence8 { padding: 30px 34px; gap: 26px; }
  .cadence8 .app-head { gap: 12px; }
}

.stream {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 20px 18px;
  border-radius: 16px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.07) 0.8px, transparent 1.2px) 0 0 / 22px 6px,
    #111113;
}

.stream > div {
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 9px;
}

.stream i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex: none;
}

.stream i.dim { opacity: 0.2; }

.stream b {
  width: 44px;
  height: 2px;
  flex: none;
  margin: 0 -2px;
  background: linear-gradient(to right, var(--c), transparent);
  opacity: 0.55;
}

.cadence8 .go {
  padding: 9px 16px;
  border-radius: 8px;
  background: #111113;
  color: #edeef0;
  font-size: 14px;
}

footer {
  margin-top: 96px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 17px;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .page { padding: 20px 16px 32px; }
  .wordmark { font-size: 24px; }
  .intro { margin: 56px auto; }
  .intro p { font-size: 21px; }
  .figures { gap: 56px; }
  figure { width: 100%; }
  .app { min-height: 0; --pad: 22px; }
  /* "Tempo Messenger" stays on one line on a phone */
  .tempo .app-name { font-size: min(24px, 5.9vw); }
  .sketch.corner-tr { width: 220px; }
  .sketch.corner-bl { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .frame, .frame::before, .frame::after, .frame > i { transition: none; }
}
