:root {
  color-scheme: light;
  font: 1rem/1.6 system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
.harness { --paper: #fbf5f2; --ink: #382237; --muted: #645063; --accent: #762e4f; --panel: #f2e2e8; --line: #decbd1; }
.shapes { --paper: #f3f8ff; --ink: #172546; --muted: #485b76; --accent: #234391; --panel: #e2ecfb; --line: #cbd9f0; }
.workshop { --paper: #f7f6ed; --ink: #272e20; --muted: #505943; --accent: #405036; --panel: #e9ecdc; --line: #d3dac6; }
a { color: var(--accent); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 .9rem; }
.wrap { width: min(1140px, calc(100% - 2.5rem)); margin-inline: auto; }
.skip { position: absolute; z-index: 2; top: .5rem; left: .5rem; padding: .65rem; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.top, .footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1rem; }
.top { border-bottom: 1px solid var(--line); }
.top nav, .footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-weight: 650; }
.brand { display: inline-flex; gap: .6rem; align-items: center; font-weight: 780; line-height: 1.1; text-decoration: none; }
.mark { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; background: var(--accent); border-radius: .65rem; }
.mark::before { content: ""; width: 19px; height: 15px; border: 2px solid white; border-radius: .25rem; }
.shapes .mark { border-radius: 50%; }
.shapes .mark::before { width: 16px; height: 16px; background: #ffc2ae; border: 0; border-radius: 50%; }
.workshop .mark::before { transform: rotate(-33deg); width: 23px; height: 9px; border-radius: 99px; }
h1, h2, h3 { margin: 0 0 .75rem; line-height: 1.06; }
h1 { font-size: clamp(2.7rem, 7vw, 5.8rem); letter-spacing: -.065em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.65rem); letter-spacing: -.035em; }
h3 { font-size: 1.4rem; letter-spacing: -.02em; }
h4 { margin: 0 0 .25rem; font-size: 1rem; line-height: 1.2; }
.harness h1, .workshop h1, .workshop h2 { font-family: Georgia, serif; font-weight: 500; }
.lead { font-size: clamp(1.1rem, 2.6vw, 1.4rem); color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .55rem 1rem; border: 1px solid var(--accent); border-radius: .45rem; background: var(--accent); color: white; text-decoration: none; font: inherit; font-weight: 740; cursor: pointer; }
.button:hover { filter: brightness(.9); }
.hero { margin-block: 1.45rem; }
.hero img { border-radius: .85rem; }
.harness .hero { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.6rem; align-items: center; padding: clamp(1.2rem,4vw,2.2rem); border-radius: 1.1rem; background: var(--panel); }
.harness .button { border-radius: 99px; }
.shapes .hero { margin-top: 0; background: #182958; color: white; }
.shapes .hero-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.6rem; align-items: center; padding-block: 2rem; }
.shapes .hero .lead { color: #e5ecfb; }
.shapes .hero .button { background: #ffc6b5; color: #3a2230; border-color: #ffc6b5; }
.quick-guides { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .55rem; }
.quick-guides a { padding: .65rem .75rem; border: 1px solid var(--line); border-radius: .5rem; background: white; font-weight: 730; }
.workshop .hero { position: relative; isolation: isolate; min-height: 350px; padding: clamp(1.15rem,5vw,3rem); display: grid; align-items: end; }
.workshop .hero img { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: .55rem; }
.workshop .hero-copy { width: min(100%,540px); background: #f7f6ed; padding: clamp(1rem,3vw,1.55rem); border-radius: .35rem; }
.content { padding-block: 1.5rem 2rem; }
.group-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: .75rem 1rem; }
.group-nav a { padding: .35rem .65rem; border: 1px solid var(--line); border-radius: .35rem; background: var(--panel); font-weight: 690; }
.product-group { display: grid; grid-template-columns: minmax(145px,.7fr) minmax(0,2.3fr); gap: 1rem; border-top: 1px solid var(--line); padding-block: 1.2rem; }
.product-group ul, .guide-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; list-style: none; padding: 0; margin: 0; }
.product-group li { display: grid; grid-template-columns: 64px minmax(0,1fr); align-items: center; gap: .65rem; padding: .5rem; background: white; border: 1px solid var(--line); border-radius: .45rem; }
.product-group img { width: 64px; aspect-ratio: 1; object-fit: contain; }
.product-group li p { margin: 0; color: var(--muted); font-size: .88rem; }
.shapes .product-group { grid-template-columns: 1fr; }
.shapes .product-group ul { grid-template-columns: repeat(3,minmax(0,1fr)); }
.shapes .product-group li { border-radius: .9rem; }
.workshop .product-group li { border-radius: 0; border-width: 0 0 1px; }
.guide-list li { background: var(--panel); border-radius: .4rem; padding: .7rem .85rem; }
.guide-list a { font-weight: 740; }
.guide-list p { margin: .25rem 0 0; }
.article { min-height: 62vh; padding-block: 1.55rem 3rem; }
.article h1 { font-size: clamp(2rem,5vw,4rem); overflow-wrap: anywhere; }
.crumb { margin-bottom: 1.15rem; }
.detail { display: grid; grid-template-columns: 1fr 1.1fr; align-items: start; gap: clamp(1rem,4vw,3rem); }
.detail dl { display: grid; grid-template-columns: minmax(6rem,1fr) minmax(0,2fr); gap: .35rem .65rem; }
dt { font-weight: 740; }
dd { margin: 0; }
.product-photo { border: 1px solid var(--line); border-radius: .5rem; background: white; }
.product-photo img { max-height: 490px; object-fit: contain; margin-inline: auto; }
.prose { max-width: 750px; margin-top: 1.6rem; }
.prose section { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.25rem; }
.prose h2 { font-size: 1.55rem; }
.table-scroll { overflow: auto; border: 1px solid var(--line); border-radius: .55rem; }
table { width: 100%; min-width: 38rem; border-collapse: collapse; background: white; }
td, th { padding: .65rem .75rem; text-align: left; vertical-align: top; }
thead { background: var(--panel); }
tbody tr + tr { border-top: 1px solid var(--line); }
.footer { align-items: flex-start; border-top: 1px solid var(--line); }
.footer p { margin: .4rem 0 0; color: var(--muted); font-size: .86rem; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2rem); }
  .harness .hero, .shapes .hero-inner, .detail, .product-group { grid-template-columns: 1fr; }
  .shapes .product-group ul, .quick-guides { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer { flex-direction: column; }
}
@media (max-width: 470px) {
  .product-group ul, .shapes .product-group ul, .guide-list, .quick-guides { grid-template-columns: 1fr; }
}
