@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/inter-v18-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/inter-v18-latin-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Erode-Variable';
  src: url('../fonts/Erode-Variable.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Erode-VariableItalic';
  src: url('../fonts/Erode-VariableItalic.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
  font-style: italic;
}

:root {
  --color-primary: #6C542B;
  --color-secondary: #fcfbf8;
  --color-highlight-1: #E9D5A7;
  --color-highlight-2: #BF6D31;

  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Erode-Variable', serif;
  --font-secondary-italic: 'Erode-VariableItalic', serif;

  --border: 1px solid var(--color-primary);
  --shadow: 0 1rem 3rem hsl(30 30% 26% / 0.2);

  --ratio: 1.32;
  --step--4: calc(var(--step--3) / var(--ratio));
  --step--3: calc(var(--step--2) / var(--ratio));
  --step--2: calc(var(--step--1) / var(--ratio));
  --step--1: calc(var(--step-0) / var(--ratio));
  --step-0: 0.875rem;
  --step-1: calc(var(--step-0) * var(--ratio));
  --step-2: calc(var(--step-1) * var(--ratio));
  --step-3: calc(var(--step-2) * var(--ratio));
  --step-4: calc(var(--step-3) * var(--ratio));
  --step-5: calc(var(--step-4) * var(--ratio));
  --step-6: calc(var(--step-5) * var(--ratio));
  --step-7: calc(var(--step-6) * var(--ratio));

  --z-dialog: 2000;
  --z-top: 1000;
  --z-middle: 500;
  --z-bottom: 0;

  --speed-fast: 100ms;
  --speed-medium: 400ms;
  --speed-slow: 800ms;

  --mask-size: 8px;
  --pageWidth: calc(100vw - var(--mask-size) * 2);
  --pageHeight: calc(100vh - var(--mask-size) * 2);
}

html {
  background: var(--color-secondary);
  color: var(--color-primary);
  scrollbar-width: none;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--step-0);
  line-height: 1.4;
  -ms-overflow-style: none;
  overscroll-behavior: none;
}

::selection {
  background: none;
}

::-webkit-scrollbar {
  display: none;
}

p {
  hyphens: auto;
  letter-spacing: -0.01em;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

button {
  background: none;
  border: none;
  padding: 0;
}

input,
textarea,
button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

:not(:defined) {
  visibility: hidden;
}

.wrapper {
  margin: var(--mask-size);
}

.wrapper::before,
.wrapper::after {
  content: '';
  position: fixed;
  z-index: var(--z-top);
  width: var(--pageWidth);
  height: var(--mask-size);
  background: var(--color-secondary);
}

.wrapper::before {
  border-bottom: var(--border);
  top: 0;
}

.wrapper::after {
  border-top: var(--border);
  bottom: 0;
}

.page::before,
.page::after {
  content: '';
  position: fixed;
  top: var(--mask-size);
  z-index: 10000;
  width: calc(var(--mask-size) + 1px);
  height: var(--pageHeight);
  background: var(--color-secondary);
}

.page::before {
  border-right: var(--border);
  left: 0;
}

.page::after {
  border-left: var(--border);
  right: 0;
}

.main-container {
  display: grid;
  grid-template-columns: 1fr;
  margin-inline: var(--step-0);
}

.spot-info {
  display: none;
}

@media (min-width: 72rem) {
  :root {
    --ratio: 1.36;
    --step-0: 1rem;
  }

  .main-container {
    grid-template-columns: 1fr 0.8fr;
    column-gap: var(--step-2);
    margin-inline: var(--step-3);
  }
}
