/* Enkle Eventyr: everything is self-hosted. No external requests. */

/* Fonts (fontsource 5.3.0, SIL Open Font License; see fonts/<family>/OFL.txt) */
@font-face {
  font-family: "Tangerine";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/tangerine/tangerine-latin-700-normal.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: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond/cormorant-garamond-latin-ext-500-normal.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: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond/cormorant-garamond-latin-500-normal.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: "Lora";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lora/lora-latin-ext-400-italic.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: "Lora";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lora/lora-latin-400-italic.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: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jost/jost-latin-ext-500-normal.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: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jost/jost-latin-500-normal.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;
}

:root {
  --ee-cream: #fcf9f5;
  --ee-ink: #1f1b17;       /* 16:1 on cream */
  --ee-soft-ink: #574c42;  /* 7.6:1 on cream, for the small lines */
  --ee-sand: #e4cfb2;      /* decoration only, never text */
  --ee-script: "Tangerine", "Snell Roundhand", "Apple Chancery", cursive;
  --ee-serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --ee-text: "Lora", Georgia, serif;
  --ee-sans: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ee-cream);
  color: var(--ee-ink);
  font-family: var(--ee-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(3rem, 10vh, 6rem) 1.5rem clamp(3.5rem, 12vh, 7rem);
}

/* The branch sweeps diagonally behind the text, as on the Instagram slides. */
.branch {
  position: absolute;
  z-index: -1;
  color: var(--ee-sand);
  fill: currentColor;
  width: 150vw;
  max-width: none;
  overflow: visible;
  left: -38vw;
  bottom: 6vw;
  opacity: 0.66;
  pointer-events: none;
}

.intro {
  width: 100%;
  max-width: 36rem;
  text-align: center;
}

.logo {
  margin: 0 0 clamp(1.75rem, 5vh, 2.75rem);
  font-weight: normal;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-script {
  font-family: var(--ee-script);
  font-weight: 700;
  font-size: clamp(5.25rem, 27vw, 11rem);
  line-height: 0.8;
  letter-spacing: 0.005em;
  margin-left: 0.12em;
}

.logo-serif {
  font-family: var(--ee-serif);
  font-weight: 500;
  font-size: clamp(4.1rem, 21vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.012em;
  margin-top: -0.02em;
}

.tagline {
  margin: 0 auto 1.1rem;
  max-width: 21em;
  font-style: italic;
  font-size: clamp(1.08rem, 4.3vw, 1.3rem);
  line-height: 1.75;
  letter-spacing: 0.09em;
  text-wrap: balance;
}

.place {
  margin: 0 0 clamp(2.25rem, 6vh, 3rem);
  font-family: var(--ee-sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ee-soft-ink);
  line-height: 2;
}

.place-when { display: block; }

.follow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.6rem 0.85rem 1.3rem;
  border: 1px solid var(--ee-ink);
  border-radius: 999px;
  background: rgba(252, 249, 245, 0.78);
  color: var(--ee-ink);
  text-decoration: none;
  text-align: left;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.follow:hover { background: var(--ee-ink); color: var(--ee-cream); }

.follow:focus-visible {
  outline: 2px solid var(--ee-ink);
  outline-offset: 4px;
}

.follow-icon { flex: none; }

.follow-text { display: flex; flex-direction: column; gap: 0.2rem; }

.follow-label {
  font-family: var(--ee-text);
  font-style: italic;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
}

.follow-handle {
  font-family: var(--ee-sans);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

@media (min-width: 48em) {
  .branch {
    width: max(82vw, 56rem);
    left: 2vw;
    bottom: -19vw;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .intro > * { animation: ee-rise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  .intro > :nth-child(2) { animation-delay: 0.15s; }
  .intro > :nth-child(3) { animation-delay: 0.25s; }
  .intro > :nth-child(4) { animation-delay: 0.35s; }
  .branch { animation: ee-fade 1.8s ease both; }
}

@keyframes ee-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes ee-fade {
  from { opacity: 0; }
}
