/*
Theme Name: Atelier Beauté
Description: An editorial storefront for fragrance, makeup and skincare with WooCommerce support.
Version: 1.0.0
Text Domain: atelier-beaute
*/
:root {
    --ink: #221c18;
    --paper: #fffcf6;
    --linen: #efe7dc;
    --gold: #795330;
    --line: #ded2c1;
    color: var(--ink);
    background: var(--paper);
    font-family: system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, .brand, .footer-brand { font-family: Baskerville, Georgia, serif; font-weight: 400; }
.shell { width: min(100% - 3rem, 84rem); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.screen-reader-text:focus { width: auto; height: auto; padding: .65rem; clip-path: none; z-index: 5; background: white; }
.masthead { border-block-end: 1px solid var(--line); }
.masthead-row { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 1rem; padding-block: 1.25rem; }
.brand { text-align: center; font-size: clamp(1.7rem, 4vw, 3.3rem); line-height: 1.05; letter-spacing: -.045em; }
.brand img { max-height: 4.5rem; width: auto; margin-inline: auto; }
.search input { background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: .5rem 0; width: min(100%, 13rem); }
.account { display: flex; gap: 1rem; justify-content: end; }
.main-nav > ul { display: flex; justify-content: center; gap: clamp(.5rem, 4vw, 3rem); padding: 0; }
.main-nav ul { list-style: none; margin-block: 0; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: .9rem .2rem; font-size: .9rem; }
.submenu { position: absolute; z-index: 3; display: none; min-width: 12rem; background: var(--paper); padding: .3rem 1rem; border: 1px solid var(--line); }
.menu-parent:hover .submenu, .menu-parent:focus-within .submenu { display: block; }
.hero { position: relative; background: var(--linen); }
.slide { display: grid; grid-template-columns: 1fr 1.1fr; min-height: clamp(23rem, 42vw, 38rem); }
.slide[hidden] { display: none; }
.hero:not(.is-ready) .slide:first-child { display: grid; }
.slide-copy { align-self: center; justify-self: center; width: min(76%, 28rem); padding-block: 2rem 4.5rem; }
.slide h1 { margin: .6rem 0 1.7rem; font-size: clamp(2.9rem, 5.3vw, 6.2rem); line-height: .98; letter-spacing: -.06em; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 650; }
.slide img { width: 100%; height: 100%; max-height: clamp(23rem, 42vw, 38rem); object-fit: cover; }
.button-primary { display: inline-block; padding: .9rem 1.2rem; background: var(--ink); color: white; font-size: .88rem; }
.button-primary:hover { background: var(--gold); color: white; }
.carousel-controls { display: flex; gap: .4rem; position: absolute; bottom: .9rem; left: 1rem; }
.carousel-controls[hidden] { display: none; }
.carousel-controls button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); min-width: 2.35rem; min-height: 2.25rem; }
.collections { padding-block: 3rem; }
.collections h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); margin: 0 0 1.5rem; }
.collection-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.collection-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--linen); }
.collection-card span { display: block; padding-block: .65rem; font-size: .92rem; }
.content { min-height: 45vh; padding-block: 2.5rem; }
.site-footer { border-top: 1px solid var(--line); background: var(--linen); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 2rem; }
.footer-brand { font-size: 1.7rem; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .9rem; }
.woocommerce ul.products li.product a img { aspect-ratio: 1; object-fit: contain; background: white; }
.woocommerce a.button, .woocommerce button.button, .woocommerce button.button.alt, .woocommerce a.button.alt { background: var(--ink); color: white; }
@media (max-width: 760px) {
    .shell { width: calc(100% - 2rem); }
    .masthead-row { grid-template-columns: 1fr auto; }
    .brand { grid-column: 1 / -1; grid-row: 1; }
    .main-nav > ul { justify-content: space-between; gap: .3rem; }
    .main-nav a { font-size: .78rem; }
    .slide { grid-template-columns: 1fr; min-height: 0; }
    .slide-copy { width: calc(100% - 2rem); padding: 2rem 0; }
    .slide img { max-height: 20rem; aspect-ratio: 4 / 3; }
    .collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Business pages */
:is(.page-id-1403, .page-id-1407) #main > .type-page {
    max-width: 47rem;
    margin-inline: auto;
}
:is(.page-id-1403, .page-id-1407) #main > .type-page > h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.25rem, 6vw, 3.75rem);
    line-height: 1.08;
}
:is(.page-id-1403, .page-id-1407) #main .wp-block-heading {
    margin: 2rem 0 .55rem;
    font-size: clamp(1.35rem, 4vw, 1.8rem);
}
:is(.page-id-1403, .page-id-1407) #main .wp-block-paragraph {
    max-width: 65ch;
    line-height: 1.7;
}
.page-id-1407 .wpcf7 {
    padding: clamp(1rem, 4vw, 2rem);
    border: 1px solid var(--line);
    background: #fff;
}
.page-id-1407 .wpcf7 p { margin: 0 0 1rem; }
.page-id-1407 .wpcf7 p:last-of-type { margin-bottom: 0; }
.page-id-1407 .wpcf7 label { display: block; font-weight: 600; }
.page-id-1407 .wpcf7 :is(input[type=text], input[type=email], textarea) {
    box-sizing: border-box;
    width: 100%;
    margin-top: .35rem;
    padding: .7rem .85rem;
    border: 1px solid var(--line);
    border-radius: .25rem;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-weight: 400;
}
.page-id-1407 .wpcf7 textarea { min-height: 8rem; resize: vertical; }
.page-id-1407 .wpcf7 input[type=submit] {
    padding: .75rem 1.2rem;
    border: 1px solid var(--ink);
    border-radius: .25rem;
    background: var(--ink);
    color: var(--paper);
    font: inherit;
    cursor: pointer;
}
.page-id-1407 .wpcf7 input[type=submit]:hover { background: var(--gold); }
.page-id-1407 .wpcf7 :is(input, textarea):focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
.main-nav a[aria-current=page] { text-decoration: underline; text-underline-offset: .3em; }
@media (max-width: 760px) {
    .main-nav > ul { flex-wrap: wrap; justify-content: center; gap: 0 .65rem; }
    .main-nav a { padding: .65rem .2rem; }
}
