/* Tejori — base: reset, tokens, typography, shared bits */

:root {
  --ff: 'Afacad', sans-serif;
  --ff-alt: 'Fustat', sans-serif;
  --ff-script: 'Allura', cursive;

  --c-txt: #000;
  --c-mute: #333;
  --c-ink: #121212;
  --c-green: #389a81;
  --c-amber: #feb956;
  --c-cream: #fffaf5;
  --c-line: #e5e5e5;

  --wrap: 89.583vw;
  --shadow: 0 4px 4px 0 rgba(0, 0, 0, .25);
}

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

html {
  font-size: 62.5%;
}

/* grid rows = header / main / footer, so a short page still pushes the footer down */
body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 100%;
  min-height: 100vh;
  margin: 0;
  font-family: var(--ff);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: .06rem;
  color: rgba(18, 18, 18, .75);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-txt);
}

/* ---------- layout ---------- */

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
}

.sprite {
  display: none;
}

/* ---------- shared button ---------- */

.btn {
  position: relative;
  display: block;
  width: 100%;
  max-width: 10.417vw;
  padding: .365vw .521vw;
  font-size: 1.042vw;
  font-weight: 700;
  letter-spacing: .052vw;
  text-decoration: none;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--btn-hover, #000);
  transition: width .4s ease;
}

.btn:hover::before {
  width: 100%;
}

.btn__in {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.042vw;
}

/* the icon gives way when the label needs the room, as the original's does */
.btn__in svg {
  width: 2.187vw;
  height: 1.51vw;
  flex: 0 1 auto;
}

.btn--green {
  background: var(--c-green);
  color: #fff;
}

.btn--dark {
  background: #000;
  color: #fff;
}

@media (max-width: 767px) {
  body {
    font-size: 1.5rem;
  }

  .btn {
    max-width: 100%;
    padding: 1.591vw 3.409vw;
    font-size: 4.545vw;
    letter-spacing: .227vw;
  }

  /* on a phone the label is free to wrap, so the row centres inside the button
     instead of sitting against its left edge */
  .btn__in {
    justify-content: center;
  }

  .btn__in svg {
    width: 8.759vw;
    height: 6.591vw;
  }
}

/* ---------- solid link button (cart, 404) ---------- */

.sbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12rem;
  min-height: 4.5rem;
  padding: 0 3rem;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: .1rem;
  text-decoration: none;
  color: #fff;
  background: var(--c-ink);
}

.sbtn:hover {
  background: var(--c-green);
}

/* ---------- scroll reveal ---------- */

.rev {
  opacity: .01;
  transform: translateY(2rem);
}

.rev.is-in {
  animation: rev .6s cubic-bezier(0, 0, .3, 1) forwards;
}

@keyframes rev {
  from { opacity: .01; transform: translateY(2rem); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rev {
    opacity: 1;
    transform: none;
  }
}
