@font-face {
  font-family: Fraunces;
  src: url("./fraunces.woff2") format("woff2");
  font-weight: 550 900;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("./barlow-condensed.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("./instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f3ece0;
  --ink: #302823;
  --copy: #574b44;
  --red: #c33327;
  --honey: #f6b21a;
  --stone: #e7ddd1;
  --line: #d9cbbb;
  --wordmark: Fraunces, Georgia, serif;
  --display: "Barlow Condensed", "Instrument Sans", sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-synthesis: none;
}

*, ::before, ::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
::selection { color: var(--ink); background: var(--honey); }
a { color: inherit; text-underline-offset: .23em; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.wrap { width: min(calc(100% - 120px), 1260px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 2; top: 12px; left: 12px; padding: 12px; background: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.masthead { padding: 28px 0 17px; border-bottom: 1px solid var(--line); }
.wordmark {
  display: inline-block;
  width: max-content;
  color: var(--ink);
  font: 870 clamp(38px, 4.2vw, 53px)/.94 var(--wordmark);
  font-optical-sizing: auto;
  letter-spacing: -.045em;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
  align-items: center;
  column-gap: clamp(23px, 3.4vw, 56px);
  padding: 25px 0 39px;
}
.hero-copy { position: relative; z-index: 1; padding-bottom: 26px; }
.hero h1 {
  margin: 0;
  font: 800 clamp(62px, 7.45vw, 109px)/.9 var(--display);
  letter-spacing: -.023em;
  word-spacing: .04em;
}
.headline-accent {
  display: inline-block;
  position: relative;
  isolation: isolate;
}
.headline-accent::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 1% -.045em 3%;
  height: .13em;
  background: var(--honey);
  clip-path: polygon(0 18%, 97% 0, 100% 74%, 3% 100%);
}
.hero-copy p {
  max-width: 35ch;
  margin: 28px 0 0;
  color: var(--copy);
  font-size: clamp(18px, 1.65vw, 23px);
  line-height: 1.56;
}
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 38px;
  margin-top: 9px;
  padding: 7px 10px;
  border: 1px solid var(--chat-action-deep);
  border-radius: 7px;
  background: var(--chat-action);
  color: #fffdf7;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 0 var(--chat-action-deep);
  transition: transform .16s ease, box-shadow .16s ease;
}
.primary-action:hover { background: var(--chat-action-deep); transform: translateY(-1px); box-shadow: 0 3px 0 var(--chat-action-deep); }
.primary-action:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--chat-action-deep); }
.primary-action span { font-size: 15px; line-height: 1; }

.demo {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: start;
  min-width: 0;
  isolation: isolate;
  margin: 0;
  padding: 12px 0 0;
}
.demo::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 21% 6% 22% 10%;
  background: var(--red);
  box-shadow: 0 1px 1px #2b221e32;
  transform: rotate(5.5deg);
}
.photo-print {
  position: absolute;
  z-index: -1;
  inset: 17% 9% 19% 4%;
  padding: 7px 7px 12px;
  background: #fdf8ef;
  box-shadow: 1px 9px 16px #332c2835;
  transform: rotate(-5.5deg);
}
.photo-print img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 37% center; }
.photo-print::after {
  content: "";
  position: absolute;
  top: -11px;
  left: 19%;
  width: 83px;
  height: 28px;
  background: color-mix(in srgb, var(--honey) 79%, transparent);
  transform: rotate(-6deg);
  clip-path: polygon(2% 0, 97% 2%, 100% 97%, 1% 100%, 3% 73%, 0 55%, 3% 31%);
}
.demo figcaption {
  padding-block: 13px 1px;
  text-align: center;
  color: var(--copy);
  font-size: 12px;
  line-height: 1.4;
}
.sunburst {
  position: absolute;
  z-index: 2;
  top: 8%;
  right: 6%;
  width: 67px;
  height: 74px;
  pointer-events: none;
  transform: rotate(-6deg);
}
.sunburst i {
  position: absolute;
  width: 10px;
  height: 32px;
  border-radius: 20px;
  background: var(--honey);
  box-shadow: 1px 1px 0 #89571a50;
}
.sunburst i:nth-child(1) { left: 6px; top: 2px; transform: rotate(24deg); }
.sunburst i:nth-child(2) { left: 31px; top: 12px; height: 39px; transform: rotate(49deg); }
.sunburst i:nth-child(3) { left: 47px; top: 43px; height: 29px; transform: rotate(77deg); }

.phone {
  position: relative;
  width: min(100% - 34px, 336px);
  aspect-ratio: 71.6 / 147.6;
  display: flex;
  padding: 4px;
  border: 1px solid #473b35;
  border-radius: 46px;
  background: linear-gradient(132deg, #8c8075, #39312d 20%, #272321 66%, #65594f);
  box-shadow: 0 23px 35px #3d2b2233, 0 8px 14px #3a2c2425, 0 1px 1px #30251d62;
}
@media (min-width: 1091px) {
  .phone, .demo figcaption { transform: translateX(31px); }
}
.phone::before, .phone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #665a50;
}
.phone::before { left: -3px; top: 17%; height: 10%; }
.phone::after { right: -3px; top: 22%; height: 8%; }
.phone-screen {
  --chat-header: #f1f0eb;
  --chat-composer: #f3f0e9;
  --chat-wall: #f4f1ea;
  --chat-incoming: #fefefe;
  --chat-outgoing: #d6fbd0;
  --chat-ink: #202923;
  --chat-muted: #4e5c54;
  --chat-line: #e1dfd7;
  --chat-action: #16774e;
  --chat-action-deep: #0e603e;
  --chat-indicator: #1fa860;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 5px solid #272321;
  border-radius: 42px;
  background: var(--chat-header);
  color: var(--chat-ink);
  font-family: system-ui, sans-serif;
}
.phone-screen :is(a, button):focus-visible { outline-color: var(--chat-action); }
.phone-status {
  position: relative;
  height: 37px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 20px 0 23px;
  font-size: 11px;
  font-weight: 700;
}
.camera-pill {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 30%;
  max-width: 91px;
  height: 20px;
  border-radius: 20px;
  transform: translateX(-50%);
  background: #151618;
}
.phone-indicators { display: flex; align-items: center; gap: 6px; }
.battery {
  display: inline-block;
  position: relative;
  width: 17px;
  height: 8px;
  border: 1px solid #434844;
  border-radius: 2px;
}
.battery::before { content: ""; position: absolute; inset: 1px 3px 1px 1px; background: #434844; border-radius: 1px; }
.battery::after { content: ""; position: absolute; width: 1px; height: 4px; top: 1px; right: -3px; background: #434844; }
.signal {
  width: 12px;
  height: 8px;
  display: block;
  background: #434844;
  clip-path: polygon(0 100%, 0 73%, 18% 73%, 18% 100%, 27% 100%, 27% 53%, 45% 53%, 45% 100%, 54% 100%, 54% 29%, 72% 29%, 72% 100%, 81% 100%, 81% 5%, 100% 5%, 100% 100%);
}
.contact {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
  padding: 8px 14px 10px;
  border-bottom: 1px solid var(--chat-line);
  background: var(--chat-header);
}
.contact img { flex: none; display: block; border: 1px solid var(--chat-line); border-radius: 50%; }
.contact h2 { margin: 0; font-size: 15px; line-height: 1.18; font-weight: 700; letter-spacing: -.015em; }
.contact p { margin: 3px 0 0; color: var(--chat-muted); font-size: 11px; line-height: 1.2; }
.conversation {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #c6c3b8 transparent;
  padding: 10px 10px 11px;
  background: var(--chat-wall) url("./chat-pattern.svg") 0 0 / 172px 144px repeat;
}
.conversation:focus-visible { outline: 2px solid var(--chat-action); outline-offset: -2px; }
.messages { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; list-style: none; margin: 0; padding: 0; }
.messages li { max-width: 88%; overflow-wrap: anywhere; }
.messages .outgoing { align-self: flex-end; }
.just-arrived { animation: arrived .22s ease-out both; }
@keyframes arrived {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.bubble {
  border: 1px solid #e8e7df;
  border-radius: 16px;
  background: var(--chat-incoming);
  color: var(--chat-ink);
  padding: 7px 8px;
  box-shadow: 0 1px 1px #35352913;
}
.outgoing .bubble {
  border-color: #c7eac2;
  background: var(--chat-outgoing);
}
.bubble + .bubble { margin-top: 4px; }
.bubble p { margin: 0; }
.written { min-width: 0; }
.written p { font-size: 13px; line-height: 1.36; }
.handoff { padding: 9px 10px 11px; }
.message-time { display: block; color: var(--chat-muted); font-size: 9px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.written .message-time { margin-top: 3px; text-align: right; }
.outgoing .written .message-time::after { content: " ✓"; color: var(--chat-action); }
.voice { position: relative; display: flex; align-items: center; gap: 7px; width: 221px; max-width: 100%; min-height: 53px; padding: 5px 7px 5px 6px; }
.voice:has(.voice-avatar) { width: 239px; }
.voice-avatar { display: block; flex: none; border: 1px solid var(--chat-line); border-radius: 50%; }
.voice-button {
  display: grid;
  flex: none;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--chat-muted);
}
.voice-button::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.voice-button:hover, .voice-button[data-playing] { background: #dcefe3; border-color: #c5dfcd; color: var(--chat-action); }
.play-icon { width: 0; height: 0; margin-left: 2px; border-block: 5px solid transparent; border-left: 7px solid currentColor; }
.voice-button[data-playing] .play-icon { width: 8px; height: 8px; margin: 0; border: 0; border-radius: 1px; background: currentColor; }
.voice-body { flex: 1; min-width: 0; }
.voice-body p { margin-top: 2px; color: var(--chat-muted); font-size: 11px; line-height: 1.25; font-weight: 650; }
.voice .message-time { align-self: end; margin-bottom: 3px; }
.waveform { display: flex; align-items: center; justify-content: space-between; gap: 2px; width: 100%; max-width: 132px; height: 17px; overflow: hidden; }
.waveform:empty { display: none; }
.waveform:not(:empty)::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--chat-indicator); }
.waveform i { width: 3px; min-width: 2px; border-radius: 3px; background: #a1aaa3; }
.outgoing .waveform i { background: #8cad90; }
.waveform i.played, .outgoing .waveform i.played { background: var(--chat-action); }
.audio-status { margin: 0; color: var(--chat-ink); font-size: 11px; line-height: 1.4; }
.audio-status:not(:empty) { margin-top: 8px; }

.composer {
  flex: none;
  padding: 8px 10px 13px;
  border-top: 1px solid var(--chat-line);
  background: var(--chat-composer);
}
.composer-row { display: flex; align-items: center; gap: 7px; }
.composer input {
  flex: 1;
  width: 0;
  min-height: 39px;
  padding: 7px 11px;
  border: 1px solid #dedfd7;
  border-radius: 50px;
  background: var(--chat-incoming);
  color: var(--chat-ink);
  font: 400 16px/1.3 system-ui, sans-serif;
}
.composer input:focus-visible { outline: 2px solid var(--chat-action); outline-offset: 1px; }
.composer input:disabled { background: var(--chat-wall); }
.composer-button {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex: none;
  border: 1px solid var(--chat-action-deep);
  border-radius: 50%;
  color: #fffdf7;
  background: var(--chat-action);
  font-size: 22px;
  line-height: 1;
}
.composer-button:hover, .demo-mic[data-recording] { background: var(--chat-action-deep); }
.composer-button:disabled { opacity: .65; cursor: default; }
.mic-icon {
  position: relative;
  width: 6px;
  height: 12px;
  margin-bottom: 5px;
  border-radius: 8px;
  background: currentColor;
}
.mic-icon::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -3px;
  width: 12px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-top: 0;
  border-radius: 0 0 7px 7px;
}
.mic-icon::after { content: ""; position: absolute; top: 14px; left: 2px; width: 2px; height: 4px; background: currentColor; }
.demo-mic[data-recording] .mic-icon {
  width: 13px;
  height: 14px;
  margin: 0;
  border-radius: 0;
  clip-path: polygon(50% 0, 100% 50%, 65% 50%, 65% 100%, 35% 100%, 35% 50%, 0 50%);
}
.demo-mic[data-recording] .mic-icon::before, .demo-mic[data-recording] .mic-icon::after { display: none; }
.composer-feedback { display: flex; align-items: center; gap: 8px; }
.composer-status { margin: 0; font-size: 11px; line-height: 1.38; color: var(--chat-muted); }
.composer-status:not(:empty) { margin-top: 6px; }
.demo-cancel {
  flex: none;
  margin-top: 5px;
  border: 0;
  padding: 1px 0;
  color: var(--chat-action-deep);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
}

.field-notes { background: var(--stone); color: var(--ink); padding: 44px 0 50px; }
.field-notes h2 { margin: 0; font: 800 clamp(36px, 3.7vw, 54px)/.94 var(--display); letter-spacing: -.015em; text-wrap: balance; }
.field-notes-inner { display: grid; grid-template-columns: minmax(220px, .84fr) minmax(0, 2.16fr); align-items: start; gap: 26px; }
.tickets { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin: 0; padding: 0; }
.ticket {
  min-width: 0;
  padding: 14px 14px 18px;
  background: #f8f0e3;
  color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.ticket h3 { margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1px dashed currentColor; font: 800 19px/1 var(--display); letter-spacing: .015em; }
.ticket p { margin: 0; font-size: 16px; font-weight: 650; line-height: 1.3; }
.ticket .ticket-meaning { margin-top: 5px; font-size: 13px; font-weight: 400; }

.site-footer { padding: 19px 0 23px; }
.site-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; color: var(--copy); font-size: 13px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }

@media (max-width: 1090px) {
  .wrap { width: calc(100% - 80px); }
  .hero { column-gap: 25px; }
  .hero h1 { font-size: clamp(61px, 8.4vw, 88px); }
  .demo::before { inset-inline: 16px; }
  .photo-print { inset-inline: 14px; }
  .sunburst { right: 1%; }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 52px); }
  .hero { column-gap: 14px; }
  .hero h1 { font-size: clamp(52px, 8.3vw, 68px); }
  .hero-copy p { font-size: 18px; }
  .phone { width: min(100% - 24px, 317px); }
  .sunburst { right: -1%; transform: scale(.75) rotate(-6deg); }
}
@media (max-width: 745px) {
  .wrap { width: calc(100% - 40px); }
  .masthead { padding-top: 23px; }
  .hero { grid-template-columns: minmax(0, 1fr); row-gap: 28px; padding: 30px 0 36px; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { font-size: clamp(53px, 14vw, 84px); }
  .hero-copy p { margin-top: 19px; }
  .demo { justify-self: center; width: min(100%, 455px); padding-top: 97px; }
  .phone { width: min(100% - 34px, 320px); }
  .demo::before { inset: 15px 14px auto; height: 155px; transform: rotate(4deg); }
  .photo-print { inset: 7px 13px auto; height: 165px; transform: rotate(-4deg); padding: 5px 5px 8px; }
  .photo-print img { object-position: 48% 56%; }
  .photo-print::after { left: 9%; }
  .sunburst { top: 6%; right: 0; }
  .field-notes { padding-block: 35px 38px; }
  .field-notes h2 { font-size: clamp(39px, 8vw, 54px); }
  .field-notes-inner { grid-template-columns: minmax(0, 1fr); gap: 19px; }
}
@media (max-width: 560px) {
  .tickets { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .ticket { padding: 12px 14px 14px; }
}
@media (max-width: 345px) {
  .wrap { width: calc(100% - 32px); }
  .hero h1 { font-size: 49px; }
  .phone { width: calc(100% - 8px); }
  .sunburst { right: -6px; }
  .conversation { padding: 10px 8px 11px; }
  .bubble { padding-block: 5px; }
  .written p { font-size: 12px; }
  .written .message-time { display: none; }
  .voice { width: 197px; min-height: 47px; }
  .voice:has(.voice-avatar) { width: 217px; }
}
@media (prefers-reduced-motion: reduce) {
  .just-arrived { animation: none; }
  .primary-action { transition: none; }
}
