/* carmenmosq.com — graph-paper notebook theme */
:root {
  --ink: #191C35;
  --ink-2: #33374F;
  --muted: #4A4E66;
  --ground: #FBFAF7;
  --grid: #EDECF2;
  --line: #DEDDE6;
  --card: #FFFFFF;
  --soft: #F2F1F6;
  --placeholder: #E9E7F1;
  --accent: #C2410C;
  --accent-soft: #FCEBE2;
  --dark: #191C35;
  --dark-2: #262A48;
  --dark-line: #3A3E5E;
  --on-dark: #F4F3EE;
  --on-dark-2: #D8D7E0;
  --on-dark-3: #B9B8C6;
  --on-dark-accent: #FDBA74;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--ground);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
}

a { color: var(--ink); }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--ground); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 16px; color: var(--ground); }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-bottom: 96px; }

/* Header */
.site-header { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; border-radius: 10px; background: var(--ink); color: var(--ground); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 18px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 20px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; font-weight: 500; font-size: 16px; }
.site-nav a { text-decoration: none; padding: 10px 0; }
.back-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; padding: 10px 0; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; text-decoration: none; padding: 13px 22px; border-radius: 999px; font-weight: 600; border: 1.5px solid var(--ink); line-height: 1.3; }
.btn-dark { background: var(--ink); color: var(--ground); }
.btn-dark:hover { color: var(--ground); background: #2C3054; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { color: #fff; background: #A3360A; }
.btn-ghost:hover { background: var(--card); }
.site-nav .btn { padding: 10px 18px; }

/* Mobile menu */
.menu-toggle { display: none; }
@media (max-width: 819px) {
  .js .site-header { position: relative; flex-wrap: nowrap; }
  .js .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--card); color: var(--ink); cursor: pointer; flex: none; }
  .js .menu-toggle:hover { background: var(--soft); }
  .menu-icon { position: relative; width: 22px; height: 16px; display: block; }
  .menu-icon span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease; }
  .menu-icon span:nth-child(1) { top: 0; }
  .menu-icon span:nth-child(2) { top: 7px; }
  .menu-icon span:nth-child(3) { top: 14px; }
  .menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) { top: 7px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

  .js .site-nav { display: none; position: absolute; z-index: 20; top: calc(100% - 8px); left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 40px rgba(25,28,53,0.14); font-size: 18px; }
  .js .menu-open .site-nav { display: flex; }
  .js .site-nav a { padding: 14px 16px; border-radius: 12px; }
  .js .site-nav a:hover { background: var(--soft); color: var(--ink); }
  .js .site-nav .btn { margin-top: 8px; padding: 14px 16px; text-align: center; }
  .js .site-nav .btn:hover { background: #2C3054; color: var(--ground); }
}
@media (max-width: 819px) and (prefers-reduced-motion: reduce) {
  .menu-icon span { transition: none; }
}

/* Type */
.eyebrow { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.h1 { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.02em; }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; margin: 8px 0 12px; }
.h3 { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.15; }
.lead { font-size: 20px; color: var(--ink-2); max-width: 680px; }
.intro { color: var(--muted); max-width: 680px; margin-bottom: 44px; }
.body-2 { color: var(--ink-2); }
.small { font-size: 15px; color: var(--ink-2); }
.accent { color: var(--accent); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 56px; }
.hero-copy { flex: 1 1 560px; min-width: 0; }
.hero-copy .kicker { font-size: 14px; letter-spacing: 0.03em; margin-bottom: 20px; }
.hero-copy .lead { margin-top: 28px; }
.hero-copy .btn-row { margin-top: 36px; }
.hero-photo { flex: 0 1 340px; min-width: 260px; display: flex; justify-content: center; }
.portrait { position: relative; width: 300px; max-width: 100%; aspect-ratio: 5 / 6; }
.portrait img, .portrait .ph { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 24px; object-fit: cover; }
.status-chip { position: absolute; left: -24px; bottom: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: 0 8px 24px rgba(25,28,53,0.08); }
.status-chip strong { display: block; font-size: 15px; }
@media (max-width: 420px) { .status-chip { left: 12px; } }

/* Placeholders (replace with <img>) */
.ph { background: var(--placeholder); border: 1.5px dashed #8A8DA3; border-radius: 16px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.stats > div { background: var(--card); padding: 22px 24px; }
.stat-num { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1.1; }
.stat-label { margin-top: 6px; font-size: 15px; color: var(--muted); }
.stats dt { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.stats dd { margin-top: 4px; font-weight: 600; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.card-lg { border-radius: 24px; padding: 36px; }
.grid { display: grid; gap: 20px; }
.grid-260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-320 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid-340 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 28px; }
.card h3:not(.h3) { font-size: 20px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.card .kicker { margin-bottom: 10px; }

.feature { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; margin-bottom: 28px; }
.feature-copy { flex: 1 1 440px; min-width: 0; }
.feature-copy .h3 { font-size: 34px; margin: 16px 0 8px; }
.feature-copy > p { color: var(--ink-2); margin-bottom: 20px; }
.feature-copy ul { padding-left: 20px; color: var(--ink-2); display: grid; gap: 6px; margin-bottom: 24px; }
.feature-media { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; gap: 20px; }
.feature-media .phone { flex: 0 1 220px; min-width: 0; }
.badge-live { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #E8F3EC; color: #1E5E3A; font-size: 13px; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-family: var(--mono); font-size: 13px; }
.tags span { padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; }

.phone { width: 220px; max-width: 46%; aspect-ratio: 1 / 2; border-radius: 34px; border: 8px solid var(--ink); background: #F3EEE6; overflow: hidden; }
.phone .ph, .phone img { width: 100%; height: 100%; border: 0; border-radius: 0; object-fit: cover; background: #F3EEE6; }
.phone.offset { margin-top: 48px; }

.project-card { display: flex; flex-direction: column; gap: 16px; }
.project-card .ph { height: 220px; border-style: solid; border-color: transparent; }
.project-card .kicker { margin: 8px 0 0; }
/* Landscape screenshot: the frame follows the image, never crops or overflows */
.shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); box-shadow: 0 6px 18px rgba(25,28,53,0.06); }
.shot img { width: 100%; height: auto; display: block; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px 0; border-top: 1px solid var(--grid); border-bottom: 1px solid var(--grid); }
.mini-stats strong { display: block; font-family: var(--display); font-weight: 800; font-size: 26px; }
.mini-stats span { font-size: 13px; color: var(--muted); }
.more-link { margin-top: auto; font-weight: 600; }

/* Timeline */
.timeline { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.timeline li { border-top: 3px solid var(--ink); padding-top: 16px; }
.timeline li.now { border-top-color: var(--accent); }
.timeline .when { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.timeline .what { margin: 4px 0 6px; font-weight: 600; font-size: 18px; }

/* Dark band */
.band { background: var(--dark); color: var(--on-dark); }
.band .wrap { padding-top: 92px; padding-bottom: 92px; }
.band .eyebrow { color: var(--on-dark-accent); }
.band .body-2, .band .intro { color: var(--on-dark-2); }
.band a { color: var(--on-dark); }
.band-split { display: flex; flex-wrap: wrap; gap: 56px; }
.band-split > :first-child { flex: 1 1 480px; min-width: 0; }
.band-split > :last-child { flex: 1 1 380px; }
.band-split p + p { margin-top: 20px; }
.dark-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; align-content: start; }
.dark-stats > div { border: 1px solid var(--dark-line); border-radius: 16px; padding: 22px; }
.dark-stats strong { display: block; font-family: var(--display); font-weight: 800; font-size: 32px; color: var(--on-dark-accent); }
.dark-stats span { font-size: 15px; color: var(--on-dark-2); }

/* Architecture blocks */
.arch-group { border: 1px solid var(--dark-line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.arch-group.key { border: 1.5px solid var(--on-dark-accent); background: #2A2540; }
.arch-label { font-family: var(--mono); font-size: 13px; color: var(--on-dark-3); margin-bottom: 4px; }
.arch-group.key > .arch-label { color: var(--on-dark-accent); }
.arch-box { background: var(--dark-2); border-radius: 12px; padding: 13px 16px; }
.arch-box.key { background: #3B2A22; border: 1.5px solid var(--on-dark-accent); }
.arch-box.outline { background: transparent; border: 1px solid var(--dark-line); }
.arch-box strong { display: block; }
.arch-box span { display: block; font-size: 14px; color: var(--on-dark-3); }
.arch-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.arch-row > .arch-group { flex: 1 1 320px; }
.arch-arrow { display: flex; align-items: center; justify-content: center; color: var(--on-dark-accent); font-size: 22px; font-family: var(--mono); flex-direction: column; gap: 4px; }
.arch-arrow small { font-size: 13px; color: var(--on-dark-3); }
.arch-down { text-align: center; color: #8A8DA3; }
.arch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.arch-stack { display: flex; flex-direction: column; gap: 12px; }

/* Pipelines */
.pipeline { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.pipeline li { padding: 10px 16px; border-radius: 12px; background: var(--soft); font-weight: 500; }
.pipeline li.arrow { background: none; padding: 0; color: #8A8DA3; }
.pipeline li.gate { background: var(--accent-soft); border: 1.5px solid var(--accent); font-weight: 600; }
.pipe-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; align-items: baseline; margin-bottom: 20px; }
.pipe-head h3 { font-size: 22px; margin: 0; }
.pipe-head p { font-size: 15px; color: var(--muted); }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.steps .num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.steps .what { margin: 6px 0; font-weight: 600; font-size: 18px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); font-size: 15px; }
caption { text-align: left; padding-bottom: 12px; font-weight: 600; }
th, td { text-align: left; padding: 14px 18px; vertical-align: top; }
thead tr { background: var(--soft); }
tbody tr { border-top: 1px solid var(--grid); }
td:first-child { font-weight: 600; }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px 40px; }
.skills h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.earlier { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.earlier h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.earlier ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 40px; font-size: 15px; color: var(--ink-2); }

/* Resume downloads */
.download { text-decoration: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px 32px; }
.download:hover { border-color: var(--ink); color: var(--ink); }
.download-title { display: block; font-family: var(--display); font-weight: 700; font-size: 24px; }
.download-sub { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }
.download-icon { width: 48px; height: 48px; flex: none; border-radius: 999px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; }
.download-icon.accent-bg { background: var(--accent); }

/* Split sections */
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split > :first-child { flex: 1 1 360px; min-width: 0; }
.split > :last-child { flex: 1 1 520px; min-width: 0; }
.feature-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.feature-list li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.feature-list strong { display: block; }

/* Screens row */
.screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.screens .phone { width: 100%; max-width: none; aspect-ratio: auto; height: 460px; border-radius: 30px; }
.screens-wide { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 24px; }
.screens-wide .ph { aspect-ratio: 16 / 10; width: 100%; border-radius: 18px; border-style: solid; border-color: var(--line); }
.screens-wide .shot { align-self: start; }
.screens-wide .shot img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }

/* Contact + footer */
.contact { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 52px 40px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: center; }
.contact > div:first-child { flex: 1 1 460px; min-width: 0; }
.contact-links { display: flex; flex-direction: column; gap: 10px; font-size: 17px; font-weight: 500; }
.contact-links a { overflow-wrap: anywhere; }
.site-footer { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 24px; padding-bottom: 48px; font-size: 14px; color: var(--muted); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .card-lg, .contact { padding: 28px 22px; }
  .feature { padding: 28px 22px; }
  .band .wrap { padding-top: 64px; padding-bottom: 64px; }
  .section { padding-bottom: 72px; }
  .arch-arrow { width: 100%; transform: rotate(90deg); }
}
