:root {
  --ink: #111111;
  --ivory: #f3efe7;
  --paper: #fffdf9;
  --gold: #c7a04a;
  --line: rgba(17, 17, 17, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.hero {
  min-height: 100vh;
  padding: 0 4vw 5vw;
  background: radial-gradient(circle at 16% 18%, rgba(199, 160, 74, 0.12), transparent 22rem), var(--ivory);
}
.site-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 22px; }
.brand img { width: 164px; height: auto; }
.brand span { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; padding-left: 22px; border-left: 1px solid var(--line); }
nav { display: flex; gap: 30px; }
nav a { font-size: 12px; letter-spacing: 0.11em; text-transform: uppercase; }
nav a:hover, nav a:focus-visible { color: #7b5c16; }

.hero-grid {
  max-width: 1480px;
  margin: 0 auto;
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.1fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: center;
  padding: 72px 0 40px;
}
.eyebrow { margin: 0; color: #765b20; font-size: 11px; font-weight: 700; letter-spacing: 0.24em; }
.intro-copy h1, .approach h2 {
  margin: 26px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(66px, 7vw, 112px);
  line-height: 0.86;
  letter-spacing: -0.055em;
}
.lede { max-width: 520px; font-size: 19px; line-height: 1.65; color: #46423d; }
.category-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 52px; max-width: 480px; }
.category-row span { border-top: 1px solid var(--line); padding-top: 12px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }

.chat-card {
  background: var(--paper);
  border: 1px solid rgba(17,17,17,0.26);
  box-shadow: 18px 22px 0 rgba(17,17,17,0.07);
  min-height: 700px;
  display: flex;
  flex-direction: column;
}
.chat-topbar { padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.chat-topbar p { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; }
.status { font-size: 12px; color: #6a6258; }
.status b { font-weight: 400; }
.status i { width: 7px; height: 7px; display: inline-block; margin-right: 7px; border-radius: 50%; background: #5f7d55; }
.text-button { border: 0; padding: 6px 0; background: none; color: #6a6258; font-size: 12px; cursor: pointer; border-bottom: 1px solid transparent; }
.text-button:hover, .text-button:focus-visible { border-bottom-color: currentColor; color: var(--ink); }
.latest-question { display: grid; grid-template-columns: 125px 1fr; gap: 16px; align-items: baseline; padding: 15px 26px; background: var(--ink); color: white; }
.latest-question span { font-size: 9px; letter-spacing: 0.16em; color: #d6c28f; }
.latest-question p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.messages { height: 330px; overflow-y: auto; padding: 24px 26px 10px; scrollbar-width: thin; scrollbar-color: #c9c1b6 transparent; }
.message { width: fit-content; max-width: 86%; margin-bottom: 18px; padding: 15px 17px 16px; border: 1px solid var(--line); }
.message.assistant { background: #f4efe5; border-radius: 2px 18px 18px 18px; }
.message.user { margin-left: auto; background: var(--ink); color: white; border-radius: 18px 2px 18px 18px; }
.message-label { display: block; margin-bottom: 7px; font-size: 8px; font-weight: 700; letter-spacing: 0.17em; color: #765b20; }
.message.user .message-label { color: #d7bd7d; }
.message p { margin: 0; font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
.quick-prompts { display: flex; gap: 8px; overflow-x: auto; padding: 12px 26px 16px; border-top: 1px solid rgba(17,17,17,0.08); }
.quick-prompts button { flex: 0 0 auto; max-width: 220px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: #514b43; padding: 8px 12px; font-size: 11px; cursor: pointer; }
.quick-prompts button:hover, .quick-prompts button:focus-visible { border-color: #8e6e28; color: #614a18; background: #faf4e7; }
.composer { display: grid; grid-template-columns: 1fr auto; margin: 0 26px; border: 1px solid var(--ink); background: white; }
.composer input { min-width: 0; border: 0; outline: 0; background: transparent; padding: 16px; font-size: 14px; }
.composer input::placeholder { color: #8b857e; }
.composer input:focus { box-shadow: inset 0 0 0 2px #c9a957; }
.composer button { border: 0; background: var(--ink); color: white; padding: 0 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.composer button:hover:not(:disabled), .composer button:focus-visible { background: #7b5c16; }
.composer button:disabled { cursor: not-allowed; opacity: 0.45; }
.disclaimer { margin: 11px 26px 20px; font-size: 10px; color: #777068; }

.approach { padding: 110px 6vw 130px; background: var(--ink); color: white; }
.approach > * { max-width: 1380px; margin-left: auto; margin-right: auto; }
.approach .eyebrow { color: #d6bb7b; }
.approach-heading { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 9vw; align-items: end; }
.approach h2 { margin-left: 0; font-size: clamp(56px, 6vw, 94px); }
.approach-heading > p { margin: 0 0 14px; color: #c8c3bc; font-size: 18px; line-height: 1.65; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 78px; border-top: 1px solid rgba(255,255,255,0.23); }
.feature-grid article { padding: 26px 36px 0 0; }
.feature-grid article + article { padding-left: 36px; border-left: 1px solid rgba(255,255,255,0.23); }
.feature-grid span { color: #d6bb7b; font-size: 11px; letter-spacing: 0.16em; }
.feature-grid h3 { margin: 28px 0 12px; font-family: Georgia, serif; font-size: 29px; font-weight: 400; }
.feature-grid p { margin: 0; color: #aaa49d; line-height: 1.6; }

footer { padding: 70px 6vw 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; background: #e9e2d6; }
.footer-brand img { width: 180px; height: auto; }
.footer-brand p { max-width: 400px; margin-top: 24px; color: #69625a; line-height: 1.55; }
.resource-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.resource-links > p { grid-column: 1 / -1; margin: 0 0 18px; font-size: 10px; font-weight: 700; letter-spacing: 0.18em; }
.resource-links a { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px; }
.resource-links a:hover, .resource-links a:focus-visible { color: #765b20; }
.copyright { grid-column: 1 / -1; margin: 35px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 9px; letter-spacing: 0.17em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1020px) {
  .hero { padding: 0 5vw 9vw; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 68px; }
  .intro-copy h1 { font-size: clamp(68px, 14vw, 110px); }
  .chat-card { max-width: 760px; width: 100%; justify-self: center; }
  .approach-heading { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 700px) {
  .site-header { min-height: 78px; }
  .brand img { width: 132px; }
  .brand span, .site-header nav { display: none; }
  .hero-grid { padding-top: 52px; gap: 50px; }
  .intro-copy h1 { font-size: clamp(57px, 18vw, 86px); }
  .lede { font-size: 16px; }
  .category-row { margin-top: 36px; }
  .chat-card { min-height: 660px; box-shadow: 8px 10px 0 rgba(17,17,17,0.07); }
  .chat-topbar { padding: 18px; }
  .latest-question { grid-template-columns: 1fr; gap: 4px; padding: 12px 18px; }
  .messages { height: 310px; padding: 20px 18px 8px; }
  .message { max-width: 94%; }
  .quick-prompts { padding-left: 18px; padding-right: 18px; }
  .composer { margin: 0 18px; }
  .composer button { padding: 0 14px; }
  .disclaimer { margin-left: 18px; margin-right: 18px; }
  .approach { padding: 86px 7vw 94px; }
  .approach h2 { font-size: 53px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article, .feature-grid article + article { padding: 26px 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,0.2); }
  footer { grid-template-columns: 1fr; padding: 58px 7vw 30px; }
  .resource-links { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
