/* Basic placeholder styling - easy to restyle later.
   All colours and sizing live in the variables below. */

:root {
  --bg: #ffffff;
  --text: #1f2933;
  --muted: #5f6c7b;
  --accent: #1d4ed8;
  --border: #e2e8f0;
  --card-bg: #f8fafc;
  --max-width: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111827;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --accent: #7cb0ff;
    --border: #2d3748;
    --card-bg: #1a2233;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

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

/* Header */
.site-header {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}

.site-header h1 {
  margin: 0 0 0.25rem;
  font-size: 2.25rem;
  line-height: 1.2;
}

.tagline {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.125rem;
}

nav a {
  margin-right: 1.25rem;
  text-decoration: none;
  font-weight: 600;
}

nav a:hover { text-decoration: underline; }

/* Sections */
section { padding: 2rem 0 0.5rem; }

h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  line-height: 1.3;
}

h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  line-height: 1.35;
}

p { margin: 0 0 1rem; }

/* Offer cards */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.card {
  padding: 1rem 1.1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

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

/* Projects */
.project {
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.project:last-child { border-bottom: 0; }

.dates {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.95rem;
}

.tech {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
}

figure { margin: 0 0 1rem; }

figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p { margin: 0; }

@media (max-width: 480px) {
  .site-header h1 { font-size: 1.9rem; }
  body { font-size: 1rem; }
}
