/*
Theme Name: DLVERY Landing
Theme URI: https://dlvery.com
Author: DLVERY CO.
Description: Minimal one-page landing theme for DLVERY CO.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: dlvery-landing
*/

:root {
  --ink: #070707;
  --paper: #ffffff;
  --signal: #ff6700;
  --muted: #8b8b8b;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.site-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(1.5rem, 3.4vw, 4rem) clamp(1.5rem, 4.5vw, 5rem)
    clamp(1.25rem, 3vw, 3rem);
  overflow: hidden;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.mini-mark {
  display: block;
  width: clamp(5.7rem, 7.15vw, 7.125rem);
  height: auto;
}

.contact {
  position: relative;
  display: flex;
  justify-content: flex-end;
  min-width: 12rem;
  font-size: clamp(0.72rem, 1vw, 0.95rem);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-label {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  outline: none;
}

.contact-label:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 0.45rem;
}

.contact-label::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  width: 0;
  height: 1px;
  background: var(--signal);
  transition: width 180ms ease;
}

.contact-email {
  position: absolute;
  top: calc(100% + 0.8rem);
  right: 0;
  z-index: 2;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.2rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.035em;
  text-transform: lowercase;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.25rem);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  pointer-events: none;
}

.contact:hover .contact-label::after,
.contact:focus-within .contact-label::after {
  width: 100%;
}

.contact:hover .contact-email,
.contact:focus-within .contact-email {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  text-align: center;
}

.hero-inner {
  width: min(100%, 58rem);
  transform: translateY(-1.5vh);
}

h1 {
  margin: 0;
}

.wordmark {
  display: block;
  width: min(100%, 33.9375rem);
  height: auto;
  margin: 0 auto;
}

.descriptor {
  margin: clamp(1.5rem, 2.3vw, 2.2rem) auto 0;
  font-size: clamp(0.72rem, 1.25vw, 1.08rem);
  font-weight: 540;
  line-height: 1.55;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.descriptor span {
  display: block;
}

.site-footer {
  color: var(--muted);
  font-size: clamp(0.56rem, 0.75vw, 0.7rem);
  font-weight: 600;
  letter-spacing: 0.045em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .site-shell {
    padding: max(1.5rem, env(safe-area-inset-top))
      max(1.25rem, env(safe-area-inset-right))
      max(1.25rem, env(safe-area-inset-bottom))
      max(1.25rem, env(safe-area-inset-left));
  }

  .mini-mark {
    width: 5.7rem;
  }

  .contact {
    min-width: auto;
    font-size: 0.7rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero-inner {
    transform: translateY(-1vh);
  }

  .wordmark {
    width: min(100%, 30rem);
  }

  .descriptor {
    max-width: 32rem;
    font-size: 0.67rem;
    letter-spacing: 0.045em;
  }

  .descriptor span + span {
    margin-top: 0.25rem;
  }
}

@media (max-width: 390px) {
  .wordmark {
    width: 100%;
  }

  .descriptor {
    max-width: 20rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-label::after,
  .contact-email {
    transition: none;
  }
}

