:root {
  --bg: #f5f2ee;
  --paper: #ffffff;
  --ink: #141414;
  --muted: #6f6862;
  --line: #ddd5cc;
  --red: #c9181f;
  --gold: #c19126;
  --teal: #18b9b2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.page-shell,
.admin-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.event-header {
  margin: 28px 0 0;
  background: #050505;
}

.event-header img {
  display: block;
  width: 100%;
  height: auto;
}

.intro,
.registration,
.contacts,
.admin-shell {
  background: var(--paper);
}

.intro {
  padding: 46px clamp(22px, 5vw, 70px);
  border-bottom: 4px solid var(--red);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  font-size: clamp(32px, 5vw, 58px);
}

h2 {
  font-size: 30px;
}

.intro p {
  max-width: 860px;
  font-size: 18px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 34px 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.facts div {
  min-height: 96px;
  padding: 20px;
  background: #111;
  color: #fff;
}

.facts span,
.form-grid span,
.login-box span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.facts span {
  color: var(--gold);
  text-transform: uppercase;
}

.facts strong {
  display: block;
  font-size: 18px;
}

.registration {
  padding: 42px clamp(22px, 5vw, 70px) 56px;
}

.section-title {
  margin-bottom: 26px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

.form-grid label,
.login-box label {
  display: block;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}

input:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

input[aria-invalid="true"] {
  border-color: var(--red);
}

small {
  display: block;
  margin-top: 6px;
  color: var(--red);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.form-actions p {
  margin: 0;
  color: var(--muted);
}

button,
.admin-top a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 2px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0 22px;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.admin-top a:hover {
  background: #a90f15;
}

button:disabled {
  cursor: wait;
  opacity: .7;
}

.notice {
  margin: 0 0 24px;
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  background: #fbf4e5;
}

.notice.success {
  border-left-color: var(--teal);
  background: #e8f8f7;
}

.notice.error {
  border-left-color: var(--red);
  background: #fdebec;
}

.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 28px;
  margin-bottom: 48px;
  padding: 28px clamp(22px, 5vw, 70px);
  border-top: 1px solid var(--line);
}

.contacts div {
  display: grid;
  gap: 3px;
}

.site-link {
  align-self: end;
  font-weight: 700;
  color: var(--red);
}

.admin-shell {
  margin-top: 36px;
  margin-bottom: 36px;
  padding: 32px;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}

.admin-top nav {
  display: flex;
  gap: 10px;
}

.login-box {
  width: min(420px, 100%);
  display: grid;
  gap: 18px;
}

.table-wrap {
  overflow-x: auto;
}

.table-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.table-meta strong {
  font-size: 34px;
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #161616;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 760px) {
  .page-shell,
  .admin-shell {
    width: 100%;
  }

  .event-header {
    margin-top: 0;
  }

  .facts,
  .form-grid,
  .contacts {
    grid-template-columns: 1fr;
  }

  .form-actions,
  .admin-top {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-top nav {
    flex-direction: column;
  }

  button,
  .admin-top a {
    width: 100%;
  }
}
