/* Southport Entertainment: shared styles for every page.
   Plain CSS. Colors follow the visitor's light or dark system setting. */

:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1a1f24;
  --muted: #59636e;
  --border: #e3dfd7;
  --accent: #0b6e8a;
  --on-accent: #ffffff;
  --accent-soft: #e4f1f4;
  --shadow: 0 1px 2px rgb(20 30 40 / 0.04), 0 6px 20px rgb(20 30 40 / 0.06);
  --radius: 16px;
  --max: 46rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1316;
    --surface: #151c21;
    --text: #e6ebee;
    --muted: #9aa6ae;
    --border: #253039;
    --accent: #5cc3d9;
    --on-accent: #0e1316;
    --accent-soft: #132c35;
    --shadow: none;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  padding-bottom: 4rem;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

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

/* Header */

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
}

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

.nav a {
  display: block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Home */

.hero {
  padding-block: clamp(2.75rem, 9vw, 5rem) 2.5rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.1rem, 7vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.lede {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.125rem, 3vw, 1.3rem);
  line-height: 1.5;
}

.section-title {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.apps {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.app-icon {
  width: 56px;
  height: 56px;
  flex: none;
}

.app h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  margin: 0;
  font-size: 1.15rem;
}

.app p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.badge {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Privacy, support and other text pages */

.page {
  padding-top: clamp(2.25rem, 7vw, 3.75rem);
}

.page h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 6vw, 2.6rem);
  letter-spacing: -0.025em;
}

.page .lede {
  margin: 0.5rem 0 2rem;
}

.meta {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.prose h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.3rem;
}

.prose h3 {
  margin: 1.5rem 0 0.35rem;
  font-size: 1.08rem;
}

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

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.callout {
  margin: 0 0 2rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.callout p {
  margin: 0;
}

.contact-card {
  margin: 0 0 2.25rem;
  padding: 1.4rem 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.contact-card p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.contact-card .email {
  font-size: 1.2rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.button {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.5rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

@media (prefers-reduced-motion: no-preference) {
  .nav a,
  .button {
    transition: background-color 0.15s ease, color 0.15s ease;
  }
}
