/* "studio" theme: near-white, warm taupe and greige, hairlines. A thin serif with italic
   accents for headings, a quiet sans for everything else. Selected with THERAPY_THEME=studio. */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Inter:wght@400;500&display=swap");

:root {
  --ink: #2f2a27;
  --taupe: #a8998d;
  --taupe-deep: #8f8277;
  --greige: #d8cdc3;
  --linen: #ece5de;
  --cream: #fbf9f6;
  --paper: #ffffff;

  /* The base stylesheet's three accent slots, remapped */
  --lime: var(--taupe);
  --pink: var(--paper);
  --blue: var(--linen);

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --stroke: 1px;
  --radius: 2px;

  --bg: var(--cream);
  --surface: var(--paper);
  --text: #3d3733;
  --muted: #6f655d;
  --line: #9b8f85;
  --hairline: #cfc5bc;
  --danger: #9a3b32;

  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1 -1 26 26'%3E%3Cpath d='M12 0C13 8 16 11 24 12 16 13 13 16 12 24 11 16 8 13 0 12 8 11 11 8 12 0Z' fill='%23a8998d'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #24201d;
    --surface: #2e2925;
    --text: #f1ebe5;
    --muted: #b9aca1;
    --line: #7d7168;
    --hairline: #4a423c;
    --danger: #e8a59c;
  }
}

body { font-size: 15px; line-height: 1.65; }
.msg { font-size: 15.5px; }
h1, h2, h3 { font-weight: 400; letter-spacing: 0; }
strong, b { font-weight: 500; }

/* Buttons: small, rectangular, sentence case */
button, .pill {
  border-radius: 3px; font: 400 13px/1.2 var(--font-body);
  letter-spacing: 0.01em; text-transform: none; padding: 9px 18px;
}
button:hover:not(:disabled), .pill:hover { transform: none; box-shadow: none; background: var(--linen); }
.pill, button.accent { background: var(--taupe); border-color: var(--taupe); color: #2a2522; }
.pill.lime:hover, .pill.pink:hover, button.accent:hover:not(:disabled) { background: #9c8d81; border-color: #9c8d81; box-shadow: none; }
.pill.pink { background: var(--taupe); }
#input:focus, .form-grid input:focus, #panel-body textarea:focus { box-shadow: 0 0 0 3px var(--greige); }

/* Header: white, italic wordmark, nav as a hairline grid */
header { background: var(--surface); color: var(--text); border-bottom: 1px solid var(--hairline); padding: 0 0 0 22px; gap: 0 16px; }
.badge { display: none; }
.wordmark { font: italic 400 25px/1 var(--font-display); text-transform: capitalize; letter-spacing: 0; padding: 14px 0; color: var(--text); }
nav { gap: 0; align-self: stretch; }
button.link {
  align-self: stretch; color: var(--text);
  border: 0; border-left: 1px solid var(--hairline); border-radius: 0; padding: 0 20px; min-height: 50px;
}
button.link:hover:not(:disabled) { background: var(--linen); text-decoration: none; }
button.link.on { background: var(--linen); border: 0; border-left: 1px solid var(--hairline); border-radius: 0; padding: 0 20px; }
nav .pill { margin: 0 14px; }
header :focus-visible { outline-color: var(--text); outline-offset: -3px; }
.private-banner { background: var(--taupe-deep); color: #fff; border-bottom: 0; text-transform: none; letter-spacing: 0.02em; font-size: 13px; }
.private-banner span { display: none; }

/* Welcome: a white panel with a soft, out-of-focus "photograph" beside the words */
.hero-card {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--hairline); border-radius: 0;
  padding: clamp(36px, 7vw, 76px) clamp(24px, 5vw, 56px) clamp(32px, 6vw, 64px) calc(40% + clamp(24px, 5vw, 56px));
  overflow: hidden;
}
.hero-card::before {
  content: ""; position: absolute; inset: 0 60% 0 0;
  border-right: 1px solid var(--hairline);
  background:
    radial-gradient(95% 55% at 70% 30%, rgba(246, 241, 236, 0.7), rgba(246, 241, 236, 0) 75%),
    radial-gradient(70% 60% at 15% 75%, rgba(143, 130, 119, 0.5), rgba(143, 130, 119, 0) 75%),
    radial-gradient(90% 45% at 80% 100%, rgba(226, 216, 207, 0.85), rgba(226, 216, 207, 0) 72%),
    linear-gradient(155deg, #c4b8ad, #a39589 50%, #b6a99d);
}
.hero-card h2 {
  font: 300 clamp(38px, 5.6vw, 62px)/1.08 var(--font-display);
  letter-spacing: -0.005em; text-transform: none; margin-bottom: 18px;
}
.hero-card h2 em { font-style: italic; font-weight: 300; color: inherit; -webkit-text-stroke: 0; }
.hero-card p { font-size: 14px; color: var(--muted); max-width: 34ch; }
.sticker, .hero-card .spark, .login .spark { display: none; }
.ticker { background: var(--greige); border: 1px solid var(--hairline); border-top: 0; border-radius: 0; }
.ticker-track span { font-size: 10.5px; letter-spacing: 0.16em; }
.hint { font-size: 13px; }

/* Check-in, to-try, journal */
.checkin p { text-transform: none; letter-spacing: 0.01em; font-size: 13.5px; color: var(--muted); }
.moods button { background: var(--surface); color: var(--text); border-color: var(--hairline); }
.moods button.on { background: var(--taupe); color: #2a2522; border-color: var(--taupe); }
#checkin-word { background: var(--surface); color: var(--text); border-color: var(--hairline); border-radius: 3px; }
#checkin-word::placeholder { color: var(--muted); }
.todo-list, .todo-list li { border-color: var(--hairline); }
.inline-form input { border-radius: 2px; border-color: var(--hairline); }
.inline-form input:focus { box-shadow: 0 0 0 3px var(--greige); }
.entry-head .date { text-transform: none; letter-spacing: 0.01em; font-size: 12.5px; }
.checkin-trend span { border-radius: 3px; border-color: var(--hairline); }
.tag.plain { border: 1px solid var(--hairline); background: none; }

/* Clock */
.clock {
  background: none; color: var(--text); border: 0; border-radius: 0; box-shadow: none; transform: none;
  padding: 0 18px; margin-left: 10px;
}
.clock-time { font: italic 300 24px/1 var(--font-display); }
.clock-day, .clock-ampm { font: 400 11px/1 var(--font-body); letter-spacing: 0.06em; color: var(--muted); }

/* Voice, concierge, likes */
.mic { border-radius: 3px; border-color: var(--hairline); width: 47px; height: 47px; }
.mic.on { background: var(--taupe); color: #2a2522; border-color: var(--taupe); }
@keyframes listening { 0%, 100% { box-shadow: 0 0 0 0 var(--greige); } 50% { box-shadow: 0 0 0 6px var(--greige); } }
a.link {
  align-self: stretch; display: inline-flex; align-items: center; color: var(--text);
  font: 400 13px/1.2 var(--font-body); letter-spacing: 0.01em; text-transform: none;
  border-left: 1px solid var(--hairline); border-radius: 0; padding: 0 20px; min-height: 50px;
}
a.link:hover { background: var(--linen); text-decoration: none; }
.mode-banner { background: var(--greige); border-bottom: 0; text-transform: none; letter-spacing: 0.02em; font-size: 13px; }
body.concierge .hero-card { background: var(--surface); }
.chip { border-radius: 3px; border-color: var(--hairline); }
.like-group h4 { text-transform: none; letter-spacing: 0.01em; font-size: 13px; }
.saved-list, .saved-list li { border-color: var(--hairline); }
.saved-list .date { text-transform: none; letter-spacing: 0.01em; font-size: 12.5px; }

/* Conversation */
.msg.user { border: 0; border-radius: 3px; padding: 11px 18px; }
.msg.assistant::before { width: 13px; height: 13px; top: 7px; }
#input { border-color: var(--hairline); }
#send { padding: 14px 24px; }
footer { text-transform: none; letter-spacing: 0.01em; font-size: 12px; }
.msg.divider, .status { text-transform: none; letter-spacing: 0.02em; font-size: 12.5px; }

/* Recap, panels, forms */
#log .summary-box, #panel-body > .summary-box:first-child { background: var(--linen); border-color: var(--hairline); }
#log .summary-box h3, #panel-body > .summary-box:first-child h3 { font: italic 300 clamp(30px, 6vw, 40px)/1.15 var(--font-display); }
.summary-box { border-color: var(--hairline); }
.summary-box h3, .panel-sub { font-weight: 400; }
dialog { border-radius: 2px; border-color: var(--hairline); }
.window-bar { background: var(--taupe-deep); }
.panel-head { background: var(--surface); color: var(--text); border-bottom: 1px solid var(--hairline); padding: 20px 26px; }
.panel-head h2 { font-weight: 300; font-size: clamp(30px, 6vw, 42px); }
#panel-body { padding: 22px 26px 28px; }
.form-grid input, #panel-body textarea { border-radius: 2px; border-color: var(--hairline); }
.session-list, .session-list li, td, th { border-color: var(--hairline); }
.tag { border: 0; border-radius: 2px; background: var(--greige); }

/* Sign-in: a white card on a taupe ground */
body.login-page { background: var(--taupe-deep); }
.login { background: var(--paper); border: 0; border-radius: 2px; }
.login .window-bar { display: none; }
.login-body { padding: 56px 32px 44px; }
.login h1 {
  font: 300 clamp(50px, 15vw, 66px)/1.02 var(--font-display);
  text-transform: capitalize; letter-spacing: 0; margin: 0 0 16px; color: #3d3733;
}
.login h1 em { font-style: italic; font-weight: 300; color: inherit; -webkit-text-stroke: 0; }
.login .tagline { font-size: 14px; color: #6f655d; margin-bottom: 30px; }
.login .google { background: var(--paper); border-color: var(--hairline); color: #2f2a27; }
.login .ticker { border: 0; border-top: 1px solid var(--hairline); }

@media (max-width: 720px) {
  header { padding: 0; }
  .wordmark { padding: 14px 16px 12px; }
  nav { width: 100%; border-top: 1px solid var(--hairline); }
  button.link, button.link.on, a.link { flex: 1 1 auto; justify-content: center; padding: 0 10px; min-height: 42px; font-size: 12.5px; }
  button.link:first-child { border-left: 0; }
  nav .pill { margin: 6px 10px; }
  .hero-card { padding: 150px 24px 32px; }
  .hero-card::before { inset: 0 0 auto 0; height: 118px; border-right: 0; border-bottom: 1px solid var(--hairline); }
}
