:root {
  --nf-cream: #fff6ea;
  --nf-page-outer: #f0dcc0;
  --nf-title: #d3121a;
  --nf-border: #c23a3a;
  --nf-btn: #8f1a22;
  --nf-btn-hover: #76151c;
  --nf-text: #5a2c2c;
  --nf-sheet-radius: 42px;
  --nf-field-radius: 28px;
  --nf-max: 430px;
}

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

html,
body {
  min-height: 100%;
}

body.nf-body {
  font-family: "Poppins", "Montserrat", sans-serif;
  background: var(--nf-cream);
  color: var(--nf-text);
  -webkit-font-smoothing: antialiased;
}

body.nf-body .cm-navbar {
  display: none !important;
}

body.nf-body .main-wrapper {
  min-height: 100%;
  background: transparent;
  max-width: none;
}

.nf-page {
  width: 100%;
  max-width: var(--nf-max);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--nf-cream);
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.nf-hero {
  position: relative;
  width: 100%;
  line-height: 0;
}

.nf-hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.nf-menu {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff8ee;
  border: 1.6px solid var(--nf-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(120, 20, 20, 0.12);
}

.nf-menu span {
  display: block;
  width: 18px;
  height: 2.2px;
  background: var(--nf-border);
  border-radius: 2px;
}

.nf-menu.is-close {
  gap: 0;
}

.nf-menu.is-close span:nth-child(1) {
  transform: translateY(2.2px) rotate(45deg);
}

.nf-menu.is-close span:nth-child(2) {
  display: none;
}

.nf-menu.is-close span:nth-child(3) {
  transform: translateY(-2.2px) rotate(-45deg);
}

.nf-sheet {
  position: relative;
  z-index: 2;
  margin-top: -42px;
  background: var(--nf-cream);
  border-radius: var(--nf-sheet-radius) var(--nf-sheet-radius) 0 0;
  padding: 28px 22px 32px;
  flex: 1;
}

.nf-title {
  text-align: center;
  color: var(--nf-title);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 1.2px;
  line-height: 1.15;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.nf-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nf-menu-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: 1.6px solid var(--nf-border);
  border-radius: var(--nf-field-radius);
  background: #fffdf8;
  color: #3b1d1d;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.2px;
}

.nf-menu-link:hover,
.nf-menu-link:focus,
.nf-menu-link.is-active {
  background: var(--nf-btn);
  border-color: var(--nf-btn);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 359px) {
  .nf-title {
    font-size: 22px;
  }

  .nf-sheet {
    padding: 24px 16px 28px;
    margin-top: -36px;
  }

  .nf-menu-link {
    height: 44px;
    font-size: 15px;
  }
}


.nf-fit,
.nf-scale {
  width: 100%;
}

@media (min-width: 431px) {
  :root {
    --nf-scale: min(430 / 375, (100dvh - 24px) / 812px);
  }

  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  body.nf-body {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    padding: 0;
    background: var(--nf-page-outer, #f0dcc0);
  }

  body.nf-body .main-wrapper {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    padding: 0;
  }

  .nf-fit {
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .nf-scale {
    width: calc(375px * var(--nf-scale));
    height: calc(812px * var(--nf-scale));
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(90, 30, 10, 0.18);
  }

  .nf-page {
    width: 375px;
    max-width: none;
    height: 812px;
    min-height: 812px;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    transform: scale(var(--nf-scale));
    transform-origin: top left;
  }

  .nf-hero img {
    min-height: 0;
  }
}

@media (min-width: 768px) {
  :root {
    --nf-scale: min(480 / 375, (100dvh - 24px) / 812px);
  }
}

@media (min-width: 1024px) {
  :root {
    --nf-scale: min(520 / 375, (100dvh - 24px) / 812px);
  }
}
