/* Jost is an open-source Futura revival, standing in for the licensed Futura the old site used. */
@font-face {
    font-family: 'Jost';
    src: url("../fonts/jost-latin-kGYPfft.woff2") format('woff2');
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Jost';
    src: url("../fonts/jost-latin-italic-ExU9YiK.woff2") format('woff2');
    font-weight: 300 800;
    font-style: italic;
    font-display: swap;
}

:root {
    --ink: #2c2624;
    --grey: #a9a7a2;
    --grey-ink: #3b3b3b;
    --paper: #f2f2f2;
    --peach: #eecaaf;
    --peach-tile: #efcbb0;
    --line: #d6d6d6;
    --navy: #10344f;
    --header-h: 60px;
    --max: 1280px;
    --font: 'Jost', 'Futura', 'Century Gothic', 'Avenir Next', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

body {
    margin: 0;
    font-family: var(--font);
    font-weight: 450;
    color: var(--ink);
    background: #fff;
    padding-top: var(--header-h);
}

::selection { background-color: var(--peach); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: normal; margin: 0; }
p { font-size: 0.8125rem; line-height: 2; letter-spacing: 1px; margin: 0 0 30px; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 200;
    background: var(--ink);
    color: #fff;
    padding: .5rem 1rem;
}
.skip-link:focus { top: .5rem; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    overflow-x: clip;
}

/* ---------- Header ---------- */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-h);
    background: var(--grey);
}
.site-header__inner {
    max-width: var(--max);
    height: 100%;
    margin: 0 auto;
    padding: 0 clamp(16px, 8vw, 105px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.logo {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: .01em;
    color: #2e2e2e;
    text-decoration: none;
    white-space: nowrap;
}
.aram-link {
    font-size: 1.6rem;
    font-weight: 400;
    color: #111;
    text-decoration: none;
    white-space: nowrap;
}
.aram-link b { font-weight: 800; letter-spacing: .02em; }

.main-nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}
.main-nav a {
    position: relative;
    display: block;
    line-height: var(--header-h);
    padding: 0 clamp(14px, 2.6vw, 42px);
    font-size: .95rem;
    letter-spacing: 2px;
    color: #000;
    text-decoration: none;
    font-stretch: condensed;
}
.main-nav a:hover, .main-nav a[aria-current] { color: #fff; }
/* the slanted rules between items */
.main-nav li::before,
.main-nav li:last-child::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 1px;
    background: #bab8b4;
    transform: skewX(-18deg);
}
.main-nav li { position: relative; }
.main-nav li::before { left: 0; }
.main-nav li:last-child::after { right: 0; }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 10px;
    margin-right: -10px;
    cursor: pointer;
    color: #111;
    font: inherit;
    font-size: .8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    align-items: center;
    gap: .5rem;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.main-nav .aram-link--menu { display: none; }

@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .site-header .aram-link { display: none; }
    .main-nav {
        position: absolute;
        inset: var(--header-h) 0 auto;
        background: var(--grey);
        border-top: 1px solid #bab8b4;
        padding: .5rem 0 1rem;
    }
    .js .main-nav:not(.is-open) { display: none; }
    .main-nav ul { flex-direction: column; }
    .main-nav li::before, .main-nav li:last-child::after { display: none; }
    .main-nav a { line-height: 1; padding: 1rem clamp(16px, 8vw, 105px); font-size: 1.05rem; }
    .main-nav .aram-link--menu { display: block; line-height: 1; padding: 1rem clamp(16px, 8vw, 105px); font-size: 1.3rem; letter-spacing: 0; }
}
.no-js .nav-toggle { display: none; }

/* ---------- Section titles ---------- */

.section-title {
    text-align: center;
    border-block: 3px solid var(--title-rule, #fff);
    font-size: clamp(1.4rem, 3.4vw, 2.625rem);
    font-weight: 700;
    letter-spacing: .36em;
    text-transform: uppercase;
    line-height: 1;
}
.section-title span {
    display: inline-block;
    background: var(--peach);
    padding: .06em calc(clamp(12px, 3vw, 40px) - .36em) 0 clamp(12px, 3vw, 40px);
    max-width: 100%;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    aspect-ratio: 2 / 1;
    min-height: 420px;
    background: #10202c url("../images/hero-bg-9CQD4s4.webp") 100% 0 / cover no-repeat;
    color: #c9c7c0;
    display: flex;
    align-items: center;
}
.hero figure {
    width: 50%;
    margin: 0;
    padding: 0 clamp(16px, 4vw, 60px);
    text-align: center;
    font-weight: 700;
    font-style: italic;
}
.hero blockquote {
    margin: 0 0 2rem;
    font-size: clamp(1.1rem, 2.1vw, 1.65rem);
    line-height: 1.35;
    letter-spacing: 2px;
}
.hero figcaption { font-size: clamp(.85rem, 1.2vw, 1rem); }

@media (max-width: 700px) {
    .hero {
        aspect-ratio: auto;
        min-height: 0;
        padding: 3rem 0 16rem;
        background-position: 72% 0;
        align-items: flex-start;
    }
    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(12, 27, 40, .85) 0%, rgba(12, 27, 40, .6) 55%, rgba(12, 27, 40, 0) 80%);
    }
    .hero figure { position: relative; width: 100%; }
}

/* ---------- Biography ---------- */

.biography {
    --title-rule: #fff;
    position: relative;
    background: var(--paper);
    padding: 70px 0 60px;
}
/* the two faint vertical rules of the old design */
.biography::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(#fff, #fff) 6.8% 0 / 3px 100% no-repeat,
        linear-gradient(#fff, #fff) 92% 0 / 3px 100% no-repeat;
    pointer-events: none;
}
.biography__text {
    position: relative;
    /* clear the right rule (the nearer one, 8% + 3px in) plus a gutter; mirrored so the column rule stays centred */
    margin: 0 calc(8% + 3px + 40px);
    padding: 50px 0 0;
    columns: 2;
    column-gap: 100px;
    column-rule: 3px solid #fff;
    text-align: center;
}
.biography__text p { break-inside: avoid-column; }
.biography__licence { font-style: italic; }
.biography__art {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40%;
    max-width: 514px;
    height: auto;
    pointer-events: none;
    mix-blend-mode: multiply;
}
@media (max-width: 860px) {
    .biography::before { display: none; }
    .biography__text { columns: 1; margin: 0; padding: 40px clamp(16px, 6vw, 60px) 0; }
    .biography__art { display: none; }
}

/* ---------- Photo band with fixed background ---------- */

.photo-band {
    display: block;
    height: 390px;
    background: url("../images/fixed-bg-5Kmno7O.webp") 50% 0 / cover no-repeat;
}
@media (hover: hover) and (pointer: fine) and (min-width: 1000px) {
    .photo-band { background-attachment: fixed; background-size: min(100vw, var(--max)) auto; }
}
@media (max-width: 700px) { .photo-band { height: 240px; } }

/* ---------- Product grid ---------- */

.products {
    --title-rule: var(--paper);
    padding-top: 90px;
    text-align: center;
}
.products .section-title { margin-bottom: 0; }

.product-grid {
    --cols: 4;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(var(--cols), 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
}
.product-grid li {
    aspect-ratio: 1;
    background: var(--peach-tile);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.product-grid a { display: block; height: 100%; }
.product-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .2s ease-in-out;
}
.product-grid a:hover img,
.product-grid a:focus-visible img { opacity: .5; }
.product-grid .category-tile { background: #fff; }
.product-grid--small { --cols: 8; }

@media (max-width: 700px) {
    .product-grid { --cols: 2; }
    .product-grid--small { --cols: 4; }
}

/* The E1027 living-room photo sits under the grid and shows through its unfilled last row. */
.living-room {
    display: block;
    position: relative;
}
.living-room img { width: 100%; }
/* one grid row, as a share of the width; gap-lg / gap-sm are set when that layout's last row is incomplete */
.products { --row-lg: 25%; --row-sm: 50%; }
.products--small { --row-lg: 12.5%; --row-sm: 25%; }
@media (min-width: 701px) { .gap-lg .living-room { margin-top: calc(-1 * var(--row-lg)); } }
@media (max-width: 700px) { .gap-sm .living-room { margin-top: calc(-1 * var(--row-sm)); } }

/* ---------- Chronology ---------- */

.chronology {
    --title-rule: #fff;
    position: relative;
    background: var(--paper);
    padding: 40px 0 0;
    color: var(--navy);
}
.chrono-tabs {
    display: flex;
    gap: 2px;
    margin: 0 auto 40px;
    padding: 0 clamp(16px, 5vw, 60px) 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    justify-content: safe center;
    border-bottom: 1px solid #d9d8d4;
}
.chrono-tabs button {
    flex: none;
    border: 0;
    background: none;
    padding: .35rem .45rem;
    font: inherit;
    font-size: .75rem;
    letter-spacing: 1px;
    color: var(--navy);
    cursor: pointer;
    white-space: nowrap;
}
.chrono-tabs button:hover { background: #e3e2de; }
.chrono-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }

.chronology .section-title { position: relative; z-index: 2; color: var(--ink); }
@media (min-width: 861px) {
    .chronology .section-title { position: absolute; left: 0; right: 0; top: 150px; }
}

.chrono-viewport { position: relative; }
.chrono-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}
.chrono-track::-webkit-scrollbar { display: none; }
.chrono-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    min-height: 420px;
    padding: 0 60px 50px;
}
.chrono-slide__image img { margin: 0 auto; width: 363px; }
.chrono-slide__text { padding: 140px 40px 0 0; text-align: center; }
.chrono-slide--text-only { grid-template-columns: 1fr; }
.chrono-slide--text-only .chrono-slide__text { padding: 140px 25% 0; }
.chrono-slide h3 { font-size: 2.375rem; font-weight: 700; margin-bottom: 1rem; }
.chrono-slide p { font-size: 1.5rem; line-height: 1.3; letter-spacing: 0; margin: 0 0 1rem; }

.chrono-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .7);
    color: var(--navy);
    font-size: 1.4rem;
    line-height: 44px;
    cursor: pointer;
}
.chrono-arrow:hover { background: #fff; }
.chrono-arrow:disabled { opacity: .3; cursor: default; }
.chrono-arrow--prev { left: 8px; }
.chrono-arrow--next { right: 8px; }
.no-js .chrono-arrow { display: none; }

@media (max-width: 860px) {
    .chrono-slide, .chrono-slide--text-only { grid-template-columns: 1fr; padding: 24px 56px 40px; min-height: 0; }
    .chrono-slide__text, .chrono-slide--text-only .chrono-slide__text { padding: 1.5rem 0 0; }
    .chrono-slide__image img { width: min(100%, 280px); }
    .chrono-slide h3 { font-size: 1.8rem; }
    .chrono-slide p { font-size: 1.15rem; }
}

/* ---------- Footer ---------- */

.site-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--grey);
    color: var(--grey-ink);
}
.site-footer__about { padding: 25px 5% 30px clamp(16px, 8vw, 100px); }
.site-footer p, .site-footer address { font-size: 1.125rem; line-height: 1.4; letter-spacing: .5px; margin: 1em 0; }
.site-footer address { font-style: normal; }
.site-footer__licence { font-style: italic; }
.site-footer a { color: inherit; }
.site-footer__graphic { padding-left: 50px; align-self: end; }
.site-footer__graphic img { width: 453px; }
@media (max-width: 860px) {
    .site-footer { grid-template-columns: 1fr; }
    .site-footer__graphic { padding: 0 clamp(16px, 8vw, 100px); }
    .site-footer__graphic img { margin: 0 auto; }
}

/* ---------- Product page ---------- */

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}
.product-detail__image img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-detail__text {
    padding: 20px 5% 30px;
    text-align: center;
}
.product-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    font-size: .7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.product-nav a { color: #9d9b97; text-decoration: none; }
.product-nav a:hover { color: var(--ink); }
.product-detail h1 {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 700;
    font-style: italic;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}
.product-detail h1 small { display: block; font-size: inherit; }
.product-detail__desc { text-align: center; }
.product-detail__pricing a { color: var(--ink); }
@media (max-width: 760px) {
    .product-detail { grid-template-columns: 1fr; }
    .product-nav { margin-bottom: 24px; }
}

.interior {
    display: block;
    height: clamp(220px, 39vw, 500px);
}
.interior img { width: 100%; height: 100%; object-fit: cover; }

.product-page .products { padding-top: 0; }

/* ---------- Lightbox ---------- */

.lightbox {
    border: 0;
    padding: 0;
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    background: transparent;
}
.lightbox::backdrop { background: rgba(11, 11, 11, .85); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img {
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 80px);
    width: auto;
    height: auto;
    box-shadow: 0 0 8px rgba(0, 0, 0, .6);
    cursor: zoom-out;
}
.lightbox__close {
    position: fixed;
    top: 8px;
    right: 12px;
    border: 0;
    background: none;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    opacity: .75;
}
.lightbox__close:hover { opacity: 1; }
[data-lightbox] { cursor: zoom-in; }

/* ---------- Error page ---------- */

.error-page {
    text-align: center;
    padding: 120px 20px;
    background: var(--paper);
}
.error-page h1 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
