/* ==========================================================================
   Paquin.dev — main stylesheet
   Tokens: ink #0F2426 · teal #0E6E6B · honey #DFA32B · mist #DCE9E6 · paper #F6FAF9
   Type:   IBM Plex Mono (display/labels) · Public Sans (body)
   ========================================================================== */

:root {
  --ink: #0f2426;
  --ink-soft: #33494b;
  --teal: #0e6e6b;
  --teal-deep: #0a4f4d;
  --honey: #dfa32b;
  --honey-soft: #f3d692;
  --mist: #dce9e6;
  --paper: #f6faf9;
  --white: #ffffff;
  --line: #c5d8d4;

  --font-display: "IBM Plex Mono", ui-monospace, monospace;
  --font-body: "Public Sans", system-ui, -apple-system, sans-serif;

  --size-hero: clamp(1.9rem, 4.2vw, 3.4rem);
  --size-h2: clamp(1.4rem, 2.6vw, 2rem);
  --size-h3: 1.15rem;
  --size-body: 1.0625rem;
  --size-small: 0.8125rem;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5.5rem;

  --wrap: 1080px;
  --radius: 6px;
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--space-3); }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link { left: 8px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 999; }
.skip-link:focus { position: fixed; width: auto; height: auto; clip: auto; clip-path: none; }

/* Labels — mono eyebrow style used as the structural voice of the site */
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--size-small);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--teal);
}
.eyebrow::before { content: "// "; color: var(--honey); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: var(--space-3);
}
.site-brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--ink); text-decoration: none;
}
.site-brand:hover { color: var(--teal-deep); }
.brand-hex { flex: none; width: 26px; height: 28px; color: var(--teal); }
.site-brand .tld { color: var(--honey); }

.primary-nav ul { display: flex; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  font-family: var(--font-display); font-size: var(--size-small); font-weight: 500;
  color: var(--ink-soft); text-decoration: none;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--teal); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 12px; font-family: var(--font-display); font-size: var(--size-small);
  color: var(--ink); cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: var(--space-2) var(--space-3); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: var(--space-2); }
}

/* ==========================================================================
   Hero — hex lattice signature lives here
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--mist);
  padding-block: var(--space-5);
}
.hero .hex-lattice {
  position: absolute; inset: 0 0 0 auto; width: min(60%, 720px); height: 100%;
  color: color-mix(in srgb, var(--teal) 45%, transparent);
  opacity: 0.5; pointer-events: none;
  mask-image: linear-gradient(to left, black 55%, transparent);
  -webkit-mask-image: linear-gradient(to left, black 55%, transparent);
}
.hero .wrap { position: relative; max-width: var(--wrap); }
.hero .eyebrow { color: var(--honey-soft); }
.hero .eyebrow::before { content: ""; }
.hero .eyebrow::after { content: "▮"; animation: blink 1.1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow::after { animation: none; }
}
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--size-hero); line-height: 1.18; letter-spacing: -0.02em;
  color: var(--white); max-width: 21ch; margin: var(--space-2) 0;
}
.hero p { max-width: 52ch; color: var(--mist); margin: 0 0 var(--space-3); }
.button {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: var(--size-small); letter-spacing: 0.04em;
  background: var(--honey); color: var(--ink); text-decoration: none;
  padding: 0.8rem 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--honey);
  transition: background 0.15s ease, color 0.15s ease;
}
.button:hover { background: transparent; color: var(--honey); }
.button--ghost { background: transparent; color: var(--mist); border-color: var(--mist); margin-left: var(--space-2); }
.button--ghost:hover { color: var(--honey); border-color: var(--honey); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--space-5); }
.section--tint { background: var(--mist); }
.section-head { margin-bottom: var(--space-4); }
.section-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--size-h2); letter-spacing: -0.01em; margin: var(--space-1) 0 0;
}

/* Project cards */
.project-grid {
  display: grid; gap: var(--space-3);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.project-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.project-card:hover { border-color: var(--teal); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .project-card:hover { transform: none; } }
.project-card__thumb { aspect-ratio: 8 / 5; background: var(--mist); }
.project-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-card__thumb--empty {
  display: grid; place-items: center; color: var(--teal); opacity: 0.55;
}
.project-card__thumb--empty svg { width: 44%; height: 44%; }
.project-card__body { padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-1); flex: 1; }
.project-card__body h3 { margin: 0; font-size: var(--size-h3); line-height: 1.35; }
.project-card__body h3 a { color: var(--ink); text-decoration: none; }
.project-card__body h3 a:hover { color: var(--teal); }
.project-card__excerpt { margin: 0; color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.project-card__stack {
  font-family: var(--font-display); font-size: var(--size-small);
  color: var(--teal); margin-top: var(--space-1);
}

/* Skills / focus list */
.focus-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.focus-item { border-left: 3px solid var(--honey); padding-left: var(--space-2); }
.focus-item h3 { font-family: var(--font-display); font-size: 1rem; margin: 0 0 0.35rem; }
.focus-item p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Blog / archive listing */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.post-list__item {
  border-bottom: 1px solid var(--line); padding-bottom: var(--space-3);
  display: grid; gap: 0.4rem;
}
.post-list__item time { font-family: var(--font-display); font-size: var(--size-small); color: var(--ink-soft); }
.post-list__item h2 { margin: 0; font-size: var(--size-h3); }
.post-list__item h2 a { color: var(--ink); text-decoration: none; }
.post-list__item h2 a:hover { color: var(--teal); }

/* Single content */
.entry { max-width: 720px; margin-inline: auto; }
.entry-header { margin-bottom: var(--space-4); }
.entry-header h1 { font-family: var(--font-display); font-size: var(--size-h2); letter-spacing: -0.01em; line-height: 1.25; margin: var(--space-1) 0; }
.entry-meta { font-family: var(--font-display); font-size: var(--size-small); color: var(--ink-soft); }
.entry-content h2, .entry-content h3 { font-family: var(--font-display); letter-spacing: -0.01em; margin-top: var(--space-4); }
.entry-content pre {
  background: var(--ink); color: var(--mist); padding: var(--space-2) var(--space-3);
  border-radius: var(--radius); overflow-x: auto; font-family: var(--font-display); font-size: 0.9rem;
}
.entry-content code { font-family: var(--font-display); font-size: 0.9em; background: var(--mist); padding: 0.1em 0.35em; border-radius: 3px; }
.entry-content pre code { background: none; padding: 0; }
.entry-content blockquote { border-left: 3px solid var(--honey); margin: var(--space-3) 0; padding-left: var(--space-2); color: var(--ink-soft); }
.entry-content img { border-radius: var(--radius); }
.wp-block-image figcaption, .entry-content figcaption { font-size: var(--size-small); color: var(--ink-soft); }

.project-links { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }
.tag-pill {
  font-family: var(--font-display); font-size: var(--size-small);
  background: var(--mist); color: var(--teal-deep); border-radius: 999px;
  padding: 0.25rem 0.75rem; text-decoration: none;
}
.tag-pill:hover { background: var(--teal); color: var(--white); }

/* Pagination */
.pagination { display: flex; gap: var(--space-1); margin-top: var(--space-4); font-family: var(--font-display); font-size: var(--size-small); }
.pagination .page-numbers { padding: 0.4rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.pagination .page-numbers.current { background: var(--teal); border-color: var(--teal); color: var(--white); }
.pagination a.page-numbers:hover { border-color: var(--teal); color: var(--teal); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink); color: var(--mist);
  padding-block: var(--space-4); margin-top: var(--space-5);
  position: relative; overflow: hidden;
}
.site-footer .hex-lattice {
  position: absolute; inset: 0 auto 0 0; width: 300px; height: 100%;
  color: color-mix(in srgb, var(--teal) 40%, transparent); opacity: 0.35; pointer-events: none;
  mask-image: linear-gradient(to right, black 40%, transparent);
  -webkit-mask-image: linear-gradient(to right, black 40%, transparent);
}
.site-footer .wrap { position: relative; display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; }
.site-footer a { color: var(--honey-soft); }
.site-footer a:hover { color: var(--white); }
.footer-nav ul { display: flex; gap: var(--space-2); list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-nav a { font-family: var(--font-display); font-size: var(--size-small); text-decoration: none; }
.site-footer .colophon { font-family: var(--font-display); font-size: var(--size-small); color: var(--mist); margin: 0; }

/* Comments (kept minimal) */
.comments-area { max-width: 720px; margin: var(--space-4) auto 0; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { border-top: 1px solid var(--line); padding: var(--space-2) 0; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1rem; background: var(--white);
}
.comment-form .submit { composes: none; }
.comment-form input[type="submit"] {
  font-family: var(--font-display); font-weight: 600; font-size: var(--size-small);
  background: var(--teal); color: var(--white); border: none; border-radius: var(--radius);
  padding: 0.7rem 1.4rem; cursor: pointer;
}
.comment-form input[type="submit"]:hover { background: var(--teal-deep); }

/* Alignment helpers WordPress expects */
.alignwide { margin-inline: calc(-1 * var(--space-3)); }
.alignfull { margin-inline: calc(50% - 50vw); }
.aligncenter { margin-inline: auto; }
