/* Adapt the adopted layouts to the viewport; keep type independent of artwork size. */
:root {
  --content-width: 1360px;
  --page-gutter: clamp(20px, 4vw, 72px);
}
.site { width: 100%; max-width: none; margin: 0; }
.site > * { font-size: 20px; }
.inner, .hero-copy {
  width: calc(100% - 2 * var(--page-gutter));
  max-width: var(--content-width);
  margin-inline: auto;
}
img, svg { max-width: 100%; }
input, textarea, select { max-width: 100%; }
h1, h2, h3 { overflow-wrap: break-word; }
.product-grid > *, .form-layout > *, .split > *, .heading-row > * { min-width: 0; }
.heading-row { flex-wrap: wrap; }

#header {
  height: 84px;
  padding-inline: max(var(--page-gutter), calc((100% - var(--content-width)) / 2));
  gap: 28px;
}
#header > .brand { font-size: 22px; }
#header nav { font-size: 14px; gap: 30px; }
#header .quote { font-size: 13px; min-height: 44px; padding: 12px 20px; }
.mega-panel { left: max(24px, calc((100% - 1440px) / 2)); right: max(24px, calc((100% - 1440px) / 2)); }
#footer {
  padding: 30px max(var(--page-gutter), calc((100% - var(--content-width)) / 2));
  gap: 24px;
}
#footer .brand { font-size: 20px; }
#footer nav { font-size: 13px; gap: 28px; flex-wrap: wrap; }
.button { min-height: 46px; }

.home-hero { min-height: clamp(480px, 56vh, 640px); }
.hero-copy { position: relative; padding-block: 64px; }
.home-hero .hero-copy {
  min-height: inherit;
  padding-block: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.home-hero h1 { font-size: clamp(42px, 3.5vw, 64px); max-width: 53%; }
.home-hero .eyebrow { font-size: 11px; margin-bottom: 22px; }
.hero p:not(.eyebrow):not(.breadcrumb) { font-size: 18px; line-height: 1.6; max-width: min(46ch, 47%); }
.hero-actions .button { font-size: 15px; min-height: 48px; }
.inner-hero { min-height: clamp(300px, 36vh, 420px); }
.inner-hero .hero-copy { padding-block: 44px; }
.inner-hero h1 { font-size: clamp(40px, 3.2vw, 60px); }
.inner-hero .hero-copy > p:not(.eyebrow):not(.breadcrumb) { font-size: 17px; max-width: min(48ch, 46%); }
.breadcrumb { font-size: 13px; line-height: 1.6; }
.section { padding-block: 44px; }
.home-categories { padding-block: 44px; }
.home-categories h2, .featured h2 { font-size: clamp(32px, 2.6vw, 44px); }
.home-categories .category-grid { gap: 30px 28px; }
.category-card { font-size: 16px; }
.featured { padding-block: 44px; }
.product-card h3 { font-size: 17px; }
.product-card .text-link { font-size: 14px; min-height: 40px; }
.home-season { width: calc(100% - 2 * var(--page-gutter)); max-width: 1440px; margin-inline: auto; }
.home-season > .crop { min-height: 370px; }
.split-copy, .home-season .split-copy { padding: 40px 48px; }
.detail-home { gap: 56px; padding-block: 32px; }
.detail-home h2 { font-size: clamp(32px, 2.6vw, 44px); }
.detail-table > div { font-size: 15px; }
.detail-table p { font-size: 14px; }
.inspiration-home h2, .buying-home h2 { font-size: clamp(32px, 2.5vw, 42px); }
.tree-home { width: calc(100% - 2 * var(--page-gutter)); max-width: var(--content-width); margin: 24px auto; }
.tree-home h2, .tree-home p { white-space: normal; }
.tree-home .split-copy { padding: 32px 40px; }
.buying-home { padding-block: 32px; }
.cta { padding: 32px max(var(--page-gutter), calc((100% - var(--content-width)) / 2)); }
.cta h2 { font-size: clamp(28px, 2.25vw, 38px); }

/* Product information and purchasing actions fit together on a desktop screen. */
.detail-page { padding-top: 30px; }
.detail-page > .breadcrumb { margin-bottom: 26px; }
.product-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; margin: 0 0 44px; align-items: start; }
.product-main-photo { height: clamp(420px, 52vh, 600px); aspect-ratio: auto; }
.product-main-photo > .crop { width: 100%; height: 100%; aspect-ratio: auto; }
.thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.specs > [hidden] { display: none !important; }
.thumbs button { flex: 0 0 clamp(76px, 6vw, 104px); min-width: 0; padding: 0; aspect-ratio: 1; }
.thumbs .crop { height: 100%; width: 100%; }
.product-copy h1, .tree-detail .product-copy h1 { font-size: clamp(36px, 2.6vw, 48px); line-height: 1.08; margin: 2px 0 14px; }
.product-copy .illustrative { font-size: 13px; line-height: 1.5; margin: 0 0 14px; }
.product-description p { font-size: 16px; line-height: 1.65; margin: 0 0 20px; max-width: 60ch; }
.product-copy fieldset { margin: 18px 0; padding: 16px 0 8px; }
.product-copy legend { font-size: 14px; margin-bottom: 12px; }
.product-copy .colour-grid { gap: 10px; }
.colour-button { width: 36px; height: 36px; min-height: 36px; }
.product-copy .demo-note { font-size: 12px; line-height: 1.5; margin-top: 10px; }
.quantity-row { margin: 20px 0; font-size: 15px; }
.stepper { height: 44px; font-size: 15px; }
.product-actions { gap: 12px; margin: 24px 0; }
.product-actions > * { font-size: 15px; min-height: 48px; padding: 12px; }
.specs > div { font-size: 14px; padding: 12px 0; grid-template-columns: 1fr 1.4fr; }
.tree-detail .product-detail { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.tree-detail .product-main-photo { width: 100%; height: clamp(540px, 65vh, 740px); aspect-ratio: auto; }
.tree-detail .product-actions .button { font-size: 15px; }
.tree-detail .product-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.tree-detail .product-copy > * { grid-column: 1 / -1; }
.tree-detail .product-copy > fieldset:has([data-option-group]) { grid-column: span 1; margin-block: 10px; padding-block: 12px; }
.tree-detail .option-buttons { gap: 8px; }
.tree-detail .option-buttons button { font-size: 13px; min-height: 44px; padding: 8px; }
.studio-preview { padding: 28px; margin: 40px 0; }
.studio-preview h2 { font-size: clamp(28px, 2.3vw, 40px); }
.studio-preview .heading-row { padding-inline: 0; }
.studio-preview-grid { font-size: 17px; }

.tabs > * { font-size: 15px; }
.catalog-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 36px; }
.filters { padding: 24px; }
.filters legend { font-size: 17px; }
.filters label { font-size: 14px; }
.catalog-tools input, .catalog-tools select { font-size: 15px; }
.catalog-grid { gap: 32px 24px; }
.catalog-grid .product-card h3 { font-size: 25px; }
.card-actions { flex-wrap: wrap; }
.card-actions .button, .card-actions .text-link { font-size: 13px; }
.card-actions .button { min-height: 44px; }
.form-layout { gap: 64px; margin-block: 40px; }
.contact-layout { gap: 48px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.topic { gap: 24px; grid-template-columns: minmax(80px, 28%) minmax(0, 1fr); }
.topic h3 { font-size: 28px; }
.topic p { font-size: 15px; }
.guide-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; }
.inner.policy { max-width: 850px; }
.policy p { font-size: 17px; }
.search-hero { min-height: 280px; }
.search-hero .hero-copy { padding-block: 34px; }
.search-results .catalog-layout { grid-template-columns: 210px minmax(0, 1fr); }
.search-results .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.search-results .search-title { flex-wrap: wrap; }
.search-section .search-bar .input { font-size: 17px; }
.studio-grid { grid-template-columns: minmax(200px, 240px) minmax(0, 1fr) minmax(260px, 300px); }
.studio-top { max-width: 1600px; margin-inline: auto; flex-wrap: wrap; }
.studio-top h1 { font-size: 36px; }
.studio-tools { max-width: calc(100% - 20px); }
.studio-tools button { min-width: 0; }
.studio-view-tools { flex-wrap: wrap; }

@media (min-width: 2000px) {
  :root { --content-width: 1440px; }
}

/* The navigation switches before its labels collide. */
@media (max-width: 1100px) {
  .site > * { font-size: 18px; }
  #header { height: 76px; gap: 16px; }
  #header nav { display: none; }
  #header .quote { margin-left: auto; }
  .mobile-open { display: block; width: 44px; height: 44px; padding: 0; border: 0; font-size: 24px; }
  .mega-panel { display: none !important; }
  .catalog-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 24px; }
  .filters { padding: 18px; }
  .catalog-grid { gap: 24px 18px; }
  .catalog-grid .product-card h3 { font-size: 23px; }
  .card-actions { display: block; }
  .card-actions .button { width: 100%; }
  .studio-grid { grid-template-columns: 200px minmax(0, 1fr); }
  .studio-controls { grid-column: 1 / -1; }
  .studio-preview-grid { grid-template-columns: 24% 76%; }
  .studio-preview-list { grid-column: 1 / -1; }
  .studio-preview-grid > .crop { min-height: 360px; }
  .info-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .info-strip > div:first-child { grid-column: 1 / -1; }
  .search-results .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search-results .search-page-card { grid-column: span 1; }
  .tree-home .split-copy, .home-season .split-copy { padding: 30px; }
  .tree-home h2 { font-size: 30px; }
  .tree-home p { font-size: 15px; }
}

@media (max-width: 1000px) {
  .product-detail, .tree-detail .product-detail { grid-template-columns: minmax(0, 1fr) !important; gap: 32px; }
  .product-detail > div:first-child { width: 100%; max-width: 600px; margin-inline: auto; }
  .product-main-photo, .tree-detail .product-main-photo { height: auto; aspect-ratio: 1.1; }
  .tree-detail .product-main-photo { aspect-ratio: .85; }
  .product-copy h1, .tree-detail .product-copy h1 { font-size: 38px; }
  .product-copy { max-width: 680px; width: 100%; margin-inline: auto; }
  .form-layout, .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  #main[data-page=enquiry] .selection-panel { order: -1; }
  .form-layout > div, .form-layout > aside { width: 100%; }
  .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial .split, .editorial .split.reverse { gap: 28px; }
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .guide-nav { display: flex; overflow-x: auto; gap: 12px; border: 0; padding: 0 0 8px; }
  .guide-nav a { flex: 0 0 190px; font-size: 16px; }
}

@media (max-width: 900px) {
  :root { --page-gutter: 28px; }
  .catalog-layout, .search-results .catalog-layout { display: block; }
  .catalogue-form .filter-open { display: inline-flex; margin-bottom: 16px; }
  .catalogue-form .filters { display: none; }
  .catalogue-form .filters.visible { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
  .catalogue-form .filters fieldset { margin: 0; }
  .catalog-grid, .search-results .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-results .filters { display: flex; overflow-x: auto; gap: 18px; margin-block: 24px; border: 0; padding: 0; }
  .search-results .filters > * { flex-shrink: 0; }
  .detail-home { gap: 28px; }
  .detail-home h2, .split h2 { font-size: 34px; }
  .detail-table > div { grid-template-columns: 1fr; gap: 8px; }
  .tree-home .split-copy, .home-season .split-copy { padding: 24px; }
  .home-season > .crop { min-height: 340px; }
  .split-copy { padding: 28px; }
  .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .studio-canvas { order: -1; }
  .studio-canvas > .crop { min-height: 480px; }
  .studio-library { border-right: 0; }
  .library-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .studio-controls { grid-column: auto; }
  .studio-top > .text-link { display: none; }
  .cta { flex-wrap: wrap; }
  .hero h1 { max-width: 56%; }
  .hero-copy > * { max-width: 51%; }
}

@media (max-width: 700px) {
  :root { --page-gutter: 20px; }
  .site > * { font-size: 16px; }
  #header { height: 72px; padding-inline: 18px; gap: 8px; }
  #header > .brand { font-size: clamp(14px, 4.2vw, 17px); }
  #header .quote { font-size: 0; width: 40px; min-width: 40px; min-height: 40px; padding: 0; }
  .mobile-open { width: 44px; min-width: 44px; height: 44px; }
  #footer { display: block; padding: 28px 20px; }
  #footer .brand { font-size: 18px; }
  #footer nav { font-size: 12px; gap: 16px 24px; }
  .hero-copy, .inner-hero .hero-copy { display: block; padding: 28px 0 270px; min-height: 0; }
  .hero-copy > *, .hero h1 { max-width: 100%; }
  .hero h1, .inner-hero h1 { font-size: 36px; }
  .hero p:not(.eyebrow):not(.breadcrumb), .inner-hero .hero-copy > p:not(.eyebrow):not(.breadcrumb) { max-width: 100%; font-size: 15px; }
  .inner-hero { min-height: 480px; }
  .hero-art { height: 250px; }
  .home-hero { min-height: 520px; }
  .home-hero .hero-copy { min-height: 520px; padding: 76px 0 40px; display: flex; }
  .home-hero h1 { font-size: clamp(30px, 8.5vw, 36px); max-width: 230px; }
  .home-hero p:not(.eyebrow):not(.breadcrumb) { font-size: 14px; max-width: 235px; }
  .home-hero .hero-art { width: 70%; height: 100%; }
  .home-hero .hero-actions { max-width: 240px; }
  .hero-actions .button { font-size: 13px; min-height: 46px; }
  .home-categories, .featured { padding-block: 30px; }
  .home-categories h2, .featured h2, .inspiration-home h2, .buying-home h2 { font-size: 29px; }
  .home-categories .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .category-card { font-size: 13px; }
  .product-card h3 { font-size: 15px; }
  .product-card .text-link { font-size: 12px; min-height: 40px; }
  .home-season, .tree-home { width: 100%; margin: 0; }
  .home-season > .crop { min-height: 0; }
  .home-season .split-copy, .tree-home .split-copy, .split-copy { padding: 28px 20px; }
  .split h2, .detail-home h2 { font-size: 31px; }
  .detail-home { padding-block: 28px; }
  .detail-table > div { grid-template-columns: .8fr 1.2fr; font-size: 13px; }
  .detail-table p { font-size: 12px; }
  .section { padding-block: 28px; }
  .cta { display: block; padding: 28px 20px; }
  .cta h2 { font-size: 28px; }
  .detail-page { padding-top: 22px; }
  .detail-page > .breadcrumb { font-size: 11px; margin-bottom: 20px; }
  .product-detail { gap: 28px; margin-bottom: 28px; }
  .product-copy h1, .tree-detail .product-copy h1 { font-size: 34px; }
  .product-description p { font-size: 15px; }
  .product-copy .illustrative { font-size: 12px; }
  .product-copy .colour-grid { gap: 12px; }
  .tree-detail .product-copy > fieldset:has([data-option-group]) { grid-column: 1 / -1; }
  .colour-button { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
  .thumbs button { flex-basis: 76px; }
  .product-actions { flex-direction: column; gap: 12px; }
  .product-actions > * { font-size: 14px; min-height: 48px; }
  .specs > div { font-size: 13px; }
  .studio-preview { padding: 20px 12px; margin: 28px 0; }
  .studio-preview h2 { font-size: 28px; }
  .studio-preview-grid { font-size: 15px; }
  .studio-preview-grid > .crop { min-height: 260px; }
  .studio-preview-list { padding: 18px 5px; }
  .tabs > * { font-size: 12px; }
  .catalog-tools { flex-wrap: wrap; }
  .catalog-tools input { width: 100%; flex-basis: 100%; font-size: 15px; }
  .catalog-tools select { max-width: none; flex: 1; font-size: 14px; }
  .catalog-tools .button { font-size: 14px; min-height: 44px; }
  .catalog-grid { gap: 26px 14px; }
  .catalog-grid .product-card h3 { font-size: 22px; }
  .card-actions .text-link, .card-actions .button { font-size: 12px; }
  .catalogue-form .filters.visible { display: block; }
  .catalogue-form .filters fieldset { margin-bottom: 20px; }
  .form-layout { margin-block: 28px; gap: 28px; }
  .form-layout h2 { font-size: 29px; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .topic { grid-template-columns: 30% minmax(0, 1fr); gap: 16px; }
  .topic h3 { font-size: 23px; }
  .topic p { font-size: 13px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-layout { gap: 24px; }
  .guide-nav a { flex-basis: 160px; font-size: 14px; }
  .policy p { font-size: 16px; }
  .search-hero { min-height: 205px; }
  .search-hero .hero-copy { padding: 24px 0 38px; }
  .search-hero .hero-art { height: 100%; }
  .search-hero .hero-copy > p { max-width: 85%; font-size: 13px; }
  .search-section .search-bar .input { font-size: 15px; }
  .search-results .search-page-card { grid-column: 1 / -1; }
  .studio-top { padding: 20px; gap: 14px; }
  .studio-top h1 { font-size: 28px; width: 100%; }
  .studio-top .input { max-width: none; width: 100%; flex-basis: 100%; font-size: 16px; }
  .studio-top .button { flex: 1; font-size: 13px; }
  .studio-canvas > .crop { min-height: 370px; }
  .library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
