/* ═══════════════════════════════════════════════════════════
   Dexmarine — Reset & Base Styles
   ═══════════════════════════════════════════════════════════ */

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

/* ─── Margin / Padding Reset ────────────────────────────── */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* ─── HTML5 display-role reset ──────────────────────────── */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}

/* ─── HTML / Body ───────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ─── Headings ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: var(--color-text);
}

h2 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  font-weight: var(--fw-xbold);
}

h3 {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
}

/* ─── Links ──────────────────────────────────────────────── */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-out);
}

a:hover {
  color: var(--color-accent-light);
}

/* ─── Images ─────────────────────────────────────────────── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ─── Lists ──────────────────────────────────────────────── */
ul, ol {
  list-style: none;
}

/* ─── Buttons ────────────────────────────────────────────── */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  font-size: inherit;
}

/* ─── Inputs ─────────────────────────────────────────────── */
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ─── Touch target minimums ──────────────────────────────── */
.btn,
button,
input[type="submit"],
a.btn {
  min-height: 44px;
}

/* ─── Focus visible ──────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ─── Selection ──────────────────────────────────────────── */
::selection {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ─── Scrollbar (optional polish) ───────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--color-text-faint);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}