/* Totums website. Light and dark follow the system setting. */

@font-face { font-family: "Totums Sans"; src: url(fonts/TotumsSans-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url(fonts/Geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(fonts/GeistMono.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #E2E1DB;          /* Stone */
  --paper: #F5F5F2;
  --ink: #111110;
  --grey: #55554F;
  --line: rgba(17, 17, 16, .14);
  --line-solid: #BDBCB5;
  --faint: #DAD9D2;
  --guide: #E8590C;       /* carnelian: guides and measures only */
  --heart: #E0313F;
  --ph-bg: rgba(232, 89, 12, .12);
  --desk: #D7D6CF;
  --hl: #B4D7FF;
  --done: #00A06A;
  --pad: 40px;
  --brand: "Totums Sans", Geist, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121211;        /* Night */
    --paper: #1A1A19;
    --ink: #EDEDE9;
    --grey: #A3A39D;
    --line: rgba(237, 237, 233, .12);
    --line-solid: #3A3A36;
    --faint: #2A2A27;
    --ph-bg: rgba(232, 89, 12, .2);
    --desk: #0A0A09;
    --hl: #3D5F86;
  }
}
@media (max-width: 640px) { :root { --pad: 20px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 Geist, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--pad); top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 2; }
.skip:focus { top: 12px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }

h1, h2, h3 { font-family: var(--brand); font-weight: 500; margin: 0; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 44px; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.02em; margin-bottom: 6px; }
p { margin: 0; }
kbd {
  font: 400 .8em/1 var(--mono); padding: .25em .45em; white-space: nowrap;
  border: 1px solid var(--line-solid); background: var(--paper);
}
.meta { font: 400 13px/1.5 var(--mono); color: var(--grey); }
.ph {
  font: 400 .78em/1.3 var(--mono); color: var(--ink); background: var(--ph-bg);
  border: 1px dashed var(--guide); padding: .08em .4em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.button {
  display: inline-block; cursor: pointer; text-decoration: none;
  font: 500 16px/1 Geist, system-ui, sans-serif;
  padding: 17px 26px; border: 1px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--bg);
}
.button:hover { background: transparent; color: var(--ink); }

/* ---- top bar ---- */
.bar { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; }
.bar .home { display: block; color: var(--ink); }
.logo { display: block; }
.bar-link { font-size: 15px; text-decoration: none; }
.bar-link:hover { text-decoration: underline; }

/* ---- opening ---- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 56px; align-items: end; padding-top: 64px; padding-bottom: 112px;
}
h1 {
  font-size: clamp(38px, 5vw, 62px); line-height: 1.04; letter-spacing: -.035em;
  text-wrap: balance;
}
.get { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero-art { display: block; width: 100%; height: auto; overflow: visible; }

/* his one moment: a hop when the page opens, then the odd blink */
.semi-hero { animation: hop .9s cubic-bezier(.3, .7, .4, 1) .7s 1 both; }
.semi-hero .face { transform-box: fill-box; transform-origin: center; animation: blink 6.5s 2.2s infinite; }
@keyframes hop {
  0% { transform: translateY(0); } 32% { transform: translateY(-16px); }
  62% { transform: translateY(0); } 76% { transform: translateY(-3px); } 100% { transform: translateY(0); }
}
@keyframes blink { 0%, 94% { transform: scaleY(1); } 96% { transform: scaleY(.1); } 98%, 100% { transform: scaleY(1); } }
.caret { animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ---- the letter ---- */
.letter-band { padding: 0 var(--pad) 140px; }
.letter {
  max-width: 38em; margin: 0 auto; background: var(--paper);
  border: 1px solid var(--line); padding: 72px 80px 60px;
  font-size: 18px; line-height: 1.72;
}
.letter p + p { margin-top: 1.05em; }
.letter p:first-of-type { font-family: var(--brand); font-weight: 500; font-size: 28px; line-height: 1.2; letter-spacing: -.025em; margin-bottom: 1.4em; }
.letter kbd { font-size: .78em; }
.sign {
  display: inline-flex; align-items: flex-end; gap: 18px; margin-top: 44px;
  padding: 0 4px 0 0; border-bottom: 1px solid var(--line-solid);
}
.sign-name { font-family: var(--brand); font-weight: 500; font-size: 26px; line-height: 1.5; letter-spacing: -.02em; }
.sign-semi svg { display: block; height: calc(var(--u) * .46px); width: auto; }

/* ---- sections that start on an edge ---- */
.band { padding-bottom: 136px; }
.edge { position: relative; padding-top: 80px; }
.edge::before { content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); border-top: 1px solid var(--line-solid); }
.perch { position: absolute; top: 1px; transform: translateY(-100%); line-height: 0; }
.perch svg { display: block; height: calc(var(--u) * .6px); width: auto; }
.p-right { right: calc(var(--pad) + 9%); }
.p-left { left: calc(var(--pad) + 6%); }
.p-mid { left: 52%; }

/* ---- what he can do: animated scenes ---- */
.does-intro { margin: -16px 0 56px; font-size: 19px; line-height: 1.6; max-width: 34em; }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 48px; }
.feat { margin: 0; }
.feat.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.feat.wide figcaption { margin-top: 0; }
.feat.wide > .scene { position: sticky; top: 24px; }
.feat.wide h4 { margin: 26px 0 8px; font: 400 13px/1.4 var(--mono); color: var(--grey); }
.cmds { margin: 0; }
.cmds > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.cmds dt { font: 400 14px/1.45 var(--mono); }
.cmds dd { margin: 0; color: var(--grey); }
.cmd-note { margin-top: 18px; font-size: 15px; }
.scene .t-cmd { font: 400 9.5px var(--mono); fill: var(--ink); }
.scene .t-cmdd { font: 400 9.5px Geist, sans-serif; fill: var(--grey); }
.scene { display: block; width: 100%; height: auto; border: 1px solid var(--line-solid); }
.feat figcaption { margin-top: 18px; }
.feat h3 { margin-bottom: 6px; }
.feat p { color: var(--grey); max-width: 30em; }
.scene .t-mono { font: 400 10px var(--mono); fill: var(--ink); }
.scene .t-chip { font: 400 8.5px var(--mono); fill: var(--bg); }
.scene .t-label { font: 400 8.5px var(--mono); letter-spacing: .06em; fill: var(--ink); }
.scene .t-meta { font: 400 7.5px var(--mono); letter-spacing: .05em; fill: var(--grey); }
.scene .t-bar { font: 300 13px Geist, sans-serif; fill: var(--ink); }
.scene .t-ph { font: 300 13px Geist, sans-serif; fill: var(--grey); }
.scene .t-menu { font: 400 10px Geist, sans-serif; fill: var(--ink); }
.scene .t-menu-inv { font: 400 10px Geist, sans-serif; fill: var(--bg); }
.scene .t-head { font: 500 12px Geist, sans-serif; fill: var(--ink); }
.scene .t-row { font: 500 11px var(--brand); letter-spacing: -.01em; fill: var(--ink); }
.scene .t-clock { font: 400 10px var(--mono); fill: var(--grey); }
.scene .t-timer { font: 500 12px var(--mono); }
.scene [class$="mo"] { transform: scaleY(0); transform-box: fill-box; transform-origin: center; }

.cast { margin-top: 96px; }
.cast-row { display: flex; flex-wrap: wrap; align-items: flex-end; }
.cast-one { margin: 0; display: flex; flex-direction: column; align-items: stretch; }
.cast-one svg { display: block; margin: 0 auto; width: auto; height: calc(var(--u) * 1px); }
.cast-one figcaption {
  border-top: 1px solid var(--line-solid); margin-top: 0; padding: 12px 28px 0;
  font-size: 15px; text-align: center;
}
.cast-line { margin-top: 28px; font-family: var(--brand); font-weight: 500; font-size: 22px; letter-spacing: -.02em; }

/* ---- getting started ---- */
.two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li {
  counter-increment: s; display: grid; grid-template-columns: 40px minmax(0, 1fr);
  padding: 15px 0; border-top: 1px solid var(--line);
}
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before { content: counter(s); font: 400 13px/1.95 var(--mono); color: var(--grey); }
.sheet h3 { margin-bottom: 8px; }
.sheet-line { color: var(--grey); font-size: 15px; max-width: 26em; }
.sheet-pic { display: block; margin-top: 22px; border: 1px solid var(--line-solid); background: #fff; }
.sheet-pic img { display: block; width: 100%; height: auto; }
.sheet-dl { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }

/* ---- private ---- */
.private { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.private li {
  font-family: var(--brand); font-weight: 500; font-size: 22px; line-height: 1.3; letter-spacing: -.015em;
  padding-top: 20px; border-top: 1px solid var(--line);
}

/* ---- be a tester ---- */
.lead { font-size: 19px; line-height: 1.6; max-width: 28em; }
.small { margin-top: 20px; font-size: 15px; line-height: 1.75; color: var(--grey); max-width: 32em; }
.form { display: flex; flex-direction: column; gap: 20px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.form input, .form textarea {
  font: inherit; font-size: 17px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-solid); border-radius: 0; padding: 13px 14px; resize: vertical;
}
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.form .button { align-self: flex-start; margin-top: 4px; }
.form .small { margin-top: 0; }

/* ---- footer ---- */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 40px; padding-bottom: 48px; position: relative; }
.foot::before { content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); border-top: 1px solid var(--line-solid); }
.foot .logo { margin-right: auto; }
.foot p { font-size: 14px; color: var(--grey); }

/* ---- small screens ---- */
@media (max-width: 860px) {
  .feats { grid-template-columns: 1fr; gap: 56px; }
  .feat.wide { grid-template-columns: 1fr; gap: 0; }
  .feat.wide figcaption { margin-top: 18px; }
  .feat.wide > .scene { position: static; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 32px; padding-bottom: 88px; }
  .hero-pic { order: -1; max-width: 520px; }
  .two { grid-template-columns: 1fr; gap: 56px; }
  .private { grid-template-columns: 1fr; gap: 0; }
  .private li { padding: 18px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .letter-band { padding-bottom: 104px; }
  .letter { padding: 48px 26px 40px; font-size: 17px; }
  .letter p:first-of-type { font-size: 24px; }
  .band { padding-bottom: 104px; }
  .edge { padding-top: 64px; }
  .cast-row { flex-wrap: nowrap; }
  .cast-one { flex: 1 1 0; min-width: 0; }
  .cast-one figcaption { padding: 10px 0 0; font-size: 13px; }
  .cast-one figcaption span { font-size: 10.5px; }
  .cast-line { font-size: 20px; }
  .perch svg { height: calc(var(--u) * .5px); }
  .cast-one svg { height: calc(var(--u) * .56px); }
}

@media (prefers-reduced-motion: reduce) {
  .semi-hero, .semi-hero .face, .caret { animation: none; }
  .scene, .scene * { animation-play-state: paused !important; animation-delay: var(--still) !important; }
  .cast-one path { animation-play-state: paused !important; }
}

/* The sign-up form's hidden field: people never see it; bots fill it in. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
