/* prettydamnnotbad — recreated static site
   Typography matched to the original Squarespace "Brine" theme:
   - Font: Poppins throughout
   - Headings + logo (site title): weight 500, color navy #253551, line-height 1.4
   - Body + navigation: weight 300, color black #000, line-height 1.8
   - Buttons: weight 500, letter-spacing .02em, no text-transform */

:root {
  --accent: #253551;        /* headings + logo (site accent color) */
  --ink: #000;              /* body / navigation text */
  --white: #fff;
  --page-padding: 3vw;
  --max-width: 2560px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus {
  left: 1rem; top: 0.5rem; background: #fff; color: var(--ink);
  padding: 0.4rem 0.8rem; z-index: 100;
}

/* ---------- Header (transparent, overlays content) ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5vw var(--page-padding);
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

/* Site title / logo — heading font, navy, weight 500 */
.logo {
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--accent);
  white-space: nowrap;
}

/* Navigation — body font, black, weight 300 */
.nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.nav a {
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: opacity 0.2s ease;
}
.nav a:hover { opacity: 0.55; }
.nav a[aria-current="page"] { border-bottom-color: currentColor; }
/* hamburger */
.menu-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: 0.4rem; flex-direction: column; gap: 6px;
  margin-left: auto;
  color: var(--ink);
}
.menu-toggle span {
  display: block; width: 26px; height: 2px; background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Cover pages invert the transparent header to white over the image */
.cover-theme .logo,
.cover-theme .nav a,
.cover-theme .menu-toggle { color: var(--white); }

/* When the mobile menu overlay (white) is open, header reverts to dark */
.cover-theme.menu-open .logo,
.cover-theme.menu-open .nav a,
.cover-theme.menu-open .menu-toggle { color: var(--ink); }

/* ---------- Cover pages (home, support): full-bleed image ---------- */
.cover {
  position: relative;
  min-height: 100vh;
  background-image: url("/assets/hero.webp");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.cover-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--page-padding);
  display: flex;
  justify-content: flex-end;     /* content sits in the right half */
}
.cover-content {
  color: var(--white);
  text-align: left;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.22);
}

/* Tagline / lead are <h2> headings — Poppins 500.
   max-width tuned so the line breaks match the original:
   "We make not horrible / software that you might / like." */
.cover-content .tagline,
.cover-content .lead {
  display: block;
  font-weight: 500;
  font-size: clamp(2rem, 3.53vw, 3.3rem);
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0;
}
.cover-content .tagline { max-width: 12.15em; }
.cover-content .lead { max-width: 12.15em; margin-bottom: 2.4em; }

/* Button — Poppins 500, letter-spacing .02em, no transform */
.button {
  display: block;
  width: fit-content;
  margin: 0 auto;             /* centered within the text block */
  border: 2px solid currentColor;
  border-radius: 6px;
  padding: 1.3em 2.17em;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: none;
  background: transparent;
  color: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}
.cover-content .button:hover { background: var(--white); color: var(--accent); }

/* ---------- Legal page (privacy) ---------- */
.legal {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(8rem, 14vw, 13rem) var(--page-padding) 12vh;
}
/* Headings: navy, weight 500, line-height 1.4, no letter-spacing */
.legal h1, .legal h2, .legal h3 {
  color: var(--accent);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
}
.legal h1 { font-size: clamp(2.6rem, 5vw, 4.5rem); margin: 0 0 1.4rem; }
.legal h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); margin: 3rem 0 1.2rem; }
.legal h3 { font-size: clamp(1.5rem, 2.45vw, 2.2rem); margin: 2.2rem 0 0.6rem; }

/* Body copy: black, weight 300, line-height 1.8 */
.legal .updated { color: var(--ink); margin: 0 0 2.2rem; font-size: 1.1rem; }
.legal p { color: var(--ink); font-weight: 300; font-size: 1.1rem; line-height: 1.8; margin: 0 0 1.4rem; max-width: 74ch; }
.legal ul { margin: 0 0 1.4rem; padding-left: 1.3rem; max-width: 74ch; }
.legal li { color: var(--ink); font-weight: 300; font-size: 1.1rem; line-height: 1.8; margin-bottom: 0.4rem; }
.legal a { text-decoration: underline; }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .header-inner { padding: 5vw var(--page-padding); }
  .logo { font-size: 1.25rem; }
  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    inset: 0;
    background: var(--white);
    color: var(--ink);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 40;
  }
  .nav a { font-size: 1.6rem; color: var(--ink); }

  body.menu-open .nav { transform: translateX(0); }
  body.menu-open { overflow: hidden; }
  body.menu-open .menu-toggle { position: relative; z-index: 60; }
  body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .cover-inner { justify-content: center; }
  .cover-content { text-align: center; max-width: 24ch; }
}
