:root {
  --ink: #081a43;
  --ink-soft: #394259;
  --muted: #667085;
  --blue: #2f7eea;
  --blue-soft: #eaf4ff;
  --coral: #f3775d;
  --cream: #fffdfa;
  --paper: #fff;
  --line: #deddd9;
  --shadow: 0 10px 28px rgba(24, 39, 67, .09), 0 2px 6px rgba(24, 39, 67, .05);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fbfaf7;
  font: 16px/1.5 ui-rounded, "Avenir Next", "Nunito Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--blue); }

.site-header {
  position: relative;
  z-index: 20;
  width: min(100%, 1500px);
  height: 88px;
  margin: 0 auto;
  padding: 18px 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(255, 253, 250, .82);
}
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; color: var(--ink); font-size: 35px; font-weight: 750; letter-spacing: -1.8px; line-height: 1; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 42px; height: 42px; overflow: visible; }
.brand-blue { fill: #15559f; }
.brand-coral { fill: #fff; stroke: var(--coral); stroke-width: 1.8; transform: scale(.62); transform-origin: center; }
.primary-nav, .account-nav { display: flex; align-items: center; gap: 56px; font-size: 16px; }
.primary-nav a, .sign-in { color: var(--ink); }
.primary-nav a:hover, .sign-in:hover { color: var(--blue); }
.account-nav { justify-self: end; gap: 38px; }
.ask-nav { padding: 13px 24px; border-radius: 18px; color: #fff; background: var(--ink); font-weight: 650; box-shadow: 0 3px 10px rgba(8, 26, 67, .12); }
.ask-nav:hover { color: #fff; background: #12346e; }

main { max-width: 1040px; margin: 0 auto; padding: 42px 28px 80px; }
.home-shell { background: var(--cream); }
.home-shell main { max-width: none; margin: 0; padding: 0; }

.home-hero {
  position: relative;
  min-height: 486px;
  padding: 24px 24px 0;
  overflow: hidden;
  isolation: isolate;
}
.hero-copy { position: relative; z-index: 3; text-align: center; }
.hero-copy h1 { margin: 0; font-size: clamp(46px, 4.2vw, 66px); line-height: 1.03; letter-spacing: -3.2px; font-weight: 760; }
.hero-copy p { margin: 14px 0 24px; color: #535b6b; font-size: 19px; letter-spacing: -.2px; }
.coral-dot { color: var(--coral); }
.blue-dot { color: #357de1; }

.hero-scenery { position: absolute; z-index: -1; bottom: 0; pointer-events: none; }
.hero-scenery svg { width: 100%; height: 100%; display: block; }
.hero-scenery-left { left: 0; width: 29%; height: 350px; }
.hero-scenery-right { right: 0; width: 36%; height: 360px; }
.compass-art { position: absolute; z-index: -1; top: 46px; right: 6.7%; width: 160px; height: 160px; }
.compass-art svg { width: 100%; height: 100%; }
.hero-spark { position: absolute; z-index: 1; color: #ff9c79; font-size: 37px; }
.spark-one { top: 58px; left: 19.6%; }
.spark-two { top: 257px; left: 10.5%; font-size: 31px; color: #f7b49a; }

.ask-composer {
  position: relative;
  z-index: 4;
  width: min(960px, calc(100% - 40px));
  min-height: 152px;
  margin: 0 auto;
  padding: 19px 21px 18px;
  border: 1px solid #dddcd9;
  border-radius: 34px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 16px 34px rgba(29, 44, 67, .11), 0 2px 8px rgba(29, 44, 67, .06);
}
.question-row { display: flex; gap: 16px; align-items: flex-start; }
.question-row > svg { flex: none; width: 29px; height: 29px; margin: 2px 0 0 2px; fill: none; stroke: #5f6673; stroke-width: 1.6; stroke-linecap: round; }
.question-row textarea { width: 100%; min-height: 56px; max-height: 110px; padding: 1px 4px; resize: none; border: 0; outline: 0; overflow-y: auto; color: var(--ink); background: transparent; font-size: 18px; line-height: 1.45; }
.question-row textarea::placeholder { color: #6c7280; opacity: 1; }
.composer-tools { display: flex; align-items: center; gap: 16px; margin-top: 5px; }
.attach-button { display: grid; place-items: center; width: 51px; height: 51px; padding: 0; border: 1px solid #ddd; border-radius: 18px; background: #fff; color: #4a5569; cursor: pointer; }
.attach-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.attach-button:hover { border-color: #9dc4ee; color: var(--blue); }
.mode-select { height: 46px; display: inline-flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid #ddd; border-radius: 17px; background: #fff; }
.mode-select svg { width: 22px; height: 22px; fill: none; stroke: #667084; stroke-width: 1.5; }
.mode-select select { appearance: none; padding: 0 24px 0 0; border: 0; outline: 0; color: var(--ink); background: linear-gradient(45deg, transparent 50%, #596274 50%) calc(100% - 6px) 50%/6px 6px no-repeat, linear-gradient(135deg, #596274 50%, transparent 50%) 100% 50%/6px 6px no-repeat; cursor: pointer; }
.ask-submit { display: grid; place-items: center; width: 57px; height: 57px; margin-left: auto; border: 0; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #4393f1, #1c67d7); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 8px 16px rgba(47,126,234,.2); cursor: pointer; }
.ask-submit svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ask-submit:hover { transform: translateY(-1px); filter: brightness(1.04); }
.ask-submit:disabled { opacity: .55; cursor: wait; transform: none; }

.prompt-chips { position: relative; z-index: 4; display: flex; justify-content: center; gap: 23px; margin: 20px auto 0; }
.prompt-chips button { min-width: 205px; height: 53px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid #e3e0dc; border-radius: 18px; color: var(--ink); background: rgba(255,255,255,.94); box-shadow: 0 6px 14px rgba(28, 41, 59, .07); cursor: pointer; }
.prompt-chips button:hover { border-color: #a8c8eb; transform: translateY(-1px); }
.chip-icon { font-size: 23px; line-height: 1; }
.suitcase-icon { color: var(--coral); }
.idea-icon { color: #8b55ef; }
.compare-icon { color: #63a45c; }
.make-icon { color: #3c8de5; }

.home-content { width: min(1416px, calc(100% - 80px)); margin: 5px auto 0; display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: stretch; }
.answer-card, .topics-panel { min-width: 0; border: 1px solid #e0ddd9; border-radius: 22px; background: rgba(255,255,255,.97); box-shadow: var(--shadow); }
.answer-card { padding: 24px 24px 16px; }
.answer-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(245px, .9fr); gap: 24px; min-height: 229px; }
.answer-header { display: flex; align-items: center; gap: 14px; }
.answer-header h2 { margin: 0; font-size: 20px; letter-spacing: -.5px; }
.answer-badge { display: grid; place-items: center; flex: none; width: 37px; height: 37px; border-radius: 50%; color: #fff; background: #2d7fe9; font-size: 19px; }
.answer-copy { margin-top: 15px; color: #172442; font: 14.5px/1.52 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.answer-copy p { margin: 0 0 17px; }
.answer-copy h3 { margin: 18px 0 8px; color: var(--ink); font: 700 17px/1.25 ui-rounded, "Avenir Next", sans-serif; }
.answer-copy ul, .answer-copy ol { padding-left: 22px; }
.answer-copy a { color: #176bd2; text-decoration: underline; text-decoration-color: #b5d2f5; text-underline-offset: 2px; }
.research-status { min-height: 96px; margin-top: 20px; display: flex; align-items: center; gap: 14px; color: #536075; }
.research-status[hidden] { display: none; }
.research-status span { width: 22px; height: 22px; border: 2px solid #c9dcf4; border-top-color: #2d7fe9; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.sky-illustration { position: relative; min-height: 229px; overflow: hidden; border-radius: 20px; background: linear-gradient(#4d9af1 0%, #9fd6ff 65%, #e8f7ff 100%); }
.sun { position: absolute; top: 29px; left: 30px; width: 36px; height: 36px; border-radius: 50%; background: #fffdf1; box-shadow: 0 0 30px rgba(255,255,255,.7); }
.cloud { position: absolute; width: 82px; height: 24px; border-radius: 50px; background: rgba(255,255,255,.9); box-shadow: 21px -13px 0 -3px rgba(255,255,255,.9), 41px -4px 0 -5px rgba(255,255,255,.9); }
.cloud-one { right: 22px; top: 91px; }
.cloud-two { left: 12px; top: 143px; transform: scale(.72); }
.hill { position: absolute; bottom: -38px; width: 230px; height: 110px; border-radius: 50% 50% 0 0; transform: rotate(-8deg); }
.hill-one { left: -42px; background: #5aa9a4; }
.hill-two { right: -65px; bottom: -46px; background: #2a7d82; transform: rotate(8deg); }
.bird { position: absolute; top: 45px; left: 48%; color: #fff; font-size: 29px; transform: rotate(8deg); }
.source-block { margin-top: 10px; padding-top: 11px; border-top: 1px solid #d8d7d4; }
.source-block > span { display: block; margin-bottom: 8px; font-size: 13px; }
.source-list { display: flex; gap: 9px; overflow-x: auto; scrollbar-width: thin; }
.source-list a { flex: none; padding: 5px 10px; border: 1px solid #d9dce1; border-radius: 13px; color: #24314c; font-size: 12px; white-space: nowrap; }
.source-list a:hover { border-color: #8db9eb; color: #125eb9; }
.source-list b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 5px; border-radius: 50%; background: #dceefa; color: #1d567c; font-weight: 600; }
.answer-directions { display: flex; gap: 30px; margin-top: 13px; }
.answer-directions button { padding: 4px 0; border: 0; color: #183052; background: transparent; cursor: pointer; font-size: 14px; }
.answer-directions button:first-child { color: #246cc8; }
.answer-directions button:hover span { text-decoration: underline; }

.topics-panel { padding: 21px; }
.topics-panel > h2 { margin: 0 0 13px 4px; font-size: 20px; letter-spacing: -.5px; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.topic-card { position: relative; aspect-ratio: 1.07; overflow: hidden; border: 1px solid rgba(70,70,80,.07); border-radius: 18px; background-image: url('/static/topics.webp'); background-repeat: no-repeat; background-size: 300% 200%; transition: transform .16s ease, box-shadow .16s ease; }
.topic-card::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(transparent, rgba(255,255,255,.55)); pointer-events: none; }
.topic-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(25,39,63,.12); }
.topic-card span { position: absolute; z-index: 2; left: 0; right: 0; bottom: 6px; color: #0b1a3b; font-size: clamp(15px, 1.4vw, 20px); font-weight: 720; text-align: center; letter-spacing: -.5px; text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.topic-life { background-position: 0 0; }
.topic-science { background-position: 50% 0; }
.topic-money { background-position: 100% 0; }
.topic-health { background-position: 0 100%; }
.topic-travel { background-position: 50% 100%; }
.topic-making { background-position: 100% 100%; }

.latest-section { width: min(1416px, calc(100% - 80px)); margin: 72px auto 90px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.section-heading h2 { margin: 2px 0 0; font-size: 30px; letter-spacing: -1px; }
.section-heading > a { color: #2c6fbe; }
.eyebrow { color: var(--coral); font-size: 12px; font-weight: 750; letter-spacing: 1.3px; text-transform: uppercase; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { min-width: 0; padding: 17px; border: 1px solid #e2e0dc; border-radius: 19px; background: #fff; box-shadow: 0 7px 18px rgba(25,39,63,.05); }
.cardtitle { display: block; color: var(--ink); font-size: 16px; font-weight: 720; line-height: 1.3; }
.card p { display: -webkit-box; margin: 8px 0 12px; overflow: hidden; color: #5f6675; font-size: 13px; line-height: 1.45; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.cardimg, .hero-img { width: 100%; aspect-ratio: 3/2; display: block; margin-bottom: 13px; border-radius: 13px; object-fit: cover; background: #eef4f8; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tag { padding: 3px 9px; border: 1px solid #d9e5f1; border-radius: 99px; color: #25629f; background: #f4f9fd; font-size: 11px; }
.tag:hover { border-color: #8cb8e4; }
.readmin { margin-left: auto; color: #89909d; font-size: 11px; }

.site-footer { width: min(1416px, calc(100% - 56px)); margin: 0 auto; padding: 26px 0 36px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #dfddd9; color: #737988; font-size: 13px; }
.site-footer a { color: #52647c; }
.home-shell .site-footer { margin-top: 0; }

/* Inner pages */
.guide, .searchpage, .newpage, .notfound { max-width: 780px; margin: 0 auto; }
.guide > h1, .searchpage > h1, .newpage > h1 { margin: 0 0 12px; font-size: clamp(36px, 5vw, 54px); line-height: 1.06; letter-spacing: -2px; }
.guidemeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 30px; color: var(--muted); font-size: 13px; }
.prose { color: #1d2941; font: 16px/1.75 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.prose h2 { margin: 38px 0 12px; color: var(--ink); font: 750 28px/1.2 ui-rounded, "Avenir Next", sans-serif; letter-spacing: -.8px; }
.prose h3 { margin: 29px 0 10px; color: var(--ink); font-size: 20px; }
.prose a { color: #176bd2; text-decoration: underline; }
.prose pre { padding: 16px 18px; overflow-x: auto; border: 1px solid #d9e1ea; border-radius: 14px; background: #f4f7fa; font-size: 14px; }
.prose code { padding: 2px 5px; border-radius: 5px; background: #eef2f6; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.prose pre code { padding: 0; background: none; }
.prose blockquote { margin: 20px 0; padding: 8px 20px; border-left: 3px solid var(--blue); color: #58677c; background: #f6faff; }
.prose table { width: 100%; margin: 20px 0; border-collapse: collapse; }
.prose th, .prose td { padding: 9px 12px; border: 1px solid #dce0e5; text-align: left; font-size: 14px; }
.prose th { background: #f5f7f9; }
.backlink { margin-top: 42px; }

.bigsearch { display: flex; gap: 10px; margin: 24px 0; }
.bigsearch input { flex: 1; min-width: 0; padding: 14px 18px; border: 1px solid #d6dbe2; border-radius: 14px; outline: 0; background: #fff; font-size: 16px; }
.bigsearch input:focus { border-color: #70a8e6; box-shadow: 0 0 0 4px #eaf4ff; }
.bigsearch button, .newform button { padding: 13px 24px; border: 0; border-radius: 14px; color: #fff; background: var(--ink); font-weight: 700; cursor: pointer; }
.resultcount, .muted, .empty { color: var(--muted); }
.results { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.result { padding: 18px 20px; border: 1px solid #dfdeda; border-radius: 16px; background: #fff; }
.rtitle { color: var(--ink); font-size: 18px; font-weight: 720; }
.result p { margin: 6px 0 12px; color: #616978; font-size: 14px; }
.newpage { max-width: 700px; }
.newform { display: grid; gap: 16px; margin-top: 26px; }
.newform label { display: grid; gap: 6px; color: #455067; font-size: 14px; font-weight: 680; }
.newform label span { font-weight: 400; }
.newform input, .newform textarea { padding: 12px 14px; border: 1px solid #d9dce1; border-radius: 12px; outline: 0; background: #fff; color: var(--ink); }
.newform input:focus, .newform textarea:focus { border-color: #6ca4e3; box-shadow: 0 0 0 4px #eaf4ff; }
.newform button { justify-self: start; }
.notfound { padding: 60px 0; text-align: center; }
.notfound h1 { margin: 0; color: #aeb6c2; font-size: 80px; }

@media (max-width: 1100px) {
  .site-header { padding-inline: 26px; }
  .primary-nav { gap: 28px; }
  .account-nav { gap: 20px; }
  .prompt-chips { gap: 10px; }
  .prompt-chips button { min-width: 0; padding-inline: 14px; }
  .home-content { width: calc(100% - 40px); grid-template-columns: 1fr; }
  .topics-panel { max-width: 760px; }
  .topic-card { aspect-ratio: 1.3; }
  .latest-section { width: calc(100% - 40px); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .site-header { height: 72px; grid-template-columns: 1fr auto; padding: 13px 18px; }
  .brand { font-size: 26px; gap: 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .primary-nav, .sign-in { display: none; }
  .ask-nav { padding: 10px 15px; border-radius: 14px; font-size: 14px; }
  .home-hero { min-height: 548px; padding: 20px 12px 0; }
  .hero-copy h1 { font-size: clamp(39px, 11vw, 53px); letter-spacing: -2.4px; }
  .hero-copy p { max-width: 360px; margin: 13px auto 21px; font-size: 16px; }
  .hero-scenery-left { width: 52%; opacity: .8; }
  .hero-scenery-right { width: 66%; opacity: .85; }
  .compass-art { top: 155px; right: -25px; width: 120px; opacity: .7; }
  .hero-spark { display: none; }
  .ask-composer { width: calc(100% - 8px); min-height: 145px; padding: 18px 16px 15px; border-radius: 27px; }
  .question-row textarea { font-size: 16px; }
  .composer-tools { gap: 9px; }
  .attach-button { width: 45px; height: 45px; border-radius: 15px; }
  .mode-select { padding-inline: 10px; }
  .ask-submit { width: 50px; height: 50px; }
  .prompt-chips { width: 100%; padding: 0 4px 5px; justify-content: flex-start; overflow-x: auto; }
  .prompt-chips button { flex: none; height: 48px; }
  .home-content { width: calc(100% - 24px); margin-top: 13px; gap: 16px; }
  .answer-card { padding: 18px 16px 14px; }
  .answer-layout { grid-template-columns: 1fr; }
  .sky-illustration { min-height: 175px; order: -1; }
  .answer-directions { gap: 15px; justify-content: space-between; }
  .answer-directions button { font-size: 13px; }
  .topics-panel { padding: 17px; }
  .topic-grid { gap: 9px; }
  .topic-card { aspect-ratio: .92; border-radius: 14px; }
  .topic-card span { font-size: 15px; }
  .latest-section { width: calc(100% - 24px); margin-top: 50px; }
  .cards { grid-template-columns: 1fr; }
  .site-footer { width: calc(100% - 36px); flex-direction: column; }
  main { padding: 32px 18px 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
