/*
Theme Name: ProLevel Coming Soon
Description: A single, temporary landing page for ProLevel Driver Education.
Version: 1.1.1
Requires at least: 5.2
Requires PHP: 7.4
Text Domain: prolevel-coming-soon
*/

@font-face {
  font-family: "Archivo";
  src: url("assets/archivo-latin-wdth-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #fff;
  --ink: #000;
  --graphite: #3b3d42;
  --asphalt: #141518;
  --red: #eb2326;
  --red-deep: #c41a1f;
  --gutter: clamp(24px, 5vw, 84px);
  --page-height: max(100vh, 620px);
  --font: "Archivo", Arial, Helvetica, sans-serif;
}

@supports (height: 100svh) {
  :root { --page-height: max(100svh, 620px); }
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

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

.site {
  position: relative;
  min-height: var(--page-height);
  display: flex;
}

.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 47%;
  min-width: 0;
  padding: clamp(28px, 5vh, 56px) 0 clamp(28px, 5vh, 56px) var(--gutter);
}

.logo { width: clamp(190px, 18vw, 280px); height: auto; }

.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vh, 56px) 0;
}

h1 {
  margin: 0;
  font-size: clamp(44px, min(5.3vw, 10.4vh), 112px);
  line-height: .98;
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -.035em;
}

.intro {
  max-width: 34em;
  margin: clamp(18px, 3.4vh, 32px) 0 0;
  color: var(--graphite);
  font-size: clamp(17px, 1.45vw, 23px);
  line-height: 1.45;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: clamp(22px, 4vh, 40px);
}

/* Elliptical radius: the brand's L corner curve, tier M. */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 14px / 11px;
  background: var(--red);
  color: #fff;
  font-size: 19px;
  line-height: 1.1;
  font-weight: 700;
  font-stretch: 112.5%;
  text-decoration: none;
  transition: background-color .15s ease;
}
.cta:hover { background: var(--red-deep); }

.email {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.email:hover { color: var(--red-deep); }

.progress { width: 100%; max-width: 520px; height: auto; }

/* Page not found: same page, no photo. */
.site-404 .content { width: 100%; }

/* The left edge leans at the ProLevel Angle: tan(10.6deg) = .1871. */
.photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 50%;
  margin: 0;
  overflow: hidden;
  background: var(--asphalt);
  clip-path: polygon(calc(var(--page-height) * .1871) 0, 100% 0, 100% 100%, 0 100%);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 85% 50%;
}

.photo figcaption {
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(20, 21, 24, .72);
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: .03em;
}

/* Too narrow a photo panel would crop out the instructor, so these windows stack instead. */
@media (max-width: 1023px), (max-aspect-ratio: 7/5) {
  .site { display: block; }
  .content { width: 100%; padding: 28px var(--gutter) 40px; }
  .logo { width: clamp(180px, 42vw, 240px); }
  .site-main { padding: 44px 0 40px; }
  h1 { font-size: clamp(38px, 11.4vw, 84px); }
  .intro { font-size: clamp(17px, 2.6vw, 21px); }
  .contact { margin-top: 28px; }
  .progress { max-width: 100%; }
  .photo {
    position: relative;
    inset: auto;
    aspect-ratio: 4 / 3;
    clip-path: none;
  }
  .photo img { object-position: 50% 50%; }
}

@media (max-width: 479px) {
  .contact { flex-direction: column; align-items: stretch; }
  .email { align-self: flex-start; }
  .photo figcaption { right: 8px; bottom: 8px; padding: 2px 6px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .cta { transition: none; }
}
