/* dabski.ai — Professional technical site */

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/source-serif-4-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/source-serif-4-latin-700.woff2') format('woff2');
}

:root {
  --text: #2C3E50;
  --accent: #2456A4;
  --accent-hover: #1B4485;
  --bg: #ffffff;
  --bg-alt: #f7f5f1;
  --border: #e5e1d8;
  --max-width: 900px;
  --text-width: 680px;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

.text-container {
  max-width: var(--text-width);
}

/* Navigation */
nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.75;
  transition: opacity 0.15s;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a.active {
  opacity: 1;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

/* Hero */
.hero {
  padding: 80px 0 60px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-text {
  flex: 1;
}

.hero-photo {
  width: 240px;
  flex-shrink: 0;
}

.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero .subtitle {
  font-size: 1.1rem;
  opacity: 0.75;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.15s;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* Sections */
section {
  padding: 60px 0;
}

section.alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1.05rem;
  opacity: 0.7;
  margin-bottom: 40px;
}

/* Service cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

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

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.card .duration,
.card .meta {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
}

/* Wider card columns (article grids): 2-up inside the 900px container */
.cards-wide {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.card p {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 16px;
}

.card a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.card a:hover {
  text-decoration: underline;
}

/* Fully clickable cards (e.g. "What I do" on the homepage) */
a.card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

a.card:hover,
a.card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(44, 62, 80, 0.10);
  transform: translateY(-2px);
}

.card-cta {
  margin-top: auto;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
}

a.card:hover .card-cta {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Credibility bar */
.credibility {
  padding: 32px 0;
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.8;
  font-weight: 500;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* CTA section */
.cta-section {
  text-align: center;
  padding: 48px 0;
}

/* Accent CTA band: reserved for the newsletter ask, once per page */
.cta-section.cta-accent {
  background: var(--accent);
}

.cta-section.cta-accent h2 {
  color: #fff;
}

.cta-section.cta-accent p {
  color: rgba(255, 255, 255, 0.85);
}

.cta-section.cta-accent a {
  color: rgba(255, 255, 255, 0.85);
}

.cta-section.cta-accent .btn {
  background: var(--bg-alt);
  color: var(--accent);
}

.cta-section.cta-accent .btn:hover {
  background: #fff;
}

.cta-section.cta-accent .signup-form input[type="email"] {
  border-color: transparent;
}

.cta-section h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.cta-section p {
  opacity: 0.7;
  margin-bottom: 28px;
}

/* Service detail (services page) */
.service-detail {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

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

.service-detail h2 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.service-detail .meta {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
}

.service-detail p {
  max-width: var(--text-width);
  margin-bottom: 12px;
}

.service-detail ul {
  margin: 12px 0 12px 20px;
}

.service-detail li {
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.service-detail .deliverable {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 12px;
}

/* Not offered section */
.not-offered {
  background: var(--bg-alt);
  padding: 32px;
  border-radius: 6px;
  margin-top: 40px;
}

.not-offered h3 {
  margin-bottom: 12px;
}

.not-offered p {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* About page */
.about-header {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 60px 0 40px;
}

.about-header img {
  width: 200px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.about-bio p {
  max-width: var(--text-width);
  margin-bottom: 16px;
}

.about-bio a,
.about-bio a:visited {
  color: var(--accent);
}

.tech-stack h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stack-grid h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.stack-grid p {
  font-size: 0.9rem;
  opacity: 0.75;
}

/* Contact page */
.contact-content {
  padding: 80px 0;
  max-width: 500px;
}

.contact-content h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-content > p {
  opacity: 0.7;
  margin-bottom: 32px;
}

.contact-method {
  margin-bottom: 24px;
}

.contact-method .label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.5;
  margin-bottom: 4px;
}

.contact-method a {
  color: var(--accent);
  text-decoration: none;
  font-size: 1.1rem;
}

.contact-method a:hover {
  text-decoration: underline;
}

.response-note {
  margin-top: 40px;
  font-size: 0.9rem;
  opacity: 0.6;
}

/* Footer */
footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  opacity: 0.5;
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  align-items: center;
}

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

footer a:hover {
  opacity: 0.8;
}

/* Links inside body text */
p a {
  color: var(--accent);
}

/* Button groups */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

/* Email signup form */
.signup-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  max-width: 440px;
  margin: 0 auto;
}

.signup-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  color: var(--text);
}

.signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

.signup-form button {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Blog listing */
.blog-header {
  padding: 60px 0 20px;
}

.blog-header h1 {
  font-size: 2rem;
}

.blog-placeholder {
  padding: 60px 0;
  text-align: center;
  opacity: 0.6;
}

/* Credential grid */
.credential-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}

/* Cert & education links: quiet by default, accent on hover — 20 blue links would drown the band */
.credential-grid a,
.edu-list a {
  color: inherit;
  text-decoration: none;
}

.credential-grid a:hover,
.edu-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.edu-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.edu-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    padding: 40px 0;
    text-align: center;
  }

  .hero-photo {
    width: 180px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

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

  .cards {
    grid-template-columns: 1fr;
  }

  .about-header {
    flex-direction: column;
    align-items: center;
  }

  .about-bio h1 {
    text-align: center;
  }

  .stack-grid {
    grid-template-columns: 1fr;
  }

  .credential-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 16px;
  }

  nav .container {
    flex-direction: column;
    gap: 12px;
  }

  footer .container {
    justify-content: center;
    text-align: center;
  }
}
