/* =========================================================
   CHRIS CIMER
   Contemporary furniture catalogue
========================================================= */

:root {
  --paper: #f1eee6;
  --paper-soft: #e9e5dc;
  --ink: #191918;
  --charcoal: #20201f;
  --charcoal-deep: #161616;
  --muted: #77736c;
  --light-muted: #c5c0b7;
  --line: rgba(25, 25, 24, 0.16);
  --line-light: rgba(255, 255, 255, 0.18);
  --white: #f8f6f0;

  --serif:
    "Iowan Old Style",
    "Baskerville",
    "Times New Roman",
    serif;

  --sans:
    Arial,
    Helvetica,
    sans-serif;

  --page-padding: clamp(24px, 4vw, 72px);
  --content-width: 1500px;
  --image-width: 1460px;
  --text-width: 860px;

  --section-space: clamp(120px, 15vw, 260px);
  --image-space: clamp(110px, 13vw, 230px);
}


/* =========================================================
   RESET
========================================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

figure,
h1,
h2,
h3,
p {
  margin-top: 0;
}

::selection {
  background: #aa9877;
  color: #fff;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 12px 18px;
  background: #fff;
  color: #000;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}


/* =========================================================
   TYPOGRAPHY
========================================================= */

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 900px;
  margin-bottom: 28px;
  font-size: clamp(4.2rem, 8.7vw, 10.5rem);
}

h2 {
  font-size: clamp(3.4rem, 7vw, 8.5rem);
}

h3 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 2.4vw, 2.8rem);
}

.eyebrow {
  margin-bottom: 28px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  position: relative;
  align-items: center;
  padding-bottom: 7px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.text-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform-origin: left;
  transition: transform 300ms ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(0.45);
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
  display: grid;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding:
    clamp(26px, 3vw, 52px)
    var(--page-padding);
  color: var(--white);
  transition:
    background-color 250ms ease,
    color 250ms ease,
    padding 250ms ease,
    transform 250ms ease;
}

.site-header.is-scrolled {
  position: fixed;
  padding-top: 19px;
  padding-bottom: 19px;
  background: rgba(239, 236, 228, 0.94);
  color: var(--ink);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  justify-self: start;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.4vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.015em;
}

.main-nav {
  display: flex;
  grid-column: 2;
  gap: clamp(25px, 3vw, 55px);
  align-items: center;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  justify-self: end;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}


/* =========================================================
   HERO
========================================================= */

.hero {
  display: grid;
  position: relative;
  min-height: max(720px, 100svh);
  overflow: hidden;
  background: #272625;
  color: var(--white);
  isolation: isolate;
}

.hero-media,
.hero-overlay,
.hero-content {
  grid-area: 1 / 1;
}

.hero-media {
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.005);
  will-change: transform;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(9, 9, 9, 0.74) 0%,
      rgba(9, 9, 9, 0.42) 30%,
      rgba(9, 9, 9, 0.08) 64%,
      rgba(9, 9, 9, 0.05) 100%
    ),
    linear-gradient(
      0deg,
      rgba(8, 8, 8, 0.35) 0%,
      rgba(8, 8, 8, 0) 42%
    );
}

.hero-content {
  display: flex;
  position: relative;
  z-index: 2;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  width: min(100%, 1680px);
  margin: 0 auto;
  padding:
    170px
    var(--page-padding)
    clamp(70px, 9vw, 145px);
}

.hero-content h1 {
  max-width: 760px;
  font-size: clamp(4.4rem, 8vw, 9.8rem);
}

.hero-eyebrow {
  margin-bottom: 22px;
}

.hero-note {
  margin-bottom: 28px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-link {
  color: var(--white);
}


/* =========================================================
   COMMON SECTIONS
========================================================= */

.section-light {
  background: var(--paper);
  color: var(--ink);
}

.section-dark {
  background: var(--charcoal);
  color: var(--white);
}

.philosophy,
.collections-intro,
.bespoke,
.designer,
.process,
.contact {
  padding-right: var(--page-padding);
  padding-left: var(--page-padding);
}

.statement-container,
.section-heading {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}


/* =========================================================
   PHILOSOPHY
========================================================= */

.philosophy {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.statement-container {
  max-width: 1040px;
}

.statement-container h2 {
  max-width: 1020px;
  margin-bottom: 50px;
}

.statement-note {
  max-width: 470px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}


/* =========================================================
   COLLECTION INTRO
========================================================= */

.collections-intro {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.collections-intro h2 {
  max-width: 1260px;
}


/* =========================================================
   COLLECTIONS
========================================================= */

.collection {
  padding:
    var(--section-space)
    var(--page-padding);
  overflow: hidden;
}

.collection-dark {
  background: var(--charcoal);
  color: var(--white);
}

.collection-light {
  background: var(--paper);
  color: var(--ink);
}

.collection-oak {
  background: #e8e3d9;
  color: var(--ink);
}

.collection-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(30px, 5vw, 86px);
  align-items: start;
  width: min(100%, var(--content-width));
  margin: 0 auto var(--section-space);
}

.collection-heading h2 {
  max-width: 1100px;
  margin-bottom: 0;
}

.collection-number {
  margin: 5px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 5rem);
  line-height: 1;
}

.collection .eyebrow {
  margin-bottom: 20px;
}


/* =========================================================
   IMAGE STORYTELLING
========================================================= */
.image-block {
  width: min(100%, var(--image-width));
  margin:
    0 auto
    var(--image-space);
}

.image-block img {
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

.image-block-full {
  width: min(100%, var(--image-width));
}

.image-block-centred {
  width: min(100%, 1240px);
}

.image-block-detail {
  width: min(100%, 1000px);
}

.image-block-interior {
  width: min(100%, 1180px);
}

.image-block figcaption {
  max-width: 640px;
  margin-top: 25px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.65;
  text-transform: uppercase;
}

.collection-dark .image-block figcaption {
  color: var(--light-muted);
}

.story-statement {
  width: min(100%, 1150px);
  margin:
    clamp(40px, 7vw, 120px)
    auto
    var(--image-space);
  text-align: center;
}

.story-statement p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7vw, 8.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.story-statement-dark {
  color: var(--white);
}


/* =========================================================
   BESPOKE
========================================================= */

.bespoke {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(65px, 9vw, 165px);
  align-items: center;
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.bespoke-copy {
  width: 100%;
  max-width: 650px;
  margin-left: auto;
}

.bespoke-copy h2 {
  margin-bottom: 48px;
}

.bespoke-copy > p:not(.eyebrow) {
  max-width: 550px;
  color: var(--light-muted);
  font-size: clamp(1rem, 1.2vw, 1.18rem);
}

.bespoke-copy .text-link {
  margin-top: 26px;
}

.bespoke-image {
  width: 100%;
}

.bespoke-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}


/* =========================================================
   DESIGNER
========================================================= */

.designer {
  padding:
    clamp(110px, 10vw, 170px)
    var(--page-padding);
  background: var(--warm-white);
  color: var(--ink);
}

.designer-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.88fr);
  gap: clamp(70px, 8vw, 145px);
  align-items: stretch;
  width: min(100%, 1500px);
  margin: 0 auto;
}

.designer-portrait {
  min-height: 0;
  overflow: hidden;
  background: #f5f3ef;
}

.designer-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 720px;
  object-fit: cover;
  object-position: center top;
}

.designer-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
  padding: clamp(30px, 3vw, 55px) 0;
}

.designer-copy .eyebrow {
  margin: 0 0 clamp(26px, 3vw, 42px);
}

.designer-copy h2 {
  margin: 0;
  font-size: clamp(4rem, 6.2vw, 7.3rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.designer-lead {
  max-width: 550px;
  margin:
    clamp(38px, 4vw, 58px)
    0
    0;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.45vw, 2.85rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.designer-story {
  max-width: 560px;
  margin-top: clamp(34px, 3.5vw, 52px);
}

.designer-story p {
  margin: 0 0 20px;
  font-size: clamp(0.94rem, 1vw, 1.05rem);
  line-height: 1.7;
}

.designer-story p:last-child {
  margin-bottom: 0;
}

.designer-signature {
  margin:
    clamp(36px, 4vw, 56px)
    0
    0;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}


/* =========================================================
   DESIGNER — TABLET
========================================================= */

@media (max-width: 1050px) {

  .designer-inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
    gap: 55px;
  }

  .designer-portrait img {
    min-height: 680px;
  }

  .designer-copy h2 {
    font-size: clamp(3.7rem, 7vw, 5.8rem);
  }
}


/* =========================================================
   DESIGNER — MOBILE
========================================================= */

@media (max-width: 780px) {

  .designer {
    padding-top: 80px;
    padding-bottom: 95px;
  }

  .designer-inner {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .designer-portrait {
    width: 100%;
  }

  .designer-portrait img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
  }

  .designer-copy {
    max-width: none;
    padding: 0;
  }

  .designer-copy h2 {
    font-size: clamp(3.6rem, 16vw, 5.4rem);
  }

  .designer-lead {
    max-width: 100%;
    font-size: clamp(1.65rem, 7vw, 2.3rem);
  }

  .designer-story {
    max-width: 100%;
  }
}

/* =========================================================
   PROCESS
========================================================= */

.process {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(70px, 10vw, 180px);
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  border-top: 1px solid var(--line);
}

.process-heading h2 {
  max-width: 720px;
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 30px;
  padding: 35px 0;
  border-top: 1px solid var(--line);
}

.process-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.process-list span {
  padding-top: 7px;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
}

.process-list p {
  max-width: 540px;
  margin-bottom: 0;
  color: var(--muted);
}


/* =========================================================
   CONTACT
========================================================= */

.contact {
  padding:
    clamp(120px, 13vw, 210px)
    var(--page-padding)
    clamp(130px, 14vw, 230px);
}

.contact-inner {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.contact .eyebrow {
  margin-bottom: clamp(30px, 4vw, 55px);
}

.contact-inner h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(4rem, 7.2vw, 8.2rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.contact-description {
  max-width: 620px;
  margin:
    clamp(40px, 5vw, 68px)
    0
    0;
  color: var(--light-muted);
  font-size: clamp(0.92rem, 1.05vw, 1.08rem);
  line-height: 1.75;
}

.contact-meta {
  margin-top: clamp(42px, 5vw, 68px);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  align-items: center;
}

.contact-links a {
  position: relative;
  padding-bottom: 4px;
  color: var(--light-muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition:
    color 220ms ease,
    opacity 220ms ease;
}

.contact-links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.45;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: var(--white);
}

.contact-links a:hover::after,
.contact-links a:focus-visible::after {
  transform: scaleX(1);
}

.contact-regions {
  margin: 20px 0 0;
  color: var(--light-muted);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.8;
  text-transform: uppercase;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(260px, 1fr) auto;
  gap: clamp(50px, 8vw, 140px);
  align-items: end;
  padding:
    clamp(65px, 7vw, 110px)
    var(--page-padding)
    clamp(45px, 5vw, 75px);
  background: var(--charcoal-deep);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-name {
  margin: 0 0 18px;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.1vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.footer-description {
  max-width: 250px;
  margin: 0;
  color: var(--light-muted);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  line-height: 1.35;
}

.footer-statements {
  align-self: start;
}

.footer-statements p {
  margin: 0 0 10px;
  color: var(--light-muted);
  font-size: 0.59rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.65;
  text-transform: uppercase;
}

.back-to-top {
  position: relative;
  align-self: end;
  justify-self: end;
  padding-bottom: 5px;
  color: var(--light-muted);
  font-size: 0.59rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 220ms ease;
}

.back-to-top::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.45;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  color: var(--white);
}


/* =========================================================
   CONTACT + FOOTER RESPONSIVE
========================================================= */

@media (max-width: 900px) {

  .site-footer {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .back-to-top {
    justify-self: start;
  }
}


@media (max-width: 640px) {

  .contact {
    padding-top: 105px;
    padding-bottom: 120px;
  }

  .contact-inner h2 {
    font-size: clamp(3.3rem, 16vw, 5.2rem);
  }

  .contact-description {
    max-width: 92%;
    margin-top: 35px;
  }

  .contact-meta {
    margin-top: 36px;
  }

  .contact-links {
    gap: 16px 28px;
  }

  .contact-regions {
    max-width: 290px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .footer-name {
    font-size: 1.75rem;
  }

  .back-to-top {
    margin-top: 12px;
  }
}


@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
