/* Halden: the first screen is composed for a 1440 x 852 viewport (the coverflow
   preview); the rest of the page and the phone layout follow it. */

:root {
  --paper: #f5f2ec;
  --sand: #ebe5da;
  --ink: #2a2926;
  --ink-soft: #5f5b54;
  --ink-mute: #8a857b;
  --rule: #ddd6ca;
  --oak: #a98258;
  --sage: #8e958a;
  --bar: #2e2d2a;
  --bar-ink: #e7e2d8;

  --ui: "Manrope", "Inter", system-ui, sans-serif;
  --serif: "Fraunces", "Newsreader", Georgia, serif;

  --gutter: 40px;
}

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

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

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

a { color: inherit; text-decoration: none; }
p, h2, h3, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--oak); outline-offset: 3px; }
[id] { scroll-margin-top: 24px; }

/* Announcement bar */
.announce {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 36px;
  padding: 0 var(--gutter);
  background: var(--bar);
  color: var(--bar-ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.announce__side { color: #b9b3a7; }
.announce__side--end { text-align: right; }

/* Header */
.header {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.header__nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.header__nav a { position: relative; padding: 6px 0; }
.header__nav a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
}

.logo {
  font-family: var(--ui);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin-right: -0.34em; /* optically recentre tracked caps */
}

.header__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}
.header__link { color: var(--ink-soft); }
.header__link:first-child { margin-right: 4px; }

.icon {
  position: relative;
  display: inline-flex;
  width: 20px;
  height: 20px;
}
.icon svg {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon__count {
  position: absolute;
  top: -6px;
  right: -9px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}
.icon__count.is-bump { animation: bump 0.45s cubic-bezier(0.2, 0.7, 0.1, 1); }
@keyframes bump { 40% { transform: scale(1.35); background: var(--oak); } }

.menu-toggle { display: none; }

/* First screen: what the announcement and header leave of the viewport */
.fold {
  display: flex;
  flex-direction: column;
  height: clamp(600px, calc(100svh - var(--studio-bar-h, 0px) - 36px - 76px), 980px);
}

/* Intro band */
.intro {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 16px;
  align-items: end;
  padding: 40px var(--gutter) 44px;
}
.intro__lead { grid-column: 1 / span 7; }
.intro__aside { grid-column: 8 / span 5; }

.eyebrow {
  margin-bottom: 22px;
  color: var(--ink-mute);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 66px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: -12px; /* sit the CTA row on the headline baseline */
}
h1 em { font-style: italic; }

.intro__aside p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

.intro__actions,
.showroom__actions {
  display: flex;
  align-items: baseline;
  gap: 28px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 24px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.textlink {
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Feature tiles */
.feature {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  flex: 1;
  gap: 16px;
  min-height: 0;
  padding: 0 var(--gutter);
}

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--sand);
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.tile--wide img { object-position: 50% 70%; }

.tile__label {
  position: absolute;
  top: 32px;
  left: 32px;
  display: flex;
  flex-direction: column;
  max-width: 340px;
  color: var(--ink);
}
.tile__label--light { color: #f7f3ec; }

.tile__kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}
.tile__title {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.tile__meta {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.85;
}
.tile__cta {
  align-self: flex-start;
  margin-top: 16px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 600;
}

/* Below the first screen */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.section-head h2,
.showroom h2 {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.section-head h2 em,
.showroom h2 em { font-style: italic; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head--split > p { max-width: 420px; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }

/* New in */
.products { padding: 104px var(--gutter) 112px; }
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 16px;
  margin-top: 48px;
}
.product__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.1, 1); }
.product:hover .product__media img { transform: scale(1.03); }
.product__kicker {
  margin-top: 18px;
  color: var(--ink-mute);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.product__name {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.product__meta { margin-top: 4px; color: var(--ink-soft); font-size: 13.5px; }
.product__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.product__price { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.product__add {
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 600;
}

/* Materials */
.materials { padding: 104px var(--gutter) 112px; background: var(--sand); }
.materials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 56px;
}
.material { padding-top: 28px; border-top: 1px solid rgba(42, 41, 38, 0.18); }
.material__swatch {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(42, 41, 38, 0.08);
}
.material__swatch--oak {
  background:
    repeating-linear-gradient(100deg, rgba(120, 82, 44, 0.16) 0 2px, transparent 2px 9px),
    linear-gradient(135deg, #d2ab7e, #b48656);
}
.material__swatch--weave {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55) 0 1.5px, transparent 2px) 0 0 / 7px 7px,
    radial-gradient(circle at 70% 70%, rgba(120, 104, 82, 0.22) 0 1.5px, transparent 2px) 0 0 / 7px 7px,
    #e4dac8;
}
.material__swatch--clay {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), transparent 60%),
    #d8c6a8;
}
.material h3 {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.01em;
}
.material p { max-width: 340px; margin-top: 10px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; }

/* Promises */
.promises {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--rule);
}
.promises li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 32px var(--gutter);
  border-left: 1px solid var(--rule);
}
.promises li:first-child { border-left: 0; }
.promises b { font-size: 14px; font-weight: 600; }
.promises span { color: var(--ink-soft); font-size: 13.5px; }

/* Showroom */
.showroom {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  padding: 112px var(--gutter);
}
.showroom__media { min-height: 560px; overflow: hidden; background: var(--sand); }
.showroom__media img { width: 100%; height: 100%; object-fit: cover; }
.showroom__copy { align-self: center; max-width: 500px; padding: 40px 0 40px 72px; }
.showroom__copy h2 + p { margin-top: 24px; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.showroom__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.showroom__facts dt {
  color: var(--ink-mute);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.showroom__facts dd { margin-top: 8px; font-size: 14px; line-height: 1.6; }
.showroom__actions { margin-top: 32px; }

/* Footer */
.footer { padding: 72px var(--gutter) 40px; background: var(--bar); color: var(--bar-ink); }
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(231, 226, 216, 0.14);
}
.footer .logo { display: inline-block; color: #f5f2ec; }
.footer__brand p { max-width: 320px; margin-top: 18px; color: #b9b3a7; font-size: 14px; line-height: 1.6; }
.footer__links { display: grid; gap: 12px; align-content: start; font-size: 14px; }
.footer__links a:hover { color: #f5f2ec; text-decoration: underline; text-underline-offset: 5px; }
.footer__fine { margin-top: 28px; color: #948e82; font-size: 12.5px; }

/* Narrower windows */
@media (max-width: 1100px) {
  :root { --gutter: 24px; }
  .header__link { display: none; }
  .header__nav { gap: 20px; }
  .intro__lead { grid-column: 1 / -1; }
  .intro__aside { grid-column: 1 / span 8; margin-top: 24px; }
  h1 { font-size: 60px; }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .showroom__copy { padding-left: 40px; }
}

/* Phone: one column, everything reflows */
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .announce { grid-template-columns: 1fr; text-align: center; height: auto; padding: 9px 16px; }
  .announce__side { display: none; }

  .header { grid-template-columns: 1fr auto 1fr; height: 60px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 10px; justify-self: start; font-size: 14px; font-weight: 500; }
  .menu-toggle__bars { display: grid; gap: 5px; width: 18px; }
  .menu-toggle__bars i { display: block; height: 1.5px; background: currentColor; transition: transform 0.3s; }
  .is-open .menu-toggle__bars i:first-child { transform: translateY(3.25px) rotate(45deg); }
  .is-open .menu-toggle__bars i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 40px -28px rgba(42, 41, 38, 0.4);
    font-size: 17px;
  }
  .is-open .header__nav { display: flex; }
  .header__nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .header__nav a.is-current::after { display: none; }
  .logo { font-size: 17px; }
  .header__tools { gap: 20px; }
  .icon--account { display: none; }

  .fold { height: auto; }
  .intro { padding: 32px var(--gutter) 28px; }
  .intro__aside { grid-column: 1 / -1; }
  h1 { font-size: 46px; }
  .feature { grid-template-columns: 1fr; padding: 0 var(--gutter); }
  h1 { margin-bottom: 0; }
  .tile { height: 460px; }
  .tile__label { top: 24px; left: 24px; right: 24px; z-index: 2; }
  /* keep the lamp out from behind the title, and lift the light label off the wall */
  .tile--wide img { object-position: 6% 70%; }
  .tile--wide::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(20, 18, 15, 0.34), transparent 45%); }

  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-head h2, .showroom h2 { font-size: 34px; }
  .products, .materials { padding: 64px var(--gutter) 72px; }
  .products__grid { gap: 32px 12px; margin-top: 32px; }
  .product__name { font-size: 18px; }
  .product__kicker { font-size: 10px; letter-spacing: 0.1em; }
  .product__row { flex-direction: column; gap: 8px; }
  .materials__grid { grid-template-columns: 1fr; gap: 32px; margin-top: 36px; }

  .promises { grid-template-columns: 1fr 1fr; }
  .promises li { padding: 22px var(--gutter); border-top: 1px solid var(--rule); }
  .promises li:nth-child(odd) { border-left: 0; }

  .showroom { grid-template-columns: 1fr; padding: 64px var(--gutter); }
  .showroom__media { min-height: 0; aspect-ratio: 6 / 5; }
  .showroom__copy { max-width: none; padding: 32px 0 0; }
  .showroom__facts { grid-template-columns: 1fr; gap: 18px; }
  .showroom__actions { flex-wrap: wrap; row-gap: 18px; }

  .footer { padding: 56px var(--gutter) 40px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px 20px; padding-bottom: 40px; }
  .footer__brand { grid-column: 1 / -1; }
}
