/* ayeshagagan.com. Colours come from the X banner: aubergine dark, orange light, cream letters. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  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/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #120c13;
  --ink: #fbf3e7;
  --ink-2: #d9cfc6;
  --ink-3: #ad9fa3;
  --ink-4: #93868c;
  --line: #271d2a;
  --line-2: #3a2c3d;
  --amber: #ffc27a;
  --orange: #ff9a4d;
  --green: #7ee2a0;
  --paper: #f8f2e6;
  --paper-ink: #231c1c;
  --paper-dim: #6d625c;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --bar: 30px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* The light from the banner, falling on a dark wall. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(70vmax 55vmax at 100% 0%, rgba(255, 140, 60, 0.15), transparent 70%),
    radial-gradient(60vmax 50vmax at 0% 100%, rgba(120, 60, 170, 0.14), transparent 70%);
}

::selection { background: var(--amber); color: #1c1216; }

a { color: inherit; text-decoration: none; }
p { margin: 0; }
img { display: block; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: fixed;
  top: 6px;
  left: 50%;
  z-index: 60;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  transform: translate(-50%, -200%);
}
.skip:focus { transform: translate(-50%, 0); }

.nowrap { white-space: nowrap; }

.glow {
  text-shadow:
    0 0 1px rgba(255, 226, 190, 0.35),
    0 0 26px rgba(255, 170, 90, 0.34),
    0 0 70px rgba(255, 140, 60, 0.2);
}

/* Menu bar */

.menubar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--bar);
  padding: 0 14px;
  background: rgba(30, 20, 32, 0.55);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px;
  line-height: 1;
}

.menubar-side {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.menubar-name,
.menubar-link {
  padding: 5px 9px;
  border-radius: 5px;
  color: var(--ink);
  transition: background-color 0.12s;
}
.menubar-name { font-weight: 700; }
.menubar-link { color: rgba(251, 243, 231, 0.86); }
.menubar-name:hover,
.menubar-link:hover,
.battery:hover { background: rgba(255, 255, 255, 0.13); }

.battery {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border-radius: 5px;
  transition: background-color 0.12s;
}
.battery-text {
  min-width: 2.2em;
  text-align: right;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: rgba(251, 243, 231, 0.86);
}
.battery-shell {
  position: relative;
  display: block;
  width: 25px;
  height: 12px;
  padding: 1.5px;
  border: 1px solid rgba(251, 243, 231, 0.55);
  border-radius: 3.5px;
}
.battery-shell::after {
  content: "";
  position: absolute;
  top: 3px;
  right: -3.5px;
  width: 2px;
  height: 4px;
  border-radius: 0 1.5px 1.5px 0;
  background: rgba(251, 243, 231, 0.55);
}
.battery-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 1.5px;
  background: var(--ink);
}
.battery.limit .battery-fill { background: var(--green); }

.clock {
  padding-left: 7px;
  font-size: 13px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: rgba(251, 243, 231, 0.86);
}

/* Page */

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: calc(var(--bar) + 44px) 24px 0;
}

.hero > * + * { margin-top: 28px; }

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  object-fit: cover;
  box-shadow: 0 0 44px rgba(255, 150, 70, 0.2);
  transition: transform 0.3s;
  -webkit-user-select: none;
  user-select: none;
}
.avatar:hover { transform: scale(1.05) rotate(-3deg); }

h1, h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--ink);
  letter-spacing: -0.015em;
}

h1 {
  font-size: 68px;
  font-optical-sizing: auto;
  line-height: 1.05;
}

h2 {
  font-size: 40px;
  line-height: 1.12;
}
h2 em {
  font-style: italic;
  color: var(--ink-3);
}

.wave {
  display: inline-block;
  font-size: 0.86em;
  transform-origin: 70% 70%;
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}
h1:hover .wave { animation: wave 1s ease-in-out; }

@keyframes wave {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(16deg); }
  40% { transform: rotate(-8deg); }
  60% { transform: rotate(12deg); }
  80% { transform: rotate(-4deg); }
}

.intro { color: var(--ink-2); }
.intro p + p { margin-top: 16px; }
.intro em {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--ink);
}
.intro .dim { color: var(--ink-3); }
.intro a,
.fine a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink-4);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.15s;
}
.intro a:hover { text-decoration-color: var(--amber); }

.counter {
  font-family: var(--mono);
  font-size: 0.9em;
  font-variant-numeric: tabular-nums;
  color: var(--amber);
}

.currently {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 18px;
}
.currently-label { color: var(--ink-4); }
.currently-text {
  color: var(--ink);
  transition: opacity 0.25s, transform 0.25s;
}
.currently-text.swap {
  opacity: 0;
  transform: translateY(6px);
}

.dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
  75%, 100% { transform: scale(2.4); opacity: 0; }
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
  color: var(--ink-4);
}
.stats .bright { color: var(--ink-2); }
.stats .where { margin-left: auto; }

.section { padding-top: 88px; }

.eyebrow {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.eyebrow-rule {
  margin-bottom: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
}

.sub {
  margin-top: 12px;
  font-size: 16px;
  color: var(--ink-3);
}

/* Apps */

.apps { margin-top: 28px; }

.app {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s;
}
a.app:hover { border-color: var(--line-2); }

.app-icon {
  flex: none;
  width: 52px;
  height: 52px;
  transition: transform 0.3s;
}
a.app:hover .app-icon { transform: scale(1.12) rotate(-3deg); }

.app-body {
  display: block;
  flex: 1;
  min-width: 0;
}
.app-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.app-blurb {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-3);
}

.arrow {
  display: inline-block;
  color: var(--amber);
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: opacity 0.18s, transform 0.18s;
}
a:hover > .arrow,
a:hover > * > .arrow,
a:hover > * > * > .arrow,
a:focus-visible .arrow {
  opacity: 1;
  transform: none;
}

.tag {
  flex: none;
  padding: 4px 8px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-2);
  transition: color 0.18s, border-color 0.18s;
}
a.app:hover .tag { color: var(--ink); border-color: var(--ink-4); }

.tag-plain {
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-4);
}

.app-next { border-bottom: 0; }
.app-next .app-name { color: var(--ink-3); }
.app-next .app-blurb { color: var(--ink-4); }
.app-icon-next {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  font-size: 20px;
  color: var(--ink-4);
}

/* Log */

.log {
  position: relative;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.log::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 3px;
  width: 1px;
  background: var(--line-2);
}
.log li {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  padding: 8px 0 8px 24px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}
.log li::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 1.5px var(--ink-4);
}
.log li:first-child::before {
  background: var(--amber);
  box-shadow: 0 0 0 1.5px var(--amber), 0 0 12px var(--orange);
}
.log time {
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-4);
}
.log a { color: var(--ink); transition: color 0.15s; }
.log a:hover { color: var(--amber); }

.more {
  display: inline-block;
  margin: 20px 0 0 24px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--ink-4);
  transition: color 0.15s, border-color 0.15s;
}
.more:hover { color: var(--amber); border-color: var(--amber); }

/* Receipt printer */

.printer {
  margin: 36px auto 0;
  max-width: 372px;
}

.printer-body {
  position: relative;
  z-index: 1;
  height: 46px;
  border-radius: 12px 12px 8px 8px;
  border: 1px solid var(--line-2);
  background: linear-gradient(#32263a, #1e1522);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}
.printer-light {
  position: absolute;
  top: 12px;
  left: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.printer-slot {
  position: absolute;
  right: 20px;
  bottom: 9px;
  left: 20px;
  height: 5px;
  border-radius: 3px;
  background: #0a060b;
  box-shadow: inset 0 1px 2px #000;
}

.feed {
  overflow: hidden;
  margin-top: -11px;
  padding: 0 28px 34px;
}

/* The mask would clip a box-shadow, so the shadow lives on this wrapper. */
.paper-shadow {
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45));
}

.paper {
  padding: 30px 22px 28px;
  background: var(--paper);
  color: var(--paper-ink);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 7px repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 7px repeat-x;
}

.js .printer .paper-shadow { transform: translateY(-101%); }
.js .printer.printing .paper-shadow {
  transform: none;
  transition: transform 2.2s steps(26, end);
}
.js .printer.printed .paper-shadow { transform: none; }

.paper-head {
  display: grid;
  gap: 1px;
  margin-bottom: 18px;
  text-align: center;
  color: var(--paper-dim);
}
.paper-head strong {
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.1;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--paper-ink);
}

.paper-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--paper-dim);
}

.paper hr {
  height: 0;
  margin: 12px 0;
  border: 0;
  border-top: 1px dashed #b8ac9f;
}

.line {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.line a {
  text-decoration: underline;
  text-decoration-color: #b8ac9f;
  text-underline-offset: 3px;
}
.line a:hover { text-decoration-color: var(--paper-ink); }
.line i {
  flex: 1;
  min-width: 12px;
  border-bottom: 1px dotted #a99c8f;
  transform: translateY(-3px);
}
.line-total {
  font-size: 17px;
  font-weight: 700;
}
.line-total i { border: 0; }

.stamp {
  width: max-content;
  margin: 18px auto 16px;
  padding: 4px 12px;
  border: 2px solid #1e9e57;
  border-radius: 8px;
  color: #157a42;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-7deg);
}
.js .printer:not(.printed) .stamp {
  opacity: 0;
  transform: rotate(-7deg) scale(1.9);
}
.js .printer.printed .stamp {
  animation: stamp 0.28s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes stamp {
  from { opacity: 0; transform: rotate(-7deg) scale(1.9); }
  to { opacity: 1; transform: rotate(-7deg) scale(1); }
}

.paper-note {
  text-align: center;
  font-size: 12px;
  color: var(--paper-dim);
}

.barcode {
  height: 38px;
  margin: 12px 8px;
  background:
    repeating-linear-gradient(90deg, var(--paper-ink) 0 2px, transparent 2px 5px, var(--paper-ink) 5px 6px, transparent 6px 9px, var(--paper-ink) 9px 12px, transparent 12px 14px, var(--paper-ink) 14px 15px, transparent 15px 19px, var(--paper-ink) 19px 20px, transparent 20px 23px);
}

.reprint {
  display: block;
  margin: 0 auto;
  padding: 6px 2px;
  border: 0;
  border-bottom: 1px solid var(--ink-4);
  background: none;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.reprint:hover { color: var(--amber); border-color: var(--amber); }
/* Keeps its space while hidden, so a reprint doesn't nudge the page. */
.reprint[hidden] { visibility: hidden; }

/* Say hi */

.way {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4px 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s;
}
.way:hover { border-color: var(--line-2); }
.way svg {
  width: 22px;
  height: 22px;
  color: var(--ink-3);
  transition: color 0.2s;
}
.way:hover svg { color: var(--amber); }
.way-title {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.2;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--ink);
  transition: transform 0.3s;
}
.way:hover .way-title { transform: translateX(4px); }
.way-meta {
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
  color: var(--ink-4);
  transition: color 0.2s;
}
.way:hover .way-meta { color: var(--ink); }
.way-sub {
  grid-column: 2 / -1;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-3);
}

.fine {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-4);
}

/* Footer: the banner, lit */

.footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 24px calc(124px + env(safe-area-inset-bottom));
  text-align: center;
}

.banner {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 1;
  font-weight: 600;
  color: #fff6e6;
  line-height: 1.02;
}
.banner p + p { margin-top: 6px; }
.banner .small { font-style: italic; font-size: 32px; color: #ffe2b4; }
.banner .big { font-size: 76px; letter-spacing: -0.02em; }
.banner .tiny { font-size: 26px; vertical-align: 0.8em; }
.banner .mid { font-size: 58px; letter-spacing: -0.01em; }

.banner-note {
  margin-top: 26px;
  font-size: 15px;
  color: var(--ink-3);
}

.footer-end {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 20px;
  max-width: 592px;
  margin: 72px auto 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-4);
}

/* Dock */

.dock {
  --size: 50px;
  position: fixed;
  left: 50%;
  bottom: calc(8px + env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  align-items: flex-end;
  height: calc(var(--size) + 18px);
  padding: 8px 7px 10px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(46, 33, 50, 0.5);
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
  backdrop-filter: blur(26px) saturate(1.7);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateX(-50%);
}

.dock-item {
  position: relative;
  display: block;
  flex: none;
  width: calc(var(--size) * var(--m, 1));
  height: calc(var(--size) * var(--m, 1));
  margin: 0 3px;
  border-radius: 12px;
  -webkit-tap-highlight-color: transparent;
}
.dock-item img {
  width: 100%;
  height: 100%;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.dock.settling .dock-item { transition: width 0.18s ease-out, height 0.18s ease-out; }

.dock-running {
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: rgba(251, 243, 231, 0.8);
}

.dock-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 23%;
}
.dock-tile svg { width: 56%; height: 56%; }
.dock-tile-x {
  background: linear-gradient(#2b2b2f, #0b0b0d);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: #fff;
}
.dock-tile-mail {
  background: linear-gradient(#ffd9a3, #ff9a4d);
  color: #4a2410;
}

.dock-divider {
  flex: none;
  align-self: stretch;
  width: 1px;
  margin: 2px 5px 0;
  background: rgba(255, 255, 255, 0.17);
}

/* Name above the icon, like the real Dock. */
.dock-item::before {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(38, 27, 42, 0.92);
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.1s, transform 0.1s;
}
@media (hover: hover) {
  .dock-item:hover::before {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
.dock-item:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.dock-item.bounce > :first-child { animation: bounce 0.9s ease-in-out; }
@keyframes bounce {
  0%, 50%, 100% { transform: translateY(0); }
  22% { transform: translateY(-26px); }
  72% { transform: translateY(-14px); }
}

/* Notification */

.notice {
  position: fixed;
  top: calc(var(--bar) + 12px);
  right: 12px;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 340px;
  max-width: calc(100vw - 24px);
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(46, 33, 50, 0.76);
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
  backdrop-filter: blur(26px) saturate(1.7);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-2);
  transform: translateX(calc(100% + 24px));
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.notice[hidden] { display: none; }
.notice.show { transform: none; }
.notice img { flex: none; }
.notice-body { display: block; min-width: 0; }
.notice-body strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
}
.notice-body span { display: block; }

/* Entrances. Only with JavaScript on, so nothing stays hidden without it. */

.js .rise {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.js .rise:nth-child(2) { animation-delay: 0.07s; }
.js .rise:nth-child(3) { animation-delay: 0.14s; }
.js .rise:nth-child(4) { animation-delay: 0.21s; }
.js .rise:nth-child(5) { animation-delay: 0.28s; }
.js.risen .rise { animation: none; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s, transform 0.5s, border-color 0.2s;
}
.js .reveal.seen {
  opacity: 1;
  transform: none;
}

/* Phones */

@media (max-width: 640px) {
  body { font-size: 17px; }
  .menubar { padding: 0 6px; }
  .menubar-link:not(.menubar-handle) { display: none; }
  .menubar-handle { font-size: 12px; padding: 5px 4px; }
  .clock { display: none; }

  .page { padding-left: 20px; padding-right: 20px; padding-top: calc(var(--bar) + 32px); }
  .avatar { width: 96px; height: 96px; }
  h1 { font-size: 50px; }
  h2 { font-size: 33px; }
  .section { padding-top: 72px; }
  .stats .where,
  .stats-dot { display: none; }

  .app { gap: 14px; align-items: flex-start; }
  .app-icon { width: 46px; height: 46px; }
  .tag, .tag-plain { margin-top: 1px; }
  .way-title { font-size: 24px; }

  .printer { max-width: 340px; }
  .feed { padding: 0 18px 34px; }
  .paper { padding-left: 18px; padding-right: 18px; }

  .banner .small { font-size: 21px; }
  .banner .big { font-size: 50px; }
  .banner .tiny { font-size: 17px; }
  .banner .mid { font-size: 38px; }
  .footer { padding-top: 92px; }

  .dock { --size: 46px; padding-left: 5px; padding-right: 5px; }
  .dock-item { margin: 0 2px; }
  .dock-divider { margin-left: 4px; margin-right: 4px; }
  .notice { top: calc(var(--bar) + 8px); right: 12px; }
}

@media (max-width: 380px) {
  h1 { font-size: 44px; }
  .banner .small { font-size: 18px; }
  .banner .big { font-size: 42px; }
  .banner .tiny { font-size: 15px; }
  .banner .mid { font-size: 32px; }
  .dock { --size: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal, .js .rise { opacity: 1; transform: none; }
  .js .printer .paper-shadow { transform: none; }
  .js .printer:not(.printed) .stamp { opacity: 1; transform: rotate(-7deg); }
  .dot::after { display: none; }
}
