:root {
  color-scheme: light;
  font-family: system-ui, "Noto Sans Arabic", sans-serif;
  --paper: #f8f4eb;
  --surface: #fcfaf5;
  --ink: #182c25;
  --subtle: #485950;
  --green: #214b38;
  --line: #d7cebd;
  --accent: #9f4629;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; line-height: 1.65; display: flex; flex-direction: column; }
a { color: var(--green); text-underline-offset: .25em; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.3; margin-bottom: .65rem; }
h2 { font-size: 1.35rem; margin-top: 1.65rem; }
h3 { font-size: 1.05rem; }
p { color: var(--subtle); }
header { border-bottom: 1px solid var(--line); }
.bar { max-width: 70rem; padding: .85rem 1.2rem; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font-size: 1.15rem; font-weight: 800; text-decoration: none; color: var(--ink); }
nav, .actions, .section-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.section-head { justify-content: space-between; margin-block: 1.75rem .65rem; }
.section-head h2 { margin-top: 0; }
.skip { position: absolute; inset-inline-start: 1rem; transform: translateY(-150%); background: var(--surface); padding: .5rem; }
.skip:focus { transform: none; }
main { width: min(100% - 2rem, 55rem); margin: 2rem auto; flex: 1; }
footer { border-top: 1px solid var(--line); text-align: center; padding: 1rem; font-size: .92rem; }
.gate { max-width: 31rem; margin: 1rem auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 1.35rem; overflow: clip; }
.gate-inner { padding: clamp(1.25rem, 4vw, 2.5rem); }
.gate h1::after { content: ""; display: block; border-bottom: 2px solid var(--accent); width: 2.5rem; margin-top: .85rem; }
.gate p { margin-bottom: 1rem; }
.gate a + a { margin-inline-start: .7rem; }
.workshop { width: 100%; height: clamp(10rem, 30vw, 16rem); object-fit: cover; display: block; }
.welcome { display: grid; grid-template-columns: 1fr minmax(8rem, 15rem); gap: 1rem; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }
.welcome img { width: 100%; height: 9rem; object-fit: cover; border-radius: .75rem; }
.stack { display: grid; gap: .85rem; margin-block: 1rem; }
label { display: grid; gap: .3rem; font-weight: 650; }
input, select, textarea, button { font: inherit; }
input, select, textarea { width: 100%; color: var(--ink); background: var(--surface); border: 1px solid #9f998b; border-radius: .55rem; padding: .65rem .75rem; }
textarea { resize: vertical; }
button, .button { align-self: start; min-height: 44px; border: 1px solid transparent; color: white; background: var(--green); padding: .57rem 1rem; border-radius: .55rem; font-weight: 700; text-decoration: none; display: inline-block; cursor: pointer; }
button:hover, .button:hover { background: #173728; }
button.text { background: none; color: var(--green); text-decoration: underline; font-weight: 500; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.items { list-style: none; margin: .65rem 0 1rem; padding: 0; }
.items li { border-bottom: 1px solid var(--line); padding-block: 1rem; overflow-wrap: anywhere; }
.items a { display: grid; gap: .15rem; text-decoration: none; }
.items a:hover strong { text-decoration: underline; }
.items span, .empty, .muted { color: var(--subtle); }
.empty, .notice { background: var(--surface); border-inline-start: 3px solid var(--accent); padding: 1rem; margin-block: 1rem; }
.back { display: inline-block; margin-block: .3rem .8rem; }
.copy { white-space: pre-wrap; overflow-wrap: anywhere; margin-block: .75rem; }
.invite-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.invite-row form { margin: 0; }
.invite-row button { color: var(--green); background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 34rem) {
  main { margin-block: 1.15rem; }
  .welcome { grid-template-columns: 1fr; }
  .welcome img { height: 6.5rem; }
  .gate .button { display: block; text-align: center; margin-block: .7rem; }
}
