@font-face { font-family: 'Purl Sans'; src: url('./assets/manrope-latin.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Purl Text'; src: url('./assets/newsreader-latin-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
:root { --paper: #fff3ed; --ink: #72291f; --accent: #8f3025; --on-accent: #fff8f3; --soft: #f6d6ca; --rule: #bd8f85; --control: #8b625a; --blue: #dce8f6; --navy: #273a56; --body: 'Purl Text', Georgia, serif; --display: 'Purl Sans', sans-serif; --ui: 'Purl Sans', sans-serif; --weight: 800; }
* { box-sizing: border-box; }
html { color: var(--ink); background: var(--paper); }
body { margin: 0; font: 1.125rem/1.65 var(--body); }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
main:focus { outline: none; }
button, input, select, textarea { font: inherit; }
button, a, summary { touch-action: manipulation; }
button, summary { cursor: pointer; }
button { color: inherit; }
img { display: block; width: 100%; height: auto; }
picture { display: block; }
figure { margin: 0; }
.photo { width: 100%; max-width: 700px; }
figcaption { padding-top: .65rem; font: .75rem/1.5 var(--ui); }
p { margin: 0 0 1.25rem; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0 0 1.2rem; font-family: var(--display); font-weight: var(--weight); line-height: 1.1; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.7rem, 6vw, 5.5rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.035em; }
h3 { font-size: 1.55rem; }
.wrap { width: min(calc(100% - 40px), 1180px); margin-inline: auto; }
.section { padding-block: clamp(3rem, 6vw, 6rem); }
.page-intro { padding-block: clamp(3rem, 6vw, 6rem) 1rem; }
.page-intro .lead { max-width: 44rem; }
.lead { font-size: 1.35rem; line-height: 1.5; }
.eyebrow { font: .72rem/1.6 var(--ui); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.25rem; }
.small { font: .85rem/1.6 var(--ui); }
.skip-link { position: absolute; z-index: 5; top: 0; left: 1rem; padding: .8rem; background: var(--paper); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem max(20px, calc((100% - 1180px) / 2)); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font: var(--weight) 2rem/1 var(--display); }
.brand small { display: block; font: .6rem/1.5 var(--ui); letter-spacing: .1em; margin-top: .5rem; }
.brand-mark { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
#navigation { display: flex; align-items: center; gap: 1.2rem; font: .8rem/1.5 var(--ui); }
#navigation a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
#navigation a[aria-current], #navigation a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.menu-toggle { display: none; min-height: 44px; border: 1px solid currentColor; background: transparent; padding: .5rem .75rem; font: .85rem/1.5 var(--ui); }
.arrow, .disclosure { flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.button, .text-link { display: inline-flex; align-items: center; gap: 1rem; min-height: 48px; max-width: 100%; font: .9rem/1.5 var(--ui); }
.button { justify-content: space-between; background: var(--accent); color: var(--on-accent); padding: 1rem 1.25rem; border: 2px solid var(--accent); text-decoration: none; }
.button:hover { text-decoration: underline; }
.button:focus-visible { outline-color: var(--ink); }
.text-link { padding-block: .5rem; }
.closing { padding-block: 3.5rem; background: var(--soft); }
.closing-layout { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.closing-layout > div { max-width: 42rem; }
.closing h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.closing .button { flex-shrink: 0; }
.site-footer { padding-block: 2.5rem; border-top: 1px solid var(--rule); }
.footer-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; }
.footer-name { font: var(--weight) 1.7rem/1.2 var(--display); }
.site-footer p:not(.footer-name) { font: .8rem/1.8 var(--ui); }
.site-footer a { display: inline-block; padding-block: .75rem; font: .85rem/1.5 var(--ui); }
.form-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: start; }
.form-panel { padding: clamp(1rem, 3vw, 2.5rem); background: var(--soft); }
.demo-note { border-left: 3px solid var(--accent); padding-left: 1rem; margin-top: 2rem; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { font: var(--weight) 1.8rem/1.2 var(--display); margin-bottom: 1rem; max-width: 100%; }
.field { margin-bottom: 1.25rem; }
label { display: block; margin-bottom: .4rem; font: .85rem/1.5 var(--ui); }
input, select, textarea { display: block; width: 100%; min-width: 0; min-height: 48px; padding: .75rem; border: 1px solid var(--control); border-radius: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 var(--ui); }
textarea { resize: vertical; }
.field .small { margin-top: .5rem; }
.confirmation { padding-block: 1rem; }
.prose { max-width: 740px; }
.prose section + section { margin-top: 3rem; }
.prose h2 { font-size: 2rem; }
.prose > .small { margin-top: 3rem; }
.price-list, .hours-list { margin: 0 0 1.5rem; }
.price-list > div, .hours-list > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .9rem; border-bottom: 1px solid var(--rule); }
dd { margin: 0; }
.price-list dd { white-space: nowrap; font-family: var(--ui); }
.price { font: var(--weight) 1.8rem/1.2 var(--display); }
.price span { font: .9rem/1.5 var(--ui); }
ul, ol { padding-left: 1.3rem; }
li { padding-block: .4rem; }
.questions { max-width: 850px; }
details { border-top: 1px solid var(--rule); padding-block: 1rem; }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; min-height: 44px; font: .95rem/1.5 var(--ui); }
summary::-webkit-details-marker { display: none; }
details[open] .disclosure { transform: rotate(45deg); }
details p { padding-top: 1rem; }
.form-layout > *, .footer-layout > *, .closing-layout > * { min-width: 0; }
@media (max-width: 1100px) {
  .site-header { flex-wrap: wrap; }
  .menu-toggle { display: inline-block; }
  #navigation { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: .2rem; }
  #navigation a { padding: .65rem .4rem; }
  .has-menu .menu-toggle[aria-expanded="false"] + #navigation { display: none; }
  .form-layout { grid-template-columns: 1fr; gap: 2rem; }
  .closing-layout { flex-direction: column; align-items: start; }
}
@media (max-width: 700px) {
  .footer-layout { grid-template-columns: 1fr; gap: 1rem; }
  .brand { font-size: 1.6rem; }
  .brand-mark { width: 36px; height: 36px; }
  .site-header { gap: .75rem; }
  .brand small { font-size: .5rem; }
  .price-list > div, .hours-list > div { flex-wrap: wrap; gap: .25rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.site-header { border-bottom: 1px solid var(--rule); }
.brand { letter-spacing: -.06em; }
.brand small { letter-spacing: .12em; }
.yarn-opening { display: grid; grid-template-columns: 1.12fr 1fr; gap: 2rem 3rem; padding-block: 4.5rem 1.5rem; align-items: center; }
.yarn-headline h1 { font-size: clamp(2.8rem, 5.5vw, 5rem); line-height: 1.05; }
.yarn-headline h1 span { color: var(--navy); }
.yarn-headline .lead { max-width: 29rem; }
.yarn-opening .photo { border: 1px solid var(--rule); padding: .65rem; background: #fffcf8; border-radius: 9rem 9rem .4rem .4rem; }
.yarn-opening img { border-radius: 8.5rem 8.5rem 0 0; }
.yarn-opening figcaption { padding: 1rem .3rem .5rem; }
.opening-footnote { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--rule); padding-top: 1rem; font: .65rem/1.4 var(--ui); letter-spacing: .08em; }
.opening-footnote span { font: 1.2rem/1.3 var(--body); letter-spacing: 0; }
.color-section { background: var(--blue); color: var(--navy); margin-top: 2rem; }
.section-heading { display: flex; justify-content: space-between; align-items: start; gap: 2rem; }
.yarn-swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-block: 2rem; }
.swatch { display: block; height: 6rem; border-radius: 50%; margin-bottom: 1.5rem; background-image: repeating-linear-gradient(55deg, transparent 0 7px, #ffffff20 7px 10px); }
.paprika { background-color: #bb4d37; }
.tide { background-color: #487c88; }
.fig { background-color: #65445b; }
.yarn-swatches h3 { font-size: 1.5rem; }
.yarn-swatches p { font-size: 1.2rem; }
.knitting-table { display: grid; grid-template-columns: 1.15fr 1fr; gap: 5rem; }
.knitting-table > div { max-width: 36rem; }
.knit-night { padding: 2.25rem; background: var(--soft); border-radius: 2rem; }
.knit-night h3 { font-size: 2.6rem; }
.button { border-radius: 999px; }
.closing { border-top: 4px solid var(--accent); }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
.product-grid article { border-top: 2px solid var(--rule); padding-block: 2rem; }
.product-grid h3 { font-size: 2rem; }
.tools { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; border-top: 1px solid var(--rule); }
.class-intro { max-width: 45rem; }
.class-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-block: 2rem; }
.class-dates article { display: grid; grid-template-columns: 1fr 1.7fr; align-items: end; gap: .5rem 2rem; padding: 2rem; border: 2px solid var(--ink); border-radius: 1rem; }
.class-dates .month { grid-column: 1 / -1; margin: 0; font: 1rem/1.3 var(--ui); }
.class-dates h3 { font-size: clamp(4rem, 8vw, 6rem); margin: 0; line-height: 1; }
.class-dates article > p:last-child { font-size: 1.15rem; }
.night-band { background: var(--blue); color: var(--navy); }
.shop-story { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.shop-story img { border-radius: 1rem; }
.visit-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; border-top: 1px solid var(--rule); }
.visit-panel h2 { font-size: 2.5rem; }
.form-panel { border-radius: 1.5rem; }
.yarn-opening > *, .knitting-table > *, .tools > *, .class-dates > *, .shop-story > *, .visit-panel > * { min-width: 0; }
@media (max-width: 850px) {
  .yarn-opening { gap: 1.5rem; }
  .yarn-headline h1 { font-size: clamp(2.6rem, 5.7vw, 4rem); }
  .knitting-table, .tools, .shop-story, .visit-panel { gap: 2rem; }
  .class-dates article { display: block; padding: 1.5rem; }
  .class-dates h3 { margin-block: .5rem 1rem; }
}
@media (max-width: 700px) {
  .yarn-opening { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .yarn-headline h1 { font-size: clamp(2.6rem, 9vw, 4.5rem); }
  .yarn-opening .photo { max-width: 520px; justify-self: center; }
  .section-heading { display: block; }
  .yarn-swatches { gap: 1rem; }
  .yarn-swatches h3 { font-size: 1.1rem; }
  .yarn-swatches p { font-size: 1rem; }
  .swatch { height: 3.75rem; }
  .knitting-table, .product-grid, .tools, .shop-story, .visit-panel { grid-template-columns: 1fr; }
  .class-dates { gap: 1rem; }
  .class-dates article { padding: 1rem; }
  .class-dates article > p:last-child { font-size: 1rem; }
  .knit-night { padding: 1.5rem; }
}
html:not(.has-menu) .menu-toggle { display: none !important; }
