/* ==========================================================================
   PiP Splitware — static replica
   Self-hosted webfonts, no frameworks.
   ========================================================================== */

@font-face {
  font-family: "Lora";
  src: url("../assets/fonts/lora-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gentium Basic";
  src: url("../assets/fonts/gentium-basic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gentium Basic";
  src: url("../assets/fonts/gentium-basic-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #000;
  --legal-ink: #434343;
  --muted: #757575;
  --accent: #fd3135;
  --container: 1184px;
  --gutter: 22.8px;
  --header-h: 56px;
  --serif: "Gentium Basic", "Iowan Old Style", Georgia, serif;
  --display: "Lora", Georgia, serif;
  --sans: Arial, Helvetica, "Helvetica Neue", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: #fff;
  color: #000;
  font: 500 14px/1 var(--sans);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 16px 0 28px;
  background: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.brand__logo {
  width: 40px;
  height: 40px;
}

.brand__name {
  margin-left: 12px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

.header__end {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav__link {
  font-family: var(--display);
  font-size: 16px;
  line-height: 20px;
  color: rgba(0, 0, 0, 0.64);
  transition: color 0.15s ease;
}
.nav__link:hover {
  color: rgba(0, 0, 0, 0.92);
}
.nav__link[aria-current="page"] {
  color: rgba(0, 0, 0, 0.82);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(0, 0, 0, 0.54);
  border-radius: 50%;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.icon-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.78);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
}

.search-btn {
  justify-content: flex-end;
  width: 40px;
  height: 40px;
  margin-left: 5px;
}

.search-btn:hover {
  background: transparent;
}

.menu-btn {
  display: none;
}

/* ==========================================================================
   Home — hero
   ========================================================================== */

main {
  padding: 24px 0;
}

.container {
  width: min(var(--container), 100% - 96px);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
}

.hero__copy {
  grid-column: 1 / 7;
  padding: 14px var(--gutter) 0;
}

.hero__art {
  grid-column: 9 / 12;
  padding: 0 14.8px;
}

.hero__art img {
  width: 100%;
  height: auto;
}

.hero h1 {
  margin: 0 0 30px;
  font-family: Impact, Haettenschweiler, "Franklin Gothic Bold", "Arial Narrow", sans-serif;
  font-weight: 400;
  font-size: 25.3333px;
  line-height: 35.4667px;
  letter-spacing: 0;
  color: #000;
}

.hero__copy p {
  margin: 12px 0 0;
  font-size: 18.6667px;
  line-height: 31.1117px;
  color: #000;
}

.hero__copy p.lead {
  margin-top: 28px;
  font-size: 24px;
  line-height: 40px;
}

.feature {
  display: block;
}

.feature__icon {
  display: inline-block;
  margin-right: 6px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-style: normal;
}

.hero__gap {
  height: 22px;
}

.store {
  display: block;
  width: 216px;
  margin: 23px 0 8px 4px;
}
.store img {
  width: 216px;
  height: 72px;
}
.store:hover {
  opacity: 0.88;
}

/* ==========================================================================
   Home / legal — footer
   ========================================================================== */

.site-footer {
  padding: 32px 24px;
  text-align: center;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 17px;
  color: var(--muted);
}
.site-footer p {
  margin: 0;
}

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal {
  padding-top: 0;
  padding-bottom: 32px;
}
.legal--terms {
  padding-bottom: 54px;
}

.legal__title {
  margin: 0;
  padding-top: 32px;
  text-align: center;
  font-family: var(--display);
  font-weight: 400;
  font-size: 25.3333px;
  line-height: 35.4667px;
  color: var(--legal-ink);
}

.legal__body {
  width: min(var(--container), 100% - 96px);
  margin: 64px auto 0;
  padding: 0 var(--gutter);
  font-family: var(--sans);
  font-size: 14.6667px;
  line-height: 23px;
  color: var(--legal-ink);
}

.legal__body p {
  margin: 0;
}

.legal__body section + section {
  margin-top: 22px;
}

.legal__body section.tight {
  margin-top: 12px;
}

.legal__body .sec {
  margin: 0;
  font-family: var(--sans);
  font-size: 14.6667px;
  font-weight: 700;
  line-height: 23px;
  color: var(--legal-ink);
}

.legal__body .indent {
  text-indent: 20px;
}

.legal__body .indent-sm {
  text-indent: 16px;
}

.legal__body .mt12 {
  margin-top: 12px;
}

.legal__body a {
  color: var(--legal-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   Drawer (mobile navigation)
   ========================================================================== */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: min(300px, 84vw);
  padding: 20px 0;
  background: #fff;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  transform: translateX(-104%);
  transition: transform 0.24s ease;
}

body.menu-open .scrim {
  opacity: 1;
  visibility: visible;
}
body.menu-open .drawer {
  transform: translateX(0);
}
body.menu-open {
  overflow: hidden;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px 20px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.drawer__title {
  font-family: var(--display);
  font-size: 18px;
  color: rgba(0, 0, 0, 0.8);
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.drawer__nav a {
  padding: 14px 24px;
  font-family: var(--display);
  font-size: 18px;
  color: rgba(0, 0, 0, 0.72);
}
.drawer__nav a:hover,
.drawer__nav a[aria-current="page"] {
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   Search overlay
   ========================================================================== */

.search {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  justify-content: center;
  padding: 8vh 24px 24px;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s;
}

body.search-open .search {
  opacity: 1;
  visibility: visible;
}
body.search-open {
  overflow: hidden;
}

.search__panel {
  width: min(680px, 100%);
}

.search__field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px 12px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.16);
}
.search__field svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: rgba(0, 0, 0, 0.45);
}

.search__input {
  flex: 1;
  min-width: 0;
  padding: 6px 0;
  border: 0;
  background: transparent;
  font-family: var(--display);
  font-size: 22px;
  color: #111;
}
.search__input:focus {
  outline: none;
}
.search__input::placeholder {
  color: rgba(0, 0, 0, 0.38);
}

.search__close {
  flex: none;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
  padding: 6px 8px;
  border-radius: 4px;
}
.search__close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.search__hint {
  margin: 14px 4px 0;
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(0, 0, 0, 0.45);
}

.search__results {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  max-height: 62vh;
  overflow: auto;
}

.search__results li + li {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.search__results a {
  display: block;
  padding: 14px 4px;
}
.search__results a:hover {
  background: rgba(0, 0, 0, 0.03);
}

.search__results .r-title {
  display: block;
  font-family: var(--display);
  font-size: 17px;
  color: #111;
}

.search__results .r-meta {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: rgba(0, 0, 0, 0.5);
}

.search__results mark {
  background: rgba(253, 49, 53, 0.18);
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}

.search__empty {
  margin: 20px 4px;
  font-family: var(--sans);
  font-size: 14px;
  color: rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .container,
  .legal__body {
    width: calc(100% - 96px);
  }
  .hero h1 {
    font-size: 22px;
    line-height: 31px;
  }
  .hero__copy p {
    font-size: 17px;
    line-height: 29px;
  }
  .hero__copy p.lead {
    font-size: 21px;
    line-height: 36px;
  }
  .store img {
    width: 190px;
    height: 63.3px;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 0 16px 0 15px;
  }

  .menu-btn {
    display: inline-flex;
    width: 44px;
    height: 44px;
    margin-left: -13px;
    margin-right: 1px;
    color: rgba(0, 0, 0, 0.6);
  }
  .menu-btn svg {
    width: 18px;
    height: 18px;
  }

  .brand__name {
    display: none;
  }

  .nav {
    display: none;
  }

  .search-btn {
    margin-left: 0;
    margin-right: 0;
    width: 40px;
    height: 40px;
  }

  main {
    padding-top: 38px;
    padding-bottom: 24px;
  }

  .container,
  .legal__body {
    width: 100%;
  }

  .hero {
    display: block;
  }

  .hero__copy {
    padding: 0 27.3px;
  }

  .hero h1 {
    margin-bottom: 29px;
    font-size: 20px;
    line-height: 28px;
  }

  .hero__copy p {
    font-size: 18.6667px;
    line-height: 31.1117px;
  }

  .hero__copy p.lead {
    margin-top: 28px;
    font-size: 22.6667px;
    line-height: 37.7785px;
  }

  .feature__icon {
    margin-right: 5px;
  }

  .store {
    margin: 13px 0 0;
    width: 135px;
  }
  .store img {
    width: 135px;
    height: 45px;
  }

  .hero__art {
    display: flex;
    justify-content: center;
    padding: 59px 0 0;
  }
  .hero__art img {
    width: 66%;
    max-width: 280px;
  }

  .legal__title {
    padding-top: 32px;
    font-size: 20px;
    line-height: 28px;
  }

  .legal__body {
    margin-top: 64px;
    padding: 0 27.3px;
    font-size: 14.6667px;
    line-height: 23px;
  }

  .legal__body .sec {
    font-size: 14.6667px;
    line-height: 23px;
  }

  .site-footer {
    padding: 32px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
