/* Jarl AB — private draft. Black/white, high contrast, modern sans-serif. */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --fg: #f5f5f5;
  --muted: #a3a3a3;
  --border: #2a2a2a;
  --accent: #ffffff;
  --focus: #e5e5e5;
  --danger: #f87171;
  --max: 960px;
  --nav-h: 72px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 100;
}

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

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--fg);
  flex-shrink: 0;
}

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

.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.brand-wordmark {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

.nav .nav-cta {
  margin-left: 0.5rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--fg);
  border-bottom: 1px solid var(--fg);
  color: var(--bg);
  background: var(--fg);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.nav .nav-cta:hover {
  background: transparent;
  color: var(--fg);
}

/* Main */
main {
  flex: 1;
  width: 100%;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

/* Decorative logo backgrounds */
.logo-bg {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  max-width: none;
}

.logo-bg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Large centered logo behind home hero content */
.hero-logo-bg {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(180vw, 1840px);
  opacity: 0.16;
}

/* Subtle logo behind sticky header (inner pages) */
.header-logo-bg {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(140vw, 840px);
  height: calc(var(--nav-h) * 2 + 48px);
  opacity: 0.07;
}

.site-header {
  overflow: hidden;
}

.header-inner {
  position: relative;
  z-index: 1;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 255, 255, 0.06), transparent),
    var(--bg);
  min-height: min(78vh, 720px);
  display: flex;
  align-items: center;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.25rem 5.5rem;
  display: block;
  text-align: center;
}

.hero-inner .lead {
  margin-left: auto;
  margin-right: auto;
}

.hero-inner .btn-row {
  justify-content: center;
}

.hero-inner h1 {
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.85), 0 2px 12px rgba(0, 0, 0, 0.9);
}

.hero-inner .lead,
.hero-inner .eyebrow {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 36em;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--fg);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--fg);
  color: var(--bg);
}

.btn-primary:hover {
  background: transparent;
  color: var(--fg);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
}

.btn-ghost:hover {
  background: var(--fg);
  color: var(--bg);
}

/* Sections */
.section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
}

.section-intro {
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 40em;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 1.5rem;
}

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

.card h3 {
  letter-spacing: 0.02em;
}

/* Prose */
.prose p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 42em;
}

.prose ul {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.prose li {
  margin-bottom: 0.4rem;
}

.placeholder-note {
  font-size: 0.8rem;
  color: var(--muted);
  border-left: 2px solid var(--border);
  padding-left: 0.75rem;
  margin: 1.5rem 0 0;
}

/* Contact form */
.form-wrap {
  max-width: 32rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--fg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.95rem;
}

.form-status.visible {
  display: block;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--fg);
}

.footer-meta {
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
