:root {
  --night: #0e1020;
  --ink: #171731;
  --muted: #55566e;
  --violet: #593fde;
  --lavender: #aa9bff;
  --coral: #ff805c;
  --paper: #f6f5fb;
  --tint: #eeebff;
  --line: #dedcea;
  font-family: Arial, "DejaVu Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.55; }
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }
header, footer { display: flex; align-items: center; gap: 24px; padding: 18px max(4%, calc((100% - 1200px) / 2)); }
header { flex-wrap: wrap; background: white; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); font-size: 30px; font-weight: 800; letter-spacing: -.055em; line-height: 1; }
.brand:hover { text-decoration: none; color: var(--violet); }
nav, .account, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
nav { flex: 1; column-gap: 18px; }
nav a { color: var(--ink); font-size: 14px; font-weight: 600; }
.account { font-size: 14px; }
main { max-width: 1280px; min-height: 76vh; margin: auto; padding: 36px 40px 64px; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(34px, 4vw, 54px); margin: 12px 0; }
h2 { font-size: clamp(25px, 3vw, 34px); }
h3 { font-size: 22px; }
p, .skills, .muted, small { color: var(--muted); }
.eyebrow, .tag, .badge { display: inline-block; padding: 4px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.eyebrow { background: var(--violet); color: white; }
.tag, .badge { background: var(--tint); color: #4530ae; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
  gap: 5%;
  margin-bottom: 56px;
  padding: clamp(32px, 5vw, 72px);
  background: var(--night);
  border-left: 8px solid var(--violet);
  color: white;
}
.hero h1 { font-size: clamp(56px, 8vw, 112px); letter-spacing: -.055em; margin: 0; }
.hero-headline { max-width: 20em; font-size: clamp(24px, 2.7vw, 38px); font-weight: 700; letter-spacing: -.025em; line-height: 1.12; margin: 12px 0; color: var(--coral); }
.lead { color: #d5d3e6; max-width: 48ch; margin: 16px 0 26px; }
.hero-art { position: relative; width: 80%; aspect-ratio: 1; justify-self: center; margin: 15% 0; background: var(--violet); border-radius: 50%; }
.hero-art::before, .hero-art::after { content: ""; position: absolute; border-radius: 50%; aspect-ratio: 1; }
.hero-art::before { width: 43%; left: -22%; bottom: -14%; background: var(--coral); }
.hero-art::after { width: 22%; right: 10%; top: -18%; background: var(--lavender); }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 1px solid transparent; background: var(--violet); color: white; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
button:hover, .button:hover { background: #4430ac; color: white; text-decoration: none; }
.secondary { background: transparent; color: var(--violet); border-color: currentColor; }
.hero .secondary { color: white; }
.quiet { background: transparent; color: var(--violet); padding: 6px 10px; }
.small { padding: 8px 14px; }
.grid, .detail-layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.panel, .task-card { display: block; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 26px; margin-bottom: 20px; min-width: 0; }
.task-card { color: var(--ink); }
.task-card:hover { text-decoration: none; border-color: var(--violet); }
.task-card:hover h3 { text-decoration: underline; }
.card-top, .card-bottom { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.card-bottom { justify-content: space-between; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.card-bottom strong, .arrow, .step { color: var(--violet); }
.arrow { margin-left: auto; font-size: 21px; }
.company-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--tint); color: var(--violet); font-size: 20px; font-weight: bold; }
.skills { font-size: 13px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.page-intro, .section-heading, .banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2, .banner h2 { margin: 10px 0; }
.step { font-size: 30px; font-weight: bold; }
.banner { margin-top: 32px; padding: 32px; border-radius: 14px; background: var(--coral); }
.banner p { color: var(--ink); }
.banner .button { background: var(--night); }
.auth { max-width: 480px; margin: 32px auto; }
.auth.wide { max-width: 720px; }
.auth h1 { font-size: 34px; }
form label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit; color: var(--ink); background: white; border: 1px solid #adaabf; border-radius: 7px; }
textarea { min-height: 130px; resize: vertical; }
input[type=file] { font-size: 14px; }
form > button { margin-top: 16px; }
.account button, .filters button { margin: 0; }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
fieldset:disabled { opacity: .65; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.filters label { flex: 1 1 115px; margin: 0; min-width: 0; }
.filters .search { flex: 2 1 200px; }
.pre { white-space: pre-wrap; }
.list-item { padding: 18px 0; border-top: 1px solid var(--line); }
.list-item > strong { display: block; }
.notice { margin: 16px 0; padding: 14px 16px; background: var(--tint); border-left: 4px solid var(--violet); border-radius: 5px; }
.notice.error { background: #ffebe6; border-color: #ba4328; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; text-align: left; overflow-wrap: normal; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--tint); font-size: 12px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
footer { flex-wrap: wrap; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer span:last-child { margin-left: auto; }
.avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--tint); }
.language-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; }
.language-switch a { padding: 5px 8px; border-radius: 5px; color: var(--muted); font-size: 12px; font-weight: bold; }
.language-switch a[aria-current=true] { background: var(--tint); color: var(--violet); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.hero :focus-visible { outline-color: var(--lavender); }
@media (max-width: 1000px) {
  header { gap: 12px; }
  nav { order: 3; flex-basis: 100%; }
  nav:empty { display: none; }
  header > .brand { margin-right: auto; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  main { padding: 20px 16px 40px; }
  header, footer { padding: 16px; }
  .brand { font-size: 25px; }
  .account > span { display: none; }
  .grid, .grid.two, .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 24px; margin-bottom: 32px; }
  .hero-art { grid-row: 1; width: 20%; justify-self: end; margin: 6% 2% 0; }
  .page-intro, .section-heading, .banner { flex-direction: column; align-items: flex-start; }
  .panel, .task-card { padding: 20px; }
  footer span:last-child { margin-left: 0; }
}

.skip-link { position: absolute; left: 16px; top: 0; transform: translateY(-120%); z-index: 1; padding: 10px 16px; background: var(--night); color: white; }
.skip-link:focus { top: 8px; transform: none; }
header > .brand { margin-right: auto; }
header nav a { display: inline-flex; align-items: center; min-height: 36px; }
nav a[aria-current=page] { color: var(--violet); text-decoration: underline; text-underline-offset: 5px; }
.filters { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; }
.filters .search { grid-column: 1; }
.filter-options { grid-row: 2; grid-column: 1 / -1; }
.filter-options summary { cursor: pointer; width: fit-content; padding: 8px 0; color: var(--violet); font-weight: 600; }
.filter-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); gap: 12px; padding: 8px 0; }
.filters > button { grid-column: 2; grid-row: 1; }
.filters > a { grid-column: 3; grid-row: 1; align-self: end; padding: 10px 0; }
@media (max-width: 680px) {
  .filters { grid-template-columns: minmax(0, 1fr) auto; }
  .filters > a { grid-column: 1 / -1; grid-row: 3; justify-self: start; }
  header nav { gap: 2px 16px; }
  input, select, textarea { font-size: 16px; }
}
