/* 	Base Files
-------------------------------------------------- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

html {
  box-sizing: border-box;
}

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

:root {
  --color-bright-dark: #1f2e3d;
  --color-bright-red: #cc2833;
  --color-bright-mint: #a5d4c8;
  --color-bright-maroon: #561e21;
  --color-bright-green: #336e33;
  --color-bright-blue: #2b4578;
  --color-simple-black: #231f20;
  --color-simple-light: #efefeb;
  --color-simple-brown: #5f4c42;
  --color-simple-tan: #d8cec5;
  --color-simple-gray: #606670;
}

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

body {
  background: var(--color-bright-dark);
}

main {
  margin: 0 auto;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

@font-face {
  font-family: "Brownstone";
  src: url("/BNBrownstone.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
body {
  margin: 0;
  font-family: "PT Serif", Georgia, serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "TASA Orbiter", sans-serif;
  font-weight: normal;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vmin, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vmin, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vmin, 1.75rem);
}

p {
  font-size: clamp(1rem, 2vmin, 1.25rem);
}

.font--brownstone {
  font-family: "Brownstone", serif;
  font-weight: normal;
}

.font--tasa {
  font-family: "TASA Orbiter", sans-serif;
  font-weight: normal;
}

.label {
  font-size: clamp(1rem, 2vmin, 2rem);
  font-weight: 900;
  font-family: "TASA Orbiter", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.125;
}

.font--big-sans {
  font-size: clamp(2rem, 7.5vmin, 8rem);
  line-height: 1;
  font-family: "TASA Orbiter", sans-serif;
  font-weight: 700;
}

.palette {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 1;
  max-width: 20rem;
  margin: 0 auto;
  overflow: hidden;
}

.palette__cell {
  min-height: 4rem;
}

.palette__center {
  position: absolute;
  inset: 25%;
  z-index: 1;
}

.palette--bright .palette__cell--tl {
  background: var(--color-bright-dark);
}
.palette--bright .palette__cell--tr {
  background: var(--color-bright-red);
}
.palette--bright .palette__cell--bl {
  background: var(--color-bright-mint);
}
.palette--bright .palette__cell--br {
  background: var(--color-bright-maroon);
}
.palette--bright .palette__center {
  background: var(--color-bright-green);
}

.palette--simple .palette__cell--tl {
  background: var(--color-simple-black);
}
.palette--simple .palette__cell--tr {
  background: var(--color-simple-light);
}
.palette--simple .palette__cell--bl {
  background: var(--color-simple-brown);
}
.palette--simple .palette__cell--br {
  background: var(--color-simple-tan);
}
.palette--simple .palette__center {
  background: var(--color-simple-gray);
}

.color-demo {
  margin: 2rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--color-simple-gray);
}

.color-demo__heading {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.example-card {
  padding: 1rem 1.25rem;
  margin: 0.75rem 0;
  border-radius: 0.25rem;
}

.example-card--bright-dark {
  background: var(--color-bright-dark);
  color: var(--color-bright-mint);
}

.example-card--bright-maroon {
  background: var(--color-bright-maroon);
  color: var(--color-bright-mint);
}

.example-card--simple {
  background: var(--color-simple-tan);
  color: var(--color-simple-black);
}

.example-card--simple-invert {
  background: var(--color-simple-black);
  color: var(--color-simple-light);
}

.example-card a {
  color: inherit;
  text-decoration: underline;
}

.example-card code {
  font-family: "TASA Orbiter", sans-serif;
  font-size: 0.85em;
  font-weight: 500;
}

main {
  width: 100%;
}

.block,
.hero {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero {
  min-height: calc(200svh - 31vw);
  text-align: center;
}

.block {
  position: relative;
  z-index: 1;
}

.hero {
  background: var(--color-bright-dark);
  color: var(--color-simple-light);
  position: relative;
}
.hero::before {
  background: radial-gradient(var(--color-bright-blue), 25%, transparent 0);
  background-position: top;
  background-size: 6px 6px;
  bottom: 0;
  top: 0;
  right: 0;
  content: "";
  left: 0;
  filter: blur(1px);
  pointer-events: none;
  position: fixed;
  z-index: 0;
}
.hero::after {
  background: linear-gradient(to top, var(--color-bright-dark), transparent);
  bottom: 0;
  top: 0;
  right: 0;
  content: "";
  left: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.hero__bg {
  --hero-bg-progress: 0;
  --hero-bg-scale: 1;
  color: color-mix(in srgb, var(--color-bright-blue) calc((1 - var(--hero-bg-progress)) * 100%), var(--color-bright-mint));
  overflow: hidden;
  position: absolute;
  top: -20svh;
  left: 0;
  right: 0;
  height: 100svh;
  z-index: 0;
  transform: translateY(calc(var(--hero-bg-progress) * 120%));
}
@media (min-aspect-ratio: 1/1) {
  .hero__bg {
    top: 0;
    transform: unset;
  }
}

.hero__bg svg {
  width: calc(100% + 25vw);
  height: 100%;
  object-fit: cover;
  transform: scale(var(--hero-bg-scale));
  transform-origin: 50% 50%;
  margin-right: -25vw;
}
@media (min-aspect-ratio: 1/1) {
  .hero__bg svg {
    transform-origin: 50% 20%;
    margin-right: 0;
    width: 100%;
  }
}

.hero__title {
  --hero-title-chars: 10;
  font-family: "Brownstone", serif;
  color: var(--color-bright-red);
  font-size: clamp(4rem, 100vw / (var(--hero-title-chars) * 0.275), 200rem);
  line-height: 0.75;
  position: relative;
}

.hero__title-container {
  display: flex;
  height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  overflow: hidden;
  z-index: 2;
}

.hero__tagline {
  margin: 0;
  font-family: "TASA Orbiter", sans-serif;
  color: var(--color-simple-light);
  position: relative;
  z-index: 2;
  line-height: 1;
  max-width: 10em;
}

.hero__tagline-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100svh;
  margin-top: -100svh;
  position: sticky;
  top: 0;
  z-index: 2;
}

.hero__endline-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: calc(100svh - 31vw);
  padding: 4rem;
}

.hero__endline {
  position: sticky;
  top: 0;
  z-index: 2;
  font-weight: 600;
}

.block__headline {
  margin: 0;
  font-family: "Brownstone", serif;
  font-size: clamp(3rem, 15vmin, 10rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.block__headline--red {
  color: var(--color-bright-red);
}

.block__headline--dark {
  color: var(--color-bright-dark);
}

.block__headline--light {
  color: var(--color-simple-light);
  font-size: clamp(2rem, 10vmin, 7rem);
  margin-top: 0.4em;
}

.block__headline--light.block__headline--light {
  font-family: "Brownstone", serif;
}

.block__headline--light-tasa {
  font-family: "TASA Orbiter", sans-serif;
  font-weight: 700;
  color: var(--color-simple-light);
  font-size: clamp(2rem, 8vmin, 5rem);
}

.block__prose {
  max-width: 42rem;
  margin: 2em auto 0;
}

.block__text:last-child {
  margin-bottom: 0;
}

.block__text--display {
  font-family: "Brownstone", serif;
  letter-spacing: 0.05em;
}

.block__text--sans {
  font-family: "TASA Orbiter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.block__prose--dark .block__text {
  color: var(--color-bright-dark);
}

.block--tan {
  background: var(--color-simple-tan);
  color: var(--color-bright-dark);
}

.block--mint {
  background: var(--color-bright-mint);
  color: var(--color-bright-dark);
}

.block--dark {
  background: var(--color-bright-dark);
  color: var(--color-simple-light);
}

.block--green {
  background: var(--color-bright-green);
  color: var(--color-simple-light);
}

.block--green .block__wink {
  color: var(--color-simple-light);
}

.block--light {
  background: var(--color-simple-light);
  color: var(--color-bright-dark);
}

.block--red {
  background: var(--color-bright-red);
  color: var(--color-simple-light);
}

.block--why {
  color: var(--color-bright-red);
  display: flex;
  flex-direction: column;
  position: relative;
}
.block--why > * {
  position: relative;
  z-index: 1;
}
.block--why::after {
  content: "";
  position: absolute;
  top: 2rem;
  left: 2rem;
  right: 2rem;
  bottom: 2rem;
  border-top: 4px solid var(--color-bright-red);
  border-bottom: 4px solid var(--color-bright-red);
  pointer-events: none;
}

.block--why .block__img {
  border: 4px solid var(--color-bright-red);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: auto;
  height: 25%;
  object-fit: cover;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 40%;
  z-index: 0;
  border-radius: 50%;
}

.block--why .block__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.block--why .block__text {
  color: var(--color-bright-red);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: clamp(3rem, 32.5vmin, 200rem);
  min-height: 100vmin;
  line-height: 1;
  font-family: "Brownstone", serif;
  letter-spacing: -0.01em;
  padding: clamp(0.75em, 20vmin, 1em) 0.25em;
}

.block--bedroom {
  background: var(--color-bright-maroon);
  color: var(--color-simple-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vmin;
  gap: 4rem;
  padding: 4rem 2rem;
  text-align: center;
}

.block--bedroom .block__intro .label {
  max-width: 8em;
}

.block--bedroom .block__text--display {
  --text-display-chars--bedroom: 11;
  color: var(--color-bright-red);
  font-size: clamp(4rem, 100vw / (var(--text-display-chars--bedroom) * 0.275), 200rem);
  line-height: 0.75;
  letter-spacing: 0;
}

.block--bedroom .block__wink {
  background: var(--color-simple-light);
  color: var(--color-bright-maroon);
  font-family: "TASA Orbiter", sans-serif;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transform: rotate(90deg);
  text-align: center;
}

.block--description {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vmin;
  gap: 4rem;
  padding: 4rem 3rem;
  text-align: left;
}
