:root {
  color-scheme: dark;
  --bg: #121713;
  --panel: #181f19;
  --ink: #f4eddb;
  --muted: #b0b9a6;
  --gold: #efc776;
  --green: #b5c99b;
  --line: #363f33;
  --serif: Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font: 100% / 1.55 system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
::selection { background: var(--gold); color: var(--bg); }

.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.landing { display: grid; grid-template-rows: auto 1fr; min-height: 100dvh; }
.site-header { border-bottom: 1px solid var(--line); background: #151b16; }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.header-inner { min-height: 5rem; padding-block: .75rem; }
.brand { text-decoration: none; }
.brand h1 { font: 700 1.13rem / 1.25 var(--serif); overflow-wrap: anywhere; }
.header-link, .market-caption, .step {
  font: 600 .72rem / 1.4 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.header-link { flex: none; text-decoration: none; text-align: right; }
.header-link span, .footer-inner a span { margin-left: .3rem; color: var(--gold); }
.header-link:hover, .footer-inner a:hover { color: var(--gold); }

.hero {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(.75rem, 3dvh, 1.5rem);
  padding-block: clamp(1rem, 4dvh, 3rem);
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  min-height: 3rem;
  padding: .65rem 1rem;
  border: 1px solid var(--gold);
  border-radius: .23rem;
  background: var(--gold);
  color: #211b11;
  font-weight: 740;
  font-size: .9rem;
  text-decoration: none;
  transition: background-color .15s, border-color .15s;
}
.button span { font-size: 1.1rem; }
.button:not(:disabled):hover { background: #f8db9e; border-color: #f8db9e; }
.button:disabled { background: #454438; border-color: #454438; color: #dfd4bb; }
.button-secondary { background: transparent; color: var(--gold); }
.button-secondary:not(:disabled):hover { background: #29291d; }

.market-art {
  position: relative;
  width: min(100%, 66rem, max(20rem, 200dvh - 24rem));
  padding: .9rem;
  border: 1px solid #68634a;
  border-radius: .4rem;
  background: radial-gradient(ellipse at 50% 40%, #273527, #1a241d 70%);
  box-shadow: 0 14px 42px #090e0b80, inset 0 0 0 .28rem #161e18;
}
.market-art::before, .market-art::after {
  position: absolute;
  width: .85rem;
  height: .85rem;
  border: 0 solid var(--gold);
  content: '';
  pointer-events: none;
}
.market-art::before { top: -.06rem; left: -.06rem; border-width: 1px 0 0 1px; border-top-left-radius: .4rem; }
.market-art::after { bottom: -.06rem; right: -.06rem; border-width: 0 1px 1px 0; border-bottom-right-radius: .4rem; }
.market-graphic { display: block; width: 100%; height: auto; min-height: 14rem; }
.market-caption { padding-bottom: .55rem; border-bottom: 1px solid var(--line); color: var(--gold); text-align: center; }

.recruitment {
  display: grid;
  align-items: center;
  min-height: 100dvh;
  border-block: 1px solid var(--line);
  background: radial-gradient(ellipse at top, #1d271c, var(--bg) 65%);
}
.recruitment-inner { max-width: 54rem; padding-block: clamp(1.5rem, 4vw, 3rem); }
.application {
  min-width: 0;
  border: 1px solid #454e3f;
  border-radius: .45rem;
  background: var(--panel);
  padding: clamp(1.15rem, 3.5vw, 2.25rem);
  box-shadow: 0 14px 42px #090e0b59;
}
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { width: 100%; padding: 0; }
.form-section + .form-section, .form-actions { margin-top: 1.5rem; }
.form-section > legend {
  margin-bottom: .9rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--line);
  font: 700 1.27rem / 1.3 var(--serif);
}
.step { margin-right: .4rem; color: var(--gold); vertical-align: .1em; }
.field-grid, .role-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.role-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.roles { margin-top: .8rem; }
.roles legend, #raid-windows legend { margin-bottom: .3rem; }
label, .roles legend, #raid-windows legend { font-size: .9rem; font-weight: 650; }
#timezone, .goal-label small, .expectations { color: var(--muted); font-size: .85rem; }
input:not([type='checkbox']), select, textarea {
  display: block;
  width: 100%;
  min-height: 2.65rem;
  margin-top: .3rem;
  padding: .5rem .65rem;
  border: 1px solid #515d4b;
  border-radius: .25rem;
  background: #121713;
  color: var(--ink);
  font-size: 1rem;
}
select {
  appearance: none;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%23f4eddb' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
}
textarea { min-height: 5.25rem; resize: vertical; }
.choice {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .7rem;
  border: 1px solid #515d4b;
  border-radius: .25rem;
  background: #151c16;
  cursor: pointer;
}
.choice:hover { border-color: var(--green); }
.choice:has(:checked) { border-color: var(--gold); background: #29291d; }
input[type='checkbox'] { flex: none; width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--gold); }
.expectations { margin: 0 0 .9rem; padding-left: 1.2rem; }
.goal-label { display: flex; align-items: baseline; gap: .65rem; }
.goal-label small { flex: none; }
#raid-windows { margin-bottom: .85rem; }
#timezone { font-weight: 400; }
.raid-options { display: grid; gap: .45rem; overflow-wrap: anywhere; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.retry { padding: .45rem .1rem; border: 0; background: transparent; color: var(--gold); text-decoration: underline; }
.status:not(:empty) { margin-top: .85rem; font-size: .9rem; }
.status[data-state='error'] { color: #ffb8a2; }
.status[data-state='success'] { color: var(--green); }

.site-footer { color: var(--muted); font-size: .85rem; }
.footer-inner { padding-block: 1.2rem; }
.footer-inner span { overflow-wrap: anywhere; }
.footer-inner a { text-decoration: none; flex: none; }

@media (max-width: 27rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 4.4rem; }
  .header-link { font-size: .65rem; }
  .field-grid, .role-options { grid-template-columns: 1fr; }
}
@media (max-height: 28rem) and (orientation: landscape) {
  .header-inner { min-height: 4rem; }
  .hero { padding-block: .5rem; }
  .market-graphic { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .button { transition: none; }
}
