/* Siwaak Woodcrafts — component styles. Colours, space and radii come from the tokens; print and social pieces scale with an em set by the component. */

/* ---------- Logo ---------- */
.sw-logo { display: block; overflow: visible; }
.sw-logo .sw-l-mark { fill: var(--sw-logo-mark); }
.sw-logo .sw-l-ink  { fill: var(--sw-logo-ink); }
.sw-logo .sw-l-ink2 { fill: var(--sw-logo-ink2); }
.sw-logo--auto  { --sw-logo-mark: var(--ink-mark);  --sw-logo-ink: var(--ink-brand); --sw-logo-ink2: var(--ink-accent); }
.sw-logo--paper { --sw-logo-mark: var(--pine-900);  --sw-logo-ink: var(--pine-900);  --sw-logo-ink2: var(--oak-600); }
.sw-logo--pine  { --sw-logo-mark: var(--sage-400);  --sw-logo-ink: var(--paper-50);  --sw-logo-ink2: var(--kraft-400); }
.sw-logo--mono  { --sw-logo-mark: currentColor;     --sw-logo-ink: currentColor;     --sw-logo-ink2: currentColor; }

/* ---------- Outro ---------- */
.sw-outro { display: inline-flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.sw-outro__stage { display: grid; place-items: center; }
.sw-outro--pine .sw-outro__stage  { background: var(--pine-900); }
.sw-outro--paper .sw-outro__stage { background: var(--paper-50); }
.sw-outro--pine .sw-outro__ink  { fill: var(--sage-400); }
.sw-outro--paper .sw-outro__ink { fill: var(--pine-900); }
.sw-outro--bare .sw-outro__stage { background: transparent; }
.sw-outro--bare .sw-outro__ink { fill: var(--ink-mark); }
.sw-outro__r, .sw-outro__b { fill: none; stroke: #fff; stroke-linecap: butt; }
.sw-outro__r { stroke-linejoin: round; }
.sw-outro.is-playing .sw-outro__r { animation: sw-outro-r 2.8s cubic-bezier(.16, .84, .34, 1) both; }
.sw-outro.is-playing .sw-outro__b { animation: sw-outro-b 2.8s cubic-bezier(.16, .84, .34, 1) both; }
.sw-outro.is-looping .sw-outro__r, .sw-outro.is-looping .sw-outro__b { animation-iteration-count: infinite; }
@keyframes sw-outro-r { 0%, 19.64% { stroke-dashoffset: 724.65; } 60.71%, 100% { stroke-dashoffset: 0; } }
@keyframes sw-outro-b { 0%, 19.64% { stroke-dashoffset: 1424.26; } 60.71%, 100% { stroke-dashoffset: 699.61; } }
@media (prefers-reduced-motion: reduce) {
  .sw-outro.is-playing .sw-outro__r, .sw-outro.is-playing .sw-outro__b { animation: none; }
}

/* ---------- Button ---------- */
.sw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-sans); font-size: 14px; line-height: 14px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  padding: var(--space-4) var(--space-6); border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .25s ease-out, color .25s ease-out, border-color .25s ease-out;
}
.sw-btn--sm { padding: var(--space-3) var(--space-4); font-size: 13px; line-height: 13px; }
.sw-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.sw-btn--primary { background: var(--action); color: var(--ink-on-action); border-color: var(--action); }
.sw-btn--primary:hover { background: var(--action-hover); color: var(--ink-on-action-hover); border-color: var(--action-hover); }
.sw-btn--secondary { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.sw-btn--secondary:hover { background: var(--surface-inverse); color: var(--ink-inverse); border-color: var(--surface-inverse); }
.sw-btn--quiet { background: transparent; color: var(--paper-50); border-color: var(--paper-50); }
.sw-btn--quiet:hover { background: var(--paper-50); color: var(--pine-900); }

/* ---------- Chip ---------- */
.sw-chip {
  display: inline-block; font-family: var(--font-sans); font-size: 17px; line-height: 24px;
  font-weight: 600; letter-spacing: -0.005em; padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm);
}
.sw-chip--plate { background: var(--surface-plate); color: var(--paper-50); }
.sw-chip--sage  { background: var(--sage-200); color: var(--pine-900); }
.sw-chip--quiet {
  background: var(--surface-sunken); color: var(--ink-muted); font-family: var(--font-sans);
  font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.04em; padding: var(--space-1) var(--space-3);
}

/* ---------- SectionHeading ---------- */
.sw-heading { display: flex; flex-direction: column; gap: var(--space-3); max-width: var(--content-wide); }
.sw-heading--center { align-items: center; text-align: center; margin-inline: auto; }
.sw-heading--start { align-items: flex-start; text-align: left; }
.sw-heading__eyebrow { margin: 0; font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-accent); }
.sw-heading__title { margin: 0; font-family: var(--font-sans); font-weight: 600; text-transform: uppercase; font-size: 26px; line-height: 34px; letter-spacing: .12em; color: var(--ink-brand); text-wrap: balance; }
.sw-heading__body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 27px; color: var(--ink-muted); }
.sw-heading__action { margin-top: var(--space-2); }

/* ---------- Image well (stand-in until a real photograph is supplied) ---------- */
.sw-well {
  display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; background: var(--surface-sunken);
  color: var(--ink-subtle); font-family: var(--font-sans); font-size: 12px; letter-spacing: .04em;
}
.sw-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- CollectionCard ---------- */
.sw-card { display: block; text-decoration: none; color: inherit; }
.sw-card__frame { position: relative; overflow: hidden; border-radius: var(--radius-md); background: var(--surface-sunken); transition: transform .25s ease-out, box-shadow .25s ease-out; }
.sw-card:hover .sw-card__frame { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.sw-card__frame .sw-img { transition: transform .25s ease-out; }
.sw-card:hover .sw-card__frame .sw-img { transform: scale(1.015); }
.sw-card__label { position: absolute; left: var(--space-3); bottom: var(--space-3); right: var(--space-3); }
.sw-card__meta { margin: var(--space-3) 0 0; font-family: var(--font-sans); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.sw-card:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; border-radius: var(--radius-md); }

/* ---------- PieceCard ---------- */
.sw-piece { display: flex; flex-direction: column; gap: var(--space-3); color: var(--ink); font-family: var(--font-sans); }
.sw-piece__frame { overflow: hidden; border-radius: var(--radius-md); background: var(--surface-sunken); }
.sw-piece__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.sw-piece__name { margin: 0; font-family: var(--font-sans); font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -.005em; color: var(--ink-brand); }
.sw-piece__price { font-size: 16px; line-height: 26px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sw-piece__wood { margin: 0; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .04em; color: var(--ink-muted); }
.sw-piece__status { margin: 0; font-size: 14px; line-height: 22px; display: flex; gap: var(--space-2); align-items: center; }
.sw-piece__status b { font-weight: 600; }
.sw-piece__status--stock b { color: var(--success); }
.sw-piece__status--order b { color: var(--warning); }
.sw-piece__status--sold b { color: var(--danger); }
.sw-piece__status span { color: var(--ink-muted); }

/* ---------- SiteHeader ---------- */
.sw-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; padding: var(--space-4) var(--space-6); background: var(--surface); border-bottom: 1px solid var(--border-hairline); }
.sw-header__nav { display: flex; gap: var(--space-6); flex-wrap: wrap; align-items: center; }
.sw-header__link { font-family: var(--font-sans); font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding-block: var(--space-1); border-bottom: 1px solid transparent; }
.sw-header__link:hover, .sw-header__link[aria-current="page"] { border-bottom-color: var(--ink-accent); }
.sw-header__link:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ---------- SiteFooter ---------- */
.sw-footer { background: var(--surface); color: var(--ink); font-family: var(--font-sans); padding: var(--space-16) var(--space-6) var(--space-8); }
.sw-footer__top { display: flex; flex-wrap: wrap; gap: var(--space-12); justify-content: space-between; }
.sw-footer__cols { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.sw-footer__col h3 { margin: 0 0 var(--space-3); font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-accent); }
.sw-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.sw-footer__col a { color: var(--ink); text-decoration: none; font-size: 14px; line-height: 22px; }
.sw-footer__col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sw-footer__base { margin-top: var(--space-12); padding-top: var(--space-4); border-top: 1px solid var(--border-hairline); font-family: var(--font-body); font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* ---------- Social (1em = 10px at full 1080px size) ---------- */
.sw-social { position: relative; overflow: hidden; background: var(--pine-900); color: var(--paper-50); font-family: var(--font-sans); }
.sw-social__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sw-social__well { position: absolute; inset: 0; display: grid; place-items: center; background: var(--surface-raised); color: var(--ink-muted); font-size: 2.4em; letter-spacing: .04em; }
.sw-social__mark { position: absolute; width: 6.5em; }
.sw-social__plate { position: absolute; left: 6em; bottom: 6em; max-width: 70%; background: var(--surface-plate); padding: 2.4em 3.2em; }
.sw-social__kicker { margin: 0 0 1.2em; font-size: 2.2em; line-height: 1.2; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--kraft-400); }
.sw-social__title { margin: 0; font-family: var(--font-sans); font-weight: 600; font-size: 5.6em; line-height: 1.12; letter-spacing: -.01em; color: var(--paper-50); text-wrap: balance; }
.sw-social__body { margin: 1.6em 0 0; font-size: 3em; line-height: 1.45; color: var(--paper-50); }
.sw-social--statement .sw-social__inner { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 10em; }
.sw-social--statement .sw-social__title, .sw-social--st .sw-social__title { text-transform: uppercase; letter-spacing: .1em; line-height: 1.18; }
.sw-social--statement .sw-social__title { font-size: 6.4em; }
.sw-social__rule { width: 12em; height: .4em; background: var(--sage-400); margin: 4em 0 0; }

/* ---------- Print pieces (1em = 0.1 in) ---------- */
.sw-print { position: relative; overflow: hidden; background: var(--paper-50); color: var(--pine-900); font-family: var(--font-sans); box-shadow: var(--shadow-print); }
.sw-print--pine { background: var(--pine-900); color: var(--paper-50); }
.sw-print__eyebrow { margin: 0; font-size: .95em; line-height: 1.3; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--oak-600); }
.sw-print--pine .sw-print__eyebrow { color: var(--kraft-400); }
.sw-print__title { margin: 0; font-family: var(--font-sans); font-weight: 600; font-size: 1.8em; line-height: 1.2; letter-spacing: -.01em; color: var(--pine-900); }
.sw-print__text { margin: 0; font-size: 1.15em; line-height: 1.5; color: var(--ink); }
.sw-print__title--doc { text-transform: uppercase; letter-spacing: .14em; }
.sw-print__small { margin: 0; font-size: .95em; line-height: 1.45; color: var(--ink-muted); }

/* Maker's mark — shown as a burn on a wood well */
.sw-maker { display: inline-flex; flex-direction: column; align-items: center; gap: .55em; color: var(--pine-950); }
.sw-maker__line { font-family: var(--font-sans); font-weight: 600; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; }

/* Hang tag 2 × 3.5 in */
.sw-tag { width: 20em; height: 35em; display: flex; flex-direction: column; align-items: center; padding: 6.2em 1.8em 2em; box-sizing: border-box; text-align: center; }
.sw-tag__hole { position: absolute; top: 1.6em; left: 50%; width: 1.6em; height: 1.6em; margin-left: -.8em; border-radius: var(--radius-round); background: var(--surface); box-shadow: inset 0 0 0 .12em var(--border-hairline); }
.sw-tag__body { margin-top: auto; display: grid; gap: .8em; justify-items: center; }
.sw-tag__rule { width: 3em; height: .1em; background: var(--oak-600); }

/* Care card A6 105 × 148 mm = 4.13 × 5.83 in */
.sw-care { width: 41.3em; height: 58.3em; padding: 4em; box-sizing: border-box; display: flex; flex-direction: column; gap: 2em; }
.sw-care__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.2em; counter-reset: care; }
.sw-care__list li { display: grid; grid-template-columns: 2.4em 1fr; gap: .6em; font-family: var(--font-body); font-size: 1.15em; line-height: 1.5; color: var(--ink); }
.sw-care__list li::before { counter-increment: care; content: counter(care); font-family: var(--font-sans); font-weight: 600; color: var(--oak-600); font-size: 1.1em; }
.sw-care__close { margin-top: auto; font-family: var(--font-sans); font-weight: 500; font-size: 1.3em; line-height: 1.4; color: var(--pine-900); }

/* Box label 4 × 2 in */
.sw-label { width: 40em; height: 20em; display: grid; grid-template-columns: 1fr auto; box-sizing: border-box; padding: 2em 2.4em; gap: 2em; align-items: stretch; }
.sw-label__left { display: flex; flex-direction: column; justify-content: space-between; }
.sw-label__right { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; text-align: right; border-left: .1em solid var(--border-hairline); padding-left: 2em; }
.sw-label__num { font-size: 1.1em; font-weight: 600; letter-spacing: .08em; font-variant-numeric: tabular-nums; }

/* Business card 3.5 × 2 in */
.sw-bcard { width: 35em; height: 20em; box-sizing: border-box; }
.sw-bcard--front { display: grid; place-items: center; }
.sw-bcard--back { padding: 2.4em 2.8em; display: flex; flex-direction: column; justify-content: space-between; }
.sw-bcard__name { margin: 0; font-family: var(--font-sans); font-weight: 600; font-size: 1.7em; line-height: 1.2; letter-spacing: -.01em; color: var(--pine-900); }
.sw-bcard__contact { display: grid; gap: .25em; font-size: 1.05em; line-height: 1.4; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Thank-you note 6 × 4 in */
.sw-note { width: 60em; height: 40em; box-sizing: border-box; padding: 4em 5em; display: grid; grid-template-columns: 9em 1fr; gap: 4em; align-items: start; }
.sw-note__body { display: grid; gap: 1.6em; }
.sw-note__sign { font-family: var(--font-sans); font-weight: 600; text-transform: uppercase; font-size: 1em; letter-spacing: .2em; color: var(--pine-900); }

/* Invoice / quote — US Letter 8.5 × 11 in */
.sw-inv { width: 85em; min-height: 110em; box-sizing: border-box; padding: 7em 7.5em; display: flex; flex-direction: column; gap: 4em; }
.sw-inv__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 4em; }
.sw-inv__meta { display: grid; grid-template-columns: auto auto; gap: .5em 2em; font-size: 1.15em; line-height: 1.4; font-variant-numeric: tabular-nums; text-align: right; }
.sw-inv__meta dt { color: var(--oak-600); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .82em; align-self: center; }
.sw-inv__meta dd { margin: 0; }
.sw-inv__parties { display: grid; grid-template-columns: 1fr 1fr; gap: 4em; }
.sw-inv table { width: 100%; border-collapse: collapse; font-size: 1.2em; line-height: 1.45; font-variant-numeric: tabular-nums; }
.sw-inv th { text-align: left; font-size: .78em; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--oak-600); padding: 0 0 .9em; border-bottom: .1em solid var(--pine-900); }
.sw-inv td { padding: 1em 0; border-bottom: .08em solid var(--border-hairline); vertical-align: top; }
.sw-inv td small { display: block; color: var(--ink-muted); font-size: .86em; }
.sw-inv .num { text-align: right; white-space: nowrap; }
.sw-inv__totals { margin-left: auto; width: 32em; display: grid; grid-template-columns: 1fr auto; gap: .7em 2em; font-size: 1.2em; font-variant-numeric: tabular-nums; }
.sw-inv__totals .grand { font-family: var(--font-sans); font-weight: 600; font-size: 1.35em; border-top: .07em solid var(--pine-900); padding-top: .5em; }
.sw-inv__due { color: var(--warning); font-weight: 600; }
.sw-inv__foot { margin-top: auto; padding-top: 2em; border-top: .08em solid var(--border-hairline); display: flex; justify-content: space-between; gap: 3em; }
