/* Self-hosted fonts — no external requests.
   Geist Mono + Host Grotesk: Google Fonts, SIL Open Font License 1.1.
   SCHABO Condensed: Tom Robin Karlsson, free for personal and commercial use. */

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geistmono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geistmono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/hostgrotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/hostgrotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Host Grotesk";
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/hostgrotesk-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Host Grotesk";
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/hostgrotesk-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "SCHABO";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/schabo-condensed.woff") format("woff");
}

:root {
  --base-100: #f2eeda;
  --base-200: #8c8a7f;
  --base-300: #262626;
  --base-400: #141414;
  --base-500: #ee6436;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

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

body {
  background-color: var(--base-400);
  color: var(--base-100);
  /* The template never set one, so anything it did not style fell to Times. */
  font-family: "Host Grotesk", sans-serif;
}

/* SplitText is told to build spans so it never puts a <div> in a heading.
   An inline box ignores transform and, worse, lets two lines flow onto one,
   so line parts are blocks and the smaller parts are inline-blocks. */
.line,
.line-mask {
  display: block;
}

.char,
.word {
  display: inline-block;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1,
h2,
h3 {
  text-transform: uppercase;
  font-family: "SCHABO", sans-serif;
  font-weight: 500;
  line-height: 0.85;
}

h1 {
  font-size: clamp(4rem, 10vw, 10rem);
  letter-spacing: clamp(-0.05rem, -1vw, -0.15rem);
}

h2 {
  font-size: clamp(3.25rem, 8vw, 8rem);
  letter-spacing: clamp(-0.025rem, -0.75vw, -0.1rem);
}

h3 {
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  letter-spacing: clamp(0rem, -0.5vw, -0.075rem);
}

/* Display scale, decoupled from the heading level.
   Several titles here are decoration or a figure, not a section heading —
   they carry the size with a class so the tag can say what the thing is. */
.dsp-1,
.dsp-2,
.dsp-3 {
  text-transform: uppercase;
  font-family: "SCHABO", sans-serif;
  font-weight: 500;
  line-height: 0.85;
}

.dsp-1 {
  font-size: clamp(4rem, 10vw, 10rem);
  letter-spacing: clamp(-0.05rem, -1vw, -0.15rem);
}

.dsp-2 {
  font-size: clamp(3.25rem, 8vw, 8rem);
  letter-spacing: clamp(-0.025rem, -0.75vw, -0.1rem);
}

.dsp-3 {
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  letter-spacing: clamp(0rem, -0.5vw, -0.075rem);
}

a,
p {
  text-decoration: none;
  text-transform: uppercase;
  color: var(--base-100);
  font-family: "Geist Mono", monospace;
  font-weight: 500;
  line-height: 1;
}

a,
p {
  font-size: clamp(0.8rem, 0.75vw, 0.85rem);
}

a.md,
p.md {
  font-size: clamp(1rem, 0.8vw, 1.25rem);
}

a.lg,
p.lg {
  font-size: clamp(1.1rem, 0.85vw, 1.35rem);
}

p.bodyCopy {
  text-transform: none;
  font-family: "Host Grotesk", sans-serif;
  font-weight: 450;
  line-height: 1.1;
}

p.bodyCopy {
  font-size: clamp(1.125rem, 0.75vw, 1.25rem);
}

p.bodyCopy.md {
  font-size: clamp(1.25rem, 0.85vw, 1.35rem);
}

p.bodyCopy.lg {
  font-size: clamp(1.375rem, 0.95vw, 1.45rem);
}

.btn {
  display: inline-block;
}

a.btn {
  position: relative;
  width: max-content;
  min-width: 200px;
  height: 65px;
  padding: 0 2rem;
  font-weight: 400;
  letter-spacing: 1.8px;
  color: var(--base-200);
  background-color: var(--base-400);
  border: solid 1px var(--base-300);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

a.btn > *:not(.btn-line) {
  position: relative;
  z-index: 1;
}

a.btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  width: 60px;
  height: 1px;
  transform: translateY(-1px);
  background: var(--base-100);
  transition: all 0.3s ease;
}

a.btn:after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 10%;
  width: 60px;
  height: 1px;
  transform: translateY(1px);
  background: var(--base-100);
  transition: all 0.3s ease;
}

a.btn:hover {
  color: var(--base-100);
  border: solid 1px var(--base-300);
  text-shadow: 0 0 10px rgba(242, 238, 218, 0.2);
}

a.btn:hover:before {
  left: 0;
  width: 20px;
}

a.btn:hover:after {
  right: 0;
  width: 20px;
}

a.btn:hover .btn-line:before {
  bottom: -1px;
}

a.btn:hover .btn-line:after {
  top: -1px;
}

.btn-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.btn-line:before {
  content: "";
  position: absolute;
  bottom: 30%;
  right: -1px;
  width: 1px;
  height: 20px;
  background: var(--base-100);
  transition: all 0.3s ease;
}

.btn-line:after {
  content: "";
  position: absolute;
  top: 30%;
  left: -1px;
  width: 1px;
  height: 20px;
  background: var(--base-100);
  transition: all 0.3s ease;
}

.container {
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  max-width: 2000px;
  margin: 0 auto;
}

.line {
  position: relative;
  will-change: transform;
}
