:root {
  color-scheme: light;
  --paper: #fbfcf6;
  --ink: #173029;
  --deep: #13382d;
  --muted: #4e6258;
  --forest: #225744;
  --line: #cbd8cc;
  --strong-line: #849b8d;
  --lime: #d9f27b;
  --white: #fff;
  --display: Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: #e9efe5;
  font: 100% / 1.5 'Segoe UI', system-ui, sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; min-height: 100dvh; background: radial-gradient(ellipse at 87% 0%, #ccdec5, transparent 60%), radial-gradient(ellipse at 4% 54%, #f8f9e8, transparent 60%), #e9efe5; }
[hidden] { display: none !important; }
:where(h1, h2, p, ol) { margin: 0; }
:where(h1, h2, p, a, button, label) { overflow-wrap: anywhere; }
:where(a, button, select, summary) { touch-action: manipulation; }
a { color: var(--forest); }
button { cursor: pointer; }
button:disabled { opacity: .58; cursor: default; }
:focus-visible { outline: 3px solid #286e52; outline-offset: 3px; }
[tabindex='-1']:focus { outline: none; }
.skip:not(:focus), .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 5; padding: 12px 16px; background: var(--white); }

.workshop-nav, .workshop-main, .workshop-footer { max-width: 1110px; margin: auto; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
.workshop-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: max(14px, env(safe-area-inset-top)); padding-bottom: 14px; }
.identity { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; color: var(--ink); text-decoration: none; }
.mark { display: grid; place-items: center; align-content: center; min-width: 43px; min-height: 43px; border-radius: 9px; color: var(--lime); background: var(--deep); font-weight: 800; line-height: .91; letter-spacing: -.04em; }
.identity-type { font-size: .87rem; font-weight: 730; text-transform: uppercase; letter-spacing: .05em; }
.identity-type span { display: block; margin-top: 1px; font-size: .82rem; font-weight: 400; text-transform: none; color: var(--muted); letter-spacing: 0; }
.contact-link, .workshop-footer a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-underline-offset: 4px; text-align: right; }

.workshop-intro {
  isolation: isolate;
  position: relative;
  display: grid;
  align-items: center;
  min-height: 220px;
  overflow: hidden;
  padding: clamp(23px, 5vw, 55px);
  border-radius: 20px;
  color: #f7faef;
  background: radial-gradient(ellipse at 90% 0%, #4a6941, transparent 64%), linear-gradient(135deg, #233f33, #102a22);
}
.workshop-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(transparent 31px, #ccefa416 32px), linear-gradient(90deg, transparent 31px, #ccefa416 32px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, transparent 25%, #000);
}
.eyebrow { margin-bottom: 8px; color: var(--lime); font-size: .825rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.038em; }
h1 { max-width: 15ch; font-size: clamp(2.65rem, 5.7vw, 4.9rem); line-height: 1; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.15rem); line-height: 1.14; }
.lede { margin-top: 12px; max-width: 38ch; color: #dce7d9; font-size: clamp(1rem, 1.8vw, 1.16rem); }

.workshop-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: start; gap: 17px; margin-top: 17px; }
.workshop-card { min-width: 0; display: grid; gap: 13px; padding: clamp(15px, 2.5vw, 27px); border-radius: 15px; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 3px 7px #13281d09; }
.fine { margin-top: 5px; color: var(--muted); font-size: .92rem; }
.workshop-form, #reply-output { display: grid; width: 100%; min-width: 0; gap: 12px; }
.workshop-form .fine { margin-top: 0; }
label { display: block; min-width: 0; color: var(--ink); font-size: .92rem; font-weight: 650; }
:where(select, textarea) { display: block; width: 100%; min-height: 44px; margin-top: 5px; padding: 8px 10px; border: 1px solid var(--strong-line); border-radius: 7px; background: var(--white); color: var(--ink); font: 400 1rem / 1.38 'Segoe UI', system-ui, sans-serif; }
textarea { resize: vertical; min-height: 60px; }
select { appearance: none; padding-right: 25px; background-image: linear-gradient(45deg, transparent 50%, var(--forest) 50%), linear-gradient(135deg, var(--forest) 50%, transparent 50%); background-size: 5px 5px; background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-repeat: no-repeat; }
textarea::placeholder { color: var(--muted); opacity: 1; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; }
.button, .text-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 12px; border: 1px solid transparent; border-radius: 8px; font: 700 .94rem / 1.35 'Segoe UI', system-ui, sans-serif; text-align: center; }
.workshop-form .button, .workshop-form .text-button { justify-self: start; }
.primary { color: var(--deep); background: var(--lime); border-color: #a0af56; }
.primary:hover { background: #e5f7a6; }
.secondary { color: var(--ink); background: var(--white); border-color: var(--strong-line); }
.secondary:hover:not(:disabled) { background: #eef4e4; }
.text-button { padding-inline: 7px; color: var(--forest); background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover { background: #edf3e6; }
.notice { margin-bottom: 9px; padding: 9px 11px; border-radius: 7px; }
.danger { background: #fbede8; color: #752f27; }
.inline-status { color: var(--forest); font-size: .92rem; }
.inline-status:empty { display: none; }
.output-card { background: radial-gradient(ellipse at 90% 4%, #e4ede0, transparent 61%), var(--paper); }
.lesson-details { margin-top: 4px; border-top: 1px solid var(--line); }
.lesson-details ol { padding-left: 22px; }
.lesson-details li + li { margin-top: 6px; }
.lesson-details p { margin-top: 8px; }
summary { display: list-item; align-content: center; min-height: 44px; color: var(--forest); cursor: pointer; font-weight: 700; }
.workshop-back { display: none; }
.workshop-footer { padding-top: 10px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }

@media (max-width: 740px) {
  .mark { min-width: 36px; min-height: 36px; border-radius: 7px; }
  .contact-link { max-width: 8.5rem; font-size: .9rem; }
  .workshop-intro { padding: 22px 18px; min-height: 0; border-radius: 14px; }
  .workshop-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
  .workshop-grid[data-step='reply'] .compose-card { display: none; }
  .workshop-grid[data-step='reply'] .workshop-back { display: inline-flex; }
}
@media (prefers-reduced-motion: no-preference) {
  .workshop-grid[data-step='reply'] .output-card { animation: show-reply 170ms ease-out; }
  @keyframes show-reply { from { opacity: .8; } to { opacity: 1; } }
}
