/* MelissArtworks: single-page landing site */

/* Headline and button font: Bishail Script by Rastype Studio, licensed
   from Fontspring (web font license, up to 10,000 pageviews a month).
   The files are used exactly as supplied, as the license requires. */
@font-face {
  font-family: "Bishail Script";
  src: url("/assets/fonts/bishail_script-webfont.woff2") format("woff2"),
       url("/assets/fonts/bishail_script-webfont.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/open-sans-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #001A5A;
  --navy-deep: #00113d;
  --sky: #9fc6e3;
  --peach: #fdc692;
  --cream: #f8f3b4;
  --text: #dbe2ee;
  --muted: #a9b6cf;
  --script: "Bishail Script", "Brush Script MT", cursive;
  --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 5vw, 48px);
}

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

html {
  background: var(--navy);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fixed sunflower pattern. A positioned layer is used instead of
   background-attachment: fixed, which iOS Safari ignores. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--navy) url("/assets/img/bg-1600.jpg") center / cover no-repeat;
  background-image: image-set(url("/assets/img/bg-1600.webp") type("image/webp"), url("/assets/img/bg-1600.jpg") type("image/jpeg"));
}
@media (max-width: 700px) {
  .backdrop { background-image: url("/assets/img/bg-960.webp"); }
}
@media (min-width: 1700px), (min-resolution: 2dppx) and (min-width: 1000px) {
  .backdrop { background-image: url("/assets/img/bg-2560.webp"); }
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding:
    max(clamp(14px, 3.5vh, 48px), env(safe-area-inset-top))
    max(var(--gutter), env(safe-area-inset-right))
    clamp(10px, 2.5vh, 40px)
    max(var(--gutter), env(safe-area-inset-left));
}

.emblem {
  display: block;
  width: clamp(88px, min(38vw, 22.5vh), 256px);
  height: auto;
  margin-bottom: clamp(10px, 3vh, 34px);
  filter: drop-shadow(0 10px 28px rgba(253, 198, 146, .22));
  animation: breathe 4s ease-in-out infinite;
}
/* Gentle zoom in and out */
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.headline {
  margin: 0;
  font: 400 clamp(1.7rem, min(7.4vw, 6vh), 3.8rem)/1.3 var(--script);
  letter-spacing: 0;
  text-wrap: balance;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: .28em;
  row-gap: .7em;
}
.headline-lead { color: var(--sky); }
.headline-accent {
  color: var(--cream);
  text-transform: uppercase;
}

.intro {
  max-width: 44rem;
  margin: clamp(16px, 3.6vh, 44px) auto 0;
  font-size: clamp(.875rem, min(2.4vw, 2.2vh), 1.125rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  text-wrap: pretty;
}
.intro-cta {
  margin: clamp(6px, 1.6vh, 22px) auto 0;
  font-size: clamp(.875rem, min(2.4vw, 2.2vh), 1.125rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--peach);
  text-wrap: balance;
}
/* "Click the links below": letters play in one after another, like
   keys in a piano run. The script in index.html wraps each letter. */
.intro-cta .word { display: inline-block; white-space: nowrap; }
.intro-cta .key {
  display: inline-block;
  animation: key-in .5s cubic-bezier(.3, 1.5, .5, 1) both;
}
@keyframes key-in {
  0% { opacity: 0; transform: translateY(-.75em); }
  55% { opacity: 1; transform: translateY(.14em); }
  100% { opacity: 1; transform: none; }
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(8px, 1.6vh, 16px);
  width: 100%;
  max-width: 360px;
  margin-top: clamp(20px, 4.8vh, 60px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(42px, 6.6vh, 56px);
  padding: 6px clamp(18px, 6vw, 34px);
  border-radius: 999px;
  font: 400 clamp(.95rem, min(5vw, 2.6vh), 1.3rem)/1.1 var(--script);
  white-space: nowrap;
  color: var(--navy);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  transition: background-color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-sky { background: var(--sky); }
.btn-peach { background: var(--peach); }
.btn-cream { background: var(--cream); }
/* Hover as on the original page: the color turns half see-through,
   so the sunflower pattern shows behind the text. */
.btn-sky:hover { background: rgba(159, 198, 227, .5); }
.btn-peach:hover { background: rgba(253, 198, 146, .5); }
.btn-cream:hover { background: rgba(248, 243, 180, .5); }
.btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.footer {
  padding: clamp(6px, 1.4vh, 18px) var(--gutter) calc(clamp(16px, 3.6vh, 44px) + env(safe-area-inset-bottom));
  text-align: center;
  font-size: .8125rem;
  color: var(--muted);
}
.footer p { margin: 0; }
.footer a {
  white-space: nowrap;
  color: var(--muted);
  text-decoration-color: rgba(169, 182, 207, .4);
  text-underline-offset: 3px;
}
.footer a:hover { color: var(--sky); }
.footer a:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 2px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Short phone screens (iPhone SE size): keep everything on one screen */
@media (max-height: 620px) and (orientation: portrait) {
  .emblem { width: 14vh; margin-bottom: 1.6vh; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .emblem { width: 88px; }
  .hero { padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .emblem { animation: none; }
  .intro-cta .key { animation: none; }
  .btn { transition: none; }
}
