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

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

:root {
  color-scheme: light;
  --surface: #fff;
  --ink: #1b1b1f;
  --body: #3d3f4a;
  --muted: #5b5e6b;
  --placeholder: #6c6e7d;
  --line: #e3e4ec;
  --input-border: #c6c8d5;
  --brand: #4049a8;
  --brand-soft: #eef0fb;
  --control-radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/1.125 "Inter Tight", system-ui, sans-serif;
}

h1, p { margin: 0; }

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 48px 20px;
}

.site-logo { display: block; flex: none; }
.site-help { color: var(--muted); font-size: 13px; line-height: 19px; text-align: right; }
.site-help a { white-space: nowrap; }

.document {
  display: grid;
  gap: 23px;
  width: min(640px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: 24px 64px;
}

.intro { display: grid; gap: 12px; }
.intro > p, .response > p { color: var(--body); }

h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  text-wrap: balance;
}

.author,
.author-identity,
.author-links {
  display: flex;
  align-items: center;
}

.author { justify-content: space-between; gap: 12px; padding-block: 2px 3px; }
.author-identity { gap: 10px; font-family: Inter, system-ui, sans-serif; }
.author-links { gap: 8px; }
.author-name { font-size: 14px; font-weight: 600; line-height: 18px; }
.author-role { color: var(--muted); font-size: 10px; line-height: 14px; }

.avatar {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--brand-soft);
}

.avatar img {
  position: absolute;
  top: 0;
  right: 0;
  width: calc(34px * 4 / 3);
  height: 34px;
  object-fit: cover;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.icon-button:hover { background: var(--brand-soft); }
.icon-button img { display: block; }
.divider { width: 100%; height: 1px; margin: 0; border: 0; background: var(--line); }
.application { display: grid; gap: 15px; min-width: 0; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; line-height: 20px; }

.field :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 1px solid var(--input-border);
  border-radius: var(--control-radius);
  padding-inline: 14px;
  background-color: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 21px;
}

.field textarea { height: auto; min-height: 88px; padding-block: 12px; resize: vertical; }
.field :is(input, textarea)::placeholder, .field select:invalid { color: var(--placeholder); opacity: 1; }
.field select {
  appearance: none;
  padding-inline-end: 40px;
  background: var(--surface) url("/assets/chevron-down.svg") no-repeat right 14px center;
}
.field select option { color: var(--ink); }

.submit { display: grid; justify-items: start; gap: 10px; padding-block-start: 2px; }
.submit-button {
  border: 0;
  border-radius: var(--control-radius);
  padding: 12px 18px;
  background: var(--ink);
  color: var(--surface);
  cursor: pointer;
  font: 700 15px/22px "Inter Tight", system-ui, sans-serif;
  letter-spacing: -0.14px;
}

.submit-button:hover { background: #34343c; }
.submit-button:disabled { opacity: 0.65; cursor: wait; }
.fine-print { color: var(--muted); font-size: 13px; line-height: 19px; }
.form-error { color: #9b2424; font-size: 14px; line-height: 20px; }
.response { display: grid; justify-items: start; gap: 16px; }

@media (max-width: 1023px) {
  :root { --control-radius: 8px; }
  .site-header { padding: 24px 36px 18px; }
  .document { width: min(608px, calc(100% - 48px)); padding-block-end: 56px; }
  h1 { font: 700 38px/45px Inter, system-ui, sans-serif; letter-spacing: -1.65px; }
  .desktop-break { display: none; }
  .avatar { border-radius: 50%; }
  .author-role { font-size: 12px; }
}

@media (max-width: 767px) {
  .site-header { padding: 18px 16px; gap: 8px; flex-wrap: wrap; }
  .site-help { margin-inline-start: auto; font: 400 12px/16px Inter, system-ui, sans-serif; }
  .site-help a { display: block; }
  .document { padding-block: 23px 36px; }
  h1 { font-size: 31px; line-height: 37px; letter-spacing: -1.1px; }
  .submit-button { width: 100%; }
}
