/* Voice Box pages: the porthole at night. Navy of the app icon, gold of the porthole. */
@font-face { font-family: "Gloock"; src: url("fonts/gloock.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: dark;
  --night: #060f22;
  --night-2: #0b1a36;
  --rule: #1d2d4f;
  --ink: #efe9dc;
  --ink-dim: #a9b2c6;
  --gold: #f0bf55;
  --gold-deep: #c9932a;
  --font-display: "Gloock", Georgia, serif;
  --font-body: "Figtree", -apple-system, "Helvetica Neue", sans-serif;
  --measure: 38rem;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
html { scrollbar-color: var(--rule) var(--night); }
body {
  background: radial-gradient(60rem 40rem at 50% -12rem, var(--night-2), var(--night) 70%) no-repeat, var(--night);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--gold); color: var(--night); }

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--ink); text-decoration-color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.page { max-width: var(--measure); margin: 0 auto; padding: 2rem 1.25rem 4rem; }

/* the small bar that leads home */
.mast { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); width: fit-content; }
.mast img { width: 2.25rem; height: 2.25rem; border-radius: 22%; }
.mast span { font: 400 1.1rem/1 var(--font-display); white-space: nowrap; }
.mast:hover { color: var(--gold); }

h1, h2, h3 { font-family: var(--font-display); font-style: normal; text-wrap: balance; overflow-wrap: anywhere; min-width: 0; }
h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1.05; letter-spacing: -.01em; font-weight: 400; margin: 3rem 0 .75rem; }
h2 { font-size: 1.45rem; line-height: 1.25; font-weight: 400; color: var(--gold); margin: 2.75rem 0 .6rem; }
p, li, dd { text-wrap: pretty; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.2rem; margin: 0 0 1rem; }
li { margin: .35rem 0; }
li::marker { color: var(--gold-deep); }
strong { font-weight: 600; color: var(--ink); }

.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink); }
.dim, .date { color: var(--ink-dim); }
.date { font-size: .92rem; margin-top: -.25rem; }

/* gesture or route: a term and what it does, two columns on wide screens */
.terms { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .2rem 1.5rem; }
.terms dt { font-weight: 600; color: var(--ink); margin-top: .9rem; }
.terms dd { margin: 0; color: var(--ink-dim); }
@media (min-width: 40rem) {
  .terms { grid-template-columns: 11rem minmax(0, 1fr); }
  .terms dt, .terms dd { margin-top: 0; padding: .7rem 0; border-top: 1px solid var(--rule); }
}

.mail { font-size: 1.15rem; font-weight: 600; }

footer { margin-top: 4rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); color: var(--ink-dim); font-size: .92rem;
  display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
footer a { color: var(--ink-dim); white-space: nowrap; }
footer a:hover, footer a[aria-current] { color: var(--gold); }

/* landing: a Starry Night sky whose light swirls out like a spoken phrase; the app's porthole sits
   at its foot and its gold ring breathes outward, as the app's does when it hears you */
.sky { position: relative; height: clamp(15rem, 48vw, 32rem); overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
          mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.sky img { width: 100%; height: 100%; object-fit: cover; object-position: 18% 38%; display: block; }
.landing { padding-top: 0; }
.hero { display: flex; align-items: flex-end; gap: 1.25rem; margin-top: clamp(-6rem, -9vw, -3.5rem); position: relative; }
.porthole { position: relative; flex: none; width: clamp(5.5rem, 16vw, 8.5rem); aspect-ratio: 1; }
.porthole img { width: 100%; height: 100%; border-radius: 50%; position: relative; z-index: 1; display: block;
  box-shadow: 0 1.2rem 2.5rem -1rem rgb(0 0 0 / .8); }
.porthole::before, .porthole::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--gold); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .porthole::before, .porthole::after { animation: ripple 3.6s cubic-bezier(.16, 1, .3, 1) infinite; }
  .porthole::after { animation-delay: 1.8s; }
}
@keyframes ripple { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }
.hero h1 { margin: 0 0 .35rem; }
.landing .lede { margin-top: 1.5rem; }
