/* Port-Light landing page — reset, typography, shared components. */

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; }

.kicker {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.lead { color: var(--text-dim); font-size: 1.1rem; max-width: 58ch; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  transition: border-color .2s, background .2s, transform .15s, filter .2s;
}
.btn:hover { border-color: var(--accent); transform: translateY(-1px); text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--bg); border-color: transparent; font-family: var(--font-mono); font-weight: 500; font-size: .88rem; }
.btn.primary:hover { filter: brightness(1.12); }

code, pre { font-family: var(--font-mono); }

pre.codeblock {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  font-size: .85rem;
  line-height: 1.55;
  position: relative;
  margin: 0;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  font-size: .72rem;
  font-family: var(--font-mono);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text-dim);
  transition: color .15s, border-color .15s;
}
.copy-btn:hover { color: var(--text); border-color: var(--accent); }

.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
