@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("assets/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f4ed;
  --ink: #242c25;
  --muted: #62665b;
  --card: #e9ebe0;
  --line: #d7dbce;
  --outline: #abb3a3;
  --accent: #c44a28;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.artist-page { width: 100%; max-width: 390px; margin-inline: auto; }
.site-header { height: 64px; padding: 24px 24px 0; }
.site-header p { color: var(--muted); font-size: 13px; line-height: 16px; }
.profile { padding: 0 24px 15px; }
.artist-photo {
  display: block;
  width: calc(100% + 2px);
  height: auto;
  aspect-ratio: 344 / 189;
  margin-left: -0.5px;
  border-radius: 12px;
  object-fit: cover;
}
h1, h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }
h1 { margin-top: 10px; font-size: 40px; line-height: 52px; }
.artist-location { margin-top: -1px; color: var(--muted); font-size: 13px; line-height: 16px; }
.tips-section { padding: 0 24px 16px; }
.tip-card { padding: 15px 18px 0; border-radius: 12px; background: var(--card); }
.tip-card h2 { font-size: 28px; line-height: 36px; }
.tip-description { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 15px; }
.tip-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.tip-option {
  min-width: 0;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
}
.tip-option.is-selected { border-color: var(--ink); background: var(--ink); color: #fff; }
.send-tip {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  padding: 12px 16px;
  border: 0;
  border-radius: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.custom-tip { display: block; width: 100%; min-height: 40px; padding: 10px 0 15px; border: 0; margin-top: 5px; background: transparent; color: var(--muted); font-size: 12px; line-height: 15px; }
.performance { padding: 12px 24px 25px; }
.performance h2 { font-size: 29px; line-height: 38px; }
.performance-time { margin-top: 11px; color: var(--accent); font-size: 11px; line-height: 13px; font-weight: 600; letter-spacing: 0.8px; }
.performance h3 { margin-top: 13px; font-size: 18px; line-height: 22px; font-weight: 500; }
.meeting-spot { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 16px; }
.directions { display: flex; min-height: 46px; align-items: center; justify-content: center; margin-top: 19px; border: 1px solid var(--outline); border-radius: 23px; font-size: 13px; line-height: 16px; font-weight: 500; }
.site-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-inline: 24px; padding: 22px 0 22px; border-top: 1px solid var(--line); font-size: 11px; line-height: 13px; }
.site-footer p { color: var(--muted); }
.site-footer a { font-weight: 500; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-dialog { width: calc(100% - 40px); max-width: 370px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--paper); margin: auto; }
.site-dialog::backdrop { background: rgb(36 44 37 / 45%); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-header { display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; }
.dialog-header h2 { font-size: 29px; line-height: 34px; }
.close-dialog { flex-shrink: 0; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--card); color: var(--ink); font-size: 24px; line-height: 28px; }
.dialog-description { color: var(--muted); font-size: 13px; line-height: 21px; margin-top: 14px; }
.site-dialog label { display: block; margin-top: 20px; font-size: 12px; font-weight: 500; }
.amount-field { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.amount-field span { font-size: 24px; }
.amount-field input { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--outline); border-radius: 8px; color: var(--ink); background: var(--paper); font-size: 20px; }
.field-error { font-size: 12px; line-height: 18px; color: var(--accent); margin-top: 6px; }
.field-error:empty { display: none; }
.dialog-action { margin-top: 20px; }

@media (hover: hover) {
  .send-tip:hover { background: #ad3f22; }
  .tip-option:not(.is-selected):hover, .directions:hover { background: #edece3; }
  .custom-tip:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
}
@media (min-width: 600px) { .artist-page { margin-block: 32px; } }
@media (max-width: 359px) {
  .site-header { padding-inline: 20px; }
  .profile, .tips-section, .performance { padding-inline: 20px; }
  .tip-card { padding-inline: 14px; }
  .tip-options { gap: 8px; }
  .site-footer { margin-inline: 20px; gap: 8px; font-size: 10px; }
}
