:root {
  --paper: #f4ece0;
  --paper-warm: #efe6d8;
  --ink: #4a5e4d;
  --ink-dark: #26372d;
  --muted: #7f8877;
  --line: #a5ad9a;
  --button: #324232;
  --button-hover: #2a382a;
  --shadow: rgba(32, 35, 29, 0.18);
  --cormorant: "Cormorant", Georgia, serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    url("./assets/paper-texture.png") center / cover no-repeat fixed,
    var(--paper);
  background-blend-mode: normal;
  font-family: var(--sans);
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 2.5vw, 32px);
}

.hero {
  position: relative;
  width: min(100%, 1440px);
  min-height: min(900px, calc(100svh - 64px));
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    url("./assets/paper-texture.png") center / cover no-repeat,
    var(--paper);
  background-blend-mode: normal;
  box-shadow: none;
}

.hero::before {
  content: none;
}

.hero::after {
  content: none;
}

.hero__content {
  width: min(90vw, 920px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(42px, 8vw, 96px) 0;
  text-align: center;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--ink);
}

.brand__logo {
  width: clamp(320px, 33vw, 478px);
  height: auto;
  display: block;
}

.brand__meta {
  color: #2c412a;
  font-family: "Manrope", var(--sans);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 4.48px;
  text-align: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2.5vw, 30px);
}

h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(42px, 6.1vw, 86px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero__divider {
  width: 56px;
  height: 2px;
  background: var(--line);
}

.hero__subtitle {
  max-width: 530px;
  margin: 0;
  color: #324327;
  font-family: var(--cormorant);
  font-size: 28px;
  font-style: italic;
  font-weight: 400;
  line-height: 42px;
  letter-spacing: 0;
  text-align: center;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 195px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(96, 112, 96, 0.36);
  padding: 0 20px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: url("./assets/paper-texture.png") center / cover no-repeat;
  mix-blend-mode: normal;
  opacity: 1;
}

.button--primary {
  color: #ffffff;
  background: var(--button);
  border-color: #000000;
  font-family: "Manrope", var(--sans);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
}

.button--primary::after {
  content: "";
  width: 15px;
  height: 9px;
  margin-left: 4px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20width%3D%2215%22%20height%3D%229%22%20viewBox%3D%220%200%2015%209%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M1%204.5H13M9%201L13%204.5L9%208%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20width%3D%2215%22%20height%3D%229%22%20viewBox%3D%220%200%2015%209%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M1%204.5H13M9%201L13%204.5L9%208%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E") center / contain no-repeat;
}

.button--secondary {
  color: #2c2622;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 100px;
  border: 1.5px solid rgba(44, 38, 34, 0.25);
  font-family: "Manrope", var(--sans);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary:hover {
  background: var(--button-hover);
  border-color: #000000;
}

.button--secondary:hover {
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(44, 38, 34, 0.35);
}

@media (max-width: 640px) {
  .page-shell {
    padding: 0;
    place-items: stretch;
    background: var(--paper);
  }

  .hero {
    width: 100%;
    min-height: 100svh;
    place-items: start center;
    box-shadow: none;
    border: 0;
  }

  .hero::before {
    content: none;
  }

  .hero__content {
    width: min(100%, 352px);
    gap: 0;
    padding: 84px 0 48px;
  }

  .brand__logo {
    width: 187px;
  }

  .brand__meta {
    display: none;
  }

  .brand {
    margin-bottom: 58px;
  }

  .hero__copy {
    gap: 0;
    margin-bottom: 28px;
  }

  h1 {
    max-width: 340px;
    font-size: 33px;
    line-height: 1.03;
    margin-bottom: 50px;
  }

  .hero__divider {
    width: 44px;
    margin-bottom: 24px;
  }

  .hero__subtitle {
    max-width: 288px;
    font-size: 28px;
    line-height: 42px;
  }

  .hero__actions {
    gap: 13px;
  }

  .button {
    width: 326px;
    min-height: 49px;
  }

  .button--primary {
    color: #ffffff;
    border: 0;
    font-family: "Manrope", var(--sans);
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: 15px;
    text-align: center;
  }

  .button--primary::after {
    margin-left: 10px;
  }

}

@media (prefers-reduced-motion: no-preference) {
  .brand,
  .hero__copy,
  .hero__actions {
    animation: rise 620ms ease both;
  }

  .hero__copy {
    animation-delay: 90ms;
  }

  .hero__actions {
    animation-delay: 180ms;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
