/*
  Scleepey site styles. One file, no @import, no external url(), no web fonts.
  Light theme only. The accent is turquoise #24B3AD by default and coral #FA767A
  on body.product-yaypoop. The header stripe colours are fixed and never follow
  the accent. Accents are used ONLY for large shapes, borders and button
  backgrounds (with dark text). Never for small text on the page.
  Hot pink --pop is Scleepey-only. It is used for selection, the 404 button and
  (as darker #c2006b) the link hover. It is never used as small static text.
  The Home nav link's hover is magenta on every page, including YayPoop, because
  it leads back to Scleepey. On Scleepey pages only, the Home current-page bar is
  pink. YayPoop shows no other pink.

  CLASS NAMES (HTML author reference)
  Page skeleton, plain semantic elements:
    <body>                                   YayPoop page only: <body class="product-yaypoop">
      <a class="skip-link" href="#main">Skip to content</a>
      <header class="site-header">
        <div class="wrap">
          <a class="wordmark" href="/">Scleepey LLC</a>      text wordmark
          <nav class="site-nav" aria-label="Main">
            <ul><li><a href="/">Home</a></li>
                <li><a href="/yaypoop/" aria-current="page">YayPoop</a></li></ul>
          </nav>
        </div>
      </header>
      <main id="main" class="wrap"> ... </main>
      <footer class="site-footer"><div class="wrap"> <p>...</p> <ul class="footer-contact">...</ul> </div></footer>
    </body>
  Components:
    .wrap          readable centered column (max ~40rem); used in header, main, footer
    .logo          <img class="logo"> app logo, responsive, centered block
    .button        primary button-like link: <a class="button" href="...">Text</a>
    .lede          slightly larger intro paragraph
    .notice        calm callout box with accent left border (e.g. "Coming to the App Store")
    .not-found     404 message block: <section class="not-found"><h1>...</h1><p>...</p>
                   <a class="button" href="/">Back to home</a></section>
    .muted         secondary text (still AA contrast)
    nav current page: add aria-current="page" to the link (gets an accent underline bar)
  Plain elements styled: h1-h3, p, ul, ol, a, hr, small, strong, em.
*/

:root {
  --bg: #fdfbf9;
  --text: #22262b;
  --muted: #4d545c;
  --ink: #111;
  --accent: #24b3ad;
  --accent-hover: #3cc0ba;
  --stripe-a: #24b3ad;
  --stripe-b: #5b2a86;
  --stripe-c: #111;
  --link: #0b6f6c;
  --link-hover: #c2006b;
  --pop: #ff2e93;
  --pop-text: #c2006b;
  --border: #ece4df;
  --focus: #1a3a8f;
  --column: 40rem;
  color-scheme: light;
}

body.product-yaypoop {
  --accent: #fa767a;
  --accent-hover: #f9898c;
  --link-hover: #07524f;
}

body:not(.product-yaypoop) ::selection { background: var(--pop); color: #111; }

*, *::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: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: var(--column);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

main {
  flex: 1 0 auto;
  padding-block: 2.5rem 4rem;
}

h1, h2, h3 {
  line-height: 1.25;
  font-weight: 650;
  margin: 2.25rem 0 0.75rem;
}
h1 { font-size: 2rem; margin-top: 0.5rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }

p, ul, ol { margin: 0 0 1.25rem; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }
hr { border: 0; border-top: 2px solid var(--border); margin: 2.5rem 0; }

.lede { font-size: 1.25rem; }
.muted { color: var(--muted); }

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--link-hover); text-decoration-thickness: 0.14em; }

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--bg);
  padding: 0.5rem 0.9rem;
  z-index: 10;
}
.skip-link:focus { top: 0.75rem; border: 2px solid var(--text); }
main:focus { outline: none; }

/* Header and nav */
.site-header {
  background: linear-gradient(to right, var(--stripe-a) 0 72%, transparent 72% calc(72% + 6px), var(--stripe-b) calc(72% + 6px) 80%, transparent 80% calc(80% + 6px), var(--stripe-c) calc(80% + 6px) 100%) no-repeat;
  background-size: 100% 10px;
  border-bottom: 2px solid var(--ink);
  padding-block: calc(1.1rem + 10px) 1.1rem;
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.wordmark {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.wordmark:hover { color: var(--text); text-decoration: underline; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: inline-block;
  padding: 0.6rem 0;
  color: var(--link);
}
.site-nav a:hover { color: var(--link-hover); }
.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
  border-bottom: 4px solid var(--accent);
}
/* Home is the current page only on Scleepey pages: pink bar, same 4px width. */
.site-nav a[href="/"][aria-current="page"] { border-bottom-color: var(--pop); }
/* Specificity (0,3,1) beats the aria-current rule (0,2,1); Home is magenta on every page. */
.site-nav a[href="/"]:hover,
.site-nav a[href="/"]:active { color: var(--pop-text); }

/* Logo */
.logo {
  display: block;
  width: 100%;
  max-width: 14rem;
  height: auto;
  margin: 0 auto 2rem;
}

/* Primary button-like link: accent background, dark text */
.button {
  display: inline-block;
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 650;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  min-height: 2.75rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
}
.button:hover {
  color: #1a1a1a;
  background: var(--accent-hover);
  border-color: var(--ink);
}

/* Callout */
.notice {
  border-left: 8px solid var(--accent);
  background: #fff;
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
}
.notice > :last-child { margin-bottom: 0; }

/* 404 */
.not-found { text-align: center; padding-block: 3rem; }
.not-found h1 { font-size: 2.25rem; }
.not-found .button { background: var(--pop); }
.not-found .button:hover { background: #ff5aa8; }

/* Footer */
.site-footer {
  border-top: 2px solid var(--ink);
  padding-block: 2rem 2.5rem;
  color: var(--muted);
  font-size: 0.975rem;
}
.site-footer p { margin-bottom: 0.6rem; }
.site-footer .footer-contact { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-contact li { margin-bottom: 0.3rem; }

@media (max-width: 30rem) {
  body { font-size: 1.0625rem; }
  .wordmark { font-size: 1.1rem; }
  h1 { font-size: 1.7rem; }
  main { padding-block: 1.75rem 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
