:root {
  --bg: #ffffff;
  --heading: #000000;   /* black for headings + wordmark */
  --text: #1a1a1a;      /* near-black body text — softer than pure #000 */
  --muted: #6b6b6b;     /* medium grey for secondary text */
  --accent: #0a2540;    /* very dark navy — echoes the Untoil-icon background; ~14:1 on white */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  line-height: 1.5;
}

/* Shared column: header and main share a left-anchored max width */
.site-header,
main {
  width: 100%;
  max-width: 46rem;
}

/* Header / logo (top-left) */
.wordmark {
  display: inline-block;
  font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  line-height: 1.05;
  color: var(--heading);
  text-decoration: none;
}

.wordmark:hover {
  color: #333333;
}

/* Main content */
main {
  margin-top: 3rem;
  margin-bottom: auto;   /* push footer to the bottom */
}

body.home main {
  margin-top: auto;      /* vertically center the home content */
  max-width: none;       /* allow the Untoil card to center across full width */
}

body.home .product {
  justify-content: center;   /* center the Untoil icon + text horizontally */
}

/* Tagline, normal size, directly under the wordmark */
.tagline {
  margin-top: 0.5rem;
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
}

/* Content-page headings & text */
main h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--heading);
}

main h2 {
  margin-top: 2rem;
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  font-weight: 400;
  color: var(--heading);
}

main p {
  margin-top: 1rem;
  max-width: 38rem;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  line-height: 1.65;
}

main a {
  color: var(--accent);
  text-decoration: none;
}

main a:hover {
  text-decoration: underline;
}

/* Untoil product card (home) */
.product {
  margin-top: 2.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.product-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.product-icon {
  width: 112px;
  height: 112px;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}

.product-info h2 {
  margin-top: 0;
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  font-weight: 400;
  color: var(--heading);
}

.badge {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.25em 0.7em;
  white-space: nowrap;
}

/* Footer */
footer {
  width: 100%;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;   /* right-align the two bottom rows */
  gap: 0.75rem;
  font-size: 1.05rem;
  color: var(--muted);
  text-align: right;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1.4rem;
}

.footer-nav a {
  color: var(--accent);
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

/* Content pages (privacy etc.) — only loaded on pages that use them */

main h3 {
  margin-top: 1.75rem;
  font-size: clamp(1.05rem, 2.8vw, 1.2rem);
  font-weight: 400;
  color: var(--heading);
}

main ul,
main ol {
  margin-top: 0.75rem;
  padding-left: 1.5rem;
  max-width: 38rem;
}

main li {
  margin-top: 0.4rem;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  line-height: 1.65;
}

main li::marker {
  color: var(--muted);
}

main strong {
  color: #000000;
  font-weight: 700;
}

main em {
  color: var(--muted);
  font-style: italic;
}

main code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

main hr {
  margin: 2.25rem 0;
  border: 0;
  border-top: 1px solid var(--muted);
  opacity: 0.4;
  max-width: 38rem;
}

main .meta {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
}

main .meta strong {
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 480px) {
  body {
    padding: 1.5rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }

  .product {
    gap: 1rem;
  }

  .product-icon {
    width: 88px;
    height: 88px;
  }

  footer {
    font-size: 0.95rem;
  }
}
