/* The Canon: the home page. The first screen is a room in evening light with the plates
   on its wall; the words sit on the open wall beside them. */

/* ---------------------------------------------------------------- the room */
.room { background: var(--paper); color: var(--paper-ink); }
.room-stage { position: relative; overflow: hidden; }
.room-pic { display: block; background: var(--wall); }
.room-pic img { display: block; width: 100%; height: auto; }
.room h1 {
  font: 300 clamp(2.6rem, 5.4vw, 6.4rem)/0.98 var(--display);
  letter-spacing: -0.012em; margin: 0; text-wrap: balance;
}
.room-sub { font-size: clamp(1.12rem, 1.3vw, 1.36rem); line-height: 1.52; color: #37332E; max-width: 24em; margin: 0 0 32px; text-wrap: pretty; }
.room-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin: 0; }
.room-cta .btn { min-width: 0; padding: 18px 30px; text-decoration: none; }
.room-link {
  font: 400 0.6875rem var(--mono); letter-spacing: var(--caps-tracking); text-transform: uppercase;
  text-decoration: underline; text-decoration-color: rgba(30, 29, 27, 0.35); text-underline-offset: 0.7em;
}
.room-link:hover { text-decoration-color: currentColor; }
/* the caption sits on the paper under the picture, like a plate in a book */
.room-caption { margin: 0; padding: 14px var(--gutter) 0; font-size: 1rem; line-height: 1.45; font-style: italic; color: #5C564E; }

/* desktop: the picture fills the first screen, cropped from the left and centred
   vertically, so the hang and the open wall both survive any window shape from 4:3 up */
@media (min-width: 900px) {
  .room-stage { height: clamp(520px, min(calc(100svh - 71px - 50px), calc(100vw / 1.45)), 1100px); background: var(--wall); }
  .room-pic img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 100% 45%; }
  .room-words {
    position: absolute; z-index: 2; top: 0; bottom: 0;
    left: clamp(32px, 5.5vw, 104px); width: min(38vw, 720px);
    display: flex; flex-direction: column; justify-content: center; padding-bottom: 3vh;
  }
  .room h1 { margin-bottom: 0.5em; }
  .room-caption { text-align: right; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .room-sub { font-size: 1.05rem; margin-bottom: 26px; }
}

/* tablet: the whole wide picture, the headline on its open wall, the rest below */
@media (min-width: 600px) and (max-width: 899px) {
  .room h1 { position: absolute; z-index: 2; left: var(--gutter); top: 27.8vw; transform: translateY(-50%); width: 46vw; font-size: 5.8vw; }
  .room-more { padding: 28px var(--gutter) 0; }
  .room-caption { padding-top: 24px; }
}

/* phone: a portrait picture with open wall above the frame for the headline;
   the paragraph and the button follow, above the fold. A band of the picture's own
   wall colour above it gives the headline room clear of the frame. */
@media (max-width: 599px) {
  .room-pic { padding-top: 6vw; background: linear-gradient(to right, #D0C8BD, #D2CBC0 25%, #D3CCC3 50%, #D1CAC2 75%, #CDC8BE); }
  .room h1 { position: absolute; z-index: 2; top: 0; left: 0; right: 0; padding: clamp(22px, 6.5vw, 40px) 16px 0; font-size: clamp(2.4rem, 11.2vw, 3.6rem); }
  .room-more { padding: 22px 16px 0; }
  .room-sub { font-size: 1.12rem; line-height: 1.5; margin-bottom: 22px; }
  .room-caption { padding: 24px 16px 0; font-size: 0.95rem; }
}

/* ---------------------------------------------------------------- the statement */
.rs { background: var(--paper); padding: clamp(72px, 11vw, 150px) var(--gutter) 0; }
.rs-inner { max-width: 1240px; margin: 0 auto; }
.rs-label { font: 400 0.75rem var(--mono); letter-spacing: var(--caps-tracking); text-transform: uppercase; color: #5C564E; margin: 0 0 28px; }
.rs-lead {
  font: 300 clamp(2rem, 3.6vw, 3.4rem)/1.12 var(--display); letter-spacing: -0.005em;
  margin: 0 0 clamp(32px, 4vw, 56px); max-width: 21em; text-wrap: pretty;
}
.rs-body { margin-left: auto; max-width: 34rem; }
.rs-body p { font: 400 clamp(1.18rem, 1.5vw, 1.4rem)/1.55 var(--text); margin: 0 0 1em; color: #2E2C29; }
.proofs {
  list-style: none; margin: clamp(48px, 6vw, 88px) 0 0; padding: 26px 0 0; border-top: 1px solid var(--paper-rule);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 48px;
}
.proofs h3 { margin: 0 0 10px; color: var(--paper-ink); }
.proofs p { margin: 0; font-size: 1.02rem; line-height: 1.5; color: #4E4942; max-width: 24em; }
@media (max-width: 860px) {
  .proofs { grid-template-columns: 1fr; }
  .rs-body { margin-left: 0; }
}

/* ---------------------------------------------------------------- the plates heading */
.plates-head { border-bottom: 1px solid var(--rule); padding-bottom: 22px; margin-bottom: 40px; }
.plates-title { font: 300 clamp(2.6rem, 5vw, 4rem)/1 var(--display); margin: 0; }

/* ---------------------------------------------------------------- the Demonstrations */
/* the plates' companion sheets, after the plates and smaller: an intro beside their cards,
   each card about two thirds as wide as a plate's */
.home-demonstrations { margin-top: 88px; }
.demo-shelf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: start; }
.demo-intro { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.5; max-width: 22rem; }
.demo-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.demo-grid .card-title { font-size: 1.35rem; }
.demo-grid .card-hook { font-size: 1rem; line-height: 1.45; }
.demo-grid .card-frame img { box-shadow: 0 0 0 5px #2B2A28, 2px 4px 0 5px rgba(0,0,0,0.08); }  /* the plates' frame, scaled */
@media (max-width: 759px) {
  .demo-shelf { grid-template-columns: 1fr; gap: 24px; }
  .demo-grid { gap: 32px 20px; }
  .demo-grid .card-title { font-size: 1.2rem; }
  .demo-grid .card-hook { font-size: 0.95rem; }
  .demo-grid .card-frame img { box-shadow: 0 0 0 3px #2B2A28, 1px 3px 0 3px rgba(0,0,0,0.08); }
}

/* ---------------------------------------------------------------- the plates being made */
/* muted previews from shop.json "upcoming", with no number, link or price */
.upcoming { margin-top: 88px; }
.upcoming-row { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px 32px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.upcoming-img { width: 100%; opacity: 0.5; filter: grayscale(0.6); box-shadow: 0 0 0 1px var(--paper-rule); margin-bottom: 14px; }
.upcoming-title { font: 400 1.25rem/1.2 var(--display); margin: 0 0 4px; color: var(--paper-muted); }
.upcoming .card-meta { font-size: 0.92rem; }
@media (max-width: 759px) { .upcoming-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; } }
