/* Atelier Neizh — measurements taken from the former Wix site (980px desktop layout, 320px mobile layout). */

@font-face { font-family: "Jost"; font-weight: 300; font-display: swap; src: url(/fonts/jost-300.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 300; font-display: swap; src: url(/fonts/nunito-sans-300.woff2) format("woff2"); }
@font-face { font-family: "Raleway"; font-weight: 400; font-display: swap; src: url(/fonts/raleway-400.woff2) format("woff2"); }

:root {
    --text: #414141;
    --sans: "Jost", "Century Gothic", sans-serif;     /* stands in for Brandon Grotesque Light */
    --serif: "Times New Roman", Times, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 300 16px/1.45 var(--sans); letter-spacing: -.035em; } /* Jost runs wider than Brandon on running text */
.tile-overlay, .project-title, .heading, .prose h2, .prose h3, .team-grid .name { letter-spacing: normal; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header, main, .site-footer { width: 980px; max-width: calc(100% - 30px); margin: 0 auto; }

/* Header */
.site-header { position: relative; height: 227px; }
.logo { position: absolute; left: 1px; top: 21px; width: 154px; }
.tagline { position: absolute; left: 177px; top: 91px; font-size: 18px; line-height: 25.2px; color: #717171; letter-spacing: -.005em; }
.menu { position: absolute; right: 0; top: 84px; display: flex; flex-direction: column; align-items: flex-end; }
.menu a { letter-spacing: normal; font-size: 18px; line-height: 27px; font-weight: 700; color: #000; } /* faux bold of the light face, as on Wix */
.menu a:hover { opacity: .6; }
.burger { display: none; }

/* Home grid */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 14px; }
.tile { position: relative; display: block; aspect-ratio: 483 / 316; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-overlay { position: absolute; inset: 0; padding: 10px; background: rgba(255, 255, 255, .76); opacity: 0; transition: opacity .3s; color: #000; }
.tile:hover .tile-overlay, .tile:focus-visible .tile-overlay { opacity: 1; }
.tile-title { display: block; font: 300 35px/49px "Nunito Sans", "Avenir Next", sans-serif; }
.tile-category { display: block; font: 400 20px/1.2 "Raleway", sans-serif; }

/* Project */
.project-title, .specs, .project-text { margin-left: 194px; max-width: 610px; }
.project-title { margin-top: 59px; font: 400 20px/1.15 var(--serif); }
.specs { margin-top: 24px; line-height: 1.8; }
.spec-label { text-decoration: underline; }
.project-text { margin-top: 24px; line-height: 1.8; }
.project-text p + p { margin-top: 1.8em; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 19px; margin-top: 28px; }
.photos img { grid-column: 1 / -1; width: 100%; }
.photos img.half { grid-column: auto; }
.photos img[style*="--r:"] { aspect-ratio: var(--r); object-fit: cover; }   /* Wix "fill" frames */
.photos img.pos-top { object-position: top; }
.photos img.pos-bottom { object-position: bottom; }

/* Pages (Atelier, Mentions légales) */
.heading { margin: 25px 0 0; text-align: center; font: 400 38px/1.15 var(--serif); }
.heading::after { content: ""; display: block; width: 30px; margin: 17px auto 0; border-top: 3px solid var(--text); }
.prose { max-width: 635px; margin: 19px auto 0; text-align: justify; }
.prose p { margin-bottom: 1.45em; }
.prose a { text-decoration: underline; }
.page-mentions-legales .prose { font-size: 15px; }
.prose h2, .prose h3 { margin: 0; font: 400 16px/1.4 var(--serif); text-align: left; }
.logos { display: flex; justify-content: space-between; align-items: center; max-width: 635px; margin: 0 auto 153px; }
.logos img { height: 130px; width: auto; }

/* Contact */
.contact { padding: 46px 0 0 296px; }
.contact-row { display: grid; grid-template-columns: 52px 1fr; align-items: start; margin-bottom: 36px; }
.contact-icon { width: 23px; height: 27px; margin-top: 1px; fill: var(--text); }
.addresses { line-height: 28.8px; }
.phones { display: grid; grid-template-columns: 136px auto; justify-content: start; line-height: 32px; }
.contact-row > a { line-height: 32px; }
.socials { display: flex; gap: 16px; align-items: center; }
.socials .icon-instagram { width: 23px; height: 23px; }
.team { margin-top: 139px; }
.heading-team { font: 300 56px/1.45 var(--sans); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 12px; padding: 0 15px 16px; background: #dac6b9; }
.team-grid figure { margin: 0; }
.team-grid img { width: 100%; aspect-ratio: 303 / 390; object-fit: cover; object-position: top; }
.team-grid figcaption span { display: block; }
.team-grid .role { margin-top: 2px; font-size: 16px; }
.team-grid .name { font: 400 20px/1.2 var(--serif); }

/* Footer */
.site-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 34px; padding: 19px 18px 16px 24px; border-top: 1px solid #d0d0d0; font-size: 14px; color: #000; }
.site-footer .icon-instagram { width: 18px; height: 18px; }

/* Mobile: Wix rendered a 320px-wide layout scaled to the screen, so 1rem = 1 Wix mobile pixel. */
@media (max-width: 680px) {
    html { font-size: calc(100vw / 320); }
    body { font-size: 16rem; }
    .site-header, main, .site-footer { max-width: none; width: auto; }
    .site-header { height: 310rem; }
    .logo { left: 105rem; top: 82rem; width: 110rem; }
    .tagline { left: 10rem; top: 202rem; font-size: 17rem; line-height: 23.8rem; }
    .burger { display: block; position: absolute; z-index: 20; left: 26rem; top: 16rem; width: 50rem; height: 50rem; padding: 0; border: 0; background: none; cursor: pointer; }
    .burger span, .burger::before, .burger::after { content: ""; position: absolute; left: 10rem; width: 30rem; height: 2px; background: #000; transition: transform .2s, opacity .2s; }
    .burger::before { top: 16rem; }
    .burger span { top: 24rem; }
    .burger::after { top: 32rem; width: 20rem; }
    .menu { display: none; position: fixed; z-index: 10; inset: 0; padding: 90rem 0 0 90rem; background: rgba(255, 255, 255, .92); align-items: flex-start; }
    .menu a { font: 400 16rem/45rem var(--serif); }
    .menu-open .menu { display: flex; }
    .menu-open .burger span { opacity: 0; }
    .menu-open .burger::before { transform: translateY(8rem) rotate(45deg); }
    .menu-open .burger::after { width: 30rem; transform: translateY(-8rem) rotate(-45deg); }

    main { padding: 0 20rem; }
    .grid { grid-template-columns: 1fr; gap: 15rem; }
    .tile { aspect-ratio: 280 / 203; }
    .tile-title { font-size: 26rem; line-height: 1.3; }
    .tile-category { font-size: 16rem; }

    .project-title, .specs, .project-text { margin-left: 0; max-width: none; }
    .project-title { margin-top: 36rem; font-size: 19rem; }
    .specs { margin-top: 10rem; }
    .project-text { margin-top: 20rem; }
    .photos { gap: 10rem; margin-top: 30rem; }
    .photos img.half { grid-column: 1 / -1; }
    .photos img[style*="--rm:"] { aspect-ratio: var(--rm); object-fit: cover; }

    .heading { margin-top: 58rem; font-size: 30rem; }
    .heading::after { margin-top: 20rem; }
    .prose { margin-top: 30rem; }
    .page-mentions-legales .prose { font-size: 15rem; }
    .logos { flex-direction: column; gap: 10rem; margin: 10rem 0 40rem; }
    .logos img { height: 91rem; }

    .contact { padding: 43rem 0 0; }
    .contact-row { grid-template-columns: 59rem 1fr; margin-bottom: 30rem; font-size: 15rem; }
    .contact-icon { width: 22rem; height: 26rem; }
    .addresses { line-height: 27rem; }
    .phones { grid-template-columns: auto auto; column-gap: 12rem; line-height: 30rem; }
    .team { margin-top: 60rem; }
    .heading-team { margin-top: 0; font-size: 30rem; }
    .heading-team::after { margin-top: 8rem; }
    .team-grid { grid-template-columns: 1fr; gap: 50rem; margin: 20rem -20rem 0; padding: 20rem 20rem 40rem; }
    .team-grid img { width: 145rem; aspect-ratio: 145 / 236; margin: 0 auto 10rem; }
    .team-grid .name { font-size: 22rem; }
    .site-footer { margin-top: 30rem; padding: 30rem 20rem; font-size: 18rem; }
    .site-footer .icon-instagram { width: 22rem; height: 22rem; }
}
