@font-face {
  font-family: 'Motorway';
  src: url('./assets/fonts/motorway-regular.otf') format('opentype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  font-family: 'Motorway', Arial, Helvetica, sans-serif;
  color: #090909;
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
main { min-height: 100svh; display: grid; place-items: center; padding: 56px 28px; }
.hero { width: min(100%, 808px); position: relative; transform: translateY(-25px); }
h1 { margin: 0 0 56px; text-align: center; font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: clamp(32px, 4.7vw, 48px); font-weight: 400; line-height: 1.36; letter-spacing: .2px; }
.headline-ending { white-space: nowrap; }
.composer { display: flex; align-items: center; min-height: 76px; width: 100%; gap: 18px; padding: 12px 23px 12px 18px; border: 1px solid #7ab6ff; border-radius: 999px; transition: border-color .15s, box-shadow .15s; }
.composer:focus-within { border-color: #428df0; box-shadow: 0 0 0 3px #edf5ff; }
.name-entry { display: flex; align-items: center; flex: 1; min-width: 0; gap: 7px; }
.attach-button { width: 42px; height: 42px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; color: #b7c4cb; cursor: pointer; position: relative; }
.attach-button:hover { background: #f3f7fa; color: #758895; }
.attach-button:focus-within { outline: 2px solid #428df0; outline-offset: 2px; }
.attach-button input { position: absolute; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.attach-button svg { width: 34px; height: 34px; pointer-events: none; }
.attach-button path { stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
#person-name { width: 100%; min-width: 0; padding: 7px 0; border: 0; outline: none; background: transparent; font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 23px; color: #111; }
#person-name::placeholder { color: #161616; opacity: 1; }
.settings { display: flex; align-items: center; gap: 17px; flex-shrink: 0; }
.select-wrap { position: relative; display: flex; align-items: center; }
select { appearance: none; -webkit-appearance: none; border: 0; border-radius: 5px; padding: 10px 23px 10px 4px; background: transparent; color: #747e85; cursor: pointer; font-size: 19px; width: 92px; }
.format select { color: #62676c; width: 138px; }
select:focus-visible { outline: 2px solid #428df0; outline-offset: 3px; }
.select-wrap svg { position: absolute; right: 3px; width: 16px; height: 16px; pointer-events: none; color: #8e969c; }
.select-wrap path { stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feedback { position: absolute; top: calc(100% + 16px); left: 24px; right: 24px; color: #69747c; font-size: 14px; line-height: 1.5; }
.attachment { align-items: center; gap: 10px; width: fit-content; max-width: 100%; padding: 4px 7px 4px 12px; background: #f4f7fa; border-radius: 18px; }
.attachment:not([hidden]) { display: flex; }
#attachment-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#remove-reference { border: 0; background: transparent; color: #69747c; font-size: 22px; cursor: pointer; border-radius: 50%; width: 28px; height: 28px; }
#status { margin: 8px 0 0; }
.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: 600px) {
  main { padding: 40px 22px; }
  .hero { transform: translateY(-30px); }
  h1 { font-size: clamp(25px, 6.7vw, 36px); margin-bottom: 36px; line-height: 1.4; letter-spacing: 0; }
  .composer { border-radius: 28px; flex-wrap: wrap; padding: 12px 14px; gap: 6px; }
  .name-entry { flex-basis: 100%; }
  #person-name { font-size: 19px; }
  .settings { width: 100%; justify-content: flex-end; gap: 12px; }
  select { font-size: 16px; }
  .feedback { left: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .composer { transition: none; }
}
