:root { color-scheme:dark; --background:#080808; --text:#e8e8e8; --muted:#999999; --accent:#cccccc; --line:#333333; --subtle-line:#292929; --surface:#111111; --hover:#1b1b1b; --strong:#ffffff; --button-border:#555555; --border-hover:#858585; --orbit:#666666; --primary:#e8e8e8; --on-primary:#080808; background:var(--background); }
@media(prefers-color-scheme:light) { :root:not([data-theme="dark"]) { color-scheme:light; --background:#ffffff; --text:#171717; --muted:#666666; --accent:#333333; --line:#cccccc; --subtle-line:#dedede; --surface:#f5f5f5; --hover:#eeeeee; --strong:#080808; --button-border:#aaaaaa; --border-hover:#666666; --orbit:#777777; --primary:#171717; --on-primary:#ffffff; } }
:root[data-theme="light"] { color-scheme:light; --background:#ffffff; --text:#171717; --muted:#666666; --accent:#333333; --line:#cccccc; --subtle-line:#dedede; --surface:#f5f5f5; --hover:#eeeeee; --strong:#080808; --button-border:#aaaaaa; --border-hover:#666666; --orbit:#777777; --primary:#171717; --on-primary:#ffffff; }
:root[data-theme="dark"] { color-scheme:dark; --background:#080808; --text:#e8e8e8; --muted:#999999; --accent:#cccccc; --line:#333333; --subtle-line:#292929; --surface:#111111; --hover:#1b1b1b; --strong:#ffffff; --button-border:#555555; --border-hover:#858585; --orbit:#666666; --primary:#e8e8e8; --on-primary:#080808; }
    :root { color-scheme: dark; --background: var(--background); --text: var(--text); --muted: var(--muted); --accent: var(--accent); --line: var(--line); background: var(--background); }
    html { scrollbar-gutter:stable; }
    * { box-sizing: border-box; }
    body { margin: 0; background: var(--background); color: var(--text); font-family: monospace; line-height:1.7; -webkit-font-smoothing: antialiased; }
    .page { min-height: 100svh; max-width: none; margin: 0 auto; padding: 24px 5vw; display: flex; flex-direction: column; }
    main { flex: 1; display: grid; place-items: center; }
    .intro { position: relative; display: grid; place-items: center; width: 100%; min-height: 460px; height: calc(100svh - 48px); isolation: isolate; }
    .rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
    .orbit-ring { position: absolute; width: min(78vw, 78svh); aspect-ratio: 1; border: 1px solid var(--orbit); border-radius: 50%; transform: rotate(-32deg) scaleY(.56); }
    .orbit-ring::after { content: ''; position: absolute; top: -3px; left: calc(50% - 3px); width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
    .orbit-ring.two { border-color: var(--line); transform: rotate(38deg) scaleY(.7); }
    .orbit-ring.three { border-color: var(--accent); opacity: .75; transform: rotate(88deg) scaleY(.3); }
    .orbit-ring.three::after { background: var(--accent); }
    .home h1 { position: relative; z-index: 1; margin: 0; padding: 12px 3px; background: var(--background); font-size: clamp(3rem, 7.7vw, 8rem); font-weight: 400; letter-spacing: -.07em; line-height: 1.1; white-space: nowrap; }
    .home h1 .rn-gap { margin-left: .055em; }
    .home h1 em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; color: var(--muted); }
    .disciplines { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; z-index: 2; }
    .disciplines li { position: absolute; background: var(--background); font: .875rem/1.5 monospace; }
    .disciplines li:nth-child(1) { left: 9%; top: 23%; }
    .disciplines li:nth-child(2) { right: 8%; top: 30%; }
    .disciplines li:nth-child(3) { left: 13%; bottom: 21%; }
    .disciplines li:nth-child(4) { right: 14%; bottom: 15%; }
    .disciplines svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); stroke-width: 1.5; }
    .subject-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color 180ms ease, transform 180ms ease; }
    .subject-link span { position: relative; }
    .subject-link span::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 200ms ease; }
    .subject-link svg { transition: transform 200ms ease, color 180ms ease; }
    .subject-link:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
    .subject-link:focus-visible span::after { transform: scaleX(1); }
    .subject-link:active { transform: scale(.96); }
    @media (hover: hover) { .subject-link:hover { color: var(--strong); } .subject-link:hover span::after { transform: scaleX(1); } .subject-link:hover svg { transform: translateY(-2px); color: var(--strong); } }
    @media (prefers-reduced-motion: reduce) { .subject-link, .subject-link span::after, .subject-link svg { transition: none; } .subject-link:active { transform: none; } }
    @media (max-width: 600px) {
      .page { padding: 20px; }
      .intro { min-height: 460px; height: calc(100svh - 40px); }
      .home h1 { font-size: clamp(2rem, 9.4vw, 3.5rem); }
      .disciplines li { font-size: .8125rem; }
      .subject-link { gap: 8px; padding: 8px; }
      .disciplines li:nth-child(1) { left: 0; top: 20%; }
      .disciplines li:nth-child(2) { right: 0; top: 31%; }
      .disciplines li:nth-child(3) { left: 0; bottom: 25%; }
      .disciplines li:nth-child(4) { right: 0; bottom: 14%; }
      .disciplines svg { width: 18px; height: 18px; }
    }

/* The orbital landing and the journal share a quiet monochrome palette. */
a { color:inherit; text-decoration:none; }
a:hover { color:var(--strong); }
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible { outline:2px solid var(--accent); outline-offset:5px; }
.shell { width:min(1280px,90vw); margin:0 auto; padding-bottom:36px; }
.nav { position:relative; z-index:10; display:flex; align-items:center; justify-content:space-between; padding:28px 0; }
.logo { display:inline-flex; gap:12px; align-items:center; min-height:44px; font-size:17px; letter-spacing:-.04em; }
.logo .brand-icon { width:32px; height:32px; flex-shrink:0; transition:transform .16s ease; }
.brand-orbits { transform-origin:16px 16px; transition:transform .45s ease; }
.logo:is(:hover,:focus-visible) .brand-orbits { transform:rotate(22deg); }
.logo:active .brand-orbits { transform:rotate(70deg); transition-duration:.14s; }
.logo:active .brand-icon { transform:scale(.88); }
@media(prefers-reduced-motion:reduce) { .logo:is(:hover,:focus-visible,:active) .brand-orbits,.logo:active .brand-icon { transform:none; } }
.logo em { color:var(--muted); font-family:Georgia,serif; font-weight:400; }
.nav-controls { display:flex; align-items:center; gap:28px; font-size:13px; }
.basket-link { padding:12px 0; }
.navigation { position:relative; }
.navigation summary { display:flex; align-items:center; gap:16px; min-height:44px; padding:10px 0 10px 12px; cursor:pointer; list-style:none; }
.navigation summary::-webkit-details-marker { display:none; }
.menu-mark { display:block; width:20px; height:10px; border-top:1px solid currentColor; border-bottom:1px solid currentColor; transition:transform .2s; }
.navigation[open] .menu-mark { transform:rotate(-45deg); height:0; border-bottom:0; }
.menu-panel { position:absolute; top:calc(100% + 12px); right:0; width:260px; padding:18px 24px; background:var(--surface); border:1px solid var(--line); box-shadow:0 20px 60px #0008; }
.menu-panel a { display:block; padding:13px 0; color:var(--muted); font-size:17px; letter-spacing:-.02em; transition:color .18s,transform .18s; }
.menu-panel a:hover { color:var(--strong); transform:translateX(4px); }
.content { display:block; place-items:normal; padding:72px 0 80px; min-height:70svh; }
.content h1 { font-size:clamp(2.7rem,6.5vw,6rem); line-height:1.05; font-weight:400; letter-spacing:-.065em; margin:0 0 36px; }
.content h2 { font-weight:400; letter-spacing:-.035em; }
.page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:32px; padding-bottom:40px; margin-bottom:48px; border-bottom:1px solid var(--subtle-line); }
.page-head h1 { margin:14px 0 0; }
.muted,.summary,figcaption { color:var(--muted); }
.eyebrow { color:var(--muted); font:11px/1.6 monospace; text-transform:uppercase; letter-spacing:.14em; margin:0 0 16px; }
.actions { display:flex; gap:12px; flex-wrap:wrap; margin:28px 0; }
.section-actions { margin:0; gap:24px; }
.button,button { display:inline-flex; align-items:center; justify-content:center; gap:10px; border:1px solid var(--button-border); border-radius:2px; background:transparent; color:var(--text); padding:12px 22px; min-height:46px; font:13px/1.4 Arial,Helvetica,sans-serif; cursor:pointer; transition:background .18s,border-color .18s,transform .18s; }
.button:hover,button:hover { background:var(--hover); border-color:var(--border-hover); }
button:active,.button:active { transform:translateY(1px) scale(.98); }
button:disabled { opacity:.4; cursor:not-allowed; }
.primary { background:var(--primary); border-color:var(--primary); color:var(--on-primary); }
.primary:hover { background:var(--strong); border-color:var(--strong); color:var(--on-primary); }
.section-actions .button { padding:12px 0; border:0; border-bottom:1px solid var(--button-border); border-radius:0; background:none; justify-content:flex-start; }
.section-actions .button:hover { border-color:var(--text); }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:32px; }
.masonry { columns:3 280px; column-gap:32px; }
.card { display:block; break-inside:avoid; padding:24px 0; border-top:1px solid var(--line); margin-bottom:24px; }
.card h2 { font-size:25px; line-height:1.2; margin:0 0 12px; }
.card p { font-size:14px; line-height:1.7; }
.card img { width:100%; height:auto; display:block; }
.collection .card { padding:0 0 24px; border:0; margin-bottom:32px; }
.card-image { overflow:hidden; background:var(--surface); margin-bottom:24px; }
.card-image img { transition:transform .6s ease; }
.card:hover .card-image img { transform:scale(1.025); }
.card-caption h2 { display:flex; justify-content:space-between; gap:16px; }
.card-caption h2 span { font-size:18px; color:var(--muted); transition:transform .2s,color .2s; }
.card:hover .card-caption h2 span { transform:translate(2px,-2px); color:var(--strong); }
.card-caption .summary { margin:0 0 16px; max-width:45ch; }
.card-caption .eyebrow { margin-bottom:10px; }
.product-card .price { color:var(--text); margin:16px 0 4px; }
.product-card .muted { margin:0; }
.shop-grid .card-image { aspect-ratio:4/5; }
.shop-grid .card-image picture,.shop-grid .card-image img { width:100%; height:100%; object-fit:cover; }
.empty-state { grid-column:1/-1; padding:60px 0; margin:0; font-size:15px; color:var(--muted); }
.article { max-width:820px; margin:0 auto; }
.article > .eyebrow { margin-bottom:24px; }
.article > .summary { font-size:19px; line-height:1.65; margin:0 0 48px; max-width:58ch; }
.article p,.article li { line-height:1.85; }
.article img { max-width:100%; height:auto; }
.article figure { margin:48px 0; }
.article pre { overflow:auto; background:var(--surface); padding:24px; }
.article blockquote { border-left:1px solid var(--orbit); padding-left:24px; margin:32px 0; color:var(--muted); }
.article figcaption { padding-top:12px; font-size:13px; }
.article h2 { margin-top:48px; }
.form { max-width:680px; display:grid; gap:24px; }
.form > button { justify-self:start; min-width:150px; }
label { display:grid; gap:10px; font-size:13px; color:var(--text); }
input,textarea,select { background:var(--surface); color:var(--text); border:1px solid var(--line); padding:14px; font:14px/1.6 monospace; width:100%; border-radius:2px; transition:border-color .18s; }
input:hover,textarea:hover,select:hover { border-color:var(--orbit); }
textarea { min-height:140px; resize:vertical; }
input[type=checkbox] { width:18px; min-height:18px; accent-color:var(--text); }
label.check { display:flex; align-items:center; gap:12px; }
fieldset { border:1px solid var(--line); padding:24px; display:grid; gap:20px; }
legend { padding:0 8px; }
.trap { position:absolute; left:-10000px; }
.notice { border-left:1px solid var(--muted); padding:16px 22px; background:var(--surface); margin:24px 0; line-height:1.7; }
.row { border-bottom:1px solid var(--subtle-line); padding:24px 0; display:flex; gap:24px; align-items:center; flex-wrap:wrap; }
.row form { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.row input[type=number] { width:80px; }
.row .grow { flex:1; min-width:180px; }
.toolbar { display:flex; gap:8px; flex-wrap:wrap; }
.toolbar button { padding:8px 12px; }
.tiptap { border:1px solid var(--button-border); min-height:250px; padding:20px; outline:none; line-height:1.7; }
.tiptap img { max-width:100%; }
.json-body { display:none; }
.error { color:var(--text); border:1px solid var(--border-hover); padding:12px; }
.badge { font:11px/1.6 monospace; color:var(--muted); }
dl { display:grid; grid-template-columns:140px 1fr; gap:14px; overflow-wrap:anywhere; font-size:14px; line-height:1.6; }
dt { color:var(--muted); }
dd { margin:0; }
pre { white-space:pre-wrap; overflow-wrap:anywhere; }
footer { display:flex; gap:10px; padding:24px 0; border-top:1px solid var(--subtle-line); font-size:12px; color:var(--muted); }
@media(max-width:800px) { .page-head { align-items:flex-start; flex-direction:column; gap:24px; } .content { padding-top:48px; } }
@media(max-width:600px) { .shell { width:calc(100% - 40px); } .nav { padding:16px 0; } .logo { font-size:15px; gap:8px; } .logo .brand-icon { width:26px; height:26px; } .nav-controls { gap:20px; } .menu-panel { width:min(280px,calc(100vw - 40px)); } .content { padding:44px 0 56px; } .content h1 { font-size:clamp(2.6rem,12vw,4rem); overflow-wrap:anywhere; } .page-head { padding-bottom:28px; margin-bottom:32px; } .section-actions { gap:20px; } .row { align-items:flex-start; } dl { grid-template-columns:1fr; gap:8px; } dd { margin-bottom:12px; } .article > .summary { font-size:17px; } }
@media(prefers-reduced-motion:reduce) { * { transition:none!important; } }

/* Section titles occupy the same orbit as the landing wordmark. */
.shell { width:min(1160px,calc(100% - 10vw)); }
.content { padding-top:24px; }
.content h1 { font-size:clamp(2.2rem,4vw,3.5rem); letter-spacing:-.055em; }
.section-head { position:relative; display:flex; align-items:center; justify-content:center; height:300px; margin:0 0 72px; isolation:isolate; }
.section-orbits { position:absolute; width:min(600px,90%); height:100%; pointer-events:none; color:var(--orbit); stroke:currentColor; stroke-width:.7; }
.section-orbits ellipse:nth-child(2) { stroke:var(--line); }
.section-head h1 { position:relative; margin:0; padding:8px 16px; background:var(--background); font-weight:400; }
.section-actions { position:absolute; inset:0; pointer-events:none; }
.section-actions .button { position:absolute; pointer-events:auto; background:var(--background); border:0; padding:10px; font:12px/1.5 monospace; min-height:44px; }
.section-actions .button:first-child { top:30px; left:10%; }
.section-actions .button:nth-child(2) { bottom:30px; right:9%; }
.section-actions .button::after { content:''; position:absolute; left:10px; right:10px; bottom:5px; height:1px; background:var(--muted); transform:scaleX(0); transform-origin:left; transition:transform .2s; }
.section-actions .button:hover::after,.section-actions .button:focus-visible::after { transform:scaleX(1); }
.nav-controls,.navigation summary,.basket-link { font:12px/1.5 monospace; }
.menu-panel { padding:16px 22px; width:210px; background:var(--background); box-shadow:none; border-color:var(--subtle-line); }
.menu-panel a { font:13px/1.6 monospace; padding:14px 0; }
.card h2 { font-size:20px; letter-spacing:-.035em; }
.collection { max-width:1000px; margin:0 auto; }
.collection .card { padding-bottom:12px; }
.card-caption h2 { justify-content:flex-start; }
.card-caption h2::after { display:none; }
.card-caption h2 { text-decoration-thickness:1px; text-underline-offset:6px; }
.card:hover h2 { text-decoration:underline; }
.card-caption p { font-size:13px; }
.card-image { margin-bottom:18px; }
.article { max-width:740px; }
.article h1 { font-size:clamp(2.2rem,4vw,3.5rem); }
.article > .summary { font-size:16px; }
.button,button { font:12px/1.5 monospace; border-radius:0; background:var(--background); }
.primary { background:var(--primary); }
input,textarea,select { background:var(--background); border-radius:0; border-color:var(--line); }
.form { max-width:620px; }
footer { border:0; font:11px/1.6 monospace; margin-top:0; }
@media(max-width:600px) { .content { padding-top:12px; } .section-head { height:280px; margin-bottom:48px; } .section-orbits { width:100%; } .section-head h1 { font-size:clamp(2rem,9vw,3rem); } .section-actions .button:first-child { left:0; top:12px; } .section-actions .button:nth-child(2) { right:0; bottom:12px; } .menu-panel { width:210px; } }

.action-icon { width:18px; height:18px; flex:0 0 18px; }
.section-actions .button { gap:10px; }
.section-actions .button span { text-decoration:underline; text-decoration-color:var(--orbit); text-underline-offset:6px; text-decoration-thickness:1px; transition:text-decoration-color .2s; }
.section-actions .button:hover span,.section-actions .button:focus-visible span { text-decoration-color:var(--text); }
.section-actions .button::after { display:none; }
.section-actions .button .action-icon { transition:transform .2s; }
.section-actions .button:hover .action-icon { transform:translateY(-1px); }

/* A quiet partial underline is shared by the home and section links. */
.subject-link span,.section-actions .button span { position:relative; text-decoration:none; }
.subject-link span::after,.section-actions .button span::after { content:''; position:absolute; left:0; right:0; bottom:-6px; height:1px; background:currentColor; transform:scaleX(.28); transform-origin:left; opacity:.35; transition:transform .22s ease,opacity .22s ease; }
.subject-link:hover span::after,.subject-link:focus-visible span::after,.subject-link:active span::after,.section-actions .button:hover span::after,.section-actions .button:focus-visible span::after,.section-actions .button:active span::after { transform:scaleX(1); opacity:1; }

.crochet-choices{border:0;padding:0;margin:0}.crochet-choices legend{font-size:1.15rem;margin-bottom:1.25rem}.crochet-choices label{display:block;margin-bottom:1rem}.colour-fields{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}.crochet-estimate{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:1.5rem 0;margin:1rem 0}.crochet-estimate strong{display:block;font-size:clamp(1.6rem,4vw,2.4rem);font-weight:400;letter-spacing:-.035em}.crochet-estimate p{margin-bottom:0}.crochet-configurator{margin:2rem 0 3rem}@media(max-width:600px){.colour-fields{grid-template-columns:1fr;gap:0}}

/* The root palette applies to inline brand artwork as well as page surfaces. */
.brand-icon rect { fill:var(--background); }
.brand-orbits { stroke:var(--accent); }

/* Keep short pages within one viewport; longer content extends naturally. */
.shell { display:flex; flex-direction:column; min-height:100svh; padding-bottom:0; }
.content { flex:1; min-height:0; padding-bottom:32px; }
.section-head { height:clamp(160px,24svh,260px); margin-bottom:32px; }
footer { margin-top:auto; padding:20px 0; }
@media(max-width:600px) { .content { padding-bottom:24px; } .section-head { height:200px; margin-bottom:28px; } }

.theme-toggle { gap:8px; min-height:44px; padding:10px 8px; border:0; background:transparent; color:var(--muted); font:11px/1.5 monospace; }
.theme-toggle:hover { background:transparent; color:var(--text); }
.theme-toggle[hidden] { display:none; }
.theme-toggle svg { display:none; width:17px; height:17px; }
:root[data-theme-preference="system"] .theme-system,:root[data-theme-preference="light"] .theme-light,:root[data-theme-preference="dark"] .theme-dark { display:block; }
.home > .theme-toggle { position:absolute; top:20px; right:5vw; z-index:3; }
@media(max-width:600px) { .nav-controls { gap:14px; } .home > .theme-toggle { top:12px; right:20px; } }

/* Small finite responses to the pointer, with different movement for rings/text. */
.brand-title { transform-origin:center; transition:transform .32s ease; }
.rings,.section-orbits { transform-origin:center; transition:transform .48s ease; }
[data-brand-interaction="hover"] .brand-title,.brand-title[data-brand-interaction="hover"] { transform:translateY(-1px); }
[data-brand-interaction="hover"] .rings,[data-brand-interaction="hover"] .section-orbits { transform:rotate(.6deg) scale(1.004); }
[data-brand-interaction="press"] .brand-title,.brand-title[data-brand-interaction="press"] { transform:scale(.988); }
[data-brand-interaction="press"] .rings,[data-brand-interaction="press"] .section-orbits { transform:rotate(-.6deg) scale(.996); }
@media(prefers-reduced-motion:reduce) { .brand-title,.rings,.section-orbits { transform:none!important; transition:none; } }

.disciplines { pointer-events:none; }
.disciplines a { pointer-events:auto; }

/* Supplier swatches supplement native selects and remain usable with a keyboard. */
.colour-fields { grid-template-columns:1fr; gap:0; }
.yarn-picker { margin:0 0 20px; }
.yarn-picker[hidden] { display:none; }
.yarn-picker summary { min-height:44px; padding:10px 0; cursor:pointer; color:var(--muted); font-size:12px; }
.yarn-swatches { display:grid; grid-template-columns:repeat(auto-fill,minmax(76px,1fr)); gap:8px; padding:8px 0; }
.yarn-swatch { display:flex; flex-direction:column; justify-content:flex-start; gap:8px; padding:10px 4px; min-height:88px; border:1px solid var(--line); font:11px/1.5 monospace; text-align:center; }
.yarn-swatch img,.swatch-unavailable { width:40px; height:40px; border-radius:50%; object-fit:cover; border:1px solid var(--line); }
.swatch-unavailable { display:grid; place-items:center; color:var(--muted); }
.yarn-swatch[aria-pressed="true"] { border:2px solid var(--text); padding:9px 3px; }
select:not([multiple]) { height:52px; }

/* Shared select behaviour; this palette and spacing belong to Kernelspace. */
.ks-select { position:relative; min-width:0; width:100%; height:52px; border:1px solid var(--line); border-radius:3px; background:var(--background); transition:border-color .18s,background .18s; font:14px/1.6 monospace; }
.ks-select:hover { border-color:var(--border-hover); background:var(--surface); }
.ks-select:focus-within { outline:2px solid var(--accent); outline-offset:3px; }
.ks-select > select { position:absolute; inset:0; width:100%; height:100%; opacity:0; margin:0; cursor:pointer; }
.ks-select-value { display:block; line-height:26px; height:100%; padding:12px 42px 12px 16px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; pointer-events:none; }
.ks-select::after { content:''; position:absolute; right:18px; top:20px; width:7px; height:7px; border-right:1px solid var(--muted); border-bottom:1px solid var(--muted); transform:rotate(45deg); pointer-events:none; transition:transform .18s; }
.ks-select[data-open="true"]::after { transform:translateY(4px) rotate(225deg); }
.ks-select[data-disabled="true"] { opacity:.45; }
.ks-select[data-disabled="true"] > select { cursor:not-allowed; }
.ks-select-menu { position:absolute; z-index:120; top:calc(100% + 8px); left:-1px; right:-1px; max-height:min(280px,45vh); overflow:auto; overscroll-behavior:contain; padding:6px; border:1px solid var(--line); border-radius:4px; background:var(--background); box-shadow:0 12px 32px #0002; }
.ks-select-menu[hidden] { display:none; }
.ks-select[data-side="above"] > .ks-select-menu { top:auto; bottom:calc(100% + 8px); }
.ks-select-option { position:relative; padding:12px 34px 12px 12px; min-height:44px; text-align:left; cursor:pointer; overflow-wrap:anywhere; border-radius:2px; }
.ks-select-option:hover,.ks-select-option[data-active="true"] { background:var(--hover); }
.ks-select-option[aria-selected="true"]::after { content:'✓'; position:absolute; right:12px; color:var(--text); }
.ks-select-option[aria-disabled="true"] { color:var(--muted); opacity:.5; cursor:not-allowed; }
@media(prefers-reduced-motion:reduce) { .ks-select,.ks-select::after { transition:none; } }
@media(forced-colors:active) { .ks-select { border-color:ButtonText; } .ks-select-option[data-active="true"] { outline:1px solid Highlight; } }
.home-header { width:min(1160px,100%); margin-inline:auto; }
.nav-controls { margin-left:auto; }
.home .intro { height:auto; min-height:0; flex:1; }
.home main { min-height:400px; }
.page.home { padding-top:0; padding-bottom:0; }
.home footer { width:min(1160px,100%); margin-inline:auto; }
.footer-links { display:flex; flex-wrap:wrap; gap:12px 20px; align-items:center; }
.basket-link { display:inline-flex; align-items:center; gap:8px; min-height:44px; }
.basket-link svg { width:16px; height:16px; }
@media(max-width:600px) { .shell { width:calc(100% - 40px); } .home main { min-height:360px; } .footer-links { gap:8px 16px; } }

h1,h2,h3,h4,h5,h6,.brand-title { font-family:Arial,Helvetica,sans-serif; }
.empty-state { font-family:monospace; line-height:1.7; }
h2,h3,h4,h5,h6 { line-height:1.2; }

.form { width:100%; min-width:0; }
.form > *,fieldset,label { min-width:0; min-inline-size:0; }
legend { max-width:100%; white-space:normal; }
.crochet-choices [hidden] { display:none; }
.home main { display:flex; align-items:stretch; }

.brand-scene { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); display:grid; place-items:center; width:max-content; min-width:min(78vw,78svh); max-width:100%; height:min(78vw,78svh); isolation:isolate; }

.field-note { display:block; font-size:.8rem; line-height:1.6; margin:.6rem 0 1rem; }
@media(max-width:600px) { .content .form > button,.content form.row > button { width:100%; justify-self:stretch; } }
 .product-description { white-space:pre-line; }

/* Direct shop and enquiry links stay quieter than the portfolio subjects. */
.subject-actions { display:flex; align-items:center; gap:4px; padding-left:4px; }
.subject-actions a { display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:8px 6px; color:var(--muted); font:11px/1.5 monospace; white-space:nowrap; transition:color .2s,transform .2s; }
.subject-actions svg { width:14px; height:14px; color:currentColor; }
.subject-actions span { position:relative; }
.subject-actions span::after { content:''; position:absolute; left:0; right:0; bottom:-5px; height:1px; background:currentColor; transform:scaleX(.28); transform-origin:left; opacity:.35; transition:transform .22s,opacity .22s; }
.subject-actions a:hover,.subject-actions a:focus-visible,.subject-actions a:active { color:var(--strong); }
.subject-actions a:hover span::after,.subject-actions a:focus-visible span::after,.subject-actions a:active span::after { transform:scaleX(1); opacity:1; }
.subject-actions a:focus-visible { outline:1px solid var(--accent); outline-offset:0; }
.subject-actions a:active { transform:translateY(1px); }
@media(prefers-reduced-motion:reduce) { .subject-actions a,.subject-actions span::after { transition:none; } .subject-actions a:active { transform:none; } }

.content-paths { justify-content:center; flex-wrap:wrap; margin:0 auto 12px; }
.collection .empty-state { padding:36px 0; }
.content-paths [aria-current="page"] { color:var(--text); }
.journal-feed { display:grid; gap:48px; max-width:740px; }
.journal-feed.masonry { display:block; max-width:1000px; column-count:2; column-gap:40px; }
.blog-entry { min-width:0; break-inside:avoid; padding-bottom:36px; border-bottom:1px solid var(--subtle-line); }
.journal-feed.masonry .blog-entry { margin-bottom:40px; }
.blog-entry h2 { font-size:24px; margin:20px 0 16px; }
.blog-entry h2 a:hover { text-decoration:underline; text-underline-offset:6px; }
.blog-entry .card-image { display:block; }
.blog-entry img { width:100%; height:auto; }
.blog-body { overflow-wrap:anywhere; }
.blog-body pre { max-width:100%; overflow:auto; }
.blog-permalink { display:inline-flex; align-items:center; min-height:44px; color:var(--muted); font-size:11px; text-decoration:underline; text-underline-offset:5px; }
.blog-permalink:hover { color:var(--text); }
@media(max-width:600px) { .journal-feed.masonry { column-count:1; } }

/* Keep each subject and its shortcuts together at every viewport size. */
.home .intro { min-height:clamp(460px,36vw,560px); }
.disciplines { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:1fr 1fr; gap:24px; padding:24px clamp(0px,5vw,100px); }
.disciplines li { position:static; min-width:0; max-width:100%; }
.disciplines li:nth-child(1) { grid-column:1; grid-row:1; align-self:start; margin:0; }
.disciplines li:nth-child(2) { grid-column:2; grid-row:1; justify-self:end; align-self:start; margin:32px 0 0; }
.disciplines li:nth-child(3) { grid-column:1; grid-row:2; align-self:end; margin:0 0 16px; }
.disciplines li:nth-child(4) { grid-column:2; grid-row:2; justify-self:end; align-self:end; margin:0; }
.disciplines .subject-actions { flex-wrap:wrap; }
.disciplines .subject-actions a { white-space:normal; }
.disciplines .subject-actions svg { flex-shrink:0; }
@media(max-width:600px) {
 .home .intro { min-height:420px; }
 .disciplines { column-gap:8px; padding:8px 0 0; }
 .disciplines li:nth-child(2) { margin-top:40px; }
 .disciplines .subject-actions { gap:0; padding-left:0; }
 .disciplines .subject-actions a { padding:8px 2px; gap:4px; min-width:44px; }
 .disciplines .subject-actions svg { width:12px; height:12px; flex-basis:12px; }
}

.language-form { display:flex; align-items:center; gap:.3rem; margin:0; }
.language-form select { width:7.5rem; height:40px; max-width:7.5rem; min-height:2.5rem; padding:.4rem; font-size:.75rem; }
.language-form .ks-select { width:7.5rem; height:40px; }
.language-form select,.language-form .ks-select { border:0; background:transparent; }
.language-form .ks-select:hover { background:transparent; }
.language-form .ks-select-value { padding:7px 24px 7px 8px; font-size:.75rem; }
.language-form .ks-select::after { right:10px; top:14px; }
.translation-review { padding:1.5rem 0; border-bottom:1px solid var(--line); }
@media(max-width:480px) { .nav-controls { gap:.45rem; } .language-form select,.language-form .ks-select { max-width:6.5rem; } }

.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }

/* Mask orbit lines only beneath individual links, never an entire grid cell. */
.disciplines li { width:fit-content; background:transparent; }
.disciplines .subject-link,.disciplines .subject-actions a { background:var(--background); }
@media(max-width:600px) {
  .nav-controls { gap:8px; }
  .nav-controls [data-theme-label] { display:none; }
  .language-form select,.language-form .ks-select { width:6rem; max-width:6rem; }
  .language-form .ks-select-menu { left:0; right:auto; width:12rem; }
  .navigation summary { gap:7px; padding-left:2px; }
}
@media(max-width:360px) {
  .nav-controls { gap:5px; }
  .language-form select,.language-form .ks-select { width:5rem; max-width:5rem; }
  .nav-controls .basket-link { gap:4px; }
}
@media(max-width:360px) {
  .nav-controls .theme-toggle { padding-inline:2px; }
  .language-form select,.language-form .ks-select { width:4.5rem; max-width:4.5rem; }
  .nav-controls .basket-link svg { display:none; }
}

/* Leave visible space between adjacent shortcuts and wrapped rows. */
.disciplines .subject-actions { column-gap:clamp(16px,2vw,28px); row-gap:8px; }
@media(max-width:600px) {
 .disciplines .subject-actions { column-gap:10px; row-gap:6px; }
 .home .intro { min-height:480px; }
}
@media(max-width:600px) {
  :root:not(.js) .language-form { flex-wrap:wrap; width:5rem; max-width:5rem; }
  :root:not(.js) .language-form .language-submit { width:100%; padding:8px 4px; font-size:.75rem; }
}

.language-form { position:relative; }
.language-code { display:none; }
@media(max-width:600px) {
  .js .language-code { display:block; position:absolute; left:8px; top:7px; z-index:1; pointer-events:none; font:12px/26px monospace; text-transform:uppercase; color:var(--text); }
  .js .language-form .ks-select-value { visibility:hidden; }
}

/* Reserve progressive controls before scripts enhance them. */
.js .language-submit { display:none; }
.js .theme-toggle[hidden] { display:inline-flex; visibility:hidden; }
.theme-toggle [data-theme-label] { width:7ch; text-align:left; }
.logo { min-width:44px; justify-content:center; }
:root:not(.js) [data-colour-note][hidden] { display:block; }
@media(max-width:600px) {
 .theme-toggle { width:44px; min-width:44px; padding-inline:0; }
 .js .language-form > select { opacity:0; }
 .js .language-form:has(> select)::after { content:''; position:absolute; right:10px; top:14px; width:7px; height:7px; border-right:1px solid var(--muted); border-bottom:1px solid var(--muted); transform:rotate(45deg); pointer-events:none; }
}
@media(max-width:360px) {
 .language-form select,.language-form .ks-select { width:3.5rem; max-width:3.5rem; }
 .nav-controls .basket-link { min-width:44px; justify-content:center; }
 .nav-controls .basket-link svg { display:block; }
 .nav-controls .basket-link span { display:none; }
}
/* Keep secondary form fields compact and footer links easy to tap. */
textarea[name="links"] { min-height:88px; }
.footer-links a { display:inline-flex; align-items:center; min-height:44px; }
.menu-panel { max-height:calc(100svh - 112px); overflow-y:auto; overscroll-behavior:contain; }
@media(max-width:600px) { .menu-panel { max-height:calc(100svh - 96px); } }

@media(max-width:360px) { .language-form .ks-select-menu { left:-16px; } }
@media(max-width:600px) {
 .nav-controls .basket-link { min-width:44px; justify-content:center; }
 .nav-controls .basket-link svg { display:block; }
 .nav-controls .basket-link span { display:none; }
}
/* Keep the wordmark's hover area and rings inside the available landing space. */
.home .intro { container-type:size; }
.brand-scene { --scene-size:min(78vw,78svh,100cqh); min-width:var(--scene-size); height:var(--scene-size); }
.brand-scene .orbit-ring { width:var(--scene-size); }

/* The dashboard uses the same typography and quiet links as the portfolio. */
.admin-shell { max-width:1040px; }
.admin-shell .content { padding:40px 0 64px; }
.admin-shell .content h1 { font-size:clamp(2rem,4vw,3.5rem); letter-spacing:-.045em; margin-bottom:32px; }
.admin-shell .content h2 { font-size:20px; }
.admin-shell .form { max-width:640px; }
.admin-shell .card { background:transparent; border:0; padding:24px 0; border-top:1px solid var(--subtle-line); }
.admin-shell .button,.admin-shell button { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:44px; border:0; border-bottom:1px solid var(--line); border-radius:0; padding:10px 0; background:transparent; color:var(--text); font:13px/1.5 monospace; }
.admin-shell .button:hover,.admin-shell button:hover { border-color:var(--text); color:var(--strong); }
.admin-shell button.primary { padding:12px 18px; border:1px solid var(--line); }
.admin-shell button svg { width:16px; height:16px; }
.admin-login { max-width:420px; margin:8svh auto; }
.admin-shell input,.admin-shell textarea,.admin-shell .ks-select { border-radius:0; }
@media(max-width:600px) { .admin-login { margin:32px 0; } .admin-shell .content { padding-top:24px; } }

.admin-shell .badge { border:0; background:transparent; padding:0; color:var(--muted); }
.admin-shell .form > .muted { font-size:12px; line-height:1.6; }

/* Admin uses the same monochrome tokens and type with a persistent workspace layout. */
.admin-workspace { width:100%; display:grid; grid-template-columns:224px minmax(0,1fr); max-width:none; min-height:100svh; padding:0; }
.admin-sidebar { position:sticky; top:0; height:100svh; overflow-y:auto; padding:26px 16px 20px; border-right:1px solid var(--subtle-line); display:flex; flex-direction:column; }
.admin-brand { display:flex; align-items:center; gap:10px; padding:0 10px 24px; font:20px/1.2 Arial, sans-serif; letter-spacing:-.04em; }
.admin-brand svg { width:26px; height:26px; flex-shrink:0; }
.admin-brand em { font-family:Georgia,serif; color:var(--muted); }
.admin-navigation { display:flex; flex-direction:column; gap:4px; font-size:13px; }
.admin-navigation a { min-height:40px; display:flex; align-items:center; padding:8px 12px; color:var(--muted); border-radius:4px; }
.admin-navigation a:hover { background:var(--hover); color:var(--text); }
.admin-navigation a[aria-current="page"] { background:var(--hover); color:var(--strong); box-shadow:inset 2px 0 var(--accent); }
.admin-site-link { margin-top:auto; padding:12px; font-size:12px; color:var(--muted); border-top:1px solid var(--subtle-line); }
.admin-body { min-width:0; }
.admin-topbar { min-height:76px; display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid var(--subtle-line); }
.admin-workspace .admin-topbar { padding:12px 32px; }
.admin-topbar-label { font-size:12px; color:var(--muted); }
.admin-topbar-controls { display:flex; align-items:center; gap:24px; margin-left:auto; }
.admin-topbar-controls form { margin:0; }
.admin-shell .admin-topbar button { border:0; padding:8px; }
.admin-workspace .content { max-width:1400px; margin:0 auto; padding:32px; display:block; }
.admin-workspace .content h1 { font-size:32px; line-height:1.2; margin:0 0 28px; }
.admin-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:24px; }
.admin-metrics a { display:flex; flex-direction:column; padding:20px; border:1px solid var(--subtle-line); border-radius:6px; background:var(--surface); }
.admin-metrics a:hover { border-color:var(--border-hover); }
.admin-metrics span { font-size:12px; }
.admin-metrics strong { font:400 36px/1.4 Arial,sans-serif; font-variant-numeric:tabular-nums; margin:8px 0 4px; }
.admin-metrics small { color:var(--muted); font-size:11px; }
.admin-panels { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.admin-panel { border:1px solid var(--subtle-line); border-radius:6px; overflow:hidden; background:var(--surface); }
.admin-panel-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 20px; border-bottom:1px solid var(--subtle-line); }
.admin-shell .admin-panel-heading h2 { font-size:18px; font-weight:400; margin:0; }
.admin-panel-heading a { font-size:11px; color:var(--muted); text-decoration:underline; text-underline-offset:4px; }
.admin-record { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 20px; border-bottom:1px solid var(--subtle-line); font-size:12px; }
.admin-record:last-child { border:0; }
.admin-record:hover { background:var(--hover); }
.admin-record > span:first-child { min-width:0; }
.admin-record strong { display:block; font-weight:400; overflow-wrap:anywhere; }
.admin-record small { display:block; color:var(--muted); font-size:11px; }
.admin-empty { padding:28px 20px; color:var(--muted); font-size:12px; margin:0; }
.admin-shortcuts { margin-top:24px; }
.admin-quick-actions { display:flex; flex-wrap:wrap; gap:12px; padding:20px; }
.admin-shell .admin-quick-actions .button { padding:10px 16px; border:1px solid var(--line); border-radius:4px; }
.admin-job-notice { font-size:12px; }
.admin-mobile-nav { display:none; }
.admin-navigation a:focus-visible,.admin-metrics a:focus-visible,.admin-record:focus-visible { outline:2px solid var(--text); outline-offset:2px; }
@media(max-width:1100px) { .admin-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .admin-panels { grid-template-columns:1fr; } }
@media(max-width:800px) {
 .admin-workspace { display:block; }
 .admin-sidebar { display:none; }
 .admin-workspace .admin-topbar { position:sticky; top:0; z-index:10; padding:12px 20px; background:var(--background); min-height:64px; }
 .admin-topbar-label { display:none; }
 .admin-topbar-controls { gap:12px; }
 .admin-workspace .content { padding:24px 20px; }
 .admin-mobile-nav { display:block; }
 .admin-mobile-nav summary { display:flex; align-items:center; gap:12px; cursor:pointer; min-height:44px; font-size:12px; list-style:none; }
 .admin-mobile-nav summary::-webkit-details-marker { display:none; }
 .admin-mobile-panel { position:absolute; top:100%; left:0; width:min(320px,100%); max-height:calc(100svh - 64px); overflow:auto; border:1px solid var(--line); background:var(--background); padding:16px; box-shadow:0 16px 32px #0003; }
 .admin-navigation a { min-height:44px; }
}
@media(max-width:420px) { .admin-metrics { gap:10px; } .admin-metrics a { padding:16px; } .admin-metrics strong { font-size:30px; } .admin-panel-heading { padding:16px; } .admin-quick-actions { flex-direction:column; } }

.admin-section-tabs { display:flex; flex-wrap:wrap; gap:4px 24px; border-bottom:1px solid var(--subtle-line); margin:0 0 28px; padding:0; }
.admin-section-tabs a { display:flex; align-items:center; min-height:44px; padding:10px 0; color:var(--muted); font-size:12px; border-bottom:2px solid transparent; margin-bottom:-1px; }
.admin-section-tabs a:hover { color:var(--text); }
.admin-section-tabs a[aria-current="page"] { border-color:var(--accent); color:var(--strong); }
.admin-section-tabs a:focus-visible { outline:2px solid var(--text); outline-offset:3px; }
@media(max-width:420px) { .admin-section-tabs { gap:0 20px; } }

/* The language menu sizes to its labels rather than the compact header trigger. */
.language-form .ks-select-menu { left:auto; right:0; width:max-content; min-width:12rem; max-width:calc(100vw - 32px); }
.language-form .ks-select-option { white-space:nowrap; overflow-wrap:normal; }
@media(max-width:600px) { .language-form .ks-select-menu { left:0; right:auto; } }
@media(max-width:360px) { .language-form .ks-select-menu { left:-16px; } }
