/* Brand colors are overridable independently; source SVGs contain real paths. */
:root {
 --logo-icon-color: var(--green);
 --logo-wordmark-color: var(--wine);
}
.brand .brand-logo { width: 128.8px; height: auto; display: block; fill: initial; stroke: none; }
.header { min-height: 128.8px; }
.brand-logo .logo-icon { fill: var(--logo-icon-color, #203f38); }
.brand-logo .logo-wordmark { fill: var(--logo-wordmark-color, #693d4b); }
.qualities { gap: 32px; }
.qualities .yarn-icon { flex: 0 0 30px; width: 30px; height: 30px; color: var(--wine); }
.footer-top .brand .brand-logo { width: 150px; }
@media (max-width: 639px) {
 .header { min-height: 102.2px; gap: 12px; }
 .brand .brand-logo { width: 98px; }
 .header nav { gap: 12px; font-size: 11px; }
 .header .nav-contact { padding: 9px 12px; }
 .header .nav-contact span { margin-left: 5px; }
 .qualities { gap: 8px; padding: 15px 12px; font-size: 12px; }
 .qualities .yarn-icon { flex-basis: 18px; width: 18px; height: 18px; }
}
@media (max-width: 359px) {
 .brand .brand-logo { width: 79.8px; }
 .header nav { gap: 8px; }
 .qualities { gap: 6px; font-size: 10px; }
}

/* The small hero mark uses only the inner yarn symbol and inherits its color. */
.hero-note .yarn-icon { width: 32px; height: 32px; flex: 0 0 32px; color: var(--wine); }

/* A quiet speech-bubble silhouette for the invitation to get in touch. */
.nav-contact { position: relative; isolation: isolate; overflow: visible; margin-bottom: 8px; background: var(--paper); border-radius: 28px; }
.nav-contact::after { content: ''; position: absolute; z-index: -1; width: 13px; height: 13px; left: 24px; bottom: -7px; border-right: 1px solid var(--wine); border-bottom: 1px solid var(--wine); background: var(--paper); transform: skewY(-14deg) rotate(45deg); border-bottom-right-radius: 3px; }
.nav-contact:hover { color: var(--green); }
.nav-contact:hover, .nav-contact:hover::after { border-color: var(--green); }
@media (max-width: 639px) { .nav-contact::after { left: 19px; width: 10px; height: 10px; bottom: -6px; } }

/* Compact footer strip: one logo-height row with modest space above/below. */
footer.wrap { padding-top: 14px; }
.footer-top { display: grid; grid-template-columns: 150px minmax(0,1fr) auto; gap: 24px; padding-bottom: 14px; }
.footer-top p { order: initial; width: auto; text-align: center; }
@media (max-width: 639px) {
 .footer-top { display: flex; flex-wrap: wrap; gap: 10px 20px; }
 .footer-top .brand .brand-logo { width: 110px; }
 .footer-top > a:last-child { margin-left: auto; }
 .footer-top p { order: 3; width: 100%; font-size: 17px; text-align: left; }
}

/* Shared soft corners for surfaces, photos and controls. */
:root { --radius-card: 22px; --radius-control: 18px; --radius-field: 12px; }
.button { border-radius: var(--radius-control); }
.product-image, .custom-photo img, .dialog-photo { border-radius: var(--radius-card); }
.dialog-photo { overflow: hidden; }
form, dialog, .custom, .contact { border-radius: var(--radius-card); }
select, textarea, .skip { border-radius: var(--radius-field); }
.photo-note { border-radius: var(--radius-control); }
.product-number { border-radius: 999px; }
.gallery-controls button, .single-view-note { border-radius: var(--radius-field); }
.ribbon { border-radius: 0 0 var(--radius-field) var(--radius-field); }

/* Preserve the shared corner shape in native select controls, including Safari. */
select {
 appearance: none;
 -webkit-appearance: none;
 padding-right: 38px;
 background-image: linear-gradient(45deg,transparent 50%,var(--paper) 50%), linear-gradient(135deg,var(--paper) 50%,transparent 50%);
 background-position: calc(100% - 20px) center, calc(100% - 15px) center;
 background-size: 5px 5px;
 background-repeat: no-repeat;
}

/* Contact icons share the baseline row with their link, independently of the label. */
.contact-social { display: grid; grid-template-columns: 26px auto 18px; column-gap: 14px; row-gap: 2px; align-items: center; }
.contact-social .contact-icon-wrap { grid-column: 1; grid-row: 1; }
.contact-social .contact-link-text { grid-column: 2; grid-row: 1; }
.contact-social .contact-arrow { grid-column: 3; grid-row: 1; margin: 0; }
.contact-email { display: inline-grid; grid-template-columns: 26px auto 18px; align-items: center; gap: 14px; margin-left: 0; padding-bottom: 5px; border-bottom: 0; }
.contact-email .contact-link-text { border-bottom: 1px solid #80928b; padding-bottom: 2px; }
.contact .contact-icon { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.footer-top { grid-template-columns: 150px minmax(0,1fr) 150px; }
.footer-top p { grid-column: 2; }
.footer-legal-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 18px; margin-left: auto; }
.form-note a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 639px) { .contact-social, .contact-email { column-gap: 10px; } }

.contact-social > .contact-arrow:last-child { margin-left: 0; }

.contact-icon-wrap { display: inline-flex; align-items: center; justify-content: center; }
.contact-grid { align-items: start; }
