/* LTD Customs journal — same design system as the homepage wireframe */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --accent: #8a1f2e;
  --ink: #0a0a0a;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --paper: #fafaf7;
  --cream: #F2EDDC;
  --tan: #D8C49A;
}
html { scroll-behavior: smooth; }
html.lenis { scroll-behavior: auto; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: #fff;
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

nav.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { font-weight: 900; font-size: 1.3rem; letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 1.8rem; }
.nav-link { font-size: 0.85rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.nav-link:hover { color: var(--ink); }
@media (max-width: 700px) { .nav-link-desktop { display: none; } }
.nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.6rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  transition: transform 0.2s;
}
.nav-cta:hover { transform: translateY(-2px); }

.article-head {
  background: var(--paper);
  padding: 9rem 2rem 4rem;
  border-bottom: 1px solid var(--line);
}
.article-head .inner, article.prose, .listing { max-width: 780px; margin: 0 auto; }
.crumbs {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  font-weight: 600;
}
.crumbs a:hover, .prose a:hover { color: var(--accent); }
.crumbs .cat { color: var(--accent); }
h1.title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 1.4rem;
}
.dek { font-size: 1.15rem; line-height: 1.55; color: var(--muted); max-width: 640px; }
.meta {
  margin-top: 1.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.byline {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

article.prose { padding: 4rem 2rem 5rem; }
.prose p { font-size: 1.02rem; line-height: 1.75; margin-bottom: 1.4rem; color: #2a2a2a; }
.prose h2 {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 3rem 0 1.2rem;
  line-height: 1.05;
}
.prose h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; margin: 2.2rem 0 0.8rem; }
.prose ul, .prose ol { margin: 0 0 1.4rem 1.4rem; }
.prose li { font-size: 1.02rem; line-height: 1.7; margin-bottom: 0.6rem; color: #2a2a2a; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose a { border-bottom: 2px solid var(--accent); }
.prose blockquote {
  border-left: 4px solid var(--accent);
  padding: 0.4rem 0 0.4rem 1.4rem;
  margin: 2.4rem 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.prose .cta-inline {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 1rem 2.4rem;
  background: var(--accent);
  color: #fff;
  border-radius: 100px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-bottom: none;
  transition: transform 0.2s;
}
.prose .cta-inline:hover { transform: scale(1.05); }

.listing { padding: 9rem 2rem 5rem; }
.section-tag {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}
.listing h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin-bottom: 3rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.07); }
.post-media {
  margin: -2rem -2rem 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.post-media img, .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1);
}
.post-card:hover .post-media img, .post-card:hover .post-thumb img { transform: scale(1.03); }
.post-card-row { flex-direction: row; align-items: stretch; gap: 1.6rem; }
.post-thumb {
  flex: 0 0 200px;
  margin: -2rem 0 -2rem -2rem;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: var(--cream);
}
.post-body { display: flex; flex-direction: column; gap: 1rem; flex: 1; min-width: 0; }
@media (max-width: 640px) {
  .post-card-row { flex-direction: column; gap: 1rem; }
  .post-thumb {
    flex: none;
    margin: -2rem -2rem 0;
    aspect-ratio: 16 / 9;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}
.post-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.post-card h2 { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; }
.post-card p { font-size: 0.95rem; color: var(--muted); line-height: 1.55; }
.post-more { font-size: 0.85rem; font-weight: 700; }

footer {
  padding: 3rem 2rem 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.2,0.8,0.2,1), transform 0.8s cubic-bezier(0.2,0.8,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========== ARTICLE LEAD IMAGE =========== */
.article-hero { margin: 2.6rem 0; }
.article-hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.article-hero figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.9rem; }

/* =========== MOBILE HEADER =========== */
@media (max-width: 640px) {
  nav.top { padding-left: 1rem; padding-right: 1rem; }
  nav.top .logo img { height: 28px !important; }
}

/* =========== FROM-THE-WORKSHOP GALLERY =========== */
.work-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0 1.5rem;
}
.work-gallery figure {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.6rem;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.work-gallery img { width: 100%; height: auto; display: block; margin: auto 0; }
.work-gallery figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 1rem; }
.work-gallery figcaption strong { color: var(--ink); }
@media (max-width: 640px) { .work-gallery { grid-template-columns: 1fr; } }


  /* ---- mobile hamburger menu ---- */
  .nav-burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
  .nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
  .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-menu { display: none; }
  @media (max-width: 700px) {
    .nav-right { gap: 0.7rem; }
    .nav-link { display: none !important; }
    .nav-burger { display: block; }
    .nav-cta { padding: 0.55rem 1.05rem; font-size: 0.75rem; white-space: nowrap; }
    .nav-cta .cta-full { display: none; }
    nav.top { padding-left: 1rem; padding-right: 1rem; }
    .mobile-menu {
      display: grid; position: fixed; z-index: 99;
      top: var(--navh, 70px); left: 0; right: 0;
      background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--line);
      padding: 0.4rem 1.4rem 1.4rem;
      opacity: 0; visibility: hidden; transform: translateY(-10px);
      transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s 0.25s;
    }
    .mobile-menu.open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s; }
    .mobile-menu a { padding: 0.95rem 0; font-size: 1.05rem; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; }
    .mobile-menu .mm-cta { margin-top: 1.1rem; background: var(--accent); color: #fff; text-align: center; padding: 0.95rem 1.5rem; border-radius: 100px; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 0; }
  }
  @media (max-width: 380px) {
    .logo img { height: 30px !important; }
    .nav-cta { padding: 0.5rem 0.85rem; }
  }

/* Mobile journal cards: each slot carries a desktop image and a mobile image
   and CSS only ever flips display — no object-fit, no aspect-ratio, no
   <picture> resolution for a browser to get creative with. The box takes the
   image's own height, so cropping is structurally impossible. */
.post-media img.pm-mobile, .post-thumb img.pm-mobile { display: none; }
@media (max-width: 640px) {
  .post-media img.pm-desktop, .post-thumb img.pm-desktop { display: none; }
  .post-media img.pm-mobile, .post-thumb img.pm-mobile {
    display: block;
    width: 100%;
    height: auto;
  }
  .post-card-featured .post-media, .post-card-row .post-thumb {
    aspect-ratio: auto;
    height: auto;
  }
}

/* =========== FOOTER (expanded) =========== */
/* =========== FOOTER (expanded) =========== */
footer { align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.footer-brand { font-weight: 900; font-size: 1rem; color: var(--ink); margin-bottom: 0.6rem; letter-spacing: -0.02em; }
.footer-brand span { color: var(--accent); font-weight: 700; }
.footer-legal { line-height: 1.7; }
.footer-legal a { color: var(--muted); text-decoration: underline; }
.footer-legal a:hover { color: var(--ink); }
.footer-right { display: flex; flex-direction: column; gap: 0.5rem; text-align: right; }
.footer-right a { color: var(--muted); font-weight: 600; letter-spacing: 0.04em; transition: color 0.2s; }
.footer-right a:hover { color: var(--ink); }
@media (max-width: 640px) {
footer { flex-direction: column; }
.footer-right { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 1.2rem; }
}
