/* PinFlow Studio public site — static, no external dependencies. */

:root {
  --bg: #060a20;
  --surface: #0f1533;
  --surface-border: #26305e;
  --text: #eef1fb;
  --muted: #b8c0dc;
  --link: #5ee7f0;
  --link-hover: #a5f3f8;
  --accent: #a78bfa;
  --focus: #ffd166;
  --max: 46rem;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

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

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--focus);
  color: #000;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: #000;
}

main:focus {
  outline: none;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header and navigation */

.site-header {
  border-bottom: 1px solid var(--surface-border);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0.1rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--text);
  border-bottom-color: var(--muted);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--link);
}

/* Main content */

main {
  flex: 1 0 auto;
  padding: 2.5rem 0 3rem;
  /* Lets long unbroken text such as the site URL wrap on narrow screens. */
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.6rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.4rem;
  margin: 2.25rem 0 0.75rem;
}

p,
ul {
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--text);
}

.muted {
  color: var(--muted);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero img {
  width: 240px;
  height: 240px;
  margin-bottom: 1.5rem;
}

.status {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.95rem;
}

.card {
  margin: 2rem 0 0;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
}

.card h2 {
  margin-top: 0;
}

.email {
  font-size: 1.2rem;
  font-weight: 700;
  overflow-wrap: break-word;
}

@media (max-width: 400px) {
  .email {
    font-size: 1rem;
  }
}

/* Footer */

.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--surface-border);
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.note {
  margin-top: 2rem;
}
