/* PulyxCo website. Colors and fonts match the Olivegrain app. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("fonts/Mulish-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #F4F1E6;
  --card: #FFFDF7;
  --text: #22291A;
  --muted: #545B48;
  --brand: #3E472D;
  --border: #E3DDCA;
  --tint: #E8EADA;
  --icon-tile: #F4F1E6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151910;
    --card: #1C2117;
    --text: #F1ECDD;
    --muted: #BFBAA8;
    --brand: #AFC08A;
    --border: #2E3525;
    --tint: #252C1D;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 1; background: var(--card); padding: 0.5rem 0.75rem; }

/* Header */
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.wordmark {
  font-family: "Mulish", "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.site-header nav { display: flex; gap: 0.25rem; margin-right: -0.7rem; }
.site-header nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--text); background: var(--tint); }

/* Text */
main { padding-bottom: 3.5rem; }
h1 {
  font-size: clamp(1.875rem, 1.4rem + 2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 1.25rem 0 0.75rem;
}
h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 2.25rem 0 0.5rem;
}
p { margin: 0 0 1rem; }
strong { font-weight: 700; }
.lead { font-size: 1.1875rem; color: var(--muted); }
.muted { color: var(--muted); }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.25rem 1.25rem 0.25rem;
  margin: 1.25rem 0;
}
.card > h2:first-child { margin-top: 0; }
.notice {
  background: var(--tint);
  border-radius: 0.875rem;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Home */
.hero { padding-top: 0.5rem; }
.app-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.app-head h2 { margin: 0; font-size: 1.5rem; }
.app-head p { margin: 0; color: var(--muted); line-height: 1.5; }
.app-icon {
  flex: none;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 1.1rem;
  background: var(--icon-tile);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}
.app-icon img { display: block; width: 2.1rem; height: 3rem; }
.stores { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.button {
  display: inline-block;
  background: var(--brand);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 40rem) { .link-list { grid-template-columns: 1fr 1fr; } }
.link-list a {
  display: block;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.9rem 1.1rem;
  color: var(--text);
  text-decoration: none;
}
.link-list a:hover { border-color: var(--brand); }
.link-list strong { display: block; }
.link-list span { display: block; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }

/* Documents */
.eyebrow {
  margin: 1.25rem 0 0;
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.doc h1 { margin-top: 0.25rem; }
.meta { color: var(--muted); font-size: 0.9375rem; }
.summary {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: 0.875rem;
  padding: 1rem 1.25rem;
  font-size: 1.125rem;
  line-height: 1.6;
}
.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 0.75rem 1.25rem;
  margin: 1rem 0 0;
}
.toc summary { cursor: pointer; font-weight: 700; }
.toc ol { margin: 0.5rem 0 0.25rem; padding-left: 1.25rem; }
.toc li { margin: 0.2rem 0; }
.doc section { scroll-margin-top: 1rem; }
.source-note { margin-top: 2.5rem; color: var(--muted); font-size: 0.9375rem; }
.site-note { border-top: 1px solid var(--border); margin-top: 1.5rem; padding-top: 0.25rem; }
.email { font-size: 1.1875rem; font-weight: 700; }

/* Apps */
h3 { font-size: 1.0625rem; line-height: 1.4; font-weight: 700; margin: 1.5rem 0 0.25rem; }
.app-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.app-list .card { margin: 0; }
.app-head h3 { margin: 0; font-size: 1.5rem; line-height: 1.2; }
.app-head h2 a, .app-head h3 a { color: var(--text); text-decoration: none; }
.app-head h2 a:hover, .app-head h3 a:hover { text-decoration: underline; }
.app-head-small { margin-bottom: 0.5rem; }
.app-head-small .app-icon { width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; }
.app-head-small .app-icon img { width: 1.4rem; height: 2rem; }
.app-hero { padding-top: 0.25rem; }
.app-hero .app-head h1 { margin: 0 0 0.25rem; }
.app-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.button-outline {
  display: inline-block;
  border: 1px solid var(--brand);
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  padding: 0.4rem 1rem;
  border-radius: 999px;
}
.button-outline:hover { background: var(--tint); }

/* App sub-navigation (on each app's pages) */
.subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.5rem 0;
  margin-bottom: 1.25rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}
.subnav-app { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--text); text-decoration: none; }
.subnav-app img { display: block; width: 0.875rem; height: 1.25rem; }
.subnav-links { display: flex; flex-wrap: wrap; gap: 0.125rem; margin: 0 -0.6rem; }
.subnav-links a { color: var(--muted); font-weight: 600; text-decoration: none; padding: 0.25rem 0.6rem; border-radius: 999px; }
.subnav-links a:hover, .subnav-links a[aria-current="page"] { color: var(--text); background: var(--tint); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
  padding: 1.5rem 0 2.5rem;
}
.site-footer p { margin: 0.25rem 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0 0 0.5rem; }
.footer-links a { color: var(--text); }
.footer-links .footer-app { font-weight: 700; text-decoration: none; }
.site-footer .footer-meta { margin-top: 1rem; }

@media print {
  .site-header nav, .subnav, .site-footer .footer-links, .toc { display: none; }
  body { background: #fff; color: #000; }
}
