:root {
    color-scheme: light;
    --ink: #171a1f;
    --paper: #fff;
    --cream: #fffaf1;
    --gold: #f0c171;
    --rust: #855030;
    --muted: #5d5950;
    --rule: #dfdeda;
    --serif: Georgia, 'Times New Roman', serif;
    --sans: 'Segoe UI', system-ui, sans-serif;
    --shell: min(100% - 3rem, 74.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    font: 1rem/1.6 var(--sans);
}

main { flex: 1; }
p, h1, h2, h3, h4, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
cite { font-style: normal; }

:focus-visible { outline: 3px solid #b37935; outline-offset: 5px; }
main:focus { outline: none; }

.shell { width: var(--shell); margin-inline: auto; }
.skip-link {
    position: fixed;
    z-index: 2;
    inset: .75rem auto auto .75rem;
    padding: .5rem .9rem;
    transform: translateY(-160%);
    background: var(--gold);
    color: var(--ink);
}
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 1; border-bottom: 1px solid var(--rule); background: white; }
.masthead {
    min-height: 4.75rem; display: grid; align-items: center; gap: 1.5rem;
    grid-template: "nav brand search" auto / minmax(0, 1fr) auto minmax(0, 1fr);
}
.wordmark {
    grid-area: brand; display: inline-flex; align-items: center; gap: .22em;
    text-decoration: none; white-space: nowrap; font: 1.85rem/1 var(--serif); letter-spacing: -.055em;
}
.wordmark__frame { position: relative; width: 1.1rem; height: .9rem; margin-right: .22rem; }
.wordmark__frame::before, .wordmark__frame::after { content: ''; position: absolute; width: .46rem; height: .46rem; }
.wordmark__frame::before { inset: 0 auto auto 0; border-top: 1px solid; border-left: 1px solid; }
.wordmark__frame::after { inset: auto 0 0 auto; border-bottom: 1px solid; border-right: 1px solid; }
.main-nav, .footer-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav { grid-area: nav; }
.main-nav a, .main-nav summary, .footer-nav a {
    color: inherit; font-size: .95rem; text-decoration: none; cursor: pointer;
}
.main-nav > a, .main-nav summary { display: flex; align-items: center; min-height: 2.75rem; }
.main-nav a:hover, .main-nav summary:hover, .main-nav [aria-current], .footer-nav a:hover { text-decoration: underline; text-underline-offset: .22em; }
.nav-menu { position: relative; }
.nav-menu summary { list-style: none; gap: .45rem; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after {
    content: ''; width: .39rem; height: .39rem; border: solid currentColor;
    border-width: 0 1px 1px 0; transform: translateY(-2px) rotate(45deg);
}
.nav-menu[open] summary::after { transform: translateY(2px) rotate(225deg); }
.nav-menu ul {
    position: absolute; top: 100%; left: -.8rem; min-width: 12rem; width: max-content;
    max-height: 65vh; overflow-y: auto; list-style: none; margin: 0; padding: .35rem 0;
    border: 1px solid var(--rule); background: white; box-shadow: 0 .35rem 1rem #171a1f12;
}
.nav-menu li a { display: block; padding: .55rem .9rem; }
.nav-menu li:first-child { border-bottom: 1px solid var(--rule); }
.nav-menu li a:hover { background: #f6f5f2; }
.search-form {
    grid-area: search; justify-self: end; width: min(100%, 15rem); display: flex;
    align-items: center; gap: .4rem; border-bottom: 1px solid var(--ink);
}
.search-form input, .search-form button { font: inherit; color: inherit; border: 0; background: transparent; }
.search-form input { min-width: 0; width: 100%; padding: .4rem .1rem; }
.search-form button { order: -1; display: grid; place-items: center; width: 2rem; min-height: 2.5rem; cursor: pointer; }
.magnifier { width: .82rem; height: .82rem; border: 1.5px solid; border-radius: 50%; position: relative; }
.magnifier::after { content: ''; position: absolute; top: 100%; left: 83%; width: .42rem; border-top: 1.5px solid; transform: rotate(45deg); }
.prose-page h1 { font: 400 clamp(3rem, 6.3vw, 6rem)/.97 var(--serif); letter-spacing: -.06em; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: .6rem 1.25rem;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
}
.button--gold { background: var(--gold); color: var(--ink); }
.button--gold:hover { background: #ffda9d; }
.button--ink { background: var(--ink); color: var(--cream); }
.button--ink:hover { background: #3a3028; }
.button--outline { background: white; color: var(--ink); border-color: currentColor; }
.button--outline:hover, .button--outline:focus-visible { background: #f5f3ee; }
.shop-arrow { flex: none; margin-inline-start: .4em; font: 1.1em/1 var(--sans); }
.button--small { min-height: 2.75rem; padding-inline: .95rem; }

.prose-page h2 {
    font: 400 clamp(2.5rem, 4.8vw, 4.25rem)/1 var(--serif);
    letter-spacing: -.055em;
}
.text-link, .reference {
    width: fit-content;
    color: var(--rust);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .24em;
    font-size: .95rem;
    font-weight: 650;
}
.text-link:hover, .reference:hover { color: var(--ink); }
.catalog { padding-block: 3rem 4.5rem; }
.catalog__heading { margin-bottom: 2rem; }
.catalog h1 { font: 500 2.5rem/1.1 var(--sans); letter-spacing: -.04em; }
.catalog__heading > p, .prose-page > p { max-width: 58ch; color: var(--muted); margin-top: .55rem; }
.catalog__heading > p { font-size: 1.06rem; }
.look-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2.5rem 1.5rem; }
.look-card__link { display: block; text-decoration: none; }
.look-card__image { overflow: hidden; aspect-ratio: 4 / 5; background: #eee; }
.look-card__image img { width: 100%; height: 100%; object-fit: cover; }
.look-card__link[href*="maverick"] img { object-position: center 18%; }
.look-card__text { padding-top: .65rem; }
.look-card__title { font-size: 1.08rem; line-height: 1.35; font-weight: 600; }
.look-card__text p { font-size: .95rem; color: var(--muted); line-height: 1.45; }
.look-card__link:hover h2 { text-decoration: underline; text-underline-offset: .18em; }
.outfit-guide { padding-bottom: 4rem; }
.guide-crumb { display: flex; gap: .65rem; padding-block: 1.25rem; color: var(--muted); font-size: .9rem; }
.guide-crumb a, .guide-intro figcaption a { text-underline-offset: .2em; }
.guide-intro {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-bottom: 2rem;
}
.guide-intro figure > img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 18%; }
.guide-intro figcaption { margin-top: .4rem; color: var(--muted); font-size: .8rem; }
.guide-intro__text > p:first-child { font-size: 1.15rem; }
.guide-intro h1 { margin: .65rem 0 1.25rem; font: 600 clamp(3rem, 6.2vw, 5.5rem)/1.01 var(--sans); letter-spacing: -.055em; }
.guide-intro__summary { font-size: 1.14rem; color: var(--muted); max-width: 39ch; }
.guide-intro__text > a { display: inline-block; margin-top: 1.25rem; }
#pieces { scroll-margin-top: 1rem; border-top: 1px solid var(--rule); padding-top: 1.75rem; }
#pieces-title, .styling-note h2 { font-size: 1.65rem; line-height: 1.2; letter-spacing: -.035em; }
.disclosure { margin-top: .4rem; color: var(--muted); font-size: .9rem; }
.wardrobe-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: clamp(2rem,4.2vw,4rem); }
.wardrobe-piece { padding: 1.5rem 0 2rem; border-bottom: 1px solid var(--rule); }
.wardrobe-piece--three-up { grid-column: 1 / -1; }
.wardrobe-piece h3 { font-size: 1.3rem; letter-spacing: -.025em; margin-bottom: .8rem; }
.wardrobe-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(.75rem,1.5vw,1.3rem); }
.wardrobe-piece--three-up .wardrobe-pair { grid-template-columns: repeat(3,minmax(0,1fr)); }
.wardrobe-option { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; overflow-wrap: break-word; }
.wardrobe-option .option-label { font-size: .9rem; color: var(--ink); font-weight: 600; margin-bottom: .5rem; }
.option-photo { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f7f7f5; }
.product-photo { object-fit: contain; background: #fff; border: 1px solid var(--rule); padding: .45rem; }
.wardrobe-option h4 { font-size: 1.05rem; line-height: 1.25; margin: .65rem 0 .4rem; }
.wardrobe-option > p { color: var(--muted); line-height: 1.45; }
.wardrobe-option > .button { margin-top: auto; }
.wardrobe-option h4 + p { padding-bottom: 1rem; }
.wardrobe-option .button { min-height: 2.75rem; padding-inline: .75rem; }
.wardrobe-premium { width: 100%; margin-top: .9rem; padding-top: .85rem; border-top: 1px solid var(--rule); }
.wardrobe-premium h5 { font-size: .95rem; line-height: 1.35; margin: 0 0 .6rem; }
.wardrobe-premium .button + h5 { margin-top: .9rem; }
.styling-note { margin: 2rem 0 1.25rem; }
.styling-note p { max-width: 68ch; margin-top: .65rem; color: var(--muted); }
@media (max-width: 62.5rem) {
    .wardrobe-grid { grid-template-columns: 1fr; }
}
@media (max-width: 47.5rem) {
    .wardrobe-piece--three-up .wardrobe-pair { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .wardrobe-piece--three-up .wardrobe-option--screen { grid-column: 1 / -1; }
    .wardrobe-piece--three-up .wardrobe-option--screen .option-photo { max-width: 26rem; }
    .guide-intro { grid-template-columns: 1fr; gap: 1.25rem; }
    .guide-intro figure { max-width: 30rem; }
    .guide-intro h1 { font-size: clamp(2.6rem, 9vw, 3.5rem); }
    .guide-crumb { padding-block: .85rem; }
}
.prose-page { max-width: 66rem; padding-block: clamp(3.25rem, 9vw, 7rem); }
.prose-page h2 { padding-top: 1.9rem; }
.prose-page .text-link, .prose-page .button { display: inline-flex; margin-top: 1.5rem; }
.site-footer { border-top: 1px solid var(--rule); }
.footer-inner { padding-block: 2rem; display: flex; gap: 1.25rem 2rem; justify-content: space-between; }
.footer-inner p { color: var(--muted); font-size: .875rem; margin-top: .7rem; }
@media (max-width: 62.5rem) {
    .look-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2rem 1rem; }
}
@media (max-width: 47.5rem) {
    :root { --shell: calc(100% - 2rem); }
    .masthead { grid-template: "brand brand" auto "nav search" auto / auto minmax(0,1fr); gap: .35rem 1.1rem; padding-block: .9rem .4rem; }
    .masthead .wordmark { justify-self: center; font-size: 1.65rem; }
    .main-nav { gap: 1rem; }
    .search-form { max-width: 10rem; }
    .search-form button { width: 1.6rem; }
    .catalog { padding-block: 2rem 3rem; }
    .catalog h1 { font-size: 2rem; }
    .catalog__heading { margin-bottom: 1.5rem; }
    .look-grid { gap: 1.75rem .75rem; }
    .look-card__title { font-size: 1rem; }
    .footer-inner { flex-direction: column; }
}
