/* Approved Krowshea identity: Paper, Charcoal, Deep teal, Mist and the v2 strand. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
.site-brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--ink); text-decoration: none; }
.site-brand img { display: block; width: 38px; height: 38px; }
.site-brand span { font: 400 2.25rem/1.2 'Krowshea Loop', Georgia, serif; font-kerning: normal; letter-spacing: normal; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; font-size: 0.9rem; }
.site-nav > a:not(.button) { text-decoration: none; padding-block: 0.6rem; }
.site-nav > a[aria-current=page]:not(.button) { text-decoration: underline; text-decoration-thickness: 2px; }
.site-nav .nav-join { padding: 0.65rem 1rem; }
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--paper); border-radius: 3px; margin-bottom: 2rem; }
.site-footer::before { content: ''; position: absolute; z-index: -1; inset: 0; background: #373e44; opacity: 0.35; clip-path: polygon(72% 0, 100% 0, 100% 100%, 45% 100%); }
.footer-thread { height: 5rem; background: url('/images/loop-rhythm-compact.svg') center / auto 9rem no-repeat; border-bottom: 1px solid #ffffff15; }
.footer-content { padding: 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.footer-wordmark { display: block; flex-shrink: 0; width: 14rem; }
.footer-wordmark img { display: block; width: 100%; height: auto; }
.site-footer .footer-links { justify-content: flex-end; font-size: 0.85rem; line-height: 1.8; max-width: 38rem; gap: 0.9rem 1.5rem; }
.site-footer a, .site-footer button { color: var(--paper); }
.site-footer a:focus-visible, .site-footer button:focus-visible { outline-color: var(--yarn); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-inline: 2.5rem; padding-block: 1.25rem; border-top: 1px solid #ffffff20; font-size: 0.75rem; line-height: 1.6; color: #c6d3d1; }
.home-invitation { display: flex; justify-content: space-between; align-items: center; gap: 3rem; padding: 2.5rem 3rem; background: var(--mist); margin-bottom: 4rem; border-radius: 3px; }
.home-invitation p:not(.eyebrow) { margin-top: 1rem; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.home-invitation .button { flex-shrink: 0; min-width: 10rem; }
.facet-panel { background: var(--ink); color: var(--paper); position: relative; isolation: isolate; overflow: hidden; border-radius: 4px; }
.facet-panel::before { content: ''; position: absolute; z-index: -1; inset: 0; background: #373e44; opacity: 0.48; clip-path: polygon(75% 0, 100% 0, 100% 70%, 50% 100%, 22% 100%); }
.facet-panel::after { content: ''; position: absolute; z-index: -1; inset: 0; background: #525b63; opacity: 0.2; clip-path: polygon(75% 0, 100% 0, 100% 24%); }
.facet-panel .eyebrow { color: var(--yarn); }
.account-main { padding-block: 3rem 4rem; }
.account-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 2rem; }
.account-story { padding: 3rem; min-height: 42rem; display: flex; flex-direction: column; }
.account-title { font-size: clamp(2.6rem, 4.4vw, 4.2rem); line-height: 1.15; margin: 0.7rem 0 1.75rem; }
.account-lead { max-width: 28rem; font-size: 1.05rem; line-height: 1.85; color: var(--mist); }
.account-expectations { color: var(--mist); font-size: 0.9rem; line-height: 1.8; margin-top: 2rem; }
.account-expectations > p:first-child { color: var(--yarn); font: 0.72rem/1.6 'Courier New', monospace; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.85rem; }
.account-expectations ol { padding-left: 1.25rem; margin: 0; }
.account-expectations li { padding-left: 0.35rem; margin-block: 0.65rem; }
.account-thread { min-height: 9rem; margin: 1rem -3rem 0; background: url('/images/loop-rhythm-compact.svg') center / auto 14rem no-repeat; }
.account-footnote { font-size: 0.8rem; line-height: 1.8; color: #c6d3d1; margin-top: auto; }
.account-layout .account-card { padding: 2.5rem; background: #fcfaf6; box-shadow: none; border-top: 4px solid var(--yarn); }
.account-layout .account-card #account-heading { font: 400 2rem/1.25 'Krowshea Loop', Georgia, serif; margin-block: 1rem; }
.account-layout .account-card .card-copy { font-size: 1rem; }
.account-layout label { font-size: 0.9rem; }
.account-layout .consent-label { font-size: 0.82rem; }
.account-layout .form-message { font-size: 0.9rem; }
.resource-hero { padding: 2.5rem 3rem; background: var(--mist); display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 2rem; border-radius: 4px; margin-bottom: 4rem; }
.resource-title { font-size: clamp(3rem, 5.3vw, 5rem); line-height: 1.08; margin-block: 1rem 1.5rem; }
.resource-lead { color: var(--teal); font-size: 1.1rem; line-height: 1.8; max-width: 27rem; }
.resource-crow { display: block; width: 100%; height: auto; max-width: 29rem; justify-self: end; }
.resources-layout { display: grid; grid-template-columns: 12rem 1fr; gap: 4rem; padding-bottom: 4rem; }
.resource-index { align-self: start; position: sticky; top: 2rem; display: flex; flex-direction: column; gap: 1rem; font: 0.75rem/1.8 'Courier New', monospace; }
.resource-index a { text-decoration: none; }
.resource-index a:hover { text-decoration: underline; }
.resource-section { padding-bottom: 3.5rem; scroll-margin-top: 2rem; }
.resource-intro { color: var(--muted); font-size: 1rem; line-height: 1.8; max-width: 40rem; margin-top: 1.25rem; }
.resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; margin-top: 2rem; }
.resource-item { border-top: 1px solid var(--line); padding-block: 1.6rem; }
.resource-publisher { color: var(--teal); font: 0.7rem/1.8 'Courier New', monospace; letter-spacing: 0.03em; margin-bottom: 0.5rem; }
.resource-item h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.5; margin-bottom: 0.75rem; }
.resource-item h3 a { color: var(--ink); text-decoration: none; }
.resource-item h3 a:hover { text-decoration: underline; }
.resource-item h3 a > span[aria-hidden] { color: var(--teal); display: inline-block; margin-left: 0.2rem; }
.resource-item p:last-child { color: var(--muted); font-size: 0.95rem; line-height: 1.85; }
.archive-section { padding: 2.5rem 2.5rem 0; }
.archive-section .resource-item { border: 0; padding-bottom: 0; }
.archive-section .resource-publisher { display: none; }
.archive-section .resource-item p, .archive-section .resource-item a { color: var(--paper); }
.archive-section .resource-item a > span[aria-hidden] { color: var(--yarn); }
.archive-section a:focus-visible { outline-color: var(--yarn); }
.archive-thread { height: 7rem; margin-inline: -2.5rem; background: url('/images/loop-rhythm-compact.svg') center / auto 11rem no-repeat; }
.resource-note { margin-top: 2rem; color: var(--muted); font-size: 0.85rem; line-height: 1.8; }
@media (max-width: 1000px) {
  .site-nav { gap: 1.2rem; }
  .account-story, .account-layout .account-card { padding: 2rem; }
  .account-thread { margin-inline: -2rem; }
  .resources-layout { grid-template-columns: 10rem 1fr; gap: 2rem; }
  .resource-grid { gap: 0 1.5rem; }
  .footer-content { align-items: start; }
}
@media (max-width: 800px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-story { min-height: 0; }
  .account-title br { display: none; }
  .account-thread { min-height: 6rem; background-size: auto 11rem; }
  .account-lead { max-width: 40rem; }
  .account-expectations { margin-top: 1.5rem; }
  .account-footnote { max-width: 40rem; }
  .resources-layout { grid-template-columns: 1fr; gap: 2rem; }
  .resource-index { position: static; flex-direction: row; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
  .resource-hero { padding: 2rem; }
}
@media (max-width: 680px) {
  .site-header { flex-wrap: wrap; gap: 1.2rem; padding-block: 1rem 1.2rem; }
  .site-brand span { font-size: 2rem; }
  .site-brand img { width: 32px; height: 32px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 0.6rem; font-size: 0.82rem; }
  .site-nav .nav-join { font-size: 0.82rem; padding: 0.6rem 0.8rem; }
  .home-invitation { display: block; padding: 1.75rem 1.5rem; margin-bottom: 2.5rem; }
  .home-invitation .button { margin-top: 1.5rem; }
  .footer-content { flex-direction: column; gap: 1.5rem; padding: 1.75rem 1.5rem; }
  .footer-wordmark { width: 13rem; }
  .site-footer .footer-links { justify-content: flex-start; gap: 0.75rem 1.2rem; font-size: 0.82rem; }
  .footer-bottom { display: block; margin-inline: 1.5rem; font-size: 0.7rem; }
  .footer-bottom p + p { margin-top: 0.5rem; }
  .account-main { padding-block: 2rem 2.5rem; }
  .account-story { padding: 1.75rem 1.5rem; }
  .account-title { font-size: clamp(2.3rem, 10vw, 3.5rem); margin-block: 0.75rem 1.25rem; }
  .account-lead { font-size: 1rem; }
  .account-thread { margin-inline: -1.5rem; }
  .account-layout .account-card { padding: 1.75rem 1.25rem; }
  .account-layout .account-card #account-heading { font-size: 1.8rem; }
  .resource-hero { grid-template-columns: 1fr; padding: 1.75rem 1.5rem; gap: 1.5rem; margin-bottom: 2rem; }
  .resource-crow { max-width: 18rem; justify-self: center; }
  .resource-title { font-size: clamp(2.75rem, 12vw, 4rem); }
  .resource-lead { font-size: 1rem; }
  .resource-grid { grid-template-columns: 1fr; margin-top: 1.5rem; }
  .resource-section { padding-bottom: 2.5rem; }
  .archive-section { padding: 1.75rem 1.5rem 0; }
  .archive-thread { margin-inline: -1.5rem; }
  .resources-layout { padding-bottom: 2.5rem; }
}
.account-mobile-link { display: none; }
.library-summary { text-align: center; min-width: 0; color: var(--teal); }
.library-summary strong { font: 400 clamp(5rem, 9vw, 8rem)/1.1 'Courier New', monospace; }
.library-summary > p { margin-top: 0.5rem; font: 0.75rem/1.6 'Courier New', monospace; text-transform: uppercase; letter-spacing: 0.07em; }
.library-thread { height: 7rem; background: url('/images/loop-rhythm-compact.svg') center / auto 11rem no-repeat; margin-top: 1.5rem; }
.library-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; color: var(--muted); font-size: 1rem; line-height: 1.85; }
.library-index { display: flex; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 2rem; font-size: 0.85rem; line-height: 1.8; }
.stitch-group { padding-block: 3rem; border-top: 1px solid var(--line); }
.stitch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; margin-top: 2rem; }
.stitch-entry { display: grid; grid-template-columns: 2rem 1fr; gap: 1rem; padding-block: 1.75rem; border-top: 1px solid var(--line); min-width: 0; }
.stitch-number { color: var(--teal); font: 0.75rem/1.8 'Courier New', monospace; padding-top: 0.15rem; }
.stitch-entry h3 { font-size: 1.15rem; line-height: 1.5; margin-bottom: 0.6rem; }
.stitch-entry p { font-size: 0.95rem; line-height: 1.8; color: var(--muted); }
.stitch-entry .stitch-aliases { color: var(--teal); font-size: 0.8rem; margin-bottom: 0.65rem; }
.library-close { padding: 2.5rem; background: var(--mist); margin-block: 1rem 4rem; border-radius: 3px; }
.library-close > p:not(.eyebrow) { color: var(--muted); font-size: 1rem; line-height: 1.8; margin-top: 1rem; }
.library-close .button { margin-top: 1.5rem; }
.library-reference { color: var(--muted); font-size: 0.95rem; line-height: 1.8; margin: -1.5rem 0 3rem; }
@media (max-width: 680px) {
  .site-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 1rem; }
  .site-nav .nav-join { justify-self: end; }
  .library-intro, .stitch-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .library-summary strong { font-size: 5rem; }
  .library-thread { margin-top: 0.5rem; }
  .library-hero { gap: 1rem; }
  .stitch-grid { gap: 0; }
  .stitch-group { padding-block: 2rem; }
  .stitch-entry { gap: 0.5rem; }
  .library-close { padding: 1.75rem 1.5rem; margin-bottom: 2.5rem; }
  .library-reference { margin: 0 0 2rem; }
  .account-expectations { display: none; }
  .account-thread { min-height: 4rem; background-size: auto 8rem; margin-top: 0.5rem; }
  .account-mobile-link { display: inline-block; color: var(--yarn); margin-top: 1.25rem; font-size: 0.85rem; text-underline-offset: 0.3em; align-self: flex-start; }
  .account-mobile-link:focus-visible { outline-color: var(--yarn); }
  .account-footnote { margin-top: 0.5rem; }
}
.library-hero .resource-title { font-size: clamp(2.5rem, 4.5vw, 4rem); }
@media (min-width: 681px) and (max-width: 800px) {
  .site-header { flex-wrap: wrap; gap: 1rem; }
  .site-nav { width: 100%; justify-content: space-between; }
}
