:root {
  color-scheme: light;
  --maroon: #60032a;
  --dark-maroon: #41021c;
  --red: #ec003e;
  --parchment: #faf6f0;
  --cream: #f7eddf;
  --white: #fff;
  --slate: #363333;
  --muted: #6d6868;
  --rule: #e6dcd3;
  --sans: Manrope, Arial, sans-serif;
  --serif: Delvona, Georgia, serif;
}

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

[hidden] { display: none !important; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--parchment);
  color: var(--slate);
  font: 1rem/1.55 var(--sans);
}

h1, h2, h3, p { margin: 0; }

a { color: var(--maroon); }
a:focus-visible { outline: 3px solid var(--red); outline-offset: 5px; }

.shell { width: min(100% - 3rem, 72rem); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 1;
  inset: 0 auto auto 1rem;
  padding: .65rem 1rem;
  transform: translateY(-150%);
  background: var(--white);
}

.skip-link:focus { transform: translateY(.5rem); }

.masthead {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

.masthead-inner {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand { display: inline-flex; }
.brand img { display: block; width: 9.25rem; height: auto; }

.section-name, .sign-out {
  color: var(--maroon);
  font-size: .9375rem;
  font-weight: 600;
}

.sign-out { text-underline-offset: .25em; }

.preview-note {
  border-bottom: 1px solid var(--rule);
  padding-block: .55rem;
  color: var(--maroon);
  background: var(--cream);
  font-size: .875rem;
}

.main {
  flex: 1;
  padding-block: clamp(2rem, 4.5vw, 3.5rem) 3.5rem;
}

.entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 1.25rem;
}

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 25.25rem;
  padding: clamp(2rem, 4.4vw, 3.25rem);
  border-radius: 0 3.75rem 0 0;
  background: var(--maroon);
  color: var(--cream);
}

.hero-art {
  position: absolute;
  width: 27rem;
  height: 30rem;
  right: -11.5rem;
  bottom: -7.75rem;
  border-radius: 0 0 0 12rem;
  background: linear-gradient(135deg, #7c0638, #a80740);
  pointer-events: none;
}

.hero-art span {
  position: absolute;
  inset: 1.2rem;
  border: 1px solid #f3bec54d;
  border-radius: 0 0 0 11rem;
}

.hero-art span:nth-child(2) { inset: 2.45rem; border-radius: 0 0 0 10rem; }
.hero-art span:nth-child(3) { inset: 3.7rem; border-radius: 0 0 0 9rem; }

.hero-content { position: relative; }

.eyebrow {
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1, .action-card h2, .preparation h2 {
  font-family: var(--serif);
  font-weight: 400;
}

.hero h1 {
  max-width: 13ch;
  margin-block: 1.1rem 1.2rem;
  font-size: clamp(3rem, 6vw, 5.25rem);
  line-height: .98;
  letter-spacing: -.06em;
}

.hero-intro { max-width: 34ch; font-size: 1.125rem; line-height: 1.6; }

.action-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3.3vw, 2.625rem);
  border: 1px solid var(--rule);
  border-radius: 0 0 2.25rem 0;
  background: var(--white);
}

.action-card .eyebrow { color: var(--maroon); margin-bottom: .65rem; }

.action-card h2 {
  color: var(--dark-maroon);
  font-size: clamp(2rem, 3.1vw, 2.625rem);
  letter-spacing: -.045em;
  line-height: 1.08;
}

.action-card h2 + p { margin-top: .9rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 3.375rem;
  padding: .8rem 1.1rem;
  border-radius: .25rem;
  background: var(--maroon);
  color: var(--white);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.button:hover { background: var(--dark-maroon); }

.microsoft-mark {
  display: inline-grid;
  grid-template-columns: repeat(2, 7px);
  grid-template-rows: repeat(2, 7px);
  gap: 2px;
  flex: none;
}

.microsoft-mark i { background: #f25022; }
.microsoft-mark i:nth-child(2) { background: #7fba00; }
.microsoft-mark i:nth-child(3) { background: #00a4ef; }
.microsoft-mark i:nth-child(4) { background: #ffb900; }

.action-note {
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  color: var(--muted);
  font-size: .875rem;
}

.preparation { margin-top: clamp(2rem, 5vw, 3rem); }

.preparation h2 {
  margin-bottom: 1rem;
  color: var(--dark-maroon);
  font-size: 1.875rem;
  letter-spacing: -.035em;
  line-height: 1.15;
}

.prep-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.prep-item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--rule);
}

.prep-item h3 { font-size: 1rem; margin-bottom: .15rem; }
.prep-item p { color: var(--muted); }

.prep-icon {
  position: relative;
  flex: 0 0 2.625rem;
  height: 2.625rem;
  border-radius: 0 0 .85rem 0;
  background: var(--cream);
  color: var(--maroon);
}

.prep-icon::before, .prep-icon::after { position: absolute; content: ""; }

.person-icon::before {
  inset: .55rem auto auto 1.05rem;
  width: .55rem;
  height: .55rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.person-icon::after {
  inset: 1.2rem auto auto .77rem;
  width: 1.09rem;
  height: .65rem;
  border: 1px solid currentColor;
  border-radius: .5rem .5rem .12rem .12rem;
}

.desk-icon::before {
  inset: .66rem auto auto .66rem;
  width: 1.3rem;
  height: .86rem;
  border: 1px solid currentColor;
  border-radius: .12rem;
}

.desk-icon::after {
  inset: 1.51rem auto auto 1.04rem;
  width: .55rem;
  height: .33rem;
  border: solid currentColor;
  border-width: 0 1px 1px;
}

.request-main {
  max-width: 64rem;
  padding-block: clamp(1.1rem, 2.5vw, 2.25rem) 4rem;
}

.request-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.25rem, 2.8vw, 1.85rem) clamp(1.15rem, 3.5vw, 2.6rem);
  border-radius: 0 3rem 0 0;
  background: var(--maroon);
  color: var(--cream);
}

.request-intro::after {
  position: absolute;
  z-index: -1;
  inset: 1rem -4rem -4rem auto;
  width: 17rem;
  border: 1px solid #f7eddf55;
  border-radius: 0 0 0 8rem;
  background: #ec003e20;
  content: "";
}

.request-intro h1 {
  margin-top: .35rem;
  font: 400 clamp(2.35rem, 4.8vw, 3.5rem)/1.03 var(--serif);
  letter-spacing: -.05em;
}

.request-intro h1 + p {
  max-width: 36rem;
  margin-top: .7rem;
}

.request-panel {
  margin-top: 1rem;
  padding: clamp(1.15rem, 2.4vw, 1.7rem) clamp(1.15rem, 3.5vw, 2.6rem);
  border: 1px solid var(--rule);
  border-radius: 0 0 2.25rem 0;
  background: var(--white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 0 0 1.4rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--rule);
  list-style: none;
}

.steps li {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.35;
}

.steps li[aria-current="step"] {
  color: var(--maroon);
  font-weight: 700;
}

.step-number {
  display: inline-grid;
  place-items: center;
  flex: 0 0 1.6rem;
  height: 1.6rem;
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-size: .8125rem;
  font-weight: 700;
}

.steps li[aria-current="step"] .step-number {
  border-color: var(--maroon);
  background: var(--maroon);
  color: var(--white);
}

.step-heading, .confirmation h2 {
  color: var(--dark-maroon);
  font: 400 clamp(1.875rem, 3vw, 2.625rem)/1.08 var(--serif);
  letter-spacing: -.035em;
}

.step-heading:focus, .confirmation h2:focus { outline: none; }
.step-copy { margin-top: .5rem; color: var(--muted); }

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
  margin-top: 1rem;
}

.request-panel fieldset { margin-inline: 0; padding: 0; border: 0; min-inline-size: 0; }
.profile-option {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .95rem;
  border: 1px solid var(--rule);
  border-radius: 0 0 1.15rem 0;
  background: var(--white);
  cursor: pointer;
}

.profile-option:hover { border-color: var(--maroon); }

.profile-option:has(input:checked) {
  border-color: var(--maroon);
  outline: 1px solid var(--maroon);
  outline-offset: -2px;
  background: var(--parchment);
}

.profile-option:focus-within {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.profile-option input {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin: .24rem 0 0;
  accent-color: var(--maroon);
}

.profile-content { min-width: 0; }
.profile-name, .profile-description { display: block; }
.profile-name { color: var(--dark-maroon); font-weight: 700; }
.profile-description { margin-top: .12rem; font-size: .875rem; line-height: 1.35; color: var(--muted); }

.profile-summary {
  margin-top: 1.15rem;
  padding: .95rem 1.15rem;
  border-left: 3px solid var(--maroon);
  background: var(--parchment);
}

.profile-summary h3 { color: var(--maroon); font-size: 1rem; }
.profile-defaults {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem 1.25rem;
  margin-top: .65rem;
}
.profile-defaults h4 { margin: 0; color: var(--dark-maroon); font-size: .9375rem; }
.profile-defaults ul { margin: .35rem 0 0; padding-left: 1.15rem; }
.profile-defaults li { overflow-wrap: anywhere; }
.profile-summary .form-note { margin-top: .7rem; }
.profile-load { margin-top: 1rem; }
.profile-retry { margin-top: .6rem; }

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.2rem;
  margin-top: 1rem;
}

.field { min-width: 0; display: grid; align-content: start; gap: .35rem; }
.wide-field { grid-column: 1 / -1; }
.field label { color: var(--dark-maroon); font-weight: 700; }
.optional-label { color: var(--muted); font-weight: 400; }

.field input, .field select, .field textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #867778;
  border-radius: .25rem;
  min-height: 2.875rem;
  padding: .6rem .75rem;
  background: var(--white);
  color: var(--slate);
  font: inherit;
}

.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 2px;
}

.field select {
  appearance: none;
  padding-right: 2.3rem;
  background:
    linear-gradient(45deg, transparent 47%, var(--maroon) 51%, var(--maroon) 67%, transparent 72%) right 1.05rem center / .4rem .4rem no-repeat,
    linear-gradient(135deg, transparent 47%, var(--maroon) 51%, var(--maroon) 67%, transparent 72%) right .69rem center / .4rem .4rem no-repeat,
    var(--white);
}

.field textarea { min-height: 5.5rem; resize: vertical; }
.form-note { color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.form-error { color: #a1002a; font-weight: 600; margin-top: .8rem; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.35rem;
}

button.button, .button-secondary {
  min-height: 2.95rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button.button { border: 1px solid transparent; }
.button-secondary {
  padding: .65rem 1rem;
  border: 1px solid var(--maroon);
  border-radius: .25rem;
  background: var(--white);
  color: var(--maroon);
}

.button-secondary:hover { background: var(--parchment); }
button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
button:disabled { opacity: .58; cursor: default; }

.review-list { margin-block: 1rem; border-top: 1px solid var(--rule); }
.review-list div {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: .35rem 1rem;
  padding-block: .65rem;
  border-bottom: 1px solid var(--rule);
}
.review-list dt { color: var(--dark-maroon); font-weight: 700; }
.review-list dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.confirmation { max-width: 40rem; }
.confirmation h2 + p, .request-reference { margin-top: .85rem; }
.request-reference { color: var(--maroon); font-weight: 700; }

@media (max-width: 50rem) {
  .entry-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero h1 { max-width: 16ch; letter-spacing: -.045em; }
  .hero-break { display: none; }
  .action-card { justify-content: flex-start; }
  .button { align-self: flex-start; }
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 34rem) {
  .shell { width: calc(100% - 2rem); }
  .masthead-inner { min-height: 4.75rem; }
  .brand img { width: 7rem; }
  .hero { padding: 1.75rem 1.5rem; border-top-right-radius: 2.5rem; }
  .hero-art { width: 19rem; right: -12.5rem; opacity: .75; }
  .hero-intro { font-size: 1rem; }
  .button { align-self: stretch; }
  .prep-items { grid-template-columns: 1fr; gap: .8rem; }
  .request-intro::after { inset-inline-end: -10rem; }
  .steps { gap: .55rem; }
  .steps li { align-items: flex-start; flex-direction: column; }
  .step-number { flex-basis: auto; width: 1.6rem; }
  .field-grid { grid-template-columns: 1fr; }
  .profile-defaults { grid-template-columns: 1fr; }
  .review-list div { grid-template-columns: 1fr; }
}

@media (max-width: 23rem) {
  .profile-grid { grid-template-columns: 1fr; }
}

.masthead-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  column-gap: 1.25rem;
  row-gap: .3rem;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .85rem 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
  padding: .25rem;
  border: 1px solid var(--rule);
  border-radius: .4rem;
  background: var(--parchment);
}

.admin-tabs button {
  min-height: 2.55rem;
  padding: .4rem .85rem;
  border: 0;
  border-radius: .25rem;
  background: transparent;
  color: var(--maroon);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.admin-tabs button:hover { background: var(--cream); }

.admin-tabs [aria-selected="true"] {
  background: var(--maroon);
  color: var(--white);
}

.admin-tabs [aria-selected="true"]:hover { background: var(--dark-maroon); }

.admin-section { margin-top: 1.4rem; }
.admin-status { color: var(--muted); }
.admin-status.form-error { color: #a1002a; }
.admin-toolbar + .admin-status:not(:empty) { margin-top: .85rem; }
.admin-panel > .admin-status + .button-secondary { margin-top: .85rem; }

.admin-conflict {
  margin-top: 1rem;
  padding: .85rem 1rem;
  border-left: 3px solid var(--maroon);
  background: var(--parchment);
}

.admin-conflict .button-secondary { margin-top: .65rem; }
.admin-profile-picker { width: min(100%, 18rem); margin-top: 1rem; }
.admin-profile-note { margin-top: .8rem; }

.admin-defaults-heading {
  margin-top: 1.3rem;
  color: var(--dark-maroon);
  font-size: 1.125rem;
}

.admin-defaults {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: .65rem;
}

.admin-panel .field [readonly] { background: var(--parchment); }

@media (max-width: 38rem) {
  .admin-defaults { grid-template-columns: 1fr; }
}

@media (max-width: 34rem) {
  .masthead-actions { column-gap: .75rem; }
  .admin-toolbar { align-items: stretch; flex-direction: column; }
  .admin-tabs { font-size: .9rem; }
  .admin-tabs button { flex: 1; padding-inline: .4rem; }
}
