/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

img,
picture,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------- Base ---------- */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p {
  color: var(--color-text-secondary);
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ---------- Shared components ---------- */

/* Site nav */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 0.5px solid var(--color-border);
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--color-text);
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

/* Page header (per-tab wordmark) */
.page-header {
  padding: var(--space-xl) var(--space-lg) var(--space-md);
}

.page-header .wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  color: var(--color-text);
}

.page-header .wordmark .highlight {
  color: var(--color-accent);
}

.page-header .subtitle {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: var(--space-xs);
  max-width: 420px;
}

/* Project card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding: var(--space-xs) var(--space-lg) var(--space-xl);
}

.card {
  background: var(--color-surface);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: var(--color-border-strong);
}

.card-image {
  height: 130px;
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Video-style thumbnail, used on the Films tab (16:9, YouTube-style) */
.card-image--video {
  height: auto;
  aspect-ratio: 16 / 9;
  position: relative;
}

.card-play-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(32, 30, 27, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-body {
  padding: 1.1rem;
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 6px;
}

.card-description {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.card-external-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-external-domain {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* Buttons */
.btn-accent {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-accent-text);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
}

/* Footer */
.site-footer {
  padding: var(--space-lg);
  border-top: 0.5px solid var(--color-border);
  font-size: 12px;
  color: var(--color-text-muted);
  display: flex;
  justify-content: space-between;
}
