.ph-undyed {
    --ph-ink: #2e2236;
    --ph-pulp: #fffbf2;
    --ph-heather: #6c3952;
    --ph-lilac: #f0ddec;
    --ph-moss: #e0e6c7;
    --ph-cord: #8c647b;
    margin: 0;
    background: var(--ph-pulp);
    color: var(--ph-ink);
    font: 16px/1.55 "Avenir Next",Avenir,Arial,sans-serif;
}

.ph-undyed * {
    box-sizing: border-box;
}

.ph-undyed a {
    color: #5d2f47;
    text-underline-offset: .24em;
}

.ph-undyed img {
    display: block;
    width: 100%;
    object-fit: cover;
}

.ph-undyed h1,.ph-undyed h2,.ph-undyed h3 {
    font-family: "Palatino Linotype",Palatino,Georgia,serif;
    font-weight: 500;
    margin: 0 0 .32em;
    line-height: 1.08;
    letter-spacing: -.044em;
    text-wrap: balance;
}

.ph-undyed h1 {
    font-size: clamp(2.9rem,7vw,7rem);
}

.ph-undyed h2 {
    font-size: clamp(2rem,4.2vw,4rem);
}

.ph-undyed h3 {
    font-size: clamp(1.45rem,2.7vw,2.15rem);
}

.ph-undyed :focus-visible {
    outline: 3px solid #84365c;
    outline-offset: 3px;
}

.ph-loose-end {
    position: absolute;
    left: 1rem;
    top: -10rem;
    z-index: 3;
    background: var(--ph-pulp);
    padding: .6rem;
}

.ph-loose-end:focus {
    top: 1rem;
}

.ph-shopfront {
    padding: 1.25rem 1rem 1rem;
    text-align: center;
    background: #fcf2db;
}

.ph-durham {
    margin: 0;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 700;
}

.ph-shopname {
    display: inline-block;
    margin: .06em 0 .14em;
    font: 500 clamp(2.7rem,6vw,4.8rem)/1 "Palatino Linotype",Palatino,Georgia,serif;
    letter-spacing: -.09em;
    text-decoration: none;
    color: var(--ph-ink)!important;
}

.ph-shopfront nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(.65rem,3vw,2.2rem);
    flex-wrap: wrap;
}

.ph-shopfront nav a {
    font-weight: 700;
    font-size: .87rem;
    text-decoration: none;
}

.ph-shopfront nav a:hover,.ph-shopfront nav a[aria-current] {
    text-decoration: underline;
}

.ph-skein-window {
    position: relative;
    min-height: clamp(20rem,41vw,38rem);
    background: #796550;
    overflow: hidden;
    isolation: isolate;
}

.ph-skein-window img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-position: 36% 48%;
}

.ph-skein-window::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg,#21172ae3 0,#2f2039ce 27%,#251a31ad 48%,#38222936 74%,transparent);
}

.ph-window-lettering {
    position: relative;
    z-index: 1;
    color: #fff5de;
    padding: clamp(2.4rem,6vw,6rem) 6% clamp(4rem,11vw,9rem);
    max-width: 60rem;
}

.ph-window-lettering h1 {
    margin-bottom: .22em;
}

.ph-window-lettering em,.ph-window-lettering i {
    color: #f0cae2;
    font-weight: 400;
}

.ph-window-lettering p {
    font-size: clamp(1rem,1.65vw,1.3rem);
    max-width: 30rem;
    margin: .35rem 0;
}

.ph-stockticket {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    background: #f1dfec;
    border: 1px solid #b991a7;
    margin: -2.4rem auto 0;
    width: min(91%,76rem);
    padding: clamp(1rem,3vw,2rem);
    box-shadow: 0 8px 0 #6a3c5217;
}

.ph-ticket-id {
    flex: 1 1 13rem;
}

.ph-ticket-id h2 {
    font-size: 1.85rem;
}

.ph-ticket-id p {
    font-size: .88rem;
    margin: 0;
}

.ph-ticket-choices {
    flex: 1 1 14rem;
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.ph-ticket-choices label {
    display: flex;
    flex: 1 1 6.6rem;
    flex-direction: column;
    gap: .15rem;
    font-size: .78rem;
    font-weight: 700;
}

.ph-ticket-choices select {
    min-height: 2.3rem;
    margin-top: .2rem;
    font: inherit;
    background: #fff7e9;
    color: var(--ph-ink);
    border: 1px solid #936d82;
    border-radius: 2px;
    padding: .3rem .5rem;
    max-width: 100%;
}

.ph-ticket-answer {
    max-width: 24rem;
    flex: 1 1 16rem;
    margin: 0;
    font-size: .87rem;
}

.ph-ticket-answer strong,.ph-ticket-answer span,.ph-ticket-answer a {
    display: block;
}

.ph-ticket-answer strong {
    font-size: 1.04rem;
    margin-bottom: .14rem;
}

.ph-from-shelf {
    padding: clamp(3rem,8vw,7.5rem) max(6%,calc((100% - 66rem)/2));
    background: linear-gradient(0deg,#fff6e6,var(--ph-pulp));
}

.ph-from-shelf header {
    max-width: 37rem;
}

.ph-from-shelf header p {
    max-width: 30rem;
}

.ph-tension-list a {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .6rem 1.2rem;
    padding: .95rem .75rem;
    border-top: 1px solid #d8bbc5;
    color: inherit;
    text-decoration: none;
    transition: background-color .27s,color .27s;
}

.ph-tension-list a:last-child {
    border-bottom: 1px solid #d8bbc5;
}

.ph-tension-list a span {
    flex: 0 0 4rem;
    font: 500 1.45rem/1 Palatino,Georgia,serif;
    color: #603650;
}

.ph-tension-list a strong {
    flex: 0 1 15rem;
    font-size: 1.03rem;
}

.ph-tension-list a em {
    font-style: normal;
    font-size: .91rem;
}

.ph-tension-list a:hover,.ph-tension-list a.ph-drawn {
    background: #eddae9;
    color: #3f2341;
}

.ph-unwound {
    display: flex;
    gap: clamp(1rem,5vw,4rem);
    align-items: center;
    padding: clamp(1.2rem,6vw,5rem) 6%;
    background: var(--ph-moss);
}

.ph-unwound img {
    width: 54%;
    height: clamp(15rem,31vw,30rem);
    flex: 0 1 auto;
    object-position: center;
}

.ph-softnotes {
    flex: 1 1 17rem;
    max-width: 34rem;
}

.ph-softnotes a,.ph-commontable a,.ph-counter-call a {
    font-weight: 700;
}

.ph-paperbands {
    max-width: 75rem;
    margin: auto;
    padding: clamp(3rem,8vw,7rem) 6%;
}

.ph-paperbands>p {
    max-width: 35rem;
}

.ph-perforated {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.7rem;
}

.ph-perforated div {
    flex: 1 1 15rem;
    background: #f6e4ee;
    border-top: 1px dashed #744968;
    padding: 1.35rem;
}

.ph-perforated a {
    font-weight: 700;
}

.ph-commontable {
    display: flex;
    align-items: center;
    gap: clamp(1rem,5vw,4rem);
    padding: clamp(1.2rem,6vw,5rem) 6%;
    background: #eee0c4;
}

.ph-commontable div {
    flex: 1 1 18rem;
}

.ph-commontable img {
    width: 50%;
    height: clamp(14rem,31vw,29rem);
}

.ph-counter-call {
    padding: clamp(2.2rem,7vw,6rem) 6%;
    max-width: 70rem;
    margin: auto;
}

.ph-till-roll {
    display: flex;
    align-items: flex-start;
    gap: clamp(1.4rem,5vw,4rem);
    padding: clamp(1.8rem,5.5vw,4.5rem) 6%;
    background: #59344e;
    color: #fff6de;
}

.ph-till-roll a {
    color: #fff6de;
}

.ph-shop-colophon {
    flex: 1 1 14rem;
}

.ph-quiet-stitch {
    font: 500 2.1rem/1 Palatino,Georgia,serif;
    text-decoration: none;
    letter-spacing: -.06em;
}

.ph-endlabels {
    display: flex;
    flex: 2 1 24rem;
    flex-wrap: wrap;
    gap: .5rem 1.2rem;
    font-size: .88rem;
}

.ph-reading-mat {
    padding-bottom: clamp(2.3rem,7vw,5rem);
}

.ph-pattern-band {
    background: var(--ph-lilac);
    padding: clamp(2rem,6vw,5.7rem) max(6%,calc((100% - 51rem)/2));
    border-bottom: 1px dashed #9d748b;
}

.ph-pattern-band h1 {
    font-size: clamp(2.5rem,5.7vw,5.35rem);
    margin: .3em 0 0;
}

.ph-pattern-sheet {
    width: min(88%,49rem);
    margin: auto;
    padding-top: 1.3rem;
}

.ph-pattern-sheet h2 {
    font-size: clamp(1.75rem,3.7vw,3rem);
    margin-top: .97em;
}

.ph-dropped-stitch {
    display: flex;
    min-height: 47vh;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 6%;
    background: repeating-linear-gradient(130deg,#f5dfed 0 12px,#f0d8e9 12px 23px);
}

.ph-recovery-wrap {
    width: min(100%,47rem);
    padding: clamp(1.5rem,4vw,3.5rem);
    background: #fff7e8;
    border: 1px dashed #87516f;
}

.ph-recovery-wrap h1 {
    font-size: clamp(2.5rem,5vw,4.8rem);
}

.ph-recovery-wrap a {
    font-weight: 700;
}

@media(max-width:670px) {
    .ph-skein-window::after {
        background: linear-gradient(90deg,#21172ad9,#2f2039b0 55%,#251a315e);
    }
    .ph-window-lettering {
        padding-bottom: 3.8rem;
    }
    .ph-stockticket {
        margin: -1.55rem auto 0;
    }
    .ph-tension-list a {
        gap: .42rem .75rem;
    }
    .ph-tension-list em {
        flex-basis: 100%;
        padding-left: 4.75rem;
    }
    .ph-unwound,.ph-commontable,.ph-till-roll {
        flex-direction: column;
    }
    .ph-unwound img,.ph-commontable img {
        width: 100%;
        height: clamp(13rem,57vw,26rem);
    }
    .ph-softnotes,.ph-commontable div,.ph-shop-colophon,.ph-endlabels {
        flex-basis: auto;
    }
}

@media(prefers-reduced-motion:reduce) {
    .ph-tension-list a {
        transition: none;
    }
}
