/* =========================================================
   jaxlee digital: design refresh (branch design/clean-tech)
   Palette unchanged (cream, ink, rose-gold). Structure borrowed
   from adafruit.ai: editorial intro, ink rules, sharp corners,
   solid ink buttons, mono metadata.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

:root { --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

::selection { background: var(--accent); color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.05; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--rule); padding-top: 1.4rem; padding-bottom: 1.4rem; }
.brand { font-weight: 600; letter-spacing: -0.02em; }
.site-nav a, .site-nav__menu-btn { text-transform: lowercase; letter-spacing: 0; font-size: 0.98rem; color: var(--ink); }
.site-nav a.is-current, .site-nav__menu-btn.is-current {
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.site-nav__submenu { border: 1px solid var(--rule); border-radius: 0; box-shadow: none; }

/* ---------- metadata in mono ---------- */
time, .item__section, .post-card__meta, .breadcrumb, .home-carousel__counter, .section-label {
  font-family: var(--font-mono); letter-spacing: 0.02em; text-transform: lowercase;
}
time { font-size: 0.78rem; }

/* ---------- home: editorial intro ---------- */
.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin: calc(var(--rhythm) * -0.4) 0 clamp(1.5rem, 3vw, 2.25rem);
}
.home-intro__eyebrow {
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-muted);
  text-transform: lowercase; margin: 0 0 1.25rem;
}
.home-intro__eyebrow span { color: var(--accent); }
.home-intro__title {
  font-weight: 500; font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1; letter-spacing: -0.035em; max-width: 14ch; margin: 0;
}
.home-intro__aside { border-top: 3px solid var(--accent); padding-top: 1.1rem; }
.home-intro__mark { width: 88px; height: 88px; border-radius: 50%; margin: 0 0 1rem; }
.home-intro__lede { font-size: 1.15rem; line-height: 1.5; color: var(--ink-soft); max-width: 32ch; margin: 0 0 0.6rem; }
.home-intro__byline { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-muted); text-transform: lowercase; margin: 0; }

/* ---------- home: carousel becomes a framed photo band ---------- */
/* Photos are 4:3 (one is square). Keep the frame 4:3 so nothing is
   cropped; cap height at ~72vh by narrowing the frame, centred. */
.home-hero {
  width: min(100%, calc(72vh * 4 / 3)); margin: 0 auto clamp(2rem, 4vw, 3rem);
  height: auto; aspect-ratio: 4 / 3;
  border: 1px solid var(--rule); background: var(--paper-alt);
}
.home-hero__slide img { filter: none; object-position: 50% 35%; }
.home-carousel__btn {
  border-radius: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  background: rgba(252, 242, 232, 0.92); color: var(--ink); text-shadow: none; border: 1px solid var(--rule);
  top: auto; bottom: 0; transform: none; width: 48px; height: 48px;
}
.home-carousel__btn--prev { left: auto; right: 48px; border-right: 0; }
.home-carousel__btn--next { right: 0; }
.home-carousel__btn:hover, .home-carousel__btn:focus-visible,
.home-hero:hover .home-carousel__btn, .home-hero:focus-within .home-carousel__btn {
  background: rgba(252, 242, 232, 0.92); border-color: var(--rule); transform: none;
}
.home-carousel__btn:hover { background: var(--accent) !important; border-color: var(--accent) !important; color: var(--ink); }
.home-carousel__btn:active { transform: none; }
@media (hover: none) { .home-carousel__btn { background: rgba(252, 242, 232, 0.92); border-color: var(--rule); } }
.home-carousel__counter {
  left: 0; bottom: 0; transform: none; border-radius: 0; backdrop-filter: none;
  background: rgba(252, 242, 232, 0.92); color: var(--ink); padding: 0 0.9rem; line-height: 48px; height: 48px;
}

/* ---------- home: section doors ----------
   Ink is reserved for text and the 3px door bars; everything else
   uses the cream rule or rose-gold (Sheehan, 2026-12-01). */
.home-doors {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem); margin: 0 0 var(--rhythm);
}
.home-door { border-top: 3px solid var(--ink); padding-top: 1rem; display: flex; flex-direction: column; }
.home-door h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; margin: 0 0 0.5rem; }
.home-door p { color: var(--ink-soft); font-size: 1rem; line-height: 1.5; margin: 0 0 1.25rem; flex: 1; }
.home-door a, .button, .contact-form button, button[type="submit"] {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px;
  padding: 0.55rem 1rem; background: transparent; color: var(--ink);
  font-family: var(--font-display); font-weight: 500; font-size: 0.95rem;
  border: 1.5px solid var(--accent); border-radius: 0; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.home-door a:hover, .button:hover, .contact-form button:hover, button[type="submit"]:hover {
  background: var(--accent); border-color: var(--accent); color: var(--ink);
}

/* ---------- home: latest ---------- */
.home-latest { max-width: none; padding: 0; }
.home-latest .section-label, .section-label {
  font-size: 0.82rem; letter-spacing: 0.02em; color: var(--ink);
  border-top: 3px solid var(--accent); padding-top: 0.7rem; display: block;
}

/* ---------- cards, images: sharp, no shadow ---------- */
.post-card__cover, .item__cover img, .post__hero img, .log-entry__cover img,
.log-entry__gallery img, .log-visit__gallery img, .house-entry__gallery img,
.house-entry__ba img, .ba-pair img, .about__portrait img, .log-map {
  border-radius: 0 !important; outline: 1px solid var(--rule); outline-offset: -1px;
}
.post-card__link:hover .post-card__cover { outline: 3px solid var(--accent); outline-offset: -3px; }
.log-card a, .resume-list__item a, .appslet-list__item a, .meal-card, .recipe-index__item a,
.todo-item, .ex-card, .log-entry__facts, .recipe__original {
  border-radius: 0 !important; box-shadow: none !important; border: 1px solid var(--rule) !important; transform: none !important;
}
.tag, .post-card__badge, .ex-tag, .recipe-tags li {
  border-radius: 0 !important; font-family: var(--font-mono); font-size: 0.74rem; text-transform: lowercase;
}
.tag { border: 1px solid var(--rule); background: transparent; }
.tag:hover { border-color: var(--accent); color: var(--ink); }
input, textarea, select { border-radius: 0 !important; border: 1px solid var(--ink-muted) !important; }
input:focus, textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; }

/* ---------- posts ---------- */
.post__body a, .prose a {
  border-bottom: 0; text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.post__body a:hover, .prose a:hover { text-decoration-thickness: 2px; }
.post__body code { border-radius: 0; font-family: var(--font-mono); }
.post__body pre { border-radius: 0; font-family: var(--font-mono); }
.neka-widget__bubble { box-shadow: none; border: 1px solid var(--rule); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); }
.site-footer p { font-family: var(--font-mono); font-size: 0.78rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .home-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .home-intro { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
  .home-intro__title { font-size: clamp(1.9rem, 8vw, 2.4rem); }
}
@media (max-width: 480px) {
  .home-doors { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- log map: tint OSM tiles toward the cream palette ---------- */
.log-map .leaflet-tile-pane { filter: grayscale(0.55) sepia(0.25) brightness(1.04) contrast(0.95); }
