/*
Theme Name: YPS
Theme URI: https://ypsservices.com
Author: YPS Services LLC
Description: One-page company gate for YPS Services LLC. Last Viewed, privacy, terms, and contact sit behind the gate.
Version: 1.0.5
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
Text Domain: yps
*/

:root {
  --bg: #05080c;
  --surface: #101418;
  --fg: #f3f0e8;
  --muted: #8d969e;
  --dim: #5c656e;
  --accent: #8eb7ff;
  --line: #222a32;
  --display: "Syne", "Avenir Next", sans-serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --radius: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, a { cursor: pointer; }

.gate, .sheet {
  width: min(48rem, calc(100% - 2.5rem));
  margin: 0 auto;
  flex: 1;
}
.gate {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4.5rem 0 3rem;
  overflow: hidden;
}
.mark-show {
  width: min(16rem, 70vw);
  margin-top: 0.5rem;
  object-fit: contain;
  opacity: 0.6;
}
.cards { margin-top: 2.5rem; }
.word {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.15rem, 4.6vw, 3.2rem);
  color: var(--accent);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.tagline {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-family: var(--display);
  letter-spacing: 0.16em;
  font-size: 1rem;
}
.rule {
  display: block;
  width: 3rem;
  height: 1px;
  margin: 0.8rem auto 0;
  background: var(--accent);
}
.cards { margin-top: 2.5rem; }
@media (min-width: 720px) {
  .cards { grid-template-columns: 1fr 1fr; }
}
.split {
  width: 100%;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.mark {
  width: 7rem;
  height: 7rem;
  margin-top: 2rem;
  object-fit: contain;
}
.cards {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  margin-top: 2.5rem;
  text-align: left;
}
@media (min-width: 720px) {
  .cards { grid-template-columns: 1fr 1fr; }
}
.card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card .kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.card h2, .card h3 {
  margin: 0.75rem 0 0;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}
.card .fact { margin: 0.85rem 0 0; font-weight: 500; }
.card .meta, .card p { margin: 0.35rem 0 0; color: var(--muted); }
.card a.btn, a.enter, a.ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  text-decoration: none;
  font-size: 0.95rem;
}
.card a.btn:hover, a.enter:hover, a.ghost:hover { border-color: var(--accent); color: var(--accent); }
a.enter {
  width: min(28rem, 100%);
  margin: 0 auto;
  padding: 1.6rem 1.5rem;
  flex-direction: column;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}
a.enter strong {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--accent);
}
a.enter em {
  margin-top: 0.4rem;
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px);
}
.bar-inner, .sheet {
  width: min(48rem, calc(100% - 2.5rem));
  margin: 0 auto;
}
.bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  text-decoration: none;
}
.bar nav { display: flex; gap: 1.25rem; }
.bar nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.bar nav a:hover { color: var(--fg); }
.sheet { padding: 3.5rem 0 4rem; }
.sheet h1 {
  margin: 0.6rem 0 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  letter-spacing: -0.02em;
}
.lede {
  margin: 0.8rem 0 0;
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--accent);
}
.stack { display: grid; gap: 1rem; margin-top: 1.5rem; }
.actions { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
@media (min-width: 640px) { .actions { grid-template-columns: 1fr 1fr; } }
a.ghost { margin-top: 0; font-family: var(--display); font-weight: 700; color: var(--accent); }

.site-footer {
  position: sticky;
  bottom: 0;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px);
  text-align: center;
  color: var(--dim);
  font-size: 0.9rem;
  padding: 1.1rem 1rem 1.25rem;
}
.site-footer p { margin: 0.2rem 0; }

.sheet a { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
