

:root {
    --ink: #000;
    --paper: #fff;
    --smoke: #efefef;
    --ash: #555;
    --script: Georgia, "Times New Roman", serif;
    --body: Georgia, "Times New Roman", serif;
    --dots: radial-gradient(circle, #000 3.5px, transparent 4px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px dashed var(--ink); outline-offset: 3px; }
.noir :focus-visible { outline-color: var(--paper); }
.wrap { width: min(1100px, 92%); margin-inline: auto; }

/* Shared site styles */
.site-header { border-bottom: 3px solid var(--ink); background: var(--paper); position: relative; z-index: 5; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; padding: .35rem 0; }
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand img { width: 64px; height: 64px; max-height: 64px; object-fit: contain; }
.nav { display: flex; flex-wrap: wrap; gap: .4rem 1.8rem; font-weight: 600; }
.nav a { text-decoration: none; padding-bottom: 2px; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.dots { height: 46px; background-image: var(--dots); background-size: 23px 23px; border-block: 3px solid var(--ink); }
h1, h2 { font-family: var(--script); font-weight: 400; line-height: 1.05; margin: 0 0 .5rem; }
h1 { font-size: clamp(3.2rem, 9vw, 6.2rem); }
h2 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
h3 { font-size: 1.15rem; margin: 0 0 .25rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; }
.lede { font-size: 1.2rem; max-width: 38rem; }
.btn { display: inline-block; padding: .75rem 1.5rem; border: 3px solid var(--ink); background: var(--ink); color: var(--paper); font: 700 1rem var(--body); text-decoration: none; cursor: pointer; box-shadow: 5px 5px 0 #aaa; transition: transform .1s, box-shadow .1s; }
.btn:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 #aaa; }
.btn.alt { background: var(--paper); color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; margin-top: 1.5rem; }

/* Other-page hero */
.hero { overflow: hidden; }
.hero > .wrap { width: min(1380px, 96%); display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 4vw, 4.5rem); align-items: center; min-height: 420px; padding: .75rem 0 1.25rem; }
.hero-copy { max-width: 520px; opacity: 0; visibility: hidden; animation: hero-copy-reveal .75s ease-out 3.15s both; }
.hero h1 { font-size: clamp(2.7rem, 4.2vw, 3.9rem); line-height: 1.08; }
.hero .lede { font-size: 1.08rem; max-width: 30rem; margin: .8rem 0 0; }
.flight-scene { position: relative; min-width: 0; isolation: isolate; }
.hero .hero-plane { display: block; position: relative; z-index: 2; width: 100%; max-width: 900px; max-height: 570px; height: auto; object-fit: contain; margin-inline: auto; transform: translateX(calc(-110vw - 100%)) translateY(-28px) rotate(-6deg); animation: bomber-flight-and-landing 2.9s cubic-bezier(.2,.78,.24,1) .15s both; will-change: transform; }
.cloud { position: absolute; z-index: 3; width: clamp(72px,13vw,150px); fill: var(--paper); stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; opacity: 1; animation: cloud-fly-away 2.9s ease-in .15s both; will-change: transform,opacity; }
.cloud-one { top: 12%; left: 5%; animation-delay: .1s; }
.cloud-two { top: 53%; right: 0; animation-delay: .25s; }
@keyframes bomber-flight-and-landing {
    0% { transform: translateX(calc(-110vw - 100%)) translateY(-28px) rotate(-6deg); }
    68% { transform: translateX(14px) translateY(5px) rotate(1.2deg); }
    86% { transform: translateX(-7px) translateY(-2px) rotate(-.5deg); }
    100% { transform: translateX(0) translateY(0) rotate(0); }
}
@keyframes cloud-fly-away {
    0%,42% { opacity: 1; transform: translate(0,0); }
    72% { opacity: .9; transform: translate(42px,-16px); }
    100% { opacity: 0; transform: translate(160px,-75px); }
}
@keyframes hero-copy-reveal {
    0% { opacity: 0; visibility: hidden; transform: translateY(18px); }
    1% { visibility: visible; }
    100% { opacity: 1; visibility: visible; transform: translateY(0); }
}
section { padding: 3.5rem 0; }
.section-head { margin-bottom: 2rem; }
.section-head p { margin: 0; color: var(--ash); }
.feature-grid, .grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 2.2rem; }
.feature-card, .card { border: 3px solid var(--ink); background: var(--paper); box-shadow: 7px 7px 0 var(--ink); padding: 1.5rem; text-decoration: none; }
.feature-card { min-height: 200px; }
.feature-card h3 { font: 2.5rem var(--script); margin: .5rem 0; }
.feature-card p, .card p, .portfolio-feature p, .portfolio-note p { color: var(--ash); }
.page-intro { padding: 3.5rem 0 2.5rem; }
.product-placeholder { aspect-ratio: 3/4; display: grid; place-items: center; background: radial-gradient(circle,#000 3px,transparent 3.5px) 0 0/24px 24px,#f7f7f7; font: 2rem var(--script); border-bottom: 3px solid var(--ink); }
.card { padding: 0; display: flex; flex-direction: column; }
.card-body { padding: 1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.price { font-weight: 700; font-size: 1.2rem; }
.coming-soon { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.portfolio-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.portfolio-feature img { width: 100%; max-height: 440px; object-fit: contain; border: 3px solid; padding: 1rem; }
.portfolio-note { text-align: center; margin: 4rem auto 0; padding: 2rem; border: 3px solid; max-width: 760px; }
.noir { background: var(--ink); color: var(--paper); }
.cta { text-align: center; }
.site-footer { padding: 2.5rem 0; border: 0; border-top: 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-footer img { width: 150px; height: 150px; object-fit: contain; background: transparent; border: 0; }

/* Homepage and shared navigation */
.home-page { background: #f7f8fb; color: #050505; font-family: Georgia,"Times New Roman",serif; overflow-x: hidden; }
.home-header { position: absolute; z-index: 10; top: 13px; left: 0; right: 0; min-height: 74px; padding: 12px 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: #fff; border: 0; }
.home-brand { display: inline-flex; align-items: center; justify-self: start; line-height: 0; }
.home-brand img { width: 100px; height: 58px; object-fit: contain; }
.home-nav { display: flex; align-items: center; justify-content: center; gap: 30px; font-family: var(--body); font-size: 1rem; font-weight: 600; }
.home-nav a { color: #050505; text-decoration: none; padding: 5px 0 7px; border-bottom: 2px solid transparent; }
.home-nav a:hover, .home-nav a[aria-current="page"] { border-bottom-color: #050505; }
.home-header-icons { justify-self: end; display: flex; align-items: center; gap: 22px; }
.header-icon { position: relative; display: block; width: 19px; height: 22px; }
.header-search::before { content: ""; position: absolute; width: 13px; height: 13px; border: 2px solid #111; border-radius: 50%; top: 1px; left: 0; }
.header-search::after { content: ""; position: absolute; width: 8px; height: 2px; background: #111; transform: rotate(48deg); top: 16px; left: 12px; }
.header-account::before { content: ""; position: absolute; width: 9px; height: 9px; border: 1.8px solid #111; border-radius: 50%; top: 0; left: 5px; }
.header-account::after { content: ""; position: absolute; width: 16px; height: 10px; border: 1.8px solid #111; border-bottom: 0; border-radius: 10px 10px 0 0; bottom: 0; left: 1px; }
.header-bag::before { content: ""; position: absolute; width: 15px; height: 15px; border: 1.8px solid #111; bottom: 0; left: 1px; transform: perspective(30px) rotateX(-5deg); }
.header-bag::after { content: ""; position: absolute; width: 7px; height: 8px; border: 1.8px solid #111; border-bottom: 0; border-radius: 7px 7px 0 0; top: 0; left: 5px; }

.inner-page .home-header { position: relative; top: auto; left: auto; right: auto; margin: 13px 18px 0; border: 0; }
.home-hero { position: relative; width: 100%; min-height: min(760px,calc(100vh - 20px)); margin: 13px 0 0; overflow: hidden; background: #fff; border: 0; display: flex; align-items: flex-end; }
.home-hero-title { position: absolute; z-index: 2; left: 19%; bottom: 12%; margin: 0; font-family: Georgia,"Times New Roman",serif; font-size: clamp(4.5rem,10vw,7rem); font-weight: 400; line-height: 1.02; letter-spacing: -.055em; }
.home-walker { position: absolute; inset: 76px 0 0; display: flex; justify-content: center; align-items: flex-end; pointer-events: none; }
.home-walker img { display: block; width: auto; height: 98%; max-width: 58%; max-height: 700px; object-fit: contain; object-position: center bottom; }
.home-scroll-mark { display: none; }

.featured-product { position: relative; width: 100%; min-height: 82vh; margin: 0 0 28px; padding: 12px 10px 24px; overflow: hidden; background: #fff; border: 0; }
.featured-product h2 { position: relative; z-index: 2; margin: 0; font-family: Georgia,"Times New Roman",serif; font-size: 1.55rem; font-style: italic; font-weight: 400; line-height: 1.3; }
.coat-stage { position: relative; width: min(1100px,94%); height: clamp(520px,68vh,720px); margin: -2px auto 0; }
.featured-coat { position: absolute; top: 0; left: 50%; height: 100%; width: 58%; transform: translateX(-50%); object-fit: contain; object-position: center top; }
.coat-callout { position: absolute; display: flex; align-items: center; gap: 9px; z-index: 2; font-size: .95rem; white-space: nowrap; }
.coat-callout i { display: block; height: 3px; width: 55px; background: #050505; }
.callout-fur { top: 14%; left: 27%; }
.callout-wool { top: 41%; right: 18%; }
.callout-handmade { top: 72%; left: 27%; }
.coat-actions { position: absolute; right: 20%; bottom: 20%; display: flex; flex-direction: column; gap: 7px; }
.coat-actions a { min-width: 114px; padding: 5px 13px; border: 1px solid #111; color: #111; background: #fff; text-align: center; text-decoration: none; font-size: 1rem; }
.coat-actions a:hover { color: #fff; background: #111; }
.home-page .site-footer img { object-fit: contain; }

@media (max-width: 760px) {
    .hero > .wrap { width: min(760px,92%); grid-template-columns: 1fr; min-height: 0; gap: 1rem; padding: 1.75rem 0 2.25rem; }
    .flight-scene { grid-column: 1; grid-row: 1; min-height: 280px; }
    .hero .hero-plane { max-width: 560px; max-height: 410px; }
    .hero-copy { grid-column: 1; grid-row: 2; max-width: 560px; margin-inline: auto; text-align: center; }
    .hero .actions { justify-content: center; }
    .cloud-one { top: 4%; left: 0; }
    .cloud-two { top: 55%; right: 0; }
    .portfolio-feature { grid-template-columns: 1fr; }
    .nav { gap: 1rem; }
    .site-header .wrap { gap: .8rem; }
    section { padding: 2.5rem 0; }
}
@media (max-width: 700px) {
    .home-header { left: 8px; right: 8px; top: 8px; padding: 8px 10px; grid-template-columns: auto 1fr; gap: 10px; }
    .home-brand img { width: 72px; height: 48px; }
    .home-nav { justify-content: flex-end; gap: 13px; font-size: .85rem; }
    .home-header-icons { display: none; }
    .home-hero { width: calc(100% - 16px); min-height: 650px; margin: 8px 8px 0; }
    .home-hero-title { left: 7%; bottom: 9%; font-size: clamp(4rem,17vw,6rem); }
    .home-walker { inset: 82px 0 0; justify-content: flex-end; }
    .home-walker img { height: 86%; max-width: 82%; }
    .featured-product { width: calc(100% - 16px); min-height: 520px; margin: 0 8px 18px; }
    .coat-stage { width: 100%; height: 440px; margin-top: 12px; }
    .featured-coat { width: 62%; height: 78%; top: 8%; }
    .coat-callout { gap: 5px; font-size: .72rem; }
    .coat-callout i { width: 22px; }
    .callout-fur { left: 20%; top: 13%; }
    .callout-wool { right: 20%; top: 43%; }
    .callout-handmade { left: 20%; top: 72%; }
    .coat-actions { right: 2%; bottom: 5%; }
}
@media (prefers-reduced-motion: reduce) {
    .btn { transition: none; }
    html, .home-page { scroll-behavior: auto; }
}


/* Shopping cart and checkout */
[hidden] { display: none !important; }
.header-bag { border: 0; padding: 0; margin: 0; background: transparent; cursor: pointer; }
.header-bag:focus-visible { outline: 2px dashed #111; outline-offset: 5px; }
.cart-count { position: absolute; top: -8px; right: -12px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border-radius: 999px; background: #111; color: #fff; font: 700 10px Arial,sans-serif; line-height: 1; }
.store-notice { margin: 0 0 1.5rem; padding: .9rem 1rem; border: 1px solid #c9c9c9; background: #f7f7f7; font-size: .95rem; }
.store-card .card-body { align-items: flex-start; }
.store-kind { margin: 0; text-transform: uppercase; font-size: .72rem; letter-spacing: .14em; font-weight: 700; }
.store-card .store-coming { display: block; margin-top: .25rem; }
.store-card .store-add { margin-top: .4rem; }
.store-card .store-add:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
.store-price-pending { color: #666; font-size: 1rem; }
.store-empty { grid-column: 1 / -1; padding: 2rem; border: 1px dashed #999; text-align: center; }
.cart-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.45); }
.cart-drawer { position: fixed; z-index: 1001; top: 0; right: 0; width: min(460px,100vw); height: 100vh; height: 100dvh; overflow-y: auto; padding: 1.4rem; background: #fff; color: #111; box-shadow: -8px 0 28px rgba(0,0,0,.2); }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px solid #ddd; }
.cart-drawer-head h2 { margin: 0; font: 700 1.6rem Georgia,"Times New Roman",serif; }
.cart-close { width: 38px; height: 38px; border: 1px solid #111; background: #fff; color: #111; font: 30px/1 Georgia,serif; cursor: pointer; }
.cart-items { padding: 1rem 0; }
.cart-empty { color: #666; }
.cart-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #e2e2e2; }
.cart-item-copy { display: grid; gap: .25rem; }
.cart-item-copy span { color: #555; font-size: .9rem; }
.cart-item-controls { display: grid; justify-items: end; gap: .35rem; }
.cart-item-controls input { width: 64px; padding: .4rem; border: 1px solid #999; font: inherit; }
.cart-remove { border: 0; padding: 0; background: none; color: #555; text-decoration: underline; cursor: pointer; font: .85rem var(--body); }
.cart-summary { border-top: 2px solid #111; padding-top: 1rem; }
.cart-total-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 1.1rem; }
.cart-summary > p { color: #666; font-size: .85rem; }
.cart-checkout { width: 100%; box-shadow: none; }
.cart-checkout:disabled { opacity: .45; cursor: not-allowed; }
.cart-feedback { min-height: 1.5em; font-size: .9rem; }
.cart-feedback.is-error { color: #a40000; }
.cart-is-open { overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.success-page .success-wrap { width: min(760px,92%); margin: 3rem auto; }
.success-page .success-wrap h1 { font-family: Georgia,"Times New Roman",serif; font-size: clamp(2.4rem,6vw,4rem); }
.order-receipt { margin: 1.5rem 0; padding: 1rem; background: #f4f4f4; }
.order-line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding: .9rem 0; border-bottom: 1px solid #ddd; }
.order-line .btn { font-size: .9rem; padding: .5rem .8rem; }

/* Featured sewing pattern */
.featured-pattern { padding: 3.5rem 0 4.5rem; }
.featured-pattern-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2rem,5vw,4rem); align-items: center; }
.featured-pattern-image { display: block; padding: 1rem; border: 3px solid var(--ink); }
.featured-pattern-image img { width: 100%; height: auto; }
.featured-pattern-copy .eyebrow { margin: 0 0 .8rem; }
.featured-pattern-copy h2 { margin: 0 0 1.5rem; font-family: var(--body); font-size: clamp(2rem,4vw,3.2rem); font-weight: 700; line-height: 1.12; }
.featured-pattern-copy h3 { margin: 1.2rem 0 .5rem; font-family: var(--body); font-size: 1rem; font-weight: 400; color: var(--ash); }
.featured-pattern-copy ul { margin: .5rem 0 1rem; padding-left: 1.5rem; }
.featured-pattern-copy li { margin: .18rem 0; }
.featured-pattern-button { margin-top: .7rem; }
@media (max-width: 760px) {
  .featured-pattern-layout { grid-template-columns: 1fr; gap: 2rem; }
  .featured-pattern-image { max-width: 560px; margin-inline: auto; }
}

.page-intro .lede p { margin: 0 0 1rem; }
.page-intro .lede p:last-child { margin-bottom: 0; }


/* Patterns page intro: text on the left, illustration on the right */
.page-intro-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
}
.page-intro-copy { min-width: 0; }
.page-intro-art {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}
.page-intro-art img {
    display: block;
    width: 100%;
    max-width: 320px;
    max-height: 360px;
    height: auto;
    object-fit: contain;
}
@media (max-width: 760px) {
    .page-intro-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .page-intro-art img { max-width: 300px; max-height: 340px; }
}
