:root {
  color-scheme: light;
  --ink: #172532;
  --ink-soft: #304150;
  --paper: #f4f0e8;
  --warm: #fffaf1;
  --stone: #ded7cb;
  --olive: #5f6a4e;
  --olive-dark: #3f4938;
  --clay: #b08467;
  --brass: #b38d4e;
  --blue: #526779;
  --blue-dark: #223141;
  --line: rgba(23, 37, 50, 0.18);
  --white-line: rgba(255, 250, 241, 0.24);
  --max: 1180px;
  --pad: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--warm);
  letter-spacing: 0;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 18px;
  left: 50%;
  width: min(calc(100% - 32px), 1240px);
  min-height: 58px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 10px 12px 10px 18px;
  color: var(--warm);
  background: rgba(23, 37, 50, 0.18);
  border: 1px solid rgba(255, 250, 241, 0.22);
  border-radius: 8px;
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  transition: background 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease);
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 250, 241, 0.86);
  border-color: rgba(23, 37, 50, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.brand__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
}

.site-nav a {
  opacity: 0.82;
  transition: opacity 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
}

.icon-button,
.primary-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 14px 0 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.icon-button {
  font-size: 0.85rem;
}

.icon-button svg,
.primary-link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 250ms var(--ease);
}

.icon-button:hover svg,
.primary-link:hover svg {
  transform: translate(2px, -2px);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 128px var(--pad) 72px;
  color: var(--warm);
  isolation: isolate;
}

.hero__media,
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 800ms var(--ease), transform 1200ms var(--ease);
}

.hero__image.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero__shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 27, 34, 0.86), rgba(18, 27, 34, 0.52) 42%, rgba(18, 27, 34, 0.12) 100%),
    linear-gradient(0deg, rgba(18, 27, 34, 0.36), rgba(18, 27, 34, 0));
}

.hero__content {
  width: min(680px, 100%);
  margin-left: max(0px, calc((100vw - var(--max)) / 2));
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: currentColor;
  opacity: 0.72;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 7.4rem;
  line-height: 0.9;
  font-weight: 400;
}

.hero__lead {
  max-width: 610px;
  margin: 30px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  line-height: 1.28;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.primary-link {
  background: var(--warm);
  color: var(--ink);
  border-color: transparent;
}

.secondary-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid currentColor;
  opacity: 0.9;
}

.hero__selector {
  position: absolute;
  right: max(var(--pad), calc((100vw - var(--max)) / 2));
  bottom: 38px;
  width: min(470px, calc(100% - 48px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--white-line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 250, 241, 0.08);
  backdrop-filter: blur(16px);
}

.hero__selector button {
  min-height: 76px;
  border: 0;
  padding: 14px;
  text-align: left;
  color: var(--warm);
  background: rgba(23, 37, 50, 0.12);
  cursor: pointer;
}

.hero__selector button.is-active {
  background: rgba(255, 250, 241, 0.2);
}

.hero__selector span,
.hero__selector strong {
  display: block;
}

.hero__selector span {
  margin-bottom: 8px;
  font-size: 0.75rem;
  opacity: 0.64;
}

.hero__selector strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 400;
}

.intro-band {
  padding: 46px var(--pad);
  background: var(--ink);
  color: var(--warm);
}

.intro-band p {
  width: min(var(--max), 100%);
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  line-height: 1.18;
}

.section {
  padding: 112px var(--pad);
}

.section__label,
.section__heading,
.manifesto__grid,
.belief,
.ritual,
.materials,
.contact {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section__label {
  margin-bottom: 36px;
  color: var(--olive);
}

.section__heading {
  max-width: 820px;
  margin-bottom: 46px;
  text-align: center;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.75rem;
  line-height: 1.02;
  font-weight: 400;
}

h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  line-height: 1.12;
  font-weight: 400;
}

.manifesto__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 68px;
  align-items: center;
}

.manifesto__copy p,
.belief__copy p,
.ritual__copy p,
.materials__copy p,
.contact__content p {
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.75;
}

.portrait-image,
.ritual__media,
.belief__image,
.materials__board {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--stone);
}

.portrait-image {
  aspect-ratio: 4 / 5;
}

.portrait-image img,
.ritual__media img,
.belief__image img,
.materials__board img,
.collection-item img,
.quote-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section--dark {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
  background: var(--olive-dark);
  color: var(--warm);
}

.belief__image {
  justify-self: end;
  width: min(470px, 100%);
  aspect-ratio: 4 / 5;
}

.belief__copy {
  max-width: 620px;
}

.belief__copy p,
.section--dark .eyebrow {
  color: rgba(255, 250, 241, 0.78);
}

.pillars {
  background:
    linear-gradient(rgba(255, 250, 241, 0.92), rgba(255, 250, 241, 0.92)),
    url("assets/warm-home-collage.jpg") center / cover;
}

.pillar-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pillar-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.76);
  backdrop-filter: blur(12px);
}

.pillar-card span {
  color: var(--clay);
}

.pillar-card p {
  margin: 26px 0 0;
  color: var(--ink-soft);
  line-height: 1.68;
}

.ritual {
  display: grid;
  grid-template-columns: minmax(310px, 0.85fr) minmax(0, 1fr);
  gap: 68px;
  align-items: center;
}

.ritual__media {
  aspect-ratio: 4 / 5.2;
}

.ritual-steps {
  margin-top: 38px;
  border-top: 1px solid var(--line);
}

.ritual-steps div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.ritual-steps span {
  color: var(--olive);
}

.ritual-steps p {
  margin: 0;
}

.section--blue {
  background: var(--blue-dark);
  color: var(--warm);
}

.section--blue .eyebrow {
  color: rgba(255, 250, 241, 0.7);
}

.collection-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.collection-item {
  min-height: 520px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 241, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.06);
}

.collection-item img {
  aspect-ratio: 4 / 4.2;
}

.collection-item div {
  padding: 24px;
}

.collection-item span {
  display: block;
  margin-bottom: 14px;
  color: rgba(255, 250, 241, 0.7);
}

.materials {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 70px;
  align-items: center;
}

.materials__board {
  aspect-ratio: 4 / 5.2;
}

.quote-section {
  position: relative;
  min-height: 72svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--warm);
  isolation: isolate;
}

.quote-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(23, 37, 50, 0.5);
}

.quote-section img {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.quote-section__content {
  width: min(920px, calc(100% - 48px));
  text-align: center;
}

.quote-section__content p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  line-height: 1.08;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: 70px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(23, 37, 50, 0.18);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--warm);
  outline: none;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(82, 103, 121, 0.14);
}

.primary-link--dark {
  width: fit-content;
  border: 0;
  background: var(--ink);
  color: var(--warm);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px var(--pad);
  color: var(--warm);
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  font-family: Georgia, "Times New Roman", serif;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-nav {
    display: none;
  }

  .icon-button {
    justify-self: end;
  }

  .hero h1 {
    font-size: 5.4rem;
  }

  .hero__lead {
    font-size: 1.35rem;
  }

  .hero__selector {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 46px;
    width: 100%;
  }

  .hero {
    display: block;
  }

  .manifesto__grid,
  .section--dark,
  .ritual,
  .materials,
  .contact {
    grid-template-columns: 1fr;
  }

  .belief__image {
    justify-self: start;
    width: min(520px, 100%);
  }

  .pillar-grid,
  .collection-grid {
    grid-template-columns: 1fr;
  }

  .pillar-card {
    min-height: 240px;
  }

  .collection-item {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  :root {
    --pad: 18px;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 54px;
    padding: 8px 10px;
  }

  .brand__name {
    display: none;
  }

  .icon-button {
    min-height: 38px;
    padding: 0 12px;
  }

  .icon-button span {
    display: none;
  }

  .hero {
    min-height: 90svh;
    padding-top: 104px;
    padding-bottom: 44px;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(18, 27, 34, 0.58), rgba(18, 27, 34, 0.86)),
      linear-gradient(90deg, rgba(18, 27, 34, 0.42), rgba(18, 27, 34, 0.1));
  }

  .hero h1 {
    font-size: 3.8rem;
  }

  .hero__lead,
  .intro-band p {
    font-size: 1.28rem;
  }

  .hero__selector {
    grid-template-columns: 1fr;
  }

  .hero__selector button {
    min-height: 58px;
  }

  .section {
    padding: 72px var(--pad);
  }

  h2 {
    font-size: 2.3rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  .manifesto__grid,
  .section--dark,
  .ritual,
  .materials,
  .contact {
    gap: 34px;
  }

  .ritual-steps div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quote-section {
    min-height: 58svh;
  }

  .quote-section__content p {
    font-size: 2.25rem;
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
