/* Hallmark · genre: modern-minimal · macrostructure: single-stage · design-system: EZZI.md Part A · designed-as-poster */
/*
 * hirani.co.in while the website is made: the OG card (og/hirani) as a
 * page, the sibling of ezzihardware.com's (apps/site). A deep navy to
 * Hirani blue, so the pale blue holds 4.9:1 at the lightest corner and
 * white 7.2:1; the mark is the card's, in its lighter blue, cropped past the
 * right edge, and never sits under text. Switzer, the official file, as
 * shipped (design-system/fonts/FFL.txt).
 */
@font-face {
  font-family: "Switzer";
  src: url("/fonts/Switzer-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #07345c;
  --hirani: #0c599a;
  --mark: #2f7cc4;
  --pale: #bfd9f0;
  --white: #ffffff;
  --muted: rgb(255 255 255 / 0.78);
  --rule: rgb(191 217 240 / 0.3);
  --gutter: clamp(24px, 5vw, 72px);
  /* The mark's own proportions (build_assets.py H_MARK). */
  --mark-ratio: 45.58 / 81.67;
  color-scheme: dark;
}

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

/* Clipped on html as well as body: body's overflow is otherwise handed to
   the viewport, and the cropped mark widens the page. */
html {
  background: var(--ground);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(40px, 6vh, 72px);
  padding: calc(var(--gutter) + env(safe-area-inset-top)) var(--gutter)
    calc(var(--gutter) + env(safe-area-inset-bottom));
  overflow-x: clip;
  position: relative;
  isolation: isolate;
  background: linear-gradient(135deg, var(--ground) 0%, var(--hirani) 100%);
  color: var(--white);
  font: 400 1rem/1.5 "Switzer", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
}

/* The four arcs, blown up past the top, bottom and right edges, as on the
   card: the white mark as a mask over the card's lighter blue. */
.mark {
  --w: min(69svh, 40vw);
  position: absolute;
  z-index: -1;
  width: var(--w);
  aspect-ratio: var(--mark-ratio);
  top: 50%;
  right: calc(var(--w) * -0.2);
  transform: translateY(-50%);
  background: var(--mark);
  -webkit-mask: url("/mark.svg") center / contain no-repeat;
  mask: url("/mark.svg") center / contain no-repeat;
  pointer-events: none;
}

/* Mark over name: the name is a fifth of the lockup's height, so the logo
   is drawn taller than Ezzi's to keep it readable. */
.logo {
  display: block;
  height: clamp(72px, 8vw, 104px);
  width: auto;
}

/* The copy stays left of the mark: at most 56vw, and the mark never
   reaches further in than 64vw. */
main {
  align-self: center;
  max-width: 56vw;
  display: grid;
  gap: clamp(16px, 2.4vh, 28px);
}

.soon {
  margin: 0;
  justify-self: start;
  padding: 6px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--pale);
  font-size: 0.9375rem;
  font-weight: 500;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.range {
  margin: 0;
  max-width: 34ch;
  color: var(--pale);
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
  line-height: 1.45;
  text-wrap: pretty;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px 48px;
  max-width: 56vw;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

dl {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px clamp(32px, 4vw, 56px);
}

dt {
  color: var(--pale);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 4px;
}

dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
  border-radius: 2px;
}

a:hover {
  text-decoration-color: var(--pale);
}

a:focus-visible {
  outline: 2px solid var(--pale);
  outline-offset: 3px;
}

.since {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

/* Under a tablet the mark moves to the top corner, clear of the logo and
   above the text, and the copy takes the full width. */
@media (max-width: 767px) {
  .mark {
    --w: 40vw;
    top: -12vw;
    right: -8vw;
    transform: none;
  }

  .logo {
    height: 64px;
  }

  main {
    max-width: none;
    align-self: end;
  }

  footer {
    max-width: none;
  }

  dl {
    flex-direction: column;
  }
}

@media (min-width: 768px) and (max-height: 640px) {
  h1 {
    font-size: clamp(2.5rem, 11vh, 4.5rem);
  }
}
