/* NWC Furniture v9 "Sunroom": inner pages (catalog, category, product, staging, about, 404).
   Tokens, type, buttons, header, menu, sections, the pinned bedroom and the footer all come from page.css.
   This file only lays out what is new on these pages. White only: no cream, no shadows, no uppercase labels. */

.inner a { text-underline-offset: .25em; }
.nobr { white-space: nowrap; }
.foot nav a .nobr { margin-left: .28em; }   /* the footer link is inline-flex, which eats the space in "Text 408-..." */
.inner .sec { padding-block: 72px; }
@media (min-width: 1024px) { .inner .sec { padding-block: 112px; } }

/* ---------------------------------------------------------- page head */
.ihead { padding: 40px 0 32px; }
.ihead .dot { margin-bottom: 16px; }
.ihead h1 { max-width: 18ch; }
.ihead .lead { margin-top: 20px; }
.inner .lead, .inner .muted, .prod__line, .prod__buy, .cnotes p, .about__text p { text-wrap: pretty; }
.ihead .row { margin-top: 28px; }
@media (min-width: 1024px) { .ihead { padding: 72px 0 48px; } .ihead .lead { margin-top: 24px; } .ihead .row { margin-top: 32px; } }
.ihead__back { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .ihead__back:hover { text-decoration: underline; text-decoration-color: var(--line-2); } }
.ihead + .sec { border-top: 1px solid var(--line); }
.ihead--staging { padding-block: 40px 40px; }
.ihead--staging .lead { margin-top: 16px; }
.ihead--staging .row { margin-top: 24px; }
@media (min-width: 1024px) {
  .ihead--staging { padding-block: 64px 56px; }
  .ihead--staging .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "dot dot" "h1 lead" "h1 row"; gap: 0 72px; align-items: end; }
  .ihead--staging .dot { grid-area: dot; } .ihead--staging h1 { grid-area: h1; max-width: 14ch; } .ihead--staging .lead { grid-area: lead; } .ihead--staging .row { grid-area: row; }
}
.ihead--404 { padding-block: 72px 120px; }
@media (min-width: 1024px) { .ihead--404 { padding-block: 120px 200px; } }

/* ---------------------------------------------------------- catalog: search and rooms */
.ihead .find { margin-top: 32px; }
.find__none { margin: 0 0 32px; color: var(--ink-2); }
.find__none a { color: var(--ink); font-weight: 500; }
.chipnav {
  display: flex; gap: 8px; margin: 20px calc(-1 * var(--g)) 0; padding: 4px var(--g) 8px;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.chipnav::-webkit-scrollbar { display: none; }
.chipnav a {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; box-sizing: border-box;
  border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  font-size: .9375rem; font-weight: 500; white-space: nowrap; transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}
.chipnav a i { font-style: normal; font-size: .8125rem; color: var(--ink-2); }
.chipnav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chipnav a[aria-current="page"] i { color: rgb(255 255 255 / .7); }
@media (hover: hover) and (pointer: fine) { .chipnav a:hover { border-color: var(--ink); } }
@media (min-width: 900px) { .chipnav { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }

/* ---------------------------------------------------------- catalog: an open grid (v11)
   No hairline cells any more: every photo is the same 4:3 crop, set in white space, with the name under it.
   Photos are shown as he shot them (no recolor without the owner's OK). */
.cbody { padding-bottom: 96px; }
@media (min-width: 1024px) { .cbody { padding-bottom: 144px; } }
.cgroup { margin-top: 64px; }
.cgroup:first-of-type { margin-top: 8px; }
.cgroup[hidden] { display: none; }
@media (min-width: 1024px) { .cgroup { margin-top: 120px; } }
.cgroup__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 24px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .cgroup__head { margin-bottom: 32px; padding-bottom: 20px; } }
.cgroup__head h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); line-height: 1.05; letter-spacing: -0.035em; }
.pgrid__in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
@media (min-width: 640px) { .pgrid__in { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; } }
@media (min-width: 1024px) { .pgrid__in { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 28px; } }
.pcard { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: var(--ink); text-decoration: none; }
.pcard[hidden] { display: none; }
.pcard:focus-visible { outline-offset: 4px; border-radius: 6px; }
.pcard__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); margin-bottom: 12px; border-radius: 4px; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.pcard__name { font-size: 1.0625rem; font-weight: 500; line-height: 1.25; letter-spacing: -0.015em; overflow-wrap: break-word; text-wrap: pretty; }
.pcard__kind { font-size: .875rem; line-height: 1.35; color: var(--ink-2); }
@media (min-width: 1024px) { .pcard__img { margin-bottom: 16px; } .pcard__name { font-size: 1.25rem; } .pcard__kind { font-size: .9375rem; } }
@media (hover: hover) and (pointer: fine) {
  .pcard__img img { transition: transform 600ms cubic-bezier(.2, .7, .2, 1); }
  .pcard:hover .pcard__img img { transform: scale(1.04); }
  .pcard:hover .pcard__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
}

/* the four notes under the grid, laid out like the homepage's buying facts */
.cnotes { display: grid; margin-top: 72px; border-top: 1px solid var(--line); }
.cnotes > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.cnotes h2 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.01em; }
.cnotes p { margin-top: 4px; color: var(--ink-2); max-width: 44ch; }
@media (min-width: 640px) {
  .cnotes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 0; }
  .cnotes > div { border-top: 1px solid var(--line); border-bottom: 0; }
}
@media (min-width: 1024px) { .cnotes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 40px; margin-top: 112px; } }

/* ---------------------------------------------------------- product page */
.prod { padding-top: 8px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: .875rem; font-weight: 500; color: var(--ink-2); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--ink); } }
/* v11: the photo is the page. Its own column, up to 760px (the source is 668px, so never past 1.15x). */
.prod__grid { display: grid; gap: 28px; margin-top: 4px; }
.prod__photo { background: var(--surface); width: 100%; max-width: 760px; border-radius: 4px; overflow: hidden; }
.prod__photo img { width: 100%; height: auto; }
.prod__go .btn--text svg { width: 18px; height: 18px; }
.prod__kind { margin-bottom: 12px; font-size: .875rem; font-weight: 500; color: var(--ink-2); }
.prod__name { font-size: clamp(2.25rem, 1.3rem + 2.8vw, 4rem); line-height: 1; letter-spacing: -0.035em; overflow-wrap: break-word; }
.prod__line { margin-top: 20px; font-size: 1.125rem; line-height: 1.5; max-width: 40ch; }
.prod__buy { margin-top: 14px; color: var(--ink-2); max-width: 40ch; }
.prod__go { margin-top: 28px; }
.prod__said { margin-top: 12px; font-size: .875rem; font-weight: 500; }
.prod__said:empty { margin-top: 0; }
.prod__note { margin-top: 12px; font-size: .875rem; color: var(--ink-2); }
.prod__more { margin-top: 20px; }
@media (max-width: 899px) { .prod__go .btn { flex: 1 1 100%; } }
@media (min-width: 900px) {
  .prod__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 4.5vw, 80px); align-items: start; }
  .prod__info { position: sticky; top: calc(var(--top-h) + 24px); padding-top: 8px; }
  .prod__go { display: grid; justify-items: stretch; gap: 12px; max-width: 420px; }
  .prod__name { font-size: clamp(2.25rem, 1rem + 2.4vw, 3.5rem); }
}
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; border-top: 1px solid var(--line); }
.pager a { display: grid; align-content: start; gap: 4px; padding: 20px 0; color: var(--ink); text-decoration: none; font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; overflow-wrap: break-word; }
.pager a span { font-size: .875rem; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.pager a:last-child { text-align: right; }
@media (hover: hover) and (pointer: fine) { .pager a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; } }
.more { padding-block: 32px 96px; }
@media (min-width: 1024px) { .more { padding-bottom: 144px; } }

/* ---------------------------------------------------------- staging */
/* The pinned bedroom is this page's first screen: pull it up under the sticky header, as on the homepage. */
.inner .staged { margin-top: calc(-1 * var(--top-h)); }
.steps3--four li { align-content: start; }
.steps3--four li h3 { font-size: clamp(1.375rem, 1.1rem + .6vw, 1.625rem); }
@media (min-width: 1024px) { .steps3--four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; } }
@media (min-width: 900px) { .inner .who { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; } }
.iterms { display: grid; gap: 40px; }
.ipoints { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 44rem; }
.ipoints li { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; font-weight: 500; line-height: 1.45; text-wrap: pretty; }
@media (min-width: 1024px) { .iterms { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 72px; align-items: start; } }
/* v11: the terms and Book My Furniture sit on one ink band */
.iband { background: var(--surface); color: var(--ink); }
.inner .iband, .inner .iband + .sec { border-top: 0; }
.iband .book { background: #fff; }
/* the partner quote at display size, then the one closing ask (the footer carries the rest) */
.ipartner .quote { margin-top: 24px; }
.ipartner .quote blockquote { font-size: clamp(2rem, 1.1rem + 3.4vw, 4.5rem); line-height: 1.06; max-width: 24ch; }
.ipartner__grid { display: grid; gap: 40px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.ipartner__body p { color: var(--ink-2); max-width: 52ch; }
.ipartner__body p + p { margin-top: 12px; }
.ipartner__body .alink { margin-top: 12px; }
.ipartner__ask .h3 { max-width: 24ch; }
.ipartner__ask .row { margin-top: 24px; }
.ipartner__note { margin-top: 16px; font-size: .875rem; color: var(--ink-2); }
@media (min-width: 1024px) { .ipartner__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; margin-top: 72px; padding-top: 40px; } }

/* ---------------------------------------------------------- about */
/* v11: a picture first, edge to edge, the headline in white on the homepage's dark fade (own class: .hero carries
   the homepage's full-screen height, parallax and entrance animation) */
.ahero { position: relative; display: flex; align-items: flex-end; min-height: min(calc(var(--small) - var(--top-h)), 640px); overflow: hidden; color: #fff; background: #2a2724; }
.ahero__pic { position: absolute; inset: 0; z-index: 0; }
.ahero__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 62%; }
.ahero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgb(18 16 14 / .82) 0%, rgb(18 16 14 / .66) 40%, rgb(18 16 14 / .3) 66%, rgb(18 16 14 / .08) 100%); }
.ahero__copy { position: relative; z-index: 2; padding-block: 120px 32px; }
.ahero__copy .dot { margin-bottom: 16px; color: #fff; }
.ahero__copy .dot::before { background: #fff; }
.ahero__copy h1 { max-width: 16ch; color: #fff; text-shadow: 0 1px 24px rgb(0 0 0 / .25); }
.ahero__copy .lead { margin-top: 20px; max-width: 40ch; color: #fff; text-shadow: 0 1px 24px rgb(0 0 0 / .25); }
.ahero + .sec { border-top: 0; }
@media (min-width: 1024px) {
  .ahero { min-height: min(calc(var(--small) - var(--top-h)), 820px); }
  .ahero__copy { padding-block: 160px 56px; }
  .ahero__copy .lead { margin-top: 24px; }
}
.about__grid { display: grid; gap: 56px; }
.about__text > section + section { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.about__text h2 { margin-bottom: 14px; }
.about__text p { color: var(--ink-2); font-size: 1.0625rem; max-width: 56ch; }
.about__text p + p { margin-top: 12px; }
.about__side { display: grid; gap: 32px; align-content: start; }
.about__plate { display: grid; justify-items: start; gap: 2px; font-style: normal; }
.about__plate p { color: var(--ink-2); }
.about__plate p:first-of-type { margin: 8px 0 4px; }
.about__plate .alink { overflow-wrap: anywhere; }
@media (min-width: 1024px) { .about__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 96px; } }

@media (prefers-reduced-motion: reduce) { .pcard__img img, .chipnav a { transition: none; } }

/* v15: About page, three catalog photos */
.rooms3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 900px) { .rooms3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.rooms3 a { display: grid; gap: 14px; color: var(--ink); text-decoration: none; font-size: 1.125rem; font-weight: 500; }
.rooms3 img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; background: var(--surface); }
.rooms3 .arr { display: inline-block; transition: transform 160ms ease-out; }
@media (hover: hover) and (pointer: fine) { .rooms3 a:hover .arr { transform: translateX(4px); } }

/* v17: Book My Furniture card is filled blue on inner pages too (page.css loads before this file) */
.inner .book, .inner .iband .book { background: var(--accent); border-color: var(--accent); color: #fff; }
.inner .book p, .inner .book .small { color: rgb(255 255 255 / .82); }
.inner .book .h3 { color: #fff; }
.inner .book .btn--line { background: #fff; border-color: #fff; color: var(--ink); }

/* 12/01 audit: the label over the first-screen photo sits on a dark chip (was 1.6:1 on the bright About photo) */
.ahero__copy .dot { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: rgb(18 16 14 / .62); }
/* 12/01 audit: no stale totals while searching; product photo never stretched past its own size */
.is-searching .chipnav a i, .is-searching .cgroup__head .alink { visibility: hidden; }
.prod__photo img { width: min(100%, 668px); height: auto; margin-inline: auto; display: block; }

/* 12/02: privacy page */
.sec--legal { padding-top: 24px; }
.legal { max-width: 720px; }
.legal p { max-width: 64ch; }
.legal .alink { display: inline; }
