/* AskSomeone — Life is complicated. Ask Someone.
   White, a breath of sky, one question. System fonts only: nothing to download before the page can be used. */
:root {
  --ink: #0d1520;
  --ink-2: #34404f;
  --muted: #6a7686;
  --line: rgba(13, 30, 52, 0.12);
  --sky: #2f7ee0;            /* focus and links only — never decoration */
  --sky-soft: rgba(47, 126, 224, 0.18);
  --paper: #ffffff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The sky: a faint wash of daylight that drifts slowly up and down. One layer, transform only. */
.sky { position: fixed; inset: -35% -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(48% 34% at 50% 36%, rgba(173, 214, 255, 0.42), rgba(173, 214, 255, 0) 70%),
    radial-gradient(36% 26% at 22% 62%, rgba(196, 228, 255, 0.30), rgba(196, 228, 255, 0) 70%),
    radial-gradient(34% 24% at 80% 58%, rgba(205, 232, 255, 0.26), rgba(205, 232, 255, 0) 70%);
  animation: drift 46s ease-in-out infinite alternate; will-change: transform; }
@keyframes drift { from { transform: translate3d(0, -9%, 0); } to { transform: translate3d(0, 9%, 0); } }
@media (prefers-reduced-motion: reduce) { .sky { animation: none; } * { transition: none !important; } }

/* Frame */
.top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 26px clamp(20px, 4vw, 44px); }
.brand { font-weight: 640; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.brand .tld { color: var(--muted); font-weight: 450; }
.foot { position: relative; z-index: 2; display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; padding: 28px 20px 30px; font-size: 13px; color: var(--muted); }
.foot a { text-decoration: none; color: var(--muted); }
.foot a:hover { color: var(--ink); }

/* Home */
.home { display: grid; grid-template-rows: auto 1fr auto; }
.stage { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: center; padding: 0 clamp(16px, 4vw, 44px) 7vh; text-align: center; }
.hero { margin: 0; display: grid; justify-items: center; gap: clamp(6px, 1.4vw, 14px); transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .4s; }
.life { font: 400 clamp(22px, 2.9vw, 36px)/1.2 var(--serif); color: var(--ink-2); letter-spacing: -0.005em; }
.ask-line { font: 800 clamp(54px, 12.2vw, 172px)/0.86 var(--sans); letter-spacing: -0.052em; color: var(--ink); text-transform: uppercase; }
.ask-line span { display: inline-block; white-space: nowrap; }

/* The question */
.ask { position: relative; width: min(720px, 100%); margin-top: clamp(34px, 6vh, 64px); }
.field { display: flex; align-items: flex-end; gap: 6px; padding: 9px 9px 9px 12px; background: rgba(255, 255, 255, 0.9); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 1px 2px rgba(13, 30, 52, 0.05), 0 22px 60px -28px rgba(31, 92, 160, 0.34); transition: border-color .2s, box-shadow .2s; }
.field:focus-within { border-color: rgba(47, 126, 224, 0.55); box-shadow: 0 0 0 4px var(--sky-soft), 0 22px 60px -28px rgba(31, 92, 160, 0.34); }
.field textarea { flex: 1; min-width: 0; width: 0; border: 0; outline: 0; resize: none; background: transparent; color: var(--ink); font: 400 clamp(18px, 2vw, 21px)/1.4 var(--sans);
  padding: 12px 6px; max-height: 40vh; }
.field textarea::placeholder { color: #5d6979; opacity: 1; }
.icon-btn { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: rgba(13, 30, 52, 0.05); color: var(--ink); }
.go { flex: none; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 17px; border: 0; background: var(--ink); color: #fff; cursor: pointer; transition: transform .15s, background .15s; }
.go:hover { background: #1e2c3d; }
.go:active { transform: scale(.97); }
.go[aria-busy="true"] { background: #4a5a6e; cursor: progress; }
.note { margin: 14px 4px 0; text-align: left; color: var(--ink-2); font-size: 15px; }
.note:empty { display: none; }
.resume { margin-top: 18px; font-size: 14px; color: var(--muted); }
.resume a { color: var(--ink-2); text-underline-offset: 3px; }
.resume:empty { display: none; }

/* After asking: the brand steps back, the work comes forward. */
body.asking .hero { transform: translateY(-14px) scale(.96); opacity: .5; }
.reply { width: min(720px, 100%); margin-top: 22px; text-align: left; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; }
.reply[hidden] { display: none; }
.reply h2 { margin: 0 0 6px; font: 600 18px/1.3 var(--sans); }
.reply p { margin: 0 0 14px; color: var(--ink-2); }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: 600 15px var(--sans); cursor: pointer; text-decoration: none; }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn:hover { filter: brightness(1.12); }

/* Small dialog (attachments) */
.sheet { position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 3; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px;
  box-shadow: 0 24px 60px -30px rgba(13, 30, 52, 0.45); }
.sheet[hidden] { display: none; }
.sheet h2 { margin: 0 0 6px; font: 600 16px/1.3 var(--sans); }
.sheet p { margin: 0 0 12px; font-size: 15px; color: var(--ink-2); }

/* Plain pages (about, 404) */
.page { position: relative; z-index: 1; width: min(680px, 100% - 40px); margin: 6vh auto 0; }
.page h1 { font: 700 clamp(34px, 6vw, 52px)/1.05 var(--sans); letter-spacing: -0.035em; margin: 0 0 18px; }
.page h2 { font: 650 19px/1.3 var(--sans); margin: 30px 0 8px; }
.page p, .page li { color: var(--ink-2); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .top { padding: 20px 20px; }
  .stage { padding-bottom: 10vh; }
  .ask-line { font-size: clamp(46px, 17.2vw, 104px); }
  .ask-line span { display: block; }
  .field { border-radius: 22px; padding: 7px 7px 7px 8px; }
  .icon-btn { width: 44px; height: 46px; }
  .go { width: 48px; height: 48px; border-radius: 16px; }
}

/* Account */
.notice { background: #eef5ff; border: 1px solid rgba(47, 126, 224, 0.25); border-radius: 14px; padding: 12px 16px; }
.small { font-size: 14px; color: var(--muted) !important; }
.task-list { padding-left: 20px; }
.task-list li { margin: 6px 0; }
.answer { display: flex; gap: 10px; flex-wrap: wrap; }
.linkish { border: 0; background: none; padding: 0; color: var(--sky); font: 600 14px var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.linkish.muted { color: var(--muted); }
.danger-btn { background: #a3261b; border-color: #a3261b; }
.safety { background: #fff1ef; border: 1px solid rgba(163, 38, 27, 0.25); color: #6d1a12 !important; border-radius: 14px; padding: 12px 16px; font-weight: 600; }
