/*
Theme Name: BayGlass Works
Theme URI: https://bayglassworks.com
Author: BayGlass Works
Author URI: https://bayglassworks.com
Description: Custom theme for Bay Glass Works, frameless and framed glass shower door enclosures. Architectural, glass and steel aesthetic built for a local custom fabrication business.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bayglass
*/

/* ==========================================================================
   0. RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, textarea, select { font: inherit; }
table { border-collapse: collapse; }

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Palette: ink, steel, glass */
  --ink: #14181b;
  --charcoal: #262c31;
  --steel: #5c6670;
  --steel-light: #9aa4ac;
  --line: #e2e6e8;
  --line-strong: #cbd1d4;
  --mist: #f4f6f7;
  --white: #ffffff;
  --accent: #3f6b82;       /* glass-teal */
  --accent-dark: #294b5c;
  --accent-tint: #e9eff1;

  --font-display: 'Archivo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 2px;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ==========================================================================
   2. BASE
   ========================================================================== */
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
p { color: var(--steel); }
a { transition: color .2s var(--ease); }
::selection { background: var(--accent); color: var(--white); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white);
  padding: 12px 20px; z-index: 10000;
}
.skip-link:focus { left: 0; }

/* Eyebrow / kicker label used above section headings */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.kicker::before { content: ""; width: 24px; height: 1px; background: var(--accent); }

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: all .25s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--accent-tint); }

/* ==========================================================================
   4. HEADER / NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(20,24,27,0.06); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: 30px;
}
.site-branding { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-right { display: flex; align-items: center; gap: 20px; }
.site-branding img { max-height: 42px; width: auto; }
.site-title {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
  color: var(--ink); letter-spacing: -0.01em;
}
.site-title span { color: var(--accent); }
.site-tagline { display: none; }

.primary-nav { display: none; }
.primary-nav ul { display: flex; align-items: center; gap: 44px; }
.primary-nav a {
  font-size: 0.92rem; font-weight: 500; color: var(--charcoal);
  position: relative; padding-block: 4px;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--accent); transition: right .25s var(--ease);
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--ink); }
.primary-nav a:hover::after, .primary-nav .current-menu-item > a::after { right: 0; }

.menu-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 26px; height: 20px; z-index: 600;
}
.menu-toggle span {
  display: block; height: 2px; width: 100%; background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; background: var(--ink); z-index: 550;
  display: flex; flex-direction: column; justify-content: center; padding: var(--gutter);
  transform: translateX(100%); transition: transform .4s var(--ease);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav a {
  font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--white);
  padding-block: 12px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav .mobile-nav-footer { margin-top: 40px; color: var(--steel-light); font-size: 0.9rem; }
.mobile-nav .mobile-nav-footer a { color: var(--white); font-weight: 600; }
body.nav-open { overflow: hidden; }

@media (min-width: 900px) {
  .primary-nav { display: block; }
  .site-tagline { display: block; font-size: 0.72rem; color: var(--steel); letter-spacing: 0.04em; }
  .menu-toggle, .mobile-nav { display: none; }
}

/* ==========================================================================
   5. HERO
   ========================================================================== */
main#main { display: block; margin: 0; padding: 0; }
main#main > *:first-child { margin-top: 0; }

.hero {
  position: relative; overflow: hidden; background: var(--ink); color: var(--white);
  min-height: clamp(360px, 56vw, 620px); display: flex; align-items: center;
  margin: 0;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,24,27,0.35) 0%, rgba(20,24,27,0.85) 100%);
}
.hero-content { position: relative; z-index: 1; padding-block: 56px; max-width: 760px; }
.hero-content .kicker { color: var(--steel-light); }
.hero-content .kicker::before { background: var(--white); }
.hero-content h1 { color: var(--white); margin-bottom: 20px; }
.hero-content p.lede { color: rgba(255,255,255,0.78); font-size: 1.125rem; max-width: 540px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ==========================================================================
   6. SECTIONS / LAYOUT
   ========================================================================== */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.section-alt { background: var(--mist); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark p { color: var(--steel-light); }
.section-dark h2 { color: var(--white); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-foot { margin-top: 48px; text-align: center; }

.grid-3 { display: grid; gap: 40px; grid-template-columns: 1fr; }
.grid-2 { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.feature {
  border-top: 2px solid var(--ink); padding-top: 22px;
}
.feature .index { font-family: var(--font-display); font-size: 0.8rem; color: var(--accent); font-weight: 700; }
.feature h3 { margin-block: 10px 10px; }

.testimonial { border-top: 2px solid var(--line-strong); padding-top: 22px; }
.testimonial p { font-size: 1rem; color: var(--charcoal); font-style: italic; }
.testimonial-name {
  display: block; margin-top: 16px; font-size: 0.8rem; font-weight: 700; color: var(--ink);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* Featured work carousel on homepage: see shared carousel rules in section 8 */

/* CTA banner */
.cta-banner { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; justify-content: space-between; }
@media (min-width: 720px) { .cta-banner { flex-direction: row; align-items: center; } }

/* ==========================================================================
   7. PAGE / TYPOGRAPHY CONTENT (About, generic pages)
   ========================================================================== */
.page-banner {
  padding-block: 64px 40px; border-bottom: 1px solid var(--line); background: var(--mist);
}
.page-banner h1 { margin-bottom: 8px; }
.breadcrumb { font-size: 0.8rem; color: var(--steel); letter-spacing: 0.02em; }
.breadcrumb a:hover { color: var(--accent); }

.prose { max-width: 720px; font-size: 1.05rem; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { margin-top: 2em; }
.prose h2, .prose h3 { color: var(--ink); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin-block: 1.5em; }
.prose ul, .prose ol { padding-left: 1.25em; list-style: disc; }
.prose blockquote {
  border-left: 3px solid var(--accent); padding-left: 20px; font-style: italic; color: var(--ink);
}

.about-figure { position: relative; }
.about-figure img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.stat-row { display: flex; gap: 40px; margin-top: 32px; flex-wrap: wrap; }
.stat-row .stat b { display: block; font-family: var(--font-display); font-size: 2.25rem; color: var(--ink); }
.stat-row .stat span { font-size: 0.8rem; color: var(--steel); text-transform: uppercase; letter-spacing: 0.08em; }

/* ==========================================================================
   8. SLIDER + LIGHTBOX
   Shared by the Gallery page and the homepage "Featured Work" section.
   Real JS-driven carousel: .gallery-slider-track is moved with
   transform: translateX() by assets/js/gallery-slider.js — this is not a
   CSS-only scrolling div. Fixed-height slides with object-fit: contain
   keep every image visually uniform without ever cropping it; letterbox
   space is filled with --mist.
   ========================================================================== */
.gallery-slider-container {
  position: relative;
  overflow: hidden;
}

.gallery-slider-track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.4s ease-in-out;
}

.gallery-slide {
  flex: 0 0 100%;
  max-width: 100%;
  height: 500px;
  max-height: 500px;
  position: relative;
  overflow: hidden;
  background: var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 640px) { .gallery-slide { height: 320px; } }

.gallery-slide a, .gallery-slide button {
  display: block;
  width: 100%;
  height: 100%;
}
.gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-slide .zoom-icon {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
  border-radius: 50%; background: rgba(20,24,27,0.55); color: var(--white);
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s var(--ease);
  pointer-events: none;
}
.gallery-slide:hover .zoom-icon { opacity: 1; }

.gallery-slide .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px;
  background: linear-gradient(0deg, rgba(20,24,27,0.55), transparent);
  color: var(--white); font-size: 0.85rem; font-weight: 600; opacity: 0; transition: opacity .25s var(--ease);
  pointer-events: none;
}
.gallery-slide:hover .cap { opacity: 1; }

/*
 * .gallery-slider-container has overflow: hidden (required to clip the
 * track between slides), so these buttons MUST stay inside its bounds —
 * left/right can never go negative or land on 0, or the container's own
 * overflow: hidden will clip them on wide screens.
 */
.slider-prev, .slider-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; background: var(--white);
  border: 1px solid var(--line-strong); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(20,24,27,0.14); transition: all .2s var(--ease); cursor: pointer;
}
.slider-prev:hover, .slider-next:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.slider-prev { left: 0.75rem; }
.slider-next { right: 0.75rem; }
@media (min-width: 900px) {
  .slider-prev { left: 1.25rem; }
  .slider-next { right: 1.25rem; }
}

.gallery-empty { text-align: center; padding: 80px 20px; color: var(--steel); border: 1px dashed var(--line-strong); }

/* Lightbox overlay (vanilla JS) */
.lightbox {
  position: fixed; inset: 0; z-index: 900; background: rgba(15,18,20,0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease);
}
.lightbox.is-active { opacity: 1; visibility: visible; }
.lightbox figure { max-width: min(92vw, 1200px); max-height: 84vh; margin: 0; }
.lightbox img { max-width: 100%; max-height: 84vh; width: auto; margin-inline: auto; object-fit: contain; }
.lightbox figcaption { color: var(--steel-light); text-align: center; margin-top: 14px; font-size: 0.85rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; color: var(--white); width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; transition: background .2s var(--ease);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.12); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: var(--steel-light); font-size: 0.8rem; }
@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
  .lightbox-close { top: 14px; right: 14px; }
}

/* ==========================================================================
   9. HARDWARE LINKS PAGE
   ========================================================================== */
.hardware-category { margin-bottom: 56px; }
.hardware-category h2 { margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.hardware-list { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .hardware-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .hardware-list { grid-template-columns: repeat(4, 1fr); } }

.hardware-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 18px;
  padding: 32px 28px 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.hardware-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.hardware-card:hover {
  border-color: var(--line-strong); transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(20,24,27,0.08);
}
.hardware-card:hover::before { transform: scaleX(1); }
.hardware-card h4 { font-size: 1.15rem; margin-bottom: 4px; }
.hardware-domain {
  display: block; font-size: 0.78rem; color: var(--accent); font-weight: 600;
  letter-spacing: 0.02em; margin-bottom: 10px;
}
.hardware-card p { font-size: 0.9rem; margin: 0; }
.hardware-visit {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 10px 18px; margin-top: auto; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink);
  transition: all .2s var(--ease);
}
.hardware-card:hover .hardware-visit { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ==========================================================================
   10. CONTACT PAGE
   ========================================================================== */
.contact-grid { display: grid; gap: 56px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }
.contact-info-list { display: flex; flex-direction: column; gap: 28px; margin-top: 32px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-item .icon {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent-tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-info-item a, .contact-info-item p { font-size: 0.95rem; margin: 0; color: var(--steel); }
.contact-info-item a:hover { color: var(--accent); }
.contact-social { display: flex; gap: 12px; margin-top: 12px; }
.contact-social a {
  width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: all .2s var(--ease);
}
.contact-social a:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

.service-area-map { margin-top: 32px; border: 1px solid var(--line); aspect-ratio: 16/9; overflow: hidden; }
.service-area-map iframe { width: 100%; height: 100%; border: 0; }

/* Global contact form (footer.php, present on every page) */
.contact-form-section { background: var(--mist); scroll-margin-top: 96px; }
.bg-form-wrap { background: var(--white); padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); border: 1px solid var(--line); }
.bg-form-row { margin: 0 0 18px; }
.bg-form-row label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.bg-form-row label span { font-weight: 400; color: var(--steel); }
.bg-form-cols { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .bg-form-cols { grid-template-columns: 1fr 1fr; } }
.bg-form input[type="text"], .bg-form input[type="email"], .bg-form input[type="tel"], .bg-form textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line-strong); background: var(--white);
  border-radius: var(--radius); font-size: 0.95rem; transition: border-color .2s var(--ease);
}
.bg-form input:focus, .bg-form textarea:focus { outline: none; border-color: var(--accent); }
.bg-form textarea { min-height: 130px; resize: vertical; }
.bg-honeypot { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bg-form-submit { width: 100%; }
.bg-form-submit[disabled] { opacity: 0.6; cursor: not-allowed; }
.bg-form-status { margin-top: 16px; font-size: 0.9rem; display: none; padding: 12px 14px; border-radius: var(--radius); }
.bg-form-status.is-visible { display: block; }
.bg-form-status.is-success { background: #eaf3ec; color: #2b6b3f; }
.bg-form-status.is-error { background: #fbecec; color: #a13636; }

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--steel-light); }
.footer-top { padding-block: 64px 40px; display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .footer-top { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; } }
.footer-brand .site-title { color: var(--white); }
.footer-brand p { margin-top: 14px; max-width: 320px; font-size: 0.9rem; }
.footer-col h4 {
  color: var(--white); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col p { font-size: 0.9rem; color: var(--steel-light); }
.footer-col a:hover { color: var(--white); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.18); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: rgba(255,255,255,0.08); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-block: 22px;
  display: flex; flex-direction: column; gap: 10px; font-size: 0.78rem; color: var(--steel-light);
}
@media (min-width: 720px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom a:hover { color: var(--white); }

/* ==========================================================================
   12. MISC / UTILITIES
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.wp-block-gallery, .gallery { display: grid; gap: 4px; grid-template-columns: repeat(3, 1fr); }
.wp-caption { max-width: 100%; }
.alignwide { max-width: 1000px; margin-inline: auto; }
.alignfull { width: 100%; max-width: none; }

/* Blog listing (home.php / archive.php) + post navigation */
.archive-description { max-width: 640px; margin-top: 10px; }
.pagination-nav { display: flex; justify-content: center; gap: 8px; margin-top: 56px; }
.pagination-nav .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding-inline: 10px; border: 1px solid var(--line);
  border-radius: var(--radius); font-size: 0.85rem; color: var(--charcoal);
}
.pagination-nav .page-numbers:hover { border-color: var(--ink); }
.pagination-nav .page-numbers.current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pagination-nav .page-numbers.dots { border: 0; }

.post-nav { display: grid; gap: 16px; grid-template-columns: 1fr; border-top: 1px solid var(--line); padding-top: 32px; }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a { display: block; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s var(--ease); }
.post-nav a:hover { border-color: var(--ink); }
.post-nav .dir { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 600; }
.post-nav .title { display: block; margin-top: 6px; color: var(--ink); font-weight: 600; }
.post-nav-next { text-align: right; grid-column: 2; }

/* 404 */
.error-404 { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-block: 100px; }
.error-404 .code { font-family: var(--font-display); font-size: 6rem; font-weight: 700; color: var(--line-strong); }
