/* ========================================
   J. BELL PRICE — SHARED SITE STYLES
   ----------------------------------------
   This file is intended to power the homepage,
   about, contact, and shop pages with a single
   visual system.
======================================== */

/* ========================================
   1) DESIGN TOKENS
   Centralized colors, shadows, and spacing.
   Update these first if you want to evolve the
   overall feel of the site.
======================================== */
:root {
  --bg: #cdcfc0;
  --surface: #f1ebe5;
  --text: #423f32;
  --muted: rgba(66, 63, 50, 0.72);
  --line: rgba(66, 63, 50, 0.15);
  --line-strong: rgba(66, 63, 50, 0.3);
  --shadow: rgba(0, 0, 0, 0.08);
  --radius: 6px;
  --radius-button: 999px;
  --ink: var(--text);
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ========================================
   2) BASE / RESET
   Shared reset and typography foundation.
======================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

h1,
h2,
h3 {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.02em;
  margin: 0;
}

p {
  line-height: 1.65;
  color: var(--muted);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* ========================================
   3) SHARED LAYOUT HELPERS
   Reused across all pages.
======================================== */
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.section {
  padding: 90px 0;
}

.section.alt {
  background: var(--surface);
  margin: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero {
  padding: 110px 0 80px;
}

.narrow-copy {
  max-width: 760px;
}

.section-header {
  margin-bottom: 28px;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.section-intro {
  max-width: 560px;
}

/* ========================================
   4) SHARED TYPE DETAILS
   Small recurring typographic treatments.
======================================== */
.kicker,
.tag,
.work-meta {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: rgba(66, 63, 50, 0.6);
}

/* ========================================
   5) NAVIGATION
   Shared across every page.
======================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(205, 207, 192, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: rgba(66, 63, 50, 0.72);
  font-size: 0.95rem;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  opacity: 1;
}

/* ========================================
   6) SHARED BUTTONS + CARDS
   Used throughout the site so pages feel related.
======================================== */
.button {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-button);
  font-size: 13px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px var(--shadow);
}

.no-hover-card:hover {
  transform: none;
  box-shadow: none;
}

.image-card {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.error {
  color: #8b2f2f;
  text-align: center;
  margin-top: 28px;
}

/* ========================================
   7) HOMEPAGE — HERO + THEMES + WORKS
======================================== */
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 60px;
  align-items: center;
}

.hero-copy .kicker {
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 1.05;
  max-width: 760px;
}

.hero-copy p {
  margin-top: 18px;
  max-width: 560px;
  font-size: 1.02rem;
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.theme-card {
  display: block;
  background: none;
  /*background: rgba(255, 255, 255, 0.18);*/
  /*border: 1px solid var(--line);*/
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.theme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px var(--shadow);
  background: none;
  /*background: rgba(255, 255, 255, 0.28);*/
}

.theme-card h3 {
  position: relative;
  display: inline-block;
  margin-bottom: 4px;
}

.theme-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;

  width: 100%;
  height: 1px;

  background: currentColor;

  transform: scaleX(0);
  transform-origin: left;

  opacity: 0.45;

  transition: transform 0.25s ease;
}

.theme-card:hover h3::after {
  transform: scaleX(1);
}

.works-feed {
  display: grid;
  gap: 34px;
  margin-top: 50px;
  margin-bottom: 40px;
}

.work {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 24px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.work.align-right {
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
}

.work.align-right .work-art {
  order: 2;
}

.work.align-right .work-text {
  order: 1;
  text-align: right;
  justify-self: end;
}

.work-art {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  min-height: 220px;
}

.work-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.work:hover .work-art img {
  transform: scale(1.05);
}

.work.is-large .work-art {
  min-height: 360px;
}

.work.is-medium .work-art {
  min-height: 280px;
}

.work.is-small .work-art {
  min-height: 220px;
}

.work.is-text {
  grid-template-columns: 1fr;
}

.work-text {
  max-width: 420px;
}

.work-text h3 {
  position: relative;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 8px 0 12px;
  display: inline-block;
  transition: transform 0.25s ease;
}

.work-text h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.work:hover .work-text h3 {
  transform: scale(1.02);
}

.work:hover .work-text h3::after {
  transform: scaleX(1);
}

/* ========================================
   8) HOMEPAGE — BOOKSHELF
======================================== */
.books-shelf-wrap {
  overflow-x: auto;
  overflow-y: visible;
  padding-top: 220px;
  margin-top: -196px;
}

#books-grid {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin-top: 24px;
  overflow: visible;
  padding-bottom: 16px;
  min-width: max-content;
  position: relative;
}

#books-grid::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: rgba(66, 63, 50, 0.25);
  border-radius: 3px;
}

.card-link {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-right: 2px;
  transform: rotate(var(--tilt, 0deg));
  transform-origin: bottom center;
  transition: transform 0.25s ease;
}

.book-card {
  position: relative;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.book-preview {
  display: none;
}

.card-link:hover {
  transform: translateY(-6px) rotate(var(--tilt, 0deg));
}

.book-spine {
  width: auto;
  height: 160px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.card-link.is-large .book-spine {
  height: 190px;
}

.card-link.is-wide .book-spine {
  height: 175px;
}

.card-link.is-tall .book-spine {
  height: 210px;
}

.card-link:hover .book-spine {
  transform: translateY(-4px);
}

.floating-book-preview {
  position: fixed;
  z-index: 1000;
  width: 180px;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 20px 40px var(--shadow);
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.floating-book-preview.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.book-full {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.books-empty {
  margin-top: 24px;
  border: 1px dashed rgba(66, 63, 50, 0.25);
  border-radius: var(--radius);
  padding: 34px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.16);
}

/* ========================================
   9) ABOUT PAGE
   These classes give the About page a specific
   structure while still using shared cards,
   typography, and spacing.
======================================== */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.about-portrait {
  min-height: 420px;
}

.about-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.about-quote-card {
  padding: 80px;
  text-align: center;
}

.about-quote {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto;
  font-family: 'Cormorant Garamond', serif;
  color: var(--text);
}

.about-endnote {
  text-align: center;
}

/* ========================================
   10) CONTACT PAGE
   Contact layout and form styles are isolated
   here so they stay reusable but organized.
======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: start;
}

.contact-intro p {
  max-width: 560px;
}

.contact-details {
  margin-top: 28px;
}

.contact-form-card {
  padding: 34px;
}

.contact-form {
  width: 100%;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(66, 63, 50, 0.6);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(66, 63, 50, 0.3);
  background: rgba(255, 255, 255, 0.9);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-submit {
  cursor: pointer;
  background: transparent;
}

/* ========================================
   11) SHOP PAGE
   Product grid + product card rules.
======================================== */
.shop-hero {
  padding-bottom: 40px;
}

.shop-header {
  text-align: center;
  max-width: 760px;
}

.shop-header h1 {
  margin-top: 10px;
  margin-bottom: 14px;
}

.shop-header p {
  max-width: 560px;
  margin: 0 auto;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.product {
  padding: 0;
  overflow: hidden;
}

.product-image-link {
  display: block;
}

.product-image {
  background: rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product:hover .product-image img {
  transform: scale(1.04);
}

.product-content {
  padding: 22px;
}

.product-title {
  font-size: 1.6rem;
  margin: 8px 0 8px;
  font-family: 'Cormorant Garamond', serif;
}

.product-desc {
  margin-bottom: 16px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.price {
  font-size: 0.95rem;
  color: var(--text);
}

.product-button {
  margin-top: 0;
}

/* ========================================
   12) EXTERNAL TRACE / PLACEHOLDERS
======================================== */
.external-trace p {
  max-width: 520px;
}

.ig-placeholder {
  margin-top: 22px;
  border: 1px dashed rgba(66, 63, 50, 0.25);
  padding: 40px;
  text-align: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--muted);
}

.about {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

/* ========================================
   13) RESPONSIVE RULES
   Shared breakpoints live at the bottom so
   they are easy to find and update.
======================================== */
@media (max-width: 1000px) {
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .about-hero-grid,
  .contact-grid,
  .work,
  .work.align-right,
  .about-focus-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 90px 0 60px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .work.align-right .work-art,
  .work.align-right .work-text {
    order: initial;
  }

  .work.align-right .work-text {
    text-align: left;
    justify-self: start;
  }

  .about-portrait {
    min-height: 340px;
  }

  .about-quote-card {
    padding: 48px 28px;
  }
}

@media (max-width: 700px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    gap: 14px;
  }

  .section {
    padding: 72px 0;
  }

  .books-shelf-wrap {
    padding-top: 200px;
    margin-top: -176px;
  }

  .shop-grid {
    grid-template-columns: 1fr;
  }
}

.work-page-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.work-theme-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.work-theme-list a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

.work-body {
  max-width: 760px;
}

.poem-text p,
.prose-text p {
  margin-bottom: 1.4em;
}

@media (max-width: 900px) {
  .work-page-grid {
    grid-template-columns: 1fr;
  }

  .work-image-card {
    min-height: 340px;
  }
}

.hero-copy .button + .kicker,
.narrow-copy .button + .kicker {
  margin-top: 34px;
  margin-bottom: 0px;
}

.work-image-card:hover {
  transform: none;
  box-shadow: none;
}

.work-image-card img:hover {
  transform: none;
}

/* =========================
   ELSEWHERE INDEX
========================= */

.elsewhere-index {
  margin-top: 24px;
  border-top: 1px solid rgba(47,44,39,0.15);
}

.elsewhere-link {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;

  padding: 22px 0;

  border-bottom: 1px solid rgba(47,44,39,0.15);

  text-decoration: none;
  color: inherit;

  transition: opacity 0.25s ease;
}

.elsewhere-link:hover {
  opacity: 0.7;
}

.elsewhere-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1;
}

.elsewhere-name::after {
  content: " ↗";
  opacity: 0;
  transition: opacity 0.25s ease;
}

.elsewhere-link:hover .elsewhere-name::after {
  opacity: 1;
}

.elsewhere-description {
  opacity: 0.75;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .elsewhere-link {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}


/* =========================
   ARCHIVE FILTERS
========================= */

.filters,
.archive-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 24px 0 44px;
}

.filters button,
.archive-filters button {
  border: none;
  background: none;
  padding: 0;
  border-radius: 0;
  color: var(--ink);

  position: relative;

  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.filters button::after,
.archive-filters button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  transition: width 0.2s ease;
}

.filters button:hover::after,
.archive-filters button:hover::after,
.filters button.active::after,
.archive-filters button.active::after {
  width: 100%;
}

.filters button.active,
.archive-filters button.active {
  color: var(--ink);
}

/* =========================
   COMPLETE ARCHIVE
========================= */

.archive-list {
  border-top: 1px solid var(--line);
}

.archive-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 120px;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  color: inherit;
}

.archive-date,
.archive-type {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(47, 44, 39, 0.58);
}

.archive-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.15;
}

.archive-desc {
  margin-top: 6px;
  max-width: 620px;
  opacity: 0.72;
  font-family: var(--font-body);
}

.archive-item:hover .archive-title {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* =========================
   WORKS PAGE THEME FILTERS
========================= */
.works-filter-group {
  margin: 24px 0;
}

.works-filter-label {
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(66, 63, 50, 0.58);
}

.works-theme-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.works-theme-filters button {
  border: none;
  background: none;
  padding: 0;
  color: var(--ink);
  position: relative;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.works-theme-filters button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  transition: width 0.2s ease;
}

.works-theme-filters button:hover::after,
.works-theme-filters button.active::after {
  width: 100%;
}

.archive-filters {
  margin: 0;
}

/* ========================================
   MOBILE RESPONSIVE POLISH
======================================== */

@media (max-width: 1000px) {
  .shop-grid,
  .about-focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 36px, 1100px);
  }

  .hero-grid,
  .about-hero-grid,
  .contact-grid,
  .work,
  .work.align-right,
  .work-page-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero {
    padding: 80px 0 56px;
  }

  .section {
    padding: 72px 0;
  }

  .section.alt {
    margin: 24px 0;
  }

  .work {
    padding: 28px 0;
  }

  .work.align-right .work-art,
  .work.align-right .work-text {
    order: initial;
  }

  .work.align-right .work-text {
    text-align: left;
    justify-self: start;
  }

  .work-text {
    max-width: 100%;
  }

  .work-art,
  .work.is-large .work-art,
  .work.is-medium .work-art,
  .work.is-small .work-art {
    min-height: 260px;
  }

  .about-portrait,
  .work-image-card {
    min-height: 320px;
  }

  .about-quote-card {
    padding: 46px 24px;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(100% - 28px, 1100px);
  }

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
  }

  .nav-links {
    gap: 12px 16px;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .hero {
    padding: 64px 0 44px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 14vw, 3.2rem);
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .section {
    padding: 58px 0;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .themes-grid,
  .shop-grid,
  .about-focus-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .theme-card,
  .contact-form-card {
    padding: 22px;
  }

  .work {
    gap: 18px;
  }

  .work-art,
  .work.is-large .work-art,
  .work.is-medium .work-art,
  .work.is-small .work-art {
    min-height: 220px;
  }

  .work-text h3 {
    font-size: 1.65rem;
  }

  .product-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .books-shelf-wrap {
    padding-top: 160px;
    margin-top: -138px;
  }

  .book-spine {
    height: 130px;
  }

  .card-link.is-large .book-spine {
    height: 155px;
  }

  .card-link.is-wide .book-spine {
    height: 145px;
  }

  .card-link.is-tall .book-spine {
    height: 170px;
  }

  .floating-book-preview {
    display: none;
  }

  .elsewhere-link {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 24px, 1100px);
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  .work-art,
  .work.is-large .work-art,
  .work.is-medium .work-art,
  .work.is-small .work-art {
    min-height: 190px;
  }

  .about-portrait,
  .work-image-card {
    min-height: 260px;
  }
}

@media (max-width: 700px) {
  .archive-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .archive-type {
    justify-self: start;
  }
}
/* =========================
   WORKS PAGE RECENT CAROUSEL
========================= */

.recent-carousel-wrap {
  position: relative;
  margin-top: 36px;
}

.recent-carousel {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 2px 24px;

  /* Hide scrollbar (cross-browser) */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.recent-carousel-wrap::before,
.recent-carousel-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 24px;
  width: 22px;
  z-index: 2;
  pointer-events: none;
}

.recent-carousel-wrap::before {
  left: 0;
  background: linear-gradient(
  to right,
  rgba(205,207,192,0.55),
  transparent
);
}


.recent-carousel-wrap::after {
  right: 0;
  background: linear-gradient(
  to left,
  rgba(205,207,192,0.55),
  transparent
);
}

.recent-slide {
  flex: 0 0 340px;
  scroll-snap-align: start;

  display: flex;
  flex-direction: column;

  color: inherit;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.recent-slide.is-featured {
  flex-basis: 420px;
}

.recent-slide-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 18px;
}

.recent-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.recent-slide:hover .recent-slide-image img {
  transform: scale(1.04);
}

.recent-slide-text h3 {
  position: relative;
  display: inline-block;
  margin: 8px 0 10px;

  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.1;
}

.recent-slide-text h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;

  width: 100%;
  height: 1px;

  background: currentColor;

  transform: scaleX(0);
  transform-origin: left;

  opacity: 0.55;

  transition: transform 0.25s ease;
}

.recent-slide:hover .recent-slide-text h3::after {
  transform: scaleX(1);
}

.recent-date {
  margin-top: 4px;
  margin-bottom: 6px;

  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(66, 63, 50, 0.5);
}

.recent-themes {
  margin-top: 12px;

  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(66, 63, 50, 0.55);
}

.carousel-btn {
  position: absolute;
  top: 36%;
  z-index: 5;

  width: 38px;
  height: 38px;

  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(205, 207, 192, 0.72);
  color: var(--text);

  cursor: pointer;
  font: inherit;

  opacity: 0.45;

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
  opacity: 1;
}

.carousel-prev {
  left: -18px;
}

.carousel-next {
  right: -18px;
}



/* Remove if the link no longer exists in your HTML */
.archive-jump-link {
  display: none;
}

@media (max-width: 700px) {
  .recent-carousel-wrap::before,
  .recent-carousel-wrap::after {
    display: none;
  }

  .carousel-btn {
    display: none;
  }

  .recent-slide,
  .recent-slide.is-featured {
    flex-basis: 84vw;
  }
}

.works-recents-section {
  padding-bottom: 10px;
}

.archive-section {
  padding-top: 10px;
  margin-top: 0;
}

.works-hero {
  padding-bottom: 32px;
}

.works-recents-section {
  padding-top: 28px;
}