/* Beyo — shared site styles (HTML + CSS only) */

:root {
  --bg: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --link: #079dfd;
  --link-hover: #0077cc;
  --rule: #d2d2d7;
  --max-width: 720px;
  --page-pad-x: 24px;
  --page-pad-y: 48px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--page-pad-y) var(--page-pad-x);
  flex: 1 0 auto;
}

main {
  display: block;
}

/* Landing */

.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - 120px);
  padding: 64px var(--page-pad-x) 48px;
}

.landing .brand {
  margin: 0 0 16px;
  font-size: clamp(40px, 8vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.landing .tagline {
  margin: 0 0 40px;
  max-width: 28em;
  color: var(--text-secondary);
  font-size: 19px;
  line-height: 1.45;
  font-weight: 400;
}

.landing-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-links a {
  font-size: 17px;
}

/* Typography */

h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.15;
}

h2 {
  margin: 2.25em 0 0.65em;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.016em;
  line-height: 1.25;
}

h2:first-of-type {
  margin-top: 1.75em;
}

h3 {
  margin: 1.5em 0 0.5em;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.3;
}

p {
  margin: 0 0 1em;
}

.meta {
  margin: 0 0 1.5em;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.45;
}

.meta strong {
  color: var(--text-secondary);
  font-weight: 500;
}

.lede {
  margin-bottom: 1.25em;
  color: var(--text);
}

ul,
ol {
  margin: 0 0 1.15em;
  padding-left: 1.35em;
}

li {
  margin: 0 0 0.45em;
  padding-left: 0.15em;
}

li::marker {
  color: var(--text-secondary);
}

/* Links */

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

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

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

/* Rules */

hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

/* Article chrome */

.back {
  margin: 0 0 2em;
  font-size: 15px;
}

.back a {
  color: var(--text-secondary);
}

.back a:hover {
  color: var(--link);
}

.contact-block {
  margin-top: 0.25em;
}

.contact-block p {
  margin-bottom: 0.35em;
}

/* Footer */

.site-footer {
  flex-shrink: 0;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px var(--page-pad-x) 48px;
  border-top: 1px solid var(--rule);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.site-footer p {
  margin: 0 0 0.5em;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  justify-content: center;
}

.site-footer a {
  color: var(--text-secondary);
}

.site-footer a:hover {
  color: var(--link);
}

.version-line {
  margin-top: 0.75em;
  color: var(--text-secondary);
  font-size: 13px;
}

/* Responsive */

@media (max-width: 600px) {
  :root {
    --page-pad-x: 20px;
    --page-pad-y: 36px;
  }

  body {
    font-size: 16px;
  }

  .landing .tagline {
    font-size: 17px;
  }

  h2 {
    font-size: 20px;
  }
}

@media (min-width: 900px) {
  :root {
    --page-pad-y: 64px;
  }
}
