/* Awedly site: shared look. Two looks (Sketch follows the OS light/dark; Classic is black). No outside requests. */
@font-face {
  font-family: 'Excalifont';
  src: url('/excalifont.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
:root { color-scheme: light dark; }

/* Tokens. Every text pair is 7:1 or better (checked in the README's contrast table). */
html {
  --bg: #ffffff; --ink: #1e1e1e; --dim: #474747; --link: #0b4f9c; --accent: #a5d8ff;
  --card: #f4f6f9; --line: color-mix(in srgb, #1e1e1e 45%, transparent);
  --focus: #6741d9; --squiggle: url(/squiggle-ink.svg); --pill: url(/pill-light.svg);
  --ui-font: 'Excalifont', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --head-font: 'Excalifont', serif;
  background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  html[data-look="sketch"] {
    --bg: #121212; --ink: #e3e3e8; --dim: #b8b8bf; --link: #a5d8ff; --accent: rgba(165, 216, 255, 0.24);
    --card: #1b1b1f; --line: color-mix(in srgb, #e3e3e8 45%, transparent);
    --focus: #b595ff; --squiggle: url(/squiggle-pale.svg); --pill: url(/pill-dark.svg);
  }
}
html[data-look="classic"] {
  --bg: #000; --ink: rgba(255, 255, 255, 0.85); --dim: rgba(255, 255, 255, 0.72); --link: #9fd0ff;
  --accent: rgba(255, 255, 255, 0.15); --card: #0c0c0e; --line: rgba(255, 255, 255, 0.4);
  --focus: #9fd0ff; --squiggle: url(/squiggle-pale.svg); --pill: url(/pill-classic.svg);
  --ui-font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --head-font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (prefers-contrast: more) {
  html[data-look="sketch"] { --ink: #000; --dim: #1e1e1e; --link: #003d80; }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  html[data-look="sketch"] { --ink: #fff; --dim: #e3e3e8; --link: #cfe9ff; }
}

* { box-sizing: border-box; }
body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 20px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-wrap: break-word;
}
html[data-look="classic"] h1, html[data-look="classic"] h2, html[data-look="classic"] h3 { color: #fff; }
h1, h2, h3, .say, strong.hand, .soon { font-family: var(--head-font); font-weight: normal; }
html[data-look="sketch"] strong { font-family: var(--head-font); font-size: 1.15em; font-weight: normal; }
html[data-look="classic"] strong { color: #fff; }
/* Links: ink colour, never the browser blue. Body and footer links always carry a hand-drawn squiggle (not colour alone, WCAG 1.4.1);
   navigation links show it on hover, focus and for the current page. */
a { color: var(--ink); text-decoration: none; }
main a:not(.btn), footer.site-footer a, .site-header nav a:hover, .site-header nav a:focus-visible, .site-header nav a[aria-current="page"] {
  background-image: var(--squiggle); background-repeat: repeat-x; background-position: 0 100%; background-size: 40px 7px;
  padding-bottom: 0.2em;
}
.site-header nav a.nav-cta:hover, .site-header nav a.nav-cta:focus-visible { background-image: none; padding-bottom: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, audio:focus-visible, summary:focus-visible, details:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}
.skip {
  position: absolute; left: 0.75rem; top: -4rem; z-index: 20;
  background: var(--bg); color: var(--ink); border: 2px solid var(--ink);
  padding: 0.5rem 0.9rem; border-radius: 8px; font: 18px/1.3 var(--ui-font);
}
.skip:focus { top: 0.75rem; }

.wrap { max-width: 34rem; margin: 0 auto; padding: 0 1.25rem; }
.wide { max-width: 62rem; margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: 42rem; margin: 0 auto; padding: 0 1.25rem; text-align: left; }

/* Look switch: a quiet segmented control, top right */
.look-switch {
  --sw-ink: var(--ink);
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; height: 28px;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden; z-index: 10;
}
.look-switch button {
  height: 100%; padding: 0 12px; border: 0; background: transparent; color: var(--ink);
  cursor: pointer; font: 13px/1 var(--ui-font); letter-spacing: 0;
}
.look-switch button + button { border-left: 1px solid var(--line); }
.look-switch button[aria-pressed="true"] { background: var(--accent); }
@media (prefers-color-scheme: light) { html[data-look="sketch"] .look-switch button[aria-pressed="true"] { color: #1e1e1e; } }
.look-switch button:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; }

/* Site header: wordmark and navigation, under the look switch row */
.site-header { padding: 3rem 1.25rem 0; }
.site-header nav { max-width: 62rem; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; align-items: center; font: 21px/1.2 var(--ui-font); }
.site-header .brand { font-family: var(--head-font); font-size: 1.35em; color: var(--ink); margin-right: auto; }
.site-header nav a { padding: 0.35rem 0; color: var(--ink); }
.site-header nav a[aria-current="page"] { background-size: 40px 7px; }
.site-header .brand[aria-current="page"] { background-image: none; padding-bottom: 0.35rem; }
/* "Get notified": a hand-drawn pill, 36 px tall, rough outline and pastel fill from a static SVG (9-slice border image) */
.site-header nav a.nav-cta {
  display: inline-flex; align-items: center; height: 36px; padding: 0 0.5rem; background: none;
  border: solid transparent; border-width: 3px 12px;
  border-image-source: var(--pill); border-image-slice: 18 fill; border-image-width: 18px; border-image-repeat: stretch;
}
.site-header nav a.nav-cta:hover { transform: rotate(-1.5deg); }
@media (max-width: 380px) { .site-header nav { gap: 0.2rem 1rem; font-size: 19px; } .site-header nav a.nav-cta { padding: 0 0.2rem; } }

main { display: block; padding-bottom: 2rem; }
main:focus { outline: none; }

h1 { font-size: 48px; line-height: 1.1; margin: 0; }
h2 { font-size: 1.7rem; line-height: 1.2; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.25rem; line-height: 1.3; margin: 1.75rem 0 0.5rem; }
p { margin: 0 0 1rem; }
.say { margin: 0.25rem 0 0; font-size: 1.15em; }
.lead { margin: 1.5rem 0; }
ul.plain { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1rem; }
.prose li { margin: 0.4rem 0; }
.soon { font-size: 1.2em; margin: 2rem 0; }
.dim { color: var(--dim); }
.small { font-size: 18px; }

.hero { text-align: center; }
.page-head { max-width: 42rem; margin: 0 auto; padding: 2.5rem 1.25rem 0; text-align: left; }
.page-head h1 { font-size: 44px; }
.page-head .meta { color: var(--dim); margin-top: 0.75rem; }

/* Home sections */
.section { padding: 1rem 1.25rem; text-align: center; }
.section > h2 { margin-top: 2rem; }
.section .intro { max-width: 34rem; margin: 0 auto 1.5rem; }
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.25rem; max-width: 62rem; margin: 0 auto; padding: 0; list-style: none; text-align: left; }
.panel { background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 1.25rem 1.25rem 1.1rem; margin: 0; }
html[data-look="sketch"] .panel { border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px; padding: 1.4rem 1.5rem 1.2rem; }
.panel h2, .panel h3 { margin: 0 0 0.4rem; font-size: 1.5rem; }
.panel p { margin: 0; }
.panel .say-eg { color: var(--dim); font-size: 18px; margin-top: 0.6rem; }

.hear { max-width: 36rem; margin: 0 auto; text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 1.25rem; }
html[data-look="sketch"] .hear { border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px; padding: 1.5rem 1.75rem; }
.hear audio { width: 100%; margin: 0.25rem 0 0.75rem; }
.hear details { margin-top: 0.5rem; }
.hear summary { cursor: pointer; padding: 0.35rem 0; font-weight: 600; }
.hear blockquote { margin: 0.75rem 0 0.5rem; padding: 0 0 0 1rem; border-left: 3px solid var(--line); }
.hear .credit { color: var(--dim); font-size: 18px; margin: 0.5rem 0 0; }

.langs { max-width: 36rem; margin: 0 auto; }

/* Waitlist form */
.waitlist { max-width: 36rem; margin: 0 auto; text-align: left; }
.waitlist label.field { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.waitlist input[type="email"] {
  display: block; width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 2px solid var(--ink); border-radius: 8px; padding: 0.6rem 0.75rem; min-height: 48px;
}
.waitlist .consent { display: flex; gap: 0.75rem; align-items: flex-start; margin: 1rem 0; }
.waitlist .consent input { width: 1.5rem; height: 1.5rem; margin: 0.2rem 0 0; flex: none; accent-color: var(--ink); }
.waitlist .consent label { cursor: pointer; }
.btn {
  display: inline-block; font: 18px/1.2 var(--ui-font); color: var(--ink); background: var(--accent);
  border: 2px solid var(--ink); border-radius: 10px; padding: 0.75rem 1.4rem; min-height: 48px; cursor: pointer; text-decoration: none;
}
.btn:hover { background: color-mix(in srgb, var(--accent) 70%, var(--ink) 12%); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Support FAQ */
.faq details { border-top: 1px solid var(--line); padding: 0.5rem 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; padding: 0.5rem 0; }
.faq details > *:not(summary) { margin-left: 0; }

.credits-list { list-style: none; padding: 0; margin: 0; }
.credits-list li { border-top: 1px solid var(--line); padding: 1rem 0; margin: 0; }
.credits-list li:last-child { border-bottom: 1px solid var(--line); }
.credits-list h3 { margin: 0 0 0.25rem; }
.credits-list p { margin: 0.25rem 0; }

footer.site-footer { padding: 2rem 1.25rem 3rem; font-size: 18px; text-align: center; color: var(--dim); }
footer.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.5rem; margin-bottom: 0.75rem; }
footer.site-footer a { color: inherit; }
footer.site-footer p { margin: 0.25rem 0; }

.status-page { text-align: center; padding-top: 3rem; }

@media (max-width: 480px) {
  .wrap, .wide, .prose, .section, .page-head { padding-left: 1rem; padding-right: 1rem; }
  h1 { font-size: 32px; }
  .page-head h1 { font-size: 34px; }
  h2 { font-size: 1.45rem; }
  body { font-size: 18px; }
  .site-header { padding-top: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
body { transition: background-color 0.3s, color 0.3s; }
html[data-look="classic"] { color-scheme: dark; }
.mt { margin-top: 1rem; }

/* The cloud: five layers from the app's own drawing (AudySphereView), each drifting on its own slow path.
   Standby flows at half pace: x/y periods are 2x the app's blob periods, drift 0.14R*0.62 = 2.9% of the frame,
   blob size breathes 6%, the whole cloud breathes 2% over 6 s. */
.cloud {
  width: min(88vw, 360px);
  aspect-ratio: 1;
  position: relative;
  margin: -12% auto -11%;
}
.stage, .stage > *, .bx, .by, .bi {
  position: absolute;
  inset: 0;
}
.stage {
  animation: breathe 6s ease-in-out infinite;
}
.stage i {
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.bx { animation: dx var(--p) ease-in-out infinite; animation-delay: calc(var(--p) * var(--ph) * -1); }
.by { animation: dy var(--p) ease-in-out infinite; animation-delay: calc(var(--p) * var(--ph) * -1); }
.bi { background-size: 100% 100%; animation: sz var(--p) ease-in-out infinite; animation-delay: calc(var(--p) * var(--ph) * -1); }
@keyframes dx { 0%, 100% { transform: translateX(-2.9%); } 50% { transform: translateX(2.9%); } }
@keyframes dy { 0%, 100% { transform: translateY(-2.9%); } 50% { transform: translateY(2.9%); } }
@keyframes sz { 0%, 100% { transform: scale(.94); } 50% { transform: scale(1.06); } }
@keyframes breathe { 0%, 100% { transform: scale(.98); } 50% { transform: scale(1.02); } }
.b0 .bx{--p:22s;--ph:0.250}
.b0 .by{--p:26s;--ph:0.457}
.b0 .bi{--p:24s;--ph:0.457}
.b1 .bx{--p:14s;--ph:0.377}
.b1 .by{--p:18s;--ph:0.584}
.b1 .bi{--p:16s;--ph:0.584}
.b2 .bx{--p:17.0s;--ph:0.632}
.b2 .by{--p:15.0s;--ph:0.314}
.b2 .bi{--p:16.0s;--ph:0.314}
.b3 .bx{--p:20s;--ph:0.887}
.b3 .by{--p:24s;--ph:0.775}
.b3 .bi{--p:22s;--ph:0.775}
.b4 .bx{--p:26s;--ph:1.078}
.b4 .by{--p:16s;--ph:0.409}
.b4 .bi{--p:21s;--ph:0.409}

html:not([data-look="classic"]) .heart { display: none; }
html[data-look="sketch"] .b0 .bi{background-image:url(/cloud/sketch-light-b0.webp)}
html[data-look="sketch"] .b1 .bi{background-image:url(/cloud/sketch-light-b1.webp)}
html[data-look="sketch"] .b2 .bi{background-image:url(/cloud/sketch-light-b2.webp)}
html[data-look="sketch"] .b3 .bi{background-image:url(/cloud/sketch-light-b3.webp)}
html[data-look="sketch"] .b4 .bi{background-image:url(/cloud/sketch-light-b4.webp)}
html[data-look="sketch"] .halo{background-image:url(/cloud/sketch-light-halo.webp)}
@media (prefers-color-scheme: dark) {
html[data-look="sketch"] .b0 .bi{background-image:url(/cloud/sketch-dark-b0.webp)}
html[data-look="sketch"] .b1 .bi{background-image:url(/cloud/sketch-dark-b1.webp)}
html[data-look="sketch"] .b2 .bi{background-image:url(/cloud/sketch-dark-b2.webp)}
html[data-look="sketch"] .b3 .bi{background-image:url(/cloud/sketch-dark-b3.webp)}
html[data-look="sketch"] .b4 .bi{background-image:url(/cloud/sketch-dark-b4.webp)}
html[data-look="sketch"] .halo{background-image:url(/cloud/sketch-dark-halo.webp)}
}
html[data-look="classic"] .b0 .bi{background-image:url(/cloud/classic-b0.webp)}
html[data-look="classic"] .b1 .bi{background-image:url(/cloud/classic-b1.webp)}
html[data-look="classic"] .b2 .bi{background-image:url(/cloud/classic-b2.webp)}
html[data-look="classic"] .b3 .bi{background-image:url(/cloud/classic-b3.webp)}
html[data-look="classic"] .b4 .bi{background-image:url(/cloud/classic-b4.webp)}
html[data-look="classic"] .halo{background-image:url(/cloud/classic-halo.webp)}
html[data-look="classic"] .heart{background-image:url(/cloud/classic-heart.webp)}

/* The book: the app's BookMark, fixed hand-drawn path, never animated (it stays still while the blobs drift) */
.book {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.book path {
  fill: none;
  stroke: #1e1e1e;
  stroke-width: 1.75px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
@media (prefers-color-scheme: dark) {
  html[data-look="sketch"] .book path { stroke: #fff; }
}
html[data-look="classic"] .book path { stroke: #fff; }

@media (min-width: 600px) {
  .cloud { width: 480px; }
}
@media (prefers-reduced-motion: reduce) {
  .stage, .bx, .by, .bi { animation: none; }
}
