/* ============================================
   ABCDataworks — Retro-Modern Stylesheet
   Hand-built. On purpose.
   ============================================ */

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

:root {
  --black: #1a1a1a;
  --white: #f8f6f1;
  --cream: #f0ece4;
  --gray: #6b6b6b;
  --gray-light: #d4d0c8;
  --gray-med: #9a9a8e;
  --accent: #2d5a27;
  --accent-light: #4a8c3f;
  --accent-pale: #e8f0e6;
  --border: #b0aaa0;
  --link: #2d5a27;
  --link-hover: #1a3a17;
  --shadow: rgba(0,0,0,0.08);
  --font-body: 'Georgia', 'Times New Roman', serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  --font-heading: 'Helvetica Neue', 'Arial', sans-serif;
  --max-width: 860px;
  --border-style: 2px solid var(--border);
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--black);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Visible Page Frame (the retro nod) --- */
.page-frame {
  max-width: 960px;
  margin: 0 auto;
  border-left: var(--border-style);
  border-right: var(--border-style);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
}

/* --- Header / Masthead --- */
.masthead {
  border-bottom: 3px solid var(--black);
  padding: 1.8rem 2rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.masthead h1 {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
}

.masthead h1 a {
  color: inherit;
  text-decoration: none;
}

.masthead h1 a:hover {
  color: var(--accent);
}

.masthead .tagline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Navigation Bar (tiled nav — the retro part) --- */
.nav-bar {
  border-bottom: var(--border-style);
  padding: 0;
  display: flex;
  background: var(--cream);
}

.nav-bar a {
  display: block;
  padding: 0.6rem 1.3rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--black);
  border-right: 1px solid var(--border);
  transition: background 0.15s ease, color 0.15s ease;
  letter-spacing: 0.01em;
}

.nav-bar a:last-child {
  border-right: none;
}

.nav-bar a:hover {
  background: var(--accent);
  color: var(--white);
}

.nav-bar a.active {
  background: var(--black);
  color: var(--white);
}

/* --- Main Content Area --- */
.content {
  flex: 1;
  padding: 2.5rem 2.5rem 3rem;
}

/* --- Page Title --- */
.page-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.page-subtitle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gray);
  margin-bottom: 2rem;
  letter-spacing: 0.03em;
}

/* --- Horizontal Rule (visible, retro) --- */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

hr.thick {
  border-top: 2px solid var(--black);
}

/* --- Section Blocks --- */
.section-block {
  margin-bottom: 2.5rem;
}

.section-block h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.01em;
}

.section-block h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.section-block p {
  margin-bottom: 1rem;
}

/* --- Info Table (retro grid for key-value pairs) --- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
}

.info-table td {
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--border);
  vertical-align: top;
}

.info-table td:first-child {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  width: 280px;
  background: var(--cream);
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Card Grid (for services) --- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.card {
  border: var(--border-style);
  padding: 1.5rem;
  background: var(--white);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 4px 4px 0 var(--shadow);
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card .card-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.6rem;
  display: block;
}

.card p {
  font-size: 0.92rem;
  line-height: 1.65;
}

/* --- Timeline (for experience) --- */
.timeline-entry {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 2rem;
  border-left: 2px solid var(--border);
}

.timeline-entry::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.timeline-entry .timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.3rem;
}

.timeline-entry h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
}

.timeline-entry .timeline-dates {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray);
}

.timeline-entry .timeline-role {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.timeline-entry ul {
  list-style: none;
  padding: 0;
}

.timeline-entry li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.timeline-entry li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gray-med);
}

/* --- Callout Box --- */
.callout {
  border: var(--border-style);
  border-left: 4px solid var(--accent);
  padding: 1.2rem 1.5rem;
  background: var(--accent-pale);
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.callout strong {
  font-family: var(--font-heading);
}

/* --- Skills / Tags --- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--gray);
  letter-spacing: 0.02em;
}

/* --- Links --- */
a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--link-hover);
}

/* --- Footer --- */
.footer {
  border-top: 3px solid var(--black);
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray);
  background: var(--cream);
}

.footer a {
  color: var(--gray);
}

.footer a:hover {
  color: var(--black);
}

/* --- Hero (home page) --- */
.hero {
  padding: 3rem 0 2rem;
}

.hero h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero .hero-lead {
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.hero .hero-cta {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.6rem;
  border: 2px solid var(--black);
  color: var(--black);
  text-decoration: none;
  transition: all 0.15s ease;
  letter-spacing: 0.01em;
}

.hero .hero-cta:hover {
  background: var(--black);
  color: var(--white);
}

/* --- Three-up grid (home page) --- */
.three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: var(--border-style);
  margin: 2rem 0;
}

.three-up .cell {
  padding: 1.3rem;
  border-right: 1px solid var(--border);
}

.three-up .cell:last-child {
  border-right: none;
}

.three-up .cell h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.three-up .cell p {
  font-size: 0.88rem;
  line-height: 1.6;
}

/* --- Contact Form Area --- */
.contact-info {
  font-size: 0.95rem;
}

.contact-info p {
  margin-bottom: 0.8rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-method {
  border: var(--border-style);
  padding: 1.2rem;
  background: var(--cream);
}

.contact-method h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.contact-method p {
  font-size: 0.92rem;
}

/* --- Responsive --- */
@media (max-width: 720px) {
  .page-frame {
    border-left: none;
    border-right: none;
  }

  .masthead {
    padding: 1.2rem 1.2rem 0.8rem;
  }

  .content {
    padding: 1.5rem 1.2rem 2rem;
  }

  .nav-bar {
    flex-wrap: wrap;
  }

  .nav-bar a {
    flex: 1 1 auto;
    text-align: center;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    padding: 0.5rem 0.8rem;
    font-size: 0.78rem;
  }

  .three-up {
    grid-template-columns: 1fr;
  }

  .three-up .cell {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .three-up .cell:last-child {
    border-bottom: none;
  }

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

  .hero h2 {
    font-size: 1.4rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .info-table td:first-child {
    width: 120px;
  }

  .timeline-entry .timeline-header {
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    gap: 0.3rem;
  }
}
