:root{color-scheme:light;--ink:#14243c;--muted:#4f627a;--blue:#164ee5;--line:#dce6f2;--pale:#f5f9ff;--width:1184px;font:16px/1.6 "Segoe UI",Arial,sans-serif}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;color:var(--ink);background:#fff}
a{color:var(--blue);text-underline-offset:.2em}
a:hover{text-decoration-thickness:2px}
button,input,select,textarea{font:inherit}
:focus-visible{outline:3px solid #174de1;outline-offset:4px}
img{max-width:100%;display:block}
h1,h2,h3,p{margin:0 0 .85rem}
h1,h2,h3{line-height:1.1;letter-spacing:-.04em}
h1{font-size:clamp(2.6rem,6vw,5.35rem)}
h2{font-size:clamp(1.8rem,3.1vw,2.65rem)}
h3{font-size:1.35rem}
.wrap{width:min(var(--width),calc(100% - 3rem));margin-inline:auto}
.skip{position:absolute;top:-100px;left:1rem;background:white;padding:.7rem;z-index:10}
.skip:focus{top:1rem}
.site-header{background:#fff;border-bottom:1px solid var(--line);position:relative;z-index:3}
.header-row,.brand,.main-nav,.footer-row,.section-head,.actions{display:flex;align-items:center;gap:1rem}
.header-row{justify-content:space-between;min-height:72px}
.brand{color:var(--ink);font-size:.94rem;font-weight:800;letter-spacing:.095em;text-decoration:none;gap:.65rem}
.brand img{width:38px;height:38px}
.main-nav{gap:1.6rem}
.main-nav a,.footer-row a{font-size:.9rem;color:var(--muted);text-decoration:none}
.main-nav a:hover,.footer-row a:hover{color:var(--blue)}
.menu{display:none}
.hero{overflow:hidden;background:linear-gradient(112deg,#eef5ff,#e7f0ff 57%,#c7dcff);border-bottom:1px solid #d3e4ff}
.hero .wrap{display:grid;grid-template-columns:1.14fr .86fr;align-items:center;min-height:520px}
.hero-copy{padding-block:4.25rem;position:relative;z-index:1}
.hero h1{max-width:13ch;line-height:1.01}
.hero h1 em{color:var(--blue);font-style:normal}
.hero p,.lead{max-width:58ch;color:var(--muted);font-size:1.08rem}
.eyebrow{color:#204db5;font-size:.77rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase;display:block;margin-bottom:1rem}
.button,button{background:var(--blue);color:#fff;border:1px solid transparent;border-radius:9px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-weight:700;min-height:44px;padding:.65rem 1.15rem}
.button:hover,button:hover{background:#123db4}
.secondary{background:white;color:#1948c4;border-color:#bdcff0}
.secondary:hover{background:#edf4ff}
.actions{flex-wrap:wrap;margin-top:1.6rem}
.sky{position:relative;min-height:430px;display:grid;place-items:center;isolation:isolate}
.sky::before{content:"";width:min(86%,355px);aspect-ratio:1;position:absolute;border-radius:50%;border:1px solid #b9d0f8;background:radial-gradient(circle at 32% 32%,#fff 0%,#e3efff 48%,#b3ccff 100%);box-shadow:0 0 0 32px #dfebff6e,0 0 0 68px #d0e2ff54,0 28px 72px #3668c13d;z-index:-1}
.orbit{position:absolute;width:99%;height:43%;border:1px solid #86a9ee91;border-radius:50%;transform:rotate(-31deg);z-index:-1}
.sky-center{display:grid;text-align:center;gap:.15rem;color:#153981}
.sky-center strong{font:normal clamp(2.4rem,4.4vw,4.5rem)/1 Georgia,serif;letter-spacing:-.065em}
.sky-center span{font-size:.7rem;letter-spacing:.19em;text-transform:uppercase}
.name-chip{position:absolute;background:#f9fcffeb;box-shadow:0 10px 26px #1849a41f;border:1px solid #fff;padding:.43rem .86rem;border-radius:10px;color:#24477f;font-weight:700}
.name-chip:nth-of-type(1){left:4%;top:25%;transform:rotate(-7deg)}
.name-chip:nth-of-type(2){right:2%;top:18%;transform:rotate(8deg)}
.name-chip:nth-of-type(3){right:4%;bottom:18%;transform:rotate(-4deg)}
.name-chip:nth-of-type(4){left:5%;bottom:19%;transform:rotate(6deg)}
.section{padding-block:4rem}
.tint{background:var(--pale);border-block:1px solid var(--line)}
.section-head{justify-content:space-between;align-items:end;margin-bottom:1.2rem}
.section-head p,.section-head h2{margin-bottom:.25rem}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.card{color:inherit;text-decoration:none;display:flex;flex-direction:column;gap:.5rem;padding:1.4rem 1.4rem 1.2rem;background:#fff;border:1px solid var(--line);border-radius:14px;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;min-width:0}
.card:hover{transform:translateY(-3px);border-color:#98b5fa;box-shadow:0 10px 28px #1f4d9420}
.card p{color:var(--muted);font-size:.93rem;margin:0 0 .45rem}
.card h3{margin:0}
.card .meta{color:#2452b7;font-size:.79rem;font-weight:750;margin-top:auto}
.icon{width:43px;height:43px;border-radius:11px;display:grid;place-items:center;background:#eaf2ff;color:#2453c4;font-size:1.4rem;margin-bottom:.45rem}
.crumb{display:flex;gap:.55rem;flex-wrap:wrap;font-size:.84rem;margin:0 0 1.2rem;color:var(--muted)}
.crumb a{text-decoration:none}
.page-intro{padding-block:2.4rem 2.8rem;background:linear-gradient(115deg,#f5f9ff,#eaf2ff);border-bottom:1px solid var(--line)}
.page-intro h1{font-size:clamp(2.35rem,5vw,4.55rem);max-width:22ch}
.controls{display:flex;gap:.8rem;align-items:end;flex-wrap:wrap;margin-bottom:1rem}
.controls label{flex:1;min-width:min(100%,17rem)}
label{display:grid;gap:.32rem;font-weight:650}
select,input,textarea{background:white;color:var(--ink);border:1px solid #b8cae2;border-radius:8px;padding:.55rem .7rem;width:100%;min-height:44px}
fieldset{border:1px solid var(--line);border-radius:10px;padding:.75rem 1rem;min-width:0;margin:0}
legend{font-weight:750}
.radio{display:flex;align-items:start;gap:.5rem;margin:.35rem 0;font-weight:500}
.radio input{width:1rem;height:1rem;min-height:1rem;margin-top:.3rem}
.workshop{display:grid;grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);gap:1.3rem;align-items:start}
.form-panel,.result{border:1px solid var(--line);padding:clamp(1rem,3vw,1.8rem);border-radius:15px;min-width:0}
.form-panel{display:grid;gap:1rem;background:var(--pale)}
.form-panel h2{margin:0}
.form-panel .actions{margin:0}
.form-panel label small,.fine,.muted{color:var(--muted);font-weight:400}
.result{overflow-wrap:anywhere}
.result h2{font-size:clamp(1.6rem,4vw,3rem);color:#1948c4}
.result h3{margin-top:1.35rem}
.result dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:.35rem .9rem}
.result dt{font-weight:750}
.result dd{margin:0}
.candidates{display:flex;gap:.4rem;flex-wrap:wrap;padding:0;list-style:none}
.candidates button{padding:.35rem .7rem}
.candidates button[aria-pressed=true]{background:#174de1;color:#fff}
.prose{max-width:74ch}
.prose p,.prose li{color:#415471}
.prose h2{margin-top:1.8rem}
.prose h3{margin-top:1.5rem}
.prose li+li{margin-top:.4rem}
.prose .contents{border:1px solid var(--line);border-radius:12px;background:var(--pale);padding:.9rem 1.25rem}
footer{border-top:1px solid var(--line);background:#f7faff;padding-block:1.6rem}
.footer-row{justify-content:space-between;flex-wrap:wrap}
.footer-links{display:flex;flex-wrap:wrap;gap:1rem}
[hidden]{display:none!important}
@media(max-width:850px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero .wrap{min-height:440px}.sky{min-height:330px}.sky::before{width:75%}}
@media(max-width:650px){.wrap{width:calc(100% - 2rem)}.header-row{min-height:62px}.menu{display:inline-flex;padding:.35rem .65rem;min-height:40px}.main-nav{position:absolute;top:100%;left:0;right:0;background:white;border-bottom:1px solid var(--line);padding:1rem;display:grid;gap:.35rem}.main-nav a{padding:.5rem}.main-nav:not(.open){display:none}.hero .wrap,.grid,.workshop{grid-template-columns:1fr}.hero-copy{padding-block:2.75rem .5rem}.hero h1{font-size:clamp(2.5rem,11vw,4.2rem)}.sky{min-height:255px}.sky::before{width:min(54%,200px);box-shadow:0 0 0 20px #dfebff6e,0 0 0 42px #d0e2ff54}.orbit{width:min(90%,345px)}.name-chip{font-size:.82rem}.section{padding-block:2.5rem}.section-head{display:block}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

.example-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.example-name{padding:1.25rem;border:1px solid var(--line);border-radius:12px;overflow-wrap:anywhere;background:var(--pale)}.example-name p{font-size:.9rem;color:var(--muted)}@media(max-width:850px){.example-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.example-grid{grid-template-columns:1fr}}
.workshop.is-generated{grid-template-columns:1fr}.workshop.is-generated .form-panel{grid-template-columns:repeat(2,minmax(0,1fr))}.workshop.is-generated .form-panel>h2,.workshop.is-generated .form-panel>fieldset,.workshop.is-generated .form-panel>.actions{grid-column:1/-1}.workshop.is-generated>div{width:100%;max-width:80ch;margin-inline:auto}.result .contents{background:var(--pale);border:1px solid var(--line);border-radius:10px;padding:.65rem 1rem;margin-block:1.25rem}.result .contents ol{margin-block:.4rem;padding-left:1.4rem}.prose h3,.result h3{scroll-margin-top:1rem}@media(max-width:650px){.workshop.is-generated .form-panel{grid-template-columns:1fr}}
@media(max-width:480px){.result dl{grid-template-columns:1fr;gap:.15rem}.result dd{margin-bottom:.7rem}}

/* Desktop workshop: compact controls above the result, with one reading axis. */
@media(min-width:900px){
  .page-intro{padding-block:2.1rem 2.3rem}
  .page-intro h1{font-size:clamp(2.5rem,3.8vw,3.5rem);max-width:29ch;line-height:1.12}
  #workshop-layout{grid-template-columns:1fr;gap:1.1rem;padding-block:2.5rem 1.25rem}
  #workshop-layout .form-panel{grid-template-columns:repeat(3,minmax(0,1fr));gap:1.15rem 1.4rem;padding:1.75rem 2rem;align-items:start}
  #workshop-layout .form-panel>h2{grid-column:1/-1;font-size:1.75rem;line-height:1.2;margin-bottom:.1rem}
  #workshop-layout .form-panel>fieldset{grid-column:span 2;background:#fff;padding:.7rem 1rem .8rem}
  #workshop-layout .form-panel>label{min-width:0;font-size:.94rem;line-height:1.45;gap:.45rem}
  #workshop-layout .form-panel>label small{font-size:.8rem;line-height:1.4}
  #workshop-layout .form-panel legend{font-size:.94rem;line-height:1.45;padding-inline:.2rem}
  #workshop-layout .form-panel .radio{font-size:.94rem;line-height:1.45;margin:.4rem 0}
  #workshop-layout .form-panel>.actions{grid-column:1/-1;border-top:1px solid var(--line);padding-top:1rem;margin-top:0}
  #workshop-layout select,#workshop-layout input[type=text]{min-height:46px;font-weight:400}
  #workshop-layout>div{min-width:0}
  #workshop-status:empty{margin:0}
  #placeholder{display:flex;align-items:center;justify-content:space-between;gap:2rem;padding:1.35rem 2rem;background:#fbfdff}
  #placeholder h2{font-size:1.6rem;line-height:1.2;margin:0;flex-shrink:0}
  #placeholder p{margin:0;max-width:52ch;font-size:.95rem}
  #workshop-layout.is-generated>div{max-width:86ch}
  #result{padding:2rem 2.25rem}
  #result-heading{font-size:2.15rem;line-height:1.2}
  .result .contents{padding:1rem 1.25rem}
  .result dl{grid-template-columns:minmax(10rem,.75fr) minmax(0,1.25fr);gap:.55rem 1.25rem}
  .workshop+.section{padding-top:1.25rem;padding-bottom:2.5rem}
  .workshop+.section>h2{font-size:1.75rem;line-height:1.2;margin-bottom:1.25rem}
  .example-grid{gap:1.1rem;align-items:stretch}
  .example-name{display:flex;flex-direction:column;gap:.6rem;padding:1.3rem}
  .example-name h3{font-size:1.16rem;line-height:1.3;min-height:2.6em;margin:0}
  .example-name p{margin:0;line-height:1.55}
  .example-name button{margin-top:auto;width:100%;font-size:.86rem;line-height:1.35;padding:.7rem .65rem}
  #naming-guide{padding-top:2.5rem;max-width:78ch}
  #naming-guide>h2{font-size:2.1rem;line-height:1.2;margin-top:0}
  #naming-guide h3{line-height:1.3}
}

/* Category attributes stay compact above the generated dossier. */
#workshop-layout{grid-template-columns:1fr}
#workshop-layout .form-panel{grid-template-columns:1fr;gap:1.15rem}
#workshop-layout .form-panel>fieldset{grid-column:1/-1}
.trait-intro p{margin:0;max-width:90ch;color:var(--muted);font-size:.94rem}
.trait-grid,.style-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.15rem 1.4rem;align-items:start}
.trait-field{min-width:0;display:grid;gap:.45rem}
.trait-field>label,.style-grid>label{font-size:.94rem}
.trait-field small{font-size:.78rem;color:var(--muted)}
.trait-field select[multiple]{min-height:128px}
.trait-switches{display:flex;flex-wrap:wrap;gap:.45rem 1rem}
.trait-switches label{display:flex;align-items:center;gap:.35rem;font-size:.77rem;font-weight:500;color:var(--muted);min-height:28px;cursor:pointer}
.trait-switches input{width:1rem;height:1rem;min-height:1rem;padding:0;accent-color:#2455db}
.trait-panel{background:#fff;border:1px solid var(--line);border-radius:10px;min-width:0}
.trait-panel summary{padding:.85rem 1rem;font-weight:700;cursor:pointer;color:#24477f}
.trait-panel[open] summary{border-bottom:1px solid var(--line);margin-bottom:1rem}
.trait-panel>.trait-grid,.trait-panel>.style-grid{padding:0 1rem 1rem}
.trait-custom{font-size:.82rem!important}
.trait-toolbar{display:flex;gap:.65rem;flex-wrap:wrap;align-items:center}
.trait-toolbar button{font-size:.85rem;min-height:42px}
#trait-message{flex-basis:100%;margin:0}
#trait-message:empty{display:none}
.style-grid>fieldset{grid-column:span 2}
.local-traits{background:#fff;padding:1rem}
@media(max-width:1000px){.trait-grid,.style-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.style-grid>fieldset{grid-column:1/-1}}
@media(max-width:650px){.trait-grid,.style-grid{grid-template-columns:1fr}.trait-toolbar button{flex:1 1 100%}.trait-panel summary{padding:.8rem}.trait-panel>.trait-grid,.trait-panel>.style-grid{padding:0 .8rem .8rem}}

/* Reference-inspired typography and surfaces. All content remains in normal flow. */
:root{--ink:#192641;--muted:#52688d;--blue:#4167df;--line:#d9e3f7;--pale:#f0f5ff;--width:1240px;font:16px/1.75 "Segoe UI",Arial,sans-serif}
body{background:#f8faff}
a{text-underline-offset:.25em}
:focus-visible{outline-color:var(--blue)}
h1,h2,h3{line-height:1.2;letter-spacing:-.035em;overflow-wrap:break-word}
h1{font-size:clamp(2.35rem,4.7vw,4rem);font-weight:600}
h2{font-size:clamp(1.8rem,2.7vw,2.2rem);font-weight:500}
h3{font-size:1.25rem;font-weight:600;letter-spacing:-.015em}
.wrap{width:min(var(--width),calc(100% - 7rem))}
.site-header{background:#f8faff}
.header-row{min-height:80px}
.brand{font-size:.9rem;font-weight:650;letter-spacing:.07em}
.brand img{width:36px;height:36px}
.main-nav{gap:2.1rem}
.main-nav a,.footer-row a{font-size:.82rem;color:#2e4771}
.hero{position:relative;isolation:isolate;background:#f1f5fd;border-color:var(--line)}
/* Feather the photograph into the page while keeping the original still life above it. */
.hero::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:linear-gradient(90deg,#f1f5fd40 0%,#f1f5fd18 45%,#f1f5fd38 100%),url("fantasy-workshop-banner.webp");background-size:cover;background-position:center;opacity:.85;-webkit-mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent)}
.hero::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,#f1f5fd 0%,transparent 13%,transparent 80%,#f1f5fd 100%)}
.hero .wrap{grid-template-columns:1.25fr 1fr;gap:2rem;min-height:560px}
@media(max-width:650px){.hero::before{background-image:linear-gradient(180deg,#f1f5fdf2 0%,#f1f5fdd9 40%,#f1f5fd20 72%),url("fantasy-workshop-banner-mobile.webp");background-position:center bottom;background-size:cover;opacity:.8}}
.hero-copy{padding-block:4.5rem;min-width:0}
.hero h1{max-width:16ch;line-height:1.12;margin-bottom:1.6rem}
.hero h1 em{color:#3858a8;font-family:Georgia,"Times New Roman",serif;font-weight:400;font-style:italic}
.hero p,.lead{color:#3f567d;font-size:.96rem;line-height:1.85}
.hero p{max-width:50ch}
.eyebrow{color:#2d4980;font-size:.64rem;font-weight:650;letter-spacing:.19em;margin-bottom:1.75rem}
.hero .eyebrow::before{content:"";display:inline-block;width:6px;height:6px;background:#5d83ff;border-radius:50%;margin-right:.65rem;vertical-align:middle}
.button,button{border-radius:5px;font-weight:600;font-size:.82rem;line-height:1.5;min-height:46px;padding:.8rem 1.35rem;transition:background .18s ease,border-color .18s ease,box-shadow .18s ease}
.button:hover,button:hover{background:#3155c5}
.secondary{color:#3455a0;border-color:#ccd9f3}
.secondary:hover{background:#eef3ff;border-color:#91a8e8}
.actions{margin-top:1.7rem}
.hero .actions{gap:1.6rem;margin-top:2rem}
.hero .button{min-height:54px;padding-inline:1.5rem;box-shadow:0 10px 24px #4167df16}
.hero .button.secondary{padding-inline:0;min-height:38px;border:0;border-bottom:1px solid #8298d6;border-radius:0;background:transparent;box-shadow:none;font-weight:400}
.sky{min-width:0;min-height:390px}
.sky::before{width:min(78%,320px);border-color:#c3d3ef;background:radial-gradient(circle at 30% 26%,#fff 0%,#edf3ff 44%,#c6d6f5 100%);box-shadow:0 0 0 28px #e3ecfb60,0 0 0 58px #e2eaf744,0 28px 64px #5479b525}
.orbit{width:96%;border-color:#9db5e37a}
.sky-center{gap:.6rem;color:#34528b}
/* A real still-life scene with a feathered circular edge and peripheral mist. */
.sky--photo::before{display:none}
.sky-photo{position:relative;width:min(86%,390px);aspect-ratio:1;border-radius:50%;z-index:0}
.sky-photo img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%;-webkit-mask-image:radial-gradient(circle,#000 52%,#000e 59%,#0008 65%,transparent 72%);mask-image:radial-gradient(circle,#000 52%,#000e 59%,#0008 65%,transparent 72%)}
.sky-photo::after{content:"";position:absolute;inset:-7%;border-radius:50%;background:radial-gradient(ellipse at 16% 70%,#f4f8ffbd,transparent 33%),radial-gradient(ellipse at 82% 24%,#f4f8ffb0,transparent 29%),radial-gradient(ellipse at 65% 87%,#e5efffc0,transparent 30%);filter:blur(10px);pointer-events:none}
.sky--photo .orbit{z-index:1;pointer-events:none}
.sky--photo .name-chip{z-index:2}
@media(max-width:650px){.sky--photo .sky-photo{width:min(80%,290px)}}
.sky-center strong{font:italic 400 clamp(2.4rem,4vw,3.6rem)/1.1 Georgia,serif;letter-spacing:-.05em}
.sky-center span{font-size:.64rem;letter-spacing:.2em}
.name-chip{background:#fbfdfff0;box-shadow:0 8px 24px #375e9b12;border-color:#dce6f5;padding:.45rem .9rem;border-radius:6px;color:#3a5685;font-size:.83rem;font-weight:500}
.section{padding-block:4.75rem}
.tint{background:#f0f5fe}
.section-head{gap:1.5rem;margin-bottom:2rem}
.section-head p,.section-head h2{margin-bottom:.5rem}
.section-head p,.section-head>a{font-size:.85rem}
.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.4rem}
.card{gap:.9rem;padding:1.75rem;border-radius:6px;overflow-wrap:anywhere}
.card:hover{border-color:#6f8ae8;box-shadow:0 8px 24px #294d8b09}
.card p{font-size:.875rem;line-height:1.9;margin:0 0 1rem}
.card h3{font-size:1.25rem;line-height:1.35}
.card .meta{color:#47649d;font-size:.7rem;font-weight:400;padding-top:1rem;border-top:1px solid var(--line)}
.icon{width:36px;height:36px;border-radius:7px;background:#edf2ff;color:#5275e6;font-size:1.15rem;margin-bottom:.1rem}
.crumb{font-size:.76rem;margin-bottom:1.5rem}
.page-intro{padding-block:2.5rem 3rem;background:linear-gradient(115deg,#f8faff,#eff4fd)}
.page-intro h1{font-size:clamp(2rem,3.4vw,3rem);max-width:30ch;margin-bottom:1.15rem}
.page-intro .lead{margin-bottom:0;max-width:76ch}
.controls{gap:1.3rem}
label{gap:.45rem;font-weight:500;font-size:.82rem}
select,input,textarea{color:#2d4878;border-color:#d2def5;border-radius:4px;padding:.7rem .8rem;min-width:0;min-height:46px;font-size:.875rem;line-height:1.5}
input::placeholder,textarea::placeholder{color:#6175a0;opacity:1}
fieldset{border-radius:6px;padding:.9rem 1rem}
legend{font-weight:600;font-size:.85rem;padding-inline:.3rem}
.radio{gap:.6rem;margin:.5rem 0;font-weight:400;font-size:.875rem}
.radio input{flex:0 0 1rem;accent-color:var(--blue)}
.form-panel,.result{border-radius:7px;background:#fff}
#workshop-layout .form-panel{--panel-padding:clamp(1.1rem,3vw,2rem);padding:var(--panel-padding);gap:1.5rem;box-shadow:0 12px 40px #39578906}
#workshop-layout .form-panel>h2{grid-column:1/-1;margin:calc(-1 * var(--panel-padding)) calc(-1 * var(--panel-padding)) 0;padding:1rem var(--panel-padding);border-radius:6px 6px 0 0;background:#4163d6;color:#fff;font-size:1.3rem;line-height:1.35;font-weight:600;letter-spacing:-.015em}
#workshop-layout .form-panel>.actions{padding-top:1rem;border-top:1px solid var(--line)}
#workshop-layout .form-panel legend{font-size:.85rem;font-weight:600}
#workshop-layout .form-panel .radio{font-size:.875rem;line-height:1.65}
.fine{font-size:.8rem}
.result h2,#result-heading{font-size:clamp(1.65rem,3vw,2.25rem);color:#2f4c8f}
.result h3{margin-top:2rem;font-size:1.2rem;line-height:1.4}
.result p,.result li{font-size:.96rem;line-height:1.9;color:#465b7c}
.result dl{grid-template-columns:minmax(9rem,.75fr) minmax(0,1.25fr);gap:.65rem 1.25rem;font-size:.9rem}
.result dt{font-weight:600}
.result dd{color:var(--muted)}
.candidates{gap:.55rem}
.candidates li{min-width:0;max-width:100%}
.candidates button{padding:.55rem .8rem;overflow-wrap:anywhere;max-width:100%}
.candidates button[aria-pressed=true]{background:var(--blue);border-color:var(--blue)}
.prose{max-width:76ch;font-size:1rem;line-height:1.95;overflow-wrap:anywhere}
.prose p,.prose li{color:#465b7c}
.prose p{margin-bottom:1.35rem}
.prose h2{margin-top:2.5rem}
.prose h3{margin-top:2.15rem;font-size:1.25rem;line-height:1.4}
.prose li+li{margin-top:.5rem}
.prose .contents,.result .contents{border-radius:6px;background:#f4f7fe;padding:1.2rem 1.4rem;margin-block:1.5rem 2rem;font-size:.875rem;line-height:1.8}
.contents ol{padding-left:1.4rem;margin-block:.65rem 0}
.contents li,.result .contents li{font-size:.875rem;line-height:1.8}
.prose h3,.result h3{scroll-margin-top:1.5rem}
footer{background:#f4f7fd;padding-block:2rem}
.footer-links{gap:1.5rem}
.example-grid{gap:1.2rem}
.example-name{display:flex;flex-direction:column;gap:.65rem;padding:1.35rem;border-radius:6px;background:#fff;min-width:0}
.example-name h3{font-size:1.12rem;line-height:1.4;margin:0;min-height:0}
.example-name p{font-size:.85rem;margin:0;line-height:1.8}
.example-name button{margin-top:auto;width:100%;font-size:.78rem;padding-inline:.65rem}
#workshop-layout{gap:1.5rem;padding-block:2.75rem 1.25rem}
#workshop-layout.is-generated>div{width:100%;max-width:86ch;margin-inline:auto}
#workshop-status:empty{margin:0}
#placeholder{display:flex;align-items:center;justify-content:space-between;gap:2rem;background:#f3f7ff}
#placeholder h2{font-size:1.5rem;margin:0;flex-shrink:1}
#placeholder p{margin:0;max-width:52ch;font-size:.9rem}
.workshop+.section{padding-top:1.5rem;padding-bottom:2.5rem}
.workshop+.section>h2{font-size:1.7rem;margin-bottom:1.5rem}
#naming-guide{padding-top:2.75rem;max-width:76ch}
#naming-guide>h2{margin-top:0;font-size:clamp(1.8rem,3vw,2.2rem)}
.trait-intro p{font-size:.875rem;line-height:1.8}
.trait-grid,.style-grid{gap:1.35rem 1.5rem}
.trait-field>label,.style-grid>label{font-size:.82rem}
.trait-field small{font-size:.76rem;line-height:1.65}
.trait-switches label{gap:.4rem;font-size:.75rem;font-weight:400;min-height:32px}
.trait-switches input{accent-color:var(--blue)}
.trait-panel{border-radius:6px}
.trait-panel summary{padding:1rem 1.15rem;font-size:.86rem;font-weight:500;color:#345284;background:#f4f7fe;border-radius:6px}
.trait-panel[open] summary{margin-bottom:1.3rem;border-radius:6px 6px 0 0}
.trait-panel>.trait-grid,.trait-panel>.style-grid{padding:0 1.15rem 1.3rem}
.trait-toolbar button{font-size:.8rem;min-height:46px}
.local-traits{background:#fbfcff;padding:1.15rem}
@media(min-width:1101px){.tint .grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){
  .wrap{width:calc(100% - 5rem)}
  .main-nav{gap:1.3rem}
  .hero .wrap{gap:1rem}
  .hero h1{font-size:clamp(2.8rem,5.4vw,3.65rem)}
  .example-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  .wrap{width:calc(100% - 3rem)}
  .hero .wrap{min-height:490px}
  .hero-copy{padding-block:3.5rem}
  .sky{min-height:320px}
  .name-chip{font-size:.75rem}
  .card{padding:1.5rem}
}
@media(max-width:650px){
  .wrap{width:calc(100% - 2.5rem)}
  .header-row{min-height:68px;gap:.65rem}
  .brand{font-size:.8rem;letter-spacing:.045em;gap:.45rem}
  .brand img{width:32px;height:32px}
  .menu{padding:.5rem .7rem;min-height:44px}
  .main-nav{background:#f8faff;padding:.8rem 1.25rem;gap:.25rem;box-shadow:0 14px 22px #2e47710a}
  .main-nav a{padding:.65rem .3rem;font-size:.9rem}
  .hero .wrap{grid-template-columns:1fr;gap:0}
  .hero-copy{padding-block:3rem 1rem}
  .hero h1{font-size:clamp(2.4rem,9.5vw,3.3rem);max-width:17ch}
  .hero p,.lead{font-size:.96rem}
  .hero .eyebrow{font-size:.6rem;margin-bottom:1.35rem}
  .hero .actions{gap:1.1rem}
  .sky{min-height:270px;margin-bottom:1.5rem}
  .sky::before{width:min(54%,200px);box-shadow:0 0 0 20px #e3ecfb60,0 0 0 42px #e2eaf744}
  .orbit{width:min(90%,345px)}
  .name-chip{font-size:.8rem}
  .section{padding-block:3rem}
  .section-head{margin-bottom:1.5rem}
  .section-head>a{display:inline-block;margin-top:.7rem}
  .grid{grid-template-columns:1fr;gap:1.1rem}
  .card p{font-size:.93rem;line-height:1.85}
  .card .meta{font-size:.75rem}
  .page-intro{padding-block:1.75rem 2rem}
  .page-intro h1{font-size:clamp(1.9rem,7.5vw,2.6rem)}
  .crumb{font-size:.75rem}
  #workshop-layout .form-panel{--panel-padding:1.1rem}
  #workshop-layout .form-panel>h2{font-size:1.2rem;padding-block:.9rem}
  .trait-field>label,.style-grid>label,label{font-size:.9rem}
  select,input,textarea{font-size:1rem}
  .trait-switches label{min-height:44px;font-size:.8rem}
  .trait-panel summary{padding:.9rem}
  .trait-panel>.trait-grid,.trait-panel>.style-grid{padding:0 .9rem 1.1rem}
  #placeholder{display:block}
  #placeholder h2{margin-bottom:.7rem}
  #workshop-layout{padding-top:1.75rem}
  .result p,.result li,.prose{font-size:1rem;line-height:1.9}
  .footer-row{align-items:start;flex-direction:column;gap:1.5rem}
  .footer-links{gap:.8rem 1.3rem}
}
@media(max-width:480px){
  .example-grid{grid-template-columns:1fr}
  .result dl{grid-template-columns:1fr;gap:.2rem}
  .result dd{margin-bottom:.7rem}
  .prose .contents,.result .contents{padding:1rem}
  .hero .button{padding-inline:1rem}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

.prose h2[id]{scroll-margin-top:1.5rem}

/* Long-form guides: generous reading measure and descriptive titles. */
.guide-index-intro{max-width:76ch;margin-bottom:2.5rem;color:var(--muted)}
.guide-card h2,.guide-card h3{font-size:1.18rem;line-height:1.5;letter-spacing:-.012em}
.guide-topic{display:block;color:#4969ad;font-size:.71rem;line-height:1.6;font-weight:650;letter-spacing:.07em;text-transform:uppercase}
.guide-heading .page-intro h1{max-width:34ch;font-size:clamp(1.8rem,3.3vw,3rem);line-height:1.24}
.guide-heading .lead{max-width:85ch}
.guide-article{max-width:76ch}
.guide-byline{font-size:.8rem!important;color:#667898!important;padding-bottom:1rem;border-bottom:1px solid var(--line)}
.guide-article h2{font-size:clamp(1.35rem,2.1vw,1.8rem);line-height:1.4}
.guide-article section[id],.guide-demo{scroll-margin-top:1.5rem}
.guide-demo{margin:3rem 0 2rem;padding:1.6rem;background:#edf3ff;border:1px solid #d7e3f9;border-radius:12px}
.guide-demo figcaption h2{margin-top:.5rem}
.guide-demo figcaption p{font-size:.9rem}
.guide-settings{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1.5rem 0}
.guide-settings div{min-width:0}
.guide-settings dt,.guide-sample dt{font-size:.72rem;color:#5d7297}
.guide-settings dd,.guide-sample dd{margin:0;font-size:.88rem;color:#243e68;overflow-wrap:anywhere}
.guide-samples{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1.5rem 0}
.guide-sample{padding:1.2rem;background:#fff;border:1px solid #dae5f8;border-radius:9px;min-width:0}
.guide-sample h3{margin-top:0;font:italic 1.4rem/1.4 Georgia,serif;color:#3b599b;overflow-wrap:anywhere}
.guide-sample .guide-reading{font-size:.8rem;color:#53698c;margin-bottom:.8rem}
.guide-sample dl{margin:0}.guide-sample dd+dt{margin-top:.7rem}
.guide-demo .fine{font-size:.8rem;margin-bottom:1.2rem}
.guide-related-tools{padding-left:1.3rem}
.guide-tool-link{max-width:76ch;padding:1.25rem 1.5rem;margin:2rem auto;background:#edf3ff;border-left:3px solid #91a9e8;border-radius:0 8px 8px 0}
.guide-tool-link a{display:block;line-height:1.65;margin-top:.5rem}
@media(max-width:650px){.guide-heading .page-intro h1{font-size:1.85rem;max-width:none}.guide-card h2,.guide-card h3{font-size:1.12rem}.guide-demo{padding:1.1rem}.guide-settings,.guide-samples{grid-template-columns:1fr}.guide-tool-link{padding:1rem}.guide-index-intro{margin-bottom:1.75rem}}
