@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #faf9f5;
  --ink: #302c26;
  --muted: #646058;
  --clay: #a84120;
  --line: #dcd8ce;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  font: 100%/1.5 "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scrollbar-color: #91877a var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
::selection { background: #ffd297; color: var(--ink); }
:focus-visible { outline: 3px solid #79502f; outline-offset: 3px; }
.frame { width: min(calc(100% - 8vw), 1240px); margin-inline: auto; }
.symbols { position: absolute; height: 0; width: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 23px; }
.brand { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.brand { gap: 10px; font: 750 1.33rem/1 var(--display); letter-spacing: -.04em; }
.guide { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; color: var(--clay); font-size: .81rem; font-weight: 600; min-height: 26px; text-decoration: underline; text-underline-offset: .18em; }
.guide:hover { color: #742b16; }
.guide .icon { width: 15px; height: 15px; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 14px;
  background: #f8d5a0;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #f8d5a0 0%, #f8d5a0ed 29%, #f8d5a000 62%), url("/assets/tel-aviv-at-sunset.webp") center / cover no-repeat; }
.hero-copy { padding: clamp(28px, 3vw, 46px) 4.5% clamp(46px, 4.6vw, 68px); }
h1, h2, p { margin: 0; }
h1 { font: 750 clamp(4rem, 6vw, 5.6rem)/.9 var(--display); letter-spacing: -.04em; color: #3e2c1e; }
.hero p { font-size: clamp(.97rem, 1.26vw, 1.12rem); font-weight: 500; line-height: 1.45; max-width: 36ch; margin-top: 19px; color: #402b1a; }
.workbench { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 96px); padding: clamp(32px, 3.3vw, 52px) 4.5% 44px; }
.workbench > * { min-width: 0; }
h2 { font: 700 clamp(1.55rem, 2.3vw, 2rem)/1.15 var(--display); letter-spacing: -.035em; }
.intro { color: var(--muted); margin-top: 7px; font-size: .96rem; }
form, .message-card { margin-top: 24px; }
label { display: block; font-size: .88rem; font-weight: 700; margin-bottom: 7px; }
input, select, button { font: inherit; }
input, select {
  width: 100%; min-width: 0; height: 46px; padding: 9px 12px; color: var(--ink);
  border: 1px solid #bdb9ae; border-radius: 7px; background: #fffefa; caret-color: var(--clay);
}
input::placeholder { color: #706c64; opacity: 1; }
input:focus, select:focus { border-color: var(--clay); }
.input-with-icon, .select-wrap { position: relative; }
.input-with-icon .icon, .select-wrap .icon { position: absolute; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-with-icon .icon { left: 12px; }
.input-with-icon input { padding-left: 38px; }
.select-wrap select { appearance: none; padding-right: 32px; cursor: pointer; }
.select-wrap .icon { right: 11px; width: 16px; }
.hint, .private, .example { font-size: .81rem; color: var(--muted); }
.hint { margin-top: 6px; }
.platform-select { margin-bottom: 20px; }
.settings { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; margin-top: 20px; }
button {
  display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%; min-height: 46px;
  margin-top: 24px; padding: 10px 18px; border: 0; border-radius: 7px; color: white;
  font-weight: 700; background: var(--clay); cursor: pointer; transition: background-color .15s;
}
button:hover { background: #8f3519; }
button:active { background: #742b16; }
button:disabled { background: #71695d; cursor: wait; }
#city-results {
  margin: 5px 0 0; padding: 4px; list-style: none; max-height: 270px; overflow: auto;
  border: 1px solid var(--line); border-radius: 7px; background: #fffefa;
  box-shadow: 0 7px 15px #302c261a;
}
#city-results li { padding: 7px 8px; border-radius: 4px; line-height: 1.25; cursor: pointer; overflow-wrap: anywhere; }
#city-results li:hover, #city-results [aria-selected="true"] { background: #f5e7da; }
#city-results span { display: block; color: var(--muted); font-size: .78rem; margin-top: 3px; }
.location-actions { display: flex; align-items: center; flex-wrap: wrap; column-gap: 15px; margin-top: 3px; }
button.location-action {
  display: inline-block; text-align: left; width: auto; min-height: 36px; margin: 0; padding: 4px 0;
  background: none; color: var(--clay); font-size: .85rem; text-decoration: underline; text-underline-offset: .18em;
}
button.location-action:hover { color: #742b16; }
button.location-action[aria-disabled="true"] { color: var(--muted); cursor: wait; }
#location-status:empty { margin: 0; }
.private, .example { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.private { justify-content: center; }
.private .icon, .example .icon { width: 14px; height: 14px; }
#result:not(:empty) { margin-top: 16px; padding: 12px 14px; background: #f1ede6; border-radius: 7px; font-size: .9rem; }
#result[data-state="success"] { color: #235035; background: #e6f1e7; }
#result[data-state="error"] { color: #792b1a; background: #fce9dc; }
.message-card { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; color: #252323; }
.channel { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: .95rem; }
.channel-mark { width: 19px; height: 19px; }
.message { display: flex; gap: 10px; padding: 23px 18px 25px; font-size: .91rem; overflow-wrap: anywhere; }
.avatar { flex: none; display: grid; place-items: center; width: 38px; height: 38px; background: #ffebcb; border-radius: 9px; }
.byline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 3px; }
.byline strong { font-size: .99rem; }
.sample-card-title { display: none; }
.message-card[data-platform="teams"] .channel { background: #f1f0fb; color: #34346b; }
.message-card[data-platform="teams"] .avatar { background: #eae9fa; }
.message-card[data-platform="teams"] .byline { margin-bottom: 8px; }
.message-card[data-platform="teams"] .sample-card-title {
  display: block; font-weight: 700; padding: 12px 14px 0; border: 1px solid #d7d6e9;
  border-bottom: 0; border-radius: 7px 7px 0 0;
}
.message-card[data-platform="teams"] .sample-card-title + p {
  padding: 3px 14px 12px; border: 1px solid #d7d6e9; border-top: 0; border-radius: 0 0 7px 7px;
}
.app-tag { padding: 1px 4px; border-radius: 3px; font-size: .7rem; font-weight: 650; background: #f0eeee; color: #5c5555; }
#sample-time { font-variant-numeric: tabular-nums; font-size: .75rem; color: #686461; }
.credits {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 18px 24px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .81rem;
}
.credits a { color: inherit; text-underline-offset: .2em; }
.credits a:hover { color: var(--clay); }
@media (max-width: 850px) {
  .hero::before { background-image: linear-gradient(90deg, #f8d5a0 0%, #f8d5a0f2 45%, #f8d5a000 73%), url("/assets/tel-aviv-at-sunset.webp"); }
  .workbench { padding-inline: 0; gap: 30px; }
  .settings { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 690px) {
  .frame { width: calc(100% - 32px); }
  .masthead { padding-block: 15px; }
  .brand { font-size: 1.16rem; gap: 7px; }
  .brand img { width: 29px; }
  .hero-copy { padding: 27px 24px clamp(125px, 23vw, 160px); }
  .hero::before { top: auto; height: clamp(122px, 23vw, 157px); background-image: url("/assets/tel-aviv-at-sunset.webp"); background-position: right bottom; background-size: cover; mask-image: linear-gradient(to bottom, transparent, #000 28%); }
  .hero p { max-width: 27ch; font-size: .98rem; margin-top: 12px; }
  .hero h1 { font-size: clamp(3.2rem, 10vw, 4.3rem); }
  .workbench { grid-template-columns: 1fr; padding: 27px 4px 36px; gap: 31px; }
  aside { border-top: 1px solid var(--line); padding-top: 23px; }
  form, .message-card { margin-top: 18px; }
  .private { margin-top: 9px; }
}
@media (max-width: 380px) {
  .settings { grid-template-columns: 1fr; }
  .hero-copy { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  button { transition: none; }
}

#sample-message { white-space: pre-line; }
