:root {
  --body-container-break: 600px;
  --body-padding: var(--padding-small) var(--padding-medium);
  --border-radius: 0.75rem;
  --button-line-height: 2.75;
  --font-size-h1: clamp(1.875rem, 4vw, 2.5rem);
  /* 30px to 40px */
  --font-size-h2: clamp(1.375rem, 3.75vw, 2rem);
  /* 22px to 32px */
  --font-size-h3: clamp(1.125rem, 3.25vw, 1.5rem);
  /* 18px to 24px */
  --font-size-h4: clamp(0.938rem, 2.75vw, 1.25rem);
  /* 15px to 20px */
  --font-size-h5: clamp(0.75rem, 2.25vw, 1rem);
  /* 12px to 16px */
  --font-size-h6: clamp(0.6875rem, 1.75vw, 0.75rem);
  /* 11px to 12px */
  --font-size-p: clamp(0.875rem, 1.5vw, 1rem);
  /* 14px to 16px */
  --gap: 1rem;
  --max-width: 1000px;
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='5.27' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  --noise-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  --padding-large: clamp(3rem, 10vw, 4rem);
  --padding-medium: clamp(1.5rem, 10vw, 2.5rem);
  --padding-small: clamp(1rem, 10vw, 1.5rem);
}

@media screen and (prefers-color-scheme: light) {
  :root {
    --color-body-bg: #fff;
    --color-body-text: #000;
    --color-blue: #063e54;
    --color-blue-dark: #085b7c;
    --color-blue-light: #016e99;
    --color-hero-text: #063e54;
    --color-href: #0d5976;
    --color-href-active: #016e99;
    --color-href-hover: #308aad;
    --color-href-visited: #2d647a;
    --color-orange: #905710;
    --color-orange-dark: #897256;
    --color-orange-light: #ac640c;
    --header-bg: #063e54;
    --hero-bg-primary-lr: linear-gradient(160deg, #fffbf0f6, #d5c395de);
    --hero-bg-primary-ud: linear-gradient(
      160deg,
      #d5c395,
      #fffbf0 85%,
      #fffbf0
    );
    --hero-bg-secondary: linear-gradient(to bottom right, #063e54, #016e99);
    --hero-cta-button-active: #2d647a;
    --hero-cta-button-bg: #085b7c;
    --hero-cta-button-hover: #308aad;
    --hero-cta-button-text: #fff;
    --inspiration-bg: #142932;
  }
}

@media screen and (prefers-color-scheme: dark) {
  :root {
    --color-body-bg: #0e0e0e;
    --color-body-text: #fff;
    --color-blue: #324349;
    --color-blue-dark: #344a52;
    --color-blue-light: #4d6d79;
    --color-hero-text: #fff;
    --color-href: #edca7f;
    --color-href-active: #ffae00;
    --color-href-hover: #e8b548;
    --color-href-visited: #c5ad79;
    --color-orange: #8b7355;
    --color-orange-dark: #563f23;
    --color-orange-light: #6c5233;
    --header-bg: #1c1a14;
    --hero-bg-primary-lr: linear-gradient(160deg, #181613ee, #6f502bf3);
    --hero-bg-primary-ud: linear-gradient(to bottom, #494032, #6f502bd8);
    --hero-bg-secondary: linear-gradient(to bottom right, #5e5631, #574b31);
    --hero-cta-button-active: #533f13;
    --hero-cta-button-bg: #7e6020;
    --hero-cta-button-hover: #886210;
    --hero-cta-button-text: #fff;
    --inspiration-bg: #02242f;
  }
}

/** Montserrat Regular **/
@font-face {
  font-family: "Montserrat";
  font-weight: 400;
  font-style: normal;
  src: url("fonts/Montserrat-Regular.woff2") format("woff2"),
    url("fonts/Montserrat-Regular.woff") format("woff");
}

/** Montserrat Regular-Italic **/
@font-face {
  font-family: "Montserrat";
  font-weight: 400;
  font-style: italic;
  src: url("fonts/Montserrat-Italic.woff2") format("woff2"),
    url("fonts/Montserrat-Italic.woff") format("woff");
}

/** Montserrat Bold **/
@font-face {
  font-family: "Montserrat";
  font-weight: 700;
  font-style: normal;
  src: url("fonts/Montserrat-Bold.woff2") format("woff2"),
    url("fonts/Montserrat-Bold.woff") format("woff");
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-body-bg);
  box-sizing: border-box;
  color: var(--color-body-text);
  font-family: Montserrat, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  margin: 0;
  padding: 0;
}

a {
  color: var(--color-href);
  cursor: pointer;
  text-decoration: underline;
}

a:visited {
  color: var(--color-href-visited);
  cursor: pointer;
}

a:hover {
  color: var(--color-href-hover);
  cursor: pointer;
}

a:active {
  color: var(--color-href-active);
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  margin: 1rem 0 0 0;
  padding: 0;
}

p {
  font-size: var(--font-size-p);
  font-weight: 400;
  margin: 1rem 0 0 0;
  padding: 0;
}

.book-is-alive {
  font-style: oblique;
  position: relative;
}

.book-is-alive::after {
  content: "\2122";
  font-size: 75%;
  line-height: 0.5;
  vertical-align: 55%;
}

.button {
  border-radius: var(--border-radius);
  color: white;
  cursor: pointer;
  font-size: var(--font-size-p);
  font-weight: 400;
  line-height: var(--button-line-height);
  padding: calc(var(--font-size-p) * 0.75) calc(var(--font-size-p) * 2);
  text-decoration: none;
  text-transform: uppercase;
}

.button.secondary {
  background: var(--color-orange-light);
  color: white;
}

.button {
  background: var(--color-blue-light);
}

.button:visited,
.button.secondary:visited {
  color: white;
}

.button.secondary:hover {
  background: var(--color-orange);
  color: white;
}

.button:hover {
  background: var(--color-blue);
  color: white;
}

.button.secondary:active {
  background: var(--color-orange-dark);
  color: white;
}

.button:active {
  background: var(--color-blue-dark);
  color: white;
}

.button.small {
  font-size: calc(var(--font-size-p) * 0.75);
  padding: calc(var(--font-size-p) * 0.5) calc(var(--font-size-p) * 1.5);
}

.header {
  background: var(--header-bg);
  color: white;
  container: header-width / inline-size;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 2;
}

.header-container {
  align-content: center;
  display: grid;
  gap: calc(var(--gap) * 0.5) var(--gap);
  margin: 0 auto;
  max-width: var(--max-width);
  padding: var(--body-padding);
}

@container header-width (max-width: 599px) {
  .header-container {
    grid-template-columns: auto;
    grid-template-rows: [logo] auto [nav] auto;
    text-align: center;
  }
}

@container header-width (min-width: 600px) {
  .header-container {
    grid-template-columns: [logo] 1fr [nav] auto;
  }
}

.header-title {
  align-content: center;
  font-weight: 400;
  margin: 0;
  padding: 0;
}

@container header-width (max-width: 599px) {
  .header-title {
    grid-column: 1;
    grid-row: logo;
  }
}

@container header-width (min-width: 600px) {
  .header-title {
    grid-column: logo;
  }
}

.header-title a {
  color: white;
  text-decoration: none;
  transition: text-shadow 2s;
}

.header-title a:visited {
  color: white;
}

header-title a:hover {
  text-shadow: 0 0 2rem white;
  transition: 0.25s;
}

.header-nav {
  align-content: center;
}

@container header-width (max-width: 599px) {
  .header-nav {
    grid-column: 1;
    grid-row: nav;
    margin: 0 auto;
  }
}

@container header-width (min-width: 600px) {
  .header-nav {
    grid-column: nav;
  }
}


.header-nav-list {
  display: flex;
  list-style: none;
  margin: 0.25rem 0 0 0;
  padding: 0;
}


@container header-width (max-width: 349px) {
  .header-nav-list {
    flex-flow: column wrap;
    gap: 3vmax;
  }
}

@container header-width (min-width: 350px) {
  .header-nav-list {
    flex-flow: row nowrap;
    gap: 3vmax;
  }
}

.header-nav-list li {
  margin: 0;
  padding: 0;
}

.header-nav-list li a {
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 0 0.1rem transparent;
  transition: text-shadow 0.75s;
}

.header-nav-list li a:hover {
  text-decoration: underline;
  text-shadow: 0 0 1rem white;
  transition: text-shadow 0.25s;
}

.hero {
  container: hero-width / inline-size;
  display: block;
  height: auto;
  margin: 0;
  position: relative;
}

@media (max-width: 364px) {
  .hero {
    padding: 12rem 0 0 0;
  }
}

@media (min-width: 365px) and (max-width: 849px) {
  .hero {
    padding: 6rem 0 0 0;
  }
}

@media (min-width: 850px) {
  .hero {
    padding: 4rem 0 0 0;
  }
}

.hero-bg-primary {
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: -1;
}

@container hero-width (max-width: 849px) {
  .hero-bg-primary {
    background: var(--hero-bg-primary-ud), url("img/hero-bg.webp");
    background-position: center bottom;
    background-repeat: no-repeat;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    height: clamp(60rem, 250vw, 80rem);
  }
}

@container hero-width (min-width: 850px) {
  .hero-bg-primary {
    background-image: var(--hero-bg-primary-lr), url("img/hero-bg.webp");
    background-size: cover;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    height: clamp(22rem, 43vw, 30rem);
  }
}

.hero-bg-secondary {
  background: var(--hero-bg-secondary);
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: -2;
}

@container hero-width (max-width: 849px) {
  .hero-bg-secondary {
    clip-path: polygon(0 0, 100% 0, 100% 94%, -10% 100%);
    height: clamp(60rem, 250vw, 80rem);
  }
}

@container hero-width (min-width: 850px) {
  .hero-bg-secondary {
    clip-path: polygon(0 0, 100% 0, 100% 90%, -10% 100%);
    height: clamp(22rem, 43vw, 30rem);
  }
}

.hero-container {
  align-content: flex-start;
  display: grid;
  gap: calc(var(--gap) * 0.5);
  margin: 0 auto;
  max-width: var(--max-width);
  padding: var(--padding-medium) var(--padding-medium) 0 var(--padding-medium);
  width: auto;
}

@container hero-width (max-width: 849px) {
  .hero-container {
    grid-template-columns: auto;
    grid-template-rows: [book] 1fr [title] auto [subtitle] auto [button] auto;
  }
}

@container hero-width (min-width: 850px) {
  .hero-container {
    grid-template-columns: [text] minmax(200px, 600px) [book] auto;
    grid-template-rows: [up] minmax(3vw, 2rem) [title] auto [subtitle] auto [button] 1fr;
  }
}

.hero-title {
  color: var(--color-hero-text);
  font-size: clamp(1.85rem, 4vw, 2.25rem);
  padding: 0;
  text-transform: uppercase;
}

@container hero-width (max-width: 849px) {
  .hero-title {
    grid-column: 1;
    grid-row: title / title;
    margin: var(--padding-small) 0 0;
  }
}

@container hero-width (min-width: 850px) {
  .hero-title {
    grid-column: text / text;
    grid-row: title / title;
    margin: 0;
  }
}

.hero-subtitle {
  color: var(--color-hero-text);
  font-size: clamp(1.35rem, 3.75vw, 1.75rem);
  font-weight: 400;
  margin: 0;
  padding: 0;
}

@container hero-width (max-width: 849px) {
  .hero-subtitle {
    grid-column: 1;
    grid-row: subtitle / subtitle;
  }
}

@container hero-width (min-width: 850px) {
  .hero-subtitle {
    grid-column: text / text;
    grid-row: subtitle / subtitle;
  }
}

.hero-cta {
  line-height: var(--button-line-height);
  height: max-content;
  width: max-content;
}

@container hero-width (max-width: 849px) {
  .hero-cta {
    grid-column: 1;
    grid-row: button / button;
    margin: var(--padding-small) auto 0;
  }
}

@container hero-width (min-width: 850px) {
  .hero-cta {
    grid-column: text / text;
    grid-row: button / button;
    margin: var(--padding-small) 0 0;
  }
}

.hero-cta-button {
  background: var(--hero-cta-button-bg);
  color: var(--hero-cta-button-text);
}

.hero-cta-button:visited {
  background: var(--hero-cta-button-bg);
}

.hero-cta-button:hover {
  background: var(--hero-cta-button-hover);
}

.hero-cta-button:active {
  background: var(--hero-cta-button-active);
}

@container hero-width (max-width: 849px) {
  .hero-title,
  .hero-subtitle,
  .hero-cta {
    text-align: center;
  }
}

.hero-book {
  animation: 2s ease-in-out book-reveal;
  align-self: center;
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 420px;
  transform: translateY(0) rotate(0deg);
  transition: 2s;
  width: 100%;
}

@keyframes book-reveal {
  0% {
    transform: translateY(10px) rotate(4deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

.hero-book:hover {
  transform: rotate(-2deg);
  transition: 0.5s;
}

@container hero-width (max-width: 849px) {
  .hero-book {
    grid-column: 1;
    grid-row: book / book;
  }
}

@container hero-width (min-width: 850px) {
  .hero-book {
    grid-column: book / book;
    grid-row: 1 / span 4;
  }
}

.hero-book img {
  display: block;
  height: auto;
  margin: 0;
  width: 100%;
}

.bio {
  container: bio-width / inline-size;
}

.bio-container {
  display: grid;
  gap: var(--gap) calc(var(--gap) * 2);
  max-width: var(--max-width);
  padding: 0 var(--padding-medium);
  position: relative;
}

@container bio-width (max-width: 849px) {
  .bio-container {
    grid-template-columns: auto;
    grid-template-rows: [image] auto [title] auto [subtitle] auto [body] auto;
    margin: var(--padding-large) auto 0;
  }
}

@container bio-width (min-width: 850px) {
  .bio-container {
    grid-template-columns: [sidebar] auto [copy] 1fr;
    grid-template-rows: auto;
    margin: 0 auto;
    padding: 0 var(--padding-medium);
  }
}

@container bio-width (max-width: 349px) {
  .bio-title-container {
    scroll-margin-top: 14rem;
  }
}

@container bio-width (min-width: 350px) and (max-width: 849px) {
  .bio-title-container {
    grid-row: title / title;
    scroll-margin-top: 8rem;
    text-align: center;
  }
}

@container bio-width (min-width: 850px) {
  .bio-title-container {
    grid-column: copy / copy;
    grid-row: 1;
    scroll-margin-top: 7rem;
  }
}

.bio-title {
  font-weight: 400;
}

.bio-subtitle {
  font-size: calc(var(--font-size-p) * 0.9);
  font-weight: 400;
  margin: 0;
}

@container bio-width (max-width: 849px) {
  .bio-image {
    grid-row: image / image;
    margin: 0 auto;
  }
}

@container bio-width (min-width: 850px) {
  .bio-image {
    align-self: start;
    grid-column: sidebar / sidebar;
    grid-row: 1 / span 3;
    position: sticky;
    top: 6rem;
  }
}

.bio-image img {
  border-radius: var(--border-radius);
  display: block;
  height: auto;
  margin: 0;
  max-height: 450px;
  max-width: 300px;
  width: 100%;
}

.bio-text p:first-child {
  margin: 0;
}

@container bio-width (max-width: 849px) {
  .bio-text {
    grid-row: body / body;
  }
}

@container bio-width (min-width: 850px) {
  .bio-text {
    grid-column: copy;
    grid-row: 3 / 3;
  }
}

.inspiration {
  background: var(--inspiration-bg);
  container: inspiration-width / inline-size;
  margin: 2rem 0 0;
}

.inspiration-container {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: var(--body-padding);
}

.inspiration-title {
  margin: 0 auto;
}

@container inspiration-width (max-width: 349px) {
  .inspiration-title {
    scroll-margin-top: 14rem;
  }
}


@container inspiration-width (min-width: 350px) and (max-width: 849px) {
  .inspiration-title {
    scroll-margin-top: 8rem;
  }
}

@container inspiration-width (min-width: 850px) {
  .inspiration-title {
    scroll-margin-top: 7rem;
  }
}

.inspiration-title {
  color: white;
  font-size: var(--font-size-h1);
  font-weight: 400;
  margin: 0 auto;
  text-align: center;
}

.inspiration-list {
  list-style: none;
  margin: var(--padding-medium) auto 0;
  padding: 0;
}

@container inspiration-width (max-width: 849px) {
  .inspiration-list {
    columns: 1;
    width: 100%;
  }
}

@container inspiration-width (min-width: 850px) {
  .inspiration-list {
    columns: 2;
    width: max-content;
  }
}

.inspiration-list-item {
  list-style: none;
  margin: 1rem auto 0;
  max-width: 320px;
  padding: 0;
  position: relative;
  text-align: center;
  width: 100%;
}

.inspiration-list-item:first-of-type {
  margin: 0 auto;
}

.inspiration-list-item::before {
  background-image: var(--noise),
    linear-gradient(to bottom, transparent, #000000f1);
  bottom: 0;
  content: "";
  filter: contrast(120%) brightness(0.5) saturate(0);
  height: 4rem;
  left: 0;
  mask-image: linear-gradient(to bottom, transparent, white);
  position: absolute;
  width: 100%;
}

.inspiration-list-item img {
  display: block;
  width: 100%;
}

.inspiration-list-item p {
  display: block;
  margin: 0;
}

.inspiration-list-item img {
  height: auto;
  max-width: 320px;
  width: 100%;
}

.inspiration-list-item-controls {
  align-items: flex-end;
  bottom: 0;
  display: flex;
  flex-flow: row nowrap;
  gap: var(--gap);
  height: 4rem;
  isolation: isolate;
  list-style: none;
  left: 50%;
  margin: 0 auto;
  padding: 0 0 0.5rem 0;
  position: absolute;
  text-align: center;
  width: max-content;
  transform: translateX(-50%);
  z-index: 2;
}

.inspiration-list-item-controls li {
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.footer {
  container: footer-width / inline-size;
}

.footer-container {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: var(--body-padding);
}

.footer-list {
  align-content: center;
  align-items: center;
  display: flex;
  gap: var(--gap);
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

@container footer-width (max-width: 699px) {
  .footer-list {
    flex-flow: column wrap;
  }
}

@container footer-width (min-width: 700px) {
  .footer-list {
    flex-flow: row wrap;
  }
}

.footer-list-item {
  margin: 0;
  padding: 0;
  text-align: center;
}

.footer-email,
.footer-mardel > :not(small) {
  font-weight: 700;
}

@container footer-width (max-width: 699px) {
  .footer-email {
    order: 1;
  }

  .footer-copyright {
    font-size: calc(var(--font-size-p) * 0.9);
    order: 3;
  }

  .footer-mardel {
    order: 2;
  }
}
