/* The Everything Since site theme, shared by the homepage and every public
   page: the app's palette, the Mac's New York serif for headings (Literata
   elsewhere) over the system sans, the floating header, buttons, section
   headings, glyphs, citation markers and the footer. */
.es-theme {
  --paper: #eef3f3;
  --paper-2: #dfe9e8;
  --card: #fafdfd;
  --ink: #102322;
  --ink-2: #2c3d3b;
  --muted: #627472;
  --line: rgba(16, 35, 34, .11);
  --line-2: rgba(16, 35, 34, .18);
  --teal: #087b6c;
  --teal-soft: #d6ece8;
  --teal-bright: #3cc7ab;
  --night: #0c1b1a;
  --night-2: #132827;
  --night-line: rgba(236, 244, 241, .12);
  --night-text: #e9f0ee;
  --night-muted: #97a9a6;
  --amber: #d88a2b;
  --violet: #7d68d8;
  --rose: #d45d79;
  --serif: ui-serif, "Literata", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", system-ui, sans-serif;
  --width: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@font-face { font-family: "Literata"; src: url("/fonts/literata.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
.es-theme :where(h1, h2, h3) { font-family: var(--sans); letter-spacing: normal; margin: 0; }
.es-theme :where(p) { margin: 0; }
.es-theme a:focus-visible, .es-theme button:focus-visible, .es-theme summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.h-width { width: min(var(--width), calc(100% - 48px)); margin-inline: auto; }
.h-header { position: sticky; top: 12px; z-index: 30; padding: 0 16px; }
.h-header-bar { width: min(var(--width), 100%); margin: 0 auto; height: 56px; padding: 0 10px 0 18px; display: flex; align-items: center; gap: 28px; border: 1px solid var(--line); border-radius: 14px; background: rgba(250, 253, 253, .78); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); }
.h-brand { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 650; letter-spacing: -.01em; color: var(--ink); }
.h-brand img { display: block; }
.es-theme .h-nav { display: flex; gap: 4px; font-size: 14px; }
.h-nav a { padding: 7px 12px; border-radius: 9px; color: var(--ink-2); transition: background .2s, color .2s; }
.h-nav a:hover { background: rgba(16, 35, 34, .06); color: var(--ink); }
.es-theme .header-actions { margin-left: auto; gap: 6px; }
.h-link { border: 0; background: none; padding: 8px 12px; border-radius: 9px; font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.h-link:hover { background: rgba(16, 35, 34, .06); color: var(--ink); }
.es-theme .device-strip { top: 80px; background: var(--ink); }
.h-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 600; letter-spacing: -.01em; transition: background .2s, transform .2s var(--ease); }
.h-button:hover { background: #193532; }
.h-button:active { transform: scale(.985); }
.h-button-small { min-height: 36px; padding: 0 16px; border-radius: 9px; font-size: 14px; }
.h-ghost { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 18px 0 8px; font-size: 16px; font-weight: 550; color: var(--ink); }
.h-ghost:hover .h-play { transform: scale(1.06); }
.h-play { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .25s var(--ease); }
.h-play::before { content: ""; width: 12px; height: 12px; margin-left: 2px; background: var(--ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 1.8v8.4a.6.6 0 0 0 .9.5l6.8-4.2a.6.6 0 0 0 0-1L3.9 1.3a.6.6 0 0 0-.9.5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 1.8v8.4a.6.6 0 0 0 .9.5l6.8-4.2a.6.6 0 0 0 0-1L3.9 1.3a.6.6 0 0 0-.9.5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.h-fineprint { margin-top: 16px; font-size: 13px; color: var(--muted); }
.ico { display: inline-block; flex: none; width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat; }
.ico-journal { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4h11a2 2 0 0 1 2 2v14H8a2 2 0 0 1-2-2zM6 18a2 2 0 0 1 2-2h11M10 8h5'/%3E%3C/svg%3E"); }
.ico-note { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3.5h6.5l4.5 4.5v11.5a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-15a1 1 0 0 1 1-1zM13.5 3.5V8H18M9 12.5h6M9 16h4'/%3E%3C/svg%3E"); }
.ico-file { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19.5 11.5 12 19a4.6 4.6 0 0 1-6.5-6.5l8-8a3 3 0 0 1 4.3 4.3l-7.9 7.9a1.5 1.5 0 0 1-2.2-2.2L15 7.2'/%3E%3C/svg%3E"); }
.ico-folder { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 7.5a2 2 0 0 1 2-2h3.8l2 2h7.2a2 2 0 0 1 2 2v7.5a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2z'/%3E%3C/svg%3E"); }
.cite { display: inline-grid; place-items: center; vertical-align: .35em; min-width: 1.45em; height: 1.45em; margin-left: .2em; padding: 0 .35em; border: 0; border-radius: 999px; background: var(--teal-soft); color: var(--teal); font: 650 .66em/1 var(--sans); cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ease); }
.cite:hover, .cite.is-lit, .cite[aria-pressed="true"] { background: var(--teal); color: #fff; }
.cite:active { transform: scale(.94); }
.h-section { padding: 140px 0; }
.h-heading { max-width: 640px; }
.h-heading-center { margin: 0 auto; text-align: center; }
.es-theme .h-heading h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5vw, 66px); line-height: 1.04; letter-spacing: -.022em; }
.h-heading > p { margin-top: 22px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.h-heading a { color: var(--teal); font-weight: 600; }
.es-theme .h-footer { display: block; min-height: 0; padding: 70px 0 34px; border-top: 0; background: var(--paper); }
.h-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.h-footer-grid > div p { margin-top: 12px; font-size: 14px; color: var(--muted); }
.es-theme .h-footer nav { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.h-footer nav span { font-size: 13px; font-weight: 650; color: var(--ink); margin-bottom: 4px; }
.h-footer nav a { color: var(--muted); }
.h-footer nav a:hover { color: var(--ink); }
.h-footer-bottom { display: flex; justify-content: space-between; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.es-theme .button-ember { background: var(--ink); }
.es-theme dialog { border-radius: 18px; }
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(18px); }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0s); }
.h-header-bar { transition: height .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease); }
.h-header.is-scrolled .h-header-bar { height: 50px; background: rgba(250, 253, 253, .9); box-shadow: 0 12px 30px rgba(16, 35, 34, .08); }
.h-button { position: relative; overflow: hidden; }
.h-button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .16) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.h-button:hover::after { transform: translateX(120%); }
.es-theme ::selection { background: rgba(60, 199, 171, .3); }
/* Photographed scenes with the real app showing through their keyed screens.
   The app image sits behind the photo, so bezels stay on top. Each scene: the
   photo's size and its screen, in the photo's own pixels (a hair larger than
   the keyed hole), and its edge tone. */
.es-scene-desk { --iw: 1672; --ih: 941; --sx: 671; --sy: 487; --sw: 329; --sh: 203; --tone: #bfb8ae; }
.es-scene-dusk { --iw: 1672; --ih: 941; --sx: 566; --sy: 248; --sw: 532; --sh: 317; --tone: #0c1718; }
.es-scene-plane { --iw: 1536; --ih: 1024; --sx: 527; --sy: 244; --sw: 601; --sh: 361; --tone: #8f8983; }
.es-world { position: absolute; }
.es-world-screen { position: absolute; left: calc(var(--sx) / var(--iw) * 100%); top: calc(var(--sy) / var(--ih) * 100%); width: calc(var(--sw) / var(--iw) * 100%); height: calc(var(--sh) / var(--ih) * 100%); overflow: hidden; background: #fafdfd; }
.es-world-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.es-world-photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; user-select: none; }
/* A framed shot showing the crop (--x0, --y0, --cw, --ch) of the photo; the whole photo by default. */
.es-frame { --x0: 0; --y0: 0; --cw: var(--iw); --ch: var(--ih); position: relative; overflow: hidden; aspect-ratio: var(--cw) / var(--ch); background: var(--tone); }
.es-frame .es-world { left: calc(var(--x0) / var(--cw) * -100%); top: calc(var(--y0) / var(--ch) * -100%); width: calc(var(--iw) / var(--cw) * 100%); height: calc(var(--ih) / var(--ch) * 100%); }
.es-crop-plane { --x0: 0; --y0: 30; --cw: 1536; --ch: 900; }
/* Window light on plaster, by day and at dusk: the photo sits at the top and
   fades into its own edge colour, so a section of any height has no seam. */
.es-day, .es-dusk { --wall-w: max(1672px, 100%); }
@media (max-width: 1050px) {
  .es-theme .h-nav { display: none; }
  .h-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .h-width { width: calc(100% - 32px); }
  .h-header { top: 8px; padding: 0 8px; }
  .h-brand span { display: none; }
  .h-section { padding: 90px 0; }
  .h-footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .es-theme *, .es-theme *::before, .es-theme *::after { transition: none !important; animation: none !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}
