/* CuffTime site. No external requests, no scripts, no cookies: fonts are called by name
   from the reader's own device, pictures are local. */
:root {
  --paper: #f5f0e4;
  --paper-deep: #ece5d3;
  --card: #fffdf7;
  --ink: #1c261f;
  --quiet: #536056;
  --line: #ddd5c0;
  --sage: #2f6650;
  --sage-wash: #e1e8da;
  --forest: #26372c;
  --glow: #f4da9e;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wide: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121713;
    --paper-deep: #19201b;
    --card: #1b231d;
    --ink: #f1eee3;
    --quiet: #aab4a9;
    --line: #2c362f;
    --sage: #93d3b4;
    --sage-wash: #1f2c24;
    --forest: #1b261f;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 19px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--sage); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }

/* ---------- Header and footer, shared by every page ---------- */
.top {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 22px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 5;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font: 600 22px/1 var(--serif);
  letter-spacing: -0.01em;
}
/* The mark is the monitor itself, cut out of the app icon: no tile, so it sits on any background. */
.brand img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(50, 40, 15, 0.22)); }
.top nav { display: flex; gap: 26px; font-size: 17px; font-weight: 500; }
.top nav a { color: var(--ink); text-decoration: none; opacity: 0.8; }
.top nav a:hover { opacity: 1; text-decoration: underline; }

footer {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 26px 28px 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  color: var(--quiet);
  font-size: 17px;
}
footer nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
footer p { margin: 0; }

/* ---------- Phone ---------- */
.phone {
  --w: 300px;
  width: var(--w);
  aspect-ratio: 660 / 1434;
  padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.17);
  background: #101311;
  box-shadow:
    0 0 0 1.5px #3a403b inset,
    0 calc(var(--w) * 0.1) calc(var(--w) * 0.22) rgba(28, 30, 20, 0.34),
    0 calc(var(--w) * 0.02) calc(var(--w) * 0.05) rgba(28, 30, 20, 0.3);
  flex: none;
}
.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--w) * 0.14);
}

/* ---------- Home: hero ---------- */
.hero {
  height: calc(100svh - 62px);
  min-height: 640px;
  max-height: 940px;
  display: flex;
  flex-direction: column;
  padding: 0 20px 20px;
}
.hero-copy { text-align: center; padding: clamp(18px, 4.5vh, 48px) 0 clamp(22px, 4vh, 40px); }
.eyebrow {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
}
.hero h1 {
  margin: 0;
  font-size: clamp(40px, 4.9vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.028em;
}
.hero h1 em { font-style: italic; color: var(--sage); }
.hero .lede {
  margin: 16px auto 0;
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.45;
  color: var(--quiet);
}
.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 16px;
}
.soon::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--glow);
}
/* The table. The phone may rise above its top edge but is cut off by its bottom one. */
.stage {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  clip-path: inset(-400px 0 0 0 round 0 0 40px 40px);
}
.stage > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% 45%;
  border-radius: 40px;
  display: block;
}
.hero-phone {
  --w: clamp(230px, 21vw, 320px);
  position: absolute;
  right: 9%;
  top: -64px;
  transform: rotate(3deg);
}
.arc {
  position: absolute;
  left: 40%;
  top: 22%;
  width: 28%;
  height: 34%;
  overflow: visible;
  pointer-events: none;
}
.arc path {
  fill: none;
  stroke: #fffaf0;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1 13;
  vector-effect: non-scaling-stroke;
  animation: travel 1.4s linear infinite;
}
.arc .tip { stroke-dasharray: none; animation: none; }
@keyframes travel { to { stroke-dashoffset: -14; } }

/* ---------- Home: three steps, each led by one large verb ---------- */
.steps {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 88px 28px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}
.steps li { margin: 0; padding: 4px 40px; border-left: 1px solid var(--line); }
.steps li:first-child { padding-left: 0; border-left: 0; }
.steps b {
  display: block;
  font: italic 600 clamp(52px, 6vw, 84px)/1 var(--serif);
  letter-spacing: -0.02em;
  color: var(--sage);
}
.steps span { display: block; margin-top: 18px; font-size: 20px; line-height: 1.5; color: var(--quiet); max-width: 17em; }
.steps span i { font-style: normal; font-weight: 600; color: var(--ink); }

/* ---------- Home: panels ---------- */
.panels {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 64px 28px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.panel {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  padding: 52px 52px 0;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  background: var(--card);
  color: #1c261f;
}
.panel h2 { margin: 0; font-size: clamp(32px, 3.3vw, 46px); line-height: 1.08; }
.panel p { margin: 14px 0 0; font-size: 20px; line-height: 1.5; max-width: 30em; opacity: 0.82; }
.panel .phone { margin: 44px auto -34%; --w: min(300px, 74%); }

.panel.wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  min-height: 600px;
  padding: 0 72px;
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(244, 218, 158, 0.5), transparent 55%),
    linear-gradient(160deg, #7b8c68, #48583f);
  color: #fdf8ea;
}
.panel.wide .words { flex: 1; padding: 60px 0; }
.panel.wide h2 { font-size: clamp(36px, 4.4vw, 60px); }
.panel.wide .phone { --w: 320px; margin: 70px 30px -150px 0; transform: rotate(-3deg); }
.scale { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.scale li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 8px 16px 8px 13px;
  border-radius: 999px;
  background: #fdf8ea;
  color: #1c261f;
  font-size: 17px;
  font-weight: 600;
}
.scale i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); }

.panel.paper { background: #fffdf7; }
.panel.sun { background: linear-gradient(170deg, #f8e3ad, #efc98a); }
.panel.night {
  background: radial-gradient(100% 90% at 80% 0%, #3a4636, #161a16 70%);
  color: #f4f1e6;
}
.panel.wash { background: #dfe7d8; }

/* The report as the sheet of paper it becomes. */
.panel.paper { background: linear-gradient(170deg, #e9dcc0, #dccba6); }
.sheet {
  display: block;
  width: min(430px, 88%);
  height: auto;
  margin: 44px auto -38%;
  border-radius: 6px;
  transform: rotate(-2.5deg);
  box-shadow: 0 2px 4px rgba(60, 40, 10, 0.18), 0 24px 50px rgba(60, 40, 10, 0.28);
}
/* The reminder, as it arrives. */
.nudge { position: relative; margin: 44px auto -34%; width: min(300px, 74%); container-type: inline-size; }
/* The phone's corners are sized from --w, so it must be a length, not a percentage. */
.nudge .phone { --w: 100cqw; margin: 0; }
.banner {
  position: absolute;
  z-index: 2;
  top: 13%;
  left: -17%;
  right: -17%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px 13px 13px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  color: #1c261f;
  font: 15px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-shadow: 0 2px 5px rgba(80, 55, 10, 0.16), 0 18px 40px rgba(80, 55, 10, 0.3);
}
.banner img { width: 42px; height: 42px; border-radius: 10px; flex: none; }
.banner div { flex: 1; min-width: 0; }
.banner b { display: block; font-size: 16px; }
.banner time { align-self: flex-start; font-size: 13px; opacity: 0.55; white-space: nowrap; }

/* ---------- Home: closing ---------- */
.closing {
  max-width: var(--wide);
  margin: 24px auto 0;
  padding: 0 28px;
}
.closing > div {
  border-radius: 40px;
  padding: 72px 40px;
  text-align: center;
  background: var(--forest);
  color: #f4f1e6;
}
.closing img { width: 168px; height: 168px; object-fit: contain; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.4)); }
.closing h2 { margin: 26px 0 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.1; }
.closing .soon { background: #f4f1e6; color: #1c261f; }
.closing .soon::before { background: #2f6650; }
.closing p { max-width: 620px; margin: 30px auto 0; font-size: 17px; opacity: 0.75; }

/* ---------- Text pages (privacy, support) ---------- */
main.text {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 28px;
}
main.text h1 {
  font-size: clamp(40px, 7vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 64px 0 12px;
}
main.text h2 { font-size: 27px; line-height: 1.25; margin: 48px 0 10px; }
main.text p, main.text ul { margin: 0 0 16px; }
main.text ul { padding-left: 22px; }
main.text li { margin-bottom: 8px; }
main.text .lede { font-size: 22px; color: var(--quiet); }
.dated { color: var(--quiet); font-size: 17px; }
.summary {
  background: var(--sage-wash);
  border-radius: 28px;
  padding: 26px 30px;
  margin: 30px 0 8px;
  font-size: 20px;
}
.summary p:last-child { margin-bottom: 0; }
.mail { display: inline-block; font: 600 30px/1.2 var(--serif); overflow-wrap: anywhere; }
.text-page footer { margin-top: 56px; border-top: 1px solid var(--line); max-width: 720px; }

/* ---------- Motion: nothing depends on it ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .hero-phone { animation: arrive 1.1s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .stage > img { animation: rise 1s 0.05s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes rise { from { transform: translateY(16px); } }
  @keyframes arrive { from { transform: translateY(90px) rotate(9deg); } }
  @supports (animation-timeline: view()) {
    .panel .phone, .panel .sheet, .steps li {
      animation: lift linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
    @keyframes lift { from { translate: 0 60px; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  .arc path { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 860px) {
  .top { padding: 16px 20px 0; }
  .top nav { gap: 18px; font-size: 16px; }
  .hero { height: auto; min-height: 0; max-height: none; padding: 0 14px; }
  .hero-copy { padding: 26px 6px 24px; }
  .hero h1 { font-size: clamp(36px, 10.4vw, 54px); }
  .stage { flex: none; height: 400px; clip-path: inset(-400px 0 0 0 round 0 0 30px 30px); }
  .stage > img { border-radius: 30px; object-position: -44px 50%; }
  .hero-phone { --w: 38vw; right: 10px; top: 40px; transform: rotate(2deg); }
  .arc { display: none; }
  .steps { grid-template-columns: 1fr; padding: 44px 20px 0; }
  .steps li, .steps li:first-child { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .steps li:first-child { border-top: 0; }
  .steps b { font-size: 54px; }
  .steps span { margin-top: 10px; font-size: 19px; max-width: none; }
  .panels { grid-template-columns: 1fr; padding: 44px 16px 0; gap: 16px; }
  .panel, .panel.wide { padding: 36px 28px 0; min-height: 0; border-radius: 30px; flex-direction: column; align-items: stretch; gap: 0; }
  .panel.wide .words { padding: 0; }
  .panel p { font-size: 19px; }
  .panel .phone, .panel.wide .phone { --w: min(270px, 76%); margin: 36px auto -34%; transform: none; }
  .nudge { margin: 36px auto -34%; width: min(270px, 76%); }
  .nudge .phone { --w: 100cqw; margin: 0; }
  .banner { left: -13%; right: -13%; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 20px; font-size: 13px; }
  .banner b { font-size: 14px; }
  .banner img { width: 36px; height: 36px; border-radius: 8px; }
  .banner time { display: none; }
  .sheet { margin: 36px auto -38%; }
  .closing { padding: 0 16px; margin-top: 16px; }
  .closing > div { border-radius: 30px; padding: 56px 24px; }
  footer { padding: 24px 20px 40px; }
  main.text { padding: 0 20px; }
  main.text h1 { margin-top: 44px; }
  .mail { font-size: 25px; }
}

/* ---------- Wide screens: the table is the whole first screen ---------- */
@media (min-width: 1100px) {
  .home .top a { color: #1c261f; }
  .hero h1 em { color: #2f6650; }
  .hero {
    position: relative;
    display: block;
    height: 100svh;
    min-height: 660px;
    max-height: 1040px;
    margin-top: -62px;
    padding: 0;
    overflow: hidden;
    color: #1c261f;
  }
  /* A sheet of paper slides up over the bottom of the table. */
  .hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 40px;
    border-radius: 40px 40px 0 0;
    background: var(--paper);
  }
  .stage { position: absolute; inset: 0; max-width: none; clip-path: none; }
  .stage > img { border-radius: 0; object-position: 0% 0%; }
  /* Morning haze, so the words at the top sit on calm light. */
  .stage::before {
    content: "";
    position: absolute;
    inset: 0 0 62% 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(250, 244, 230, 0.8), rgba(250, 244, 230, 0));
    pointer-events: none;
  }
  .hero-copy { position: relative; z-index: 3; padding: clamp(84px, 11vh, 110px) 24px 0; }
  .hero h1 { font-size: clamp(42px, 4.65vw, 76px); }
  .hero .lede {
    width: min(25vw, 400px);
    margin: clamp(46px, 7vh, 70px) auto 0;
    translate: 3vw 0;
    color: #2b352d;
    font-weight: 500;
    font-size: clamp(18px, 1.45vw, 22px);
  }
  .hero .soon { translate: 3vw 0; background: #1c261f; color: #f5f0e4; }
  .hero-phone { --w: clamp(236px, 22vw, 340px); top: clamp(190px, 25vh, 250px); right: 7.5%; z-index: 2; }
  .arc { left: 39%; top: 60%; width: 27%; height: 20%; z-index: 2; }
}
