:root {
  --page-w: 1405px;
  --ink: #050505;
  --muted: #565656;
  --soft: #f5f5f5;
  --line: #d5d5d5;
  --radius-page: 25px;
  --radius-card: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #111516;
  color: var(--ink);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 18px 0 7px;
}

button,
a,
input {
  font: inherit;
}

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

button {
  border: 0;
  background: none;
  cursor: pointer;
}

.page-frame {
  position: relative;
  width: min(var(--page-w), calc(100vw - 92px));
  min-height: 1034px;
  background: #fff;
  border-radius: var(--radius-page);
  padding: 27px 41px 23px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 112px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  letter-spacing: -2.9px;
  line-height: 0.86;
  font-size: 41px;
  font-weight: 900;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 54px;
  padding-top: 33px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 53px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.7px;
}

.main-nav a {
  position: relative;
  padding-bottom: 7px;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: #111;
  border-radius: 20px;
}

.search-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #000;
  color: #fff;
  transition: transform 180ms ease, opacity 180ms ease;
}

.search-btn:hover {
  transform: scale(1.04);
}

.search-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.intro-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 10px;
  margin-bottom: 30px;
}

.intro-row h1 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.7px;
  font-weight: 800;
}

.intro-row p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.2px;
}

.sort-box {
  position: relative;
  z-index: 5;
  margin-top: 2px;
}

.sort-btn {
  min-width: 137px;
  height: 44px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 23px;
  border: 1px solid #d7d7d7;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.sort-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sort-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 137px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid #e1e1e1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: 180ms ease;
}

.sort-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sort-menu li {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

.sort-menu li:hover,
.sort-menu li[aria-selected="true"] {
  background: #f3f3f3;
}

.post-layout {
  width: 100%;
}

.archive-slider {
  width: 100%;
  overflow: hidden;
}

.archive-track {
  display: flex;
  width: 100%;
  transition: transform 560ms cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

.archive-panel {
  flex: 0 0 100%;
  width: 100%;
  padding-right: 0;
}

.archive-panel + .archive-panel {
  padding-left: 18px;
}

.page-frame.page-2 .archive-track {
  transform: translateX(calc(-100% - 18px));
}

.archive-panel .post-card {
  transform-origin: center;
}

.top-grid {
  display: grid;
  grid-template-columns: 498fr 397fr 388fr;
  gap: 18px;
  align-items: start;
}

.middle-stack {
  display: grid;
  gap: 18px;
}

.bottom-grid {
  display: grid;
  grid-template-columns: 436fr 459fr 388fr;
  gap: 18px;
  align-items: start;
  margin-top: 22px;
}

.post-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-card);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transform: translateZ(0);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 16px 36px rgba(0, 0, 0, 0.12);
}

.large-card {
  aspect-ratio: 498 / 438;
}

.santorini {
  background-image: url("assets/santorini.jpg");
  aspect-ratio: 498 / 438;
}

.japan {
  background-image: url("assets/japan.jpg");
  aspect-ratio: 397 / 223;
}

.florence {
  background-image: url("assets/florence.jpg");
  aspect-ratio: 397 / 197;
}

.banff {
  background-image: url("assets/banff.jpg");
  aspect-ratio: 388 / 438;
}

.thailand {
  background-image: url("assets/thailand.jpg");
  aspect-ratio: 436 / 249;
}

.packing {
  background-image: url("assets/packing.jpg");
  aspect-ratio: 459 / 249;
}

.cappadocia {
  background-image: url("assets/cappadocia.jpg");
  aspect-ratio: 388 / 249;
}

.iceland {
  background-image: url("assets/iceland.jpg");
  aspect-ratio: 498 / 438;
}

.marrakech {
  background-image: url("assets/marrakech.jpg");
  aspect-ratio: 397 / 223;
}

.lisbon {
  background-image: url("assets/lisbon.jpg");
  aspect-ratio: 397 / 197;
}

.patagonia {
  background-image: url("assets/patagonia.jpg");
  aspect-ratio: 388 / 438;
}

.bali {
  background-image: url("assets/bali.jpg");
  aspect-ratio: 436 / 249;
}

.roadtrip {
  background-image: url("assets/roadtrip.jpg");
  aspect-ratio: 459 / 249;
}

.amalfi {
  background-image: url("assets/amalfi.jpg");
  aspect-ratio: 388 / 249;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 23px;
  margin-top: 30px;
}

.pager-btn {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f4f4f4;
  color: #111;
  transition: background 180ms ease, transform 180ms ease;
}

.pager-btn:hover {
  background: #e9e9e9;
  transform: translateY(-1px);
}

.pager-btn svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d9d9d9;
  padding: 0;
}

.dot.active {
  background: #000;
}

.search-panel {
  position: absolute;
  top: 79px;
  right: 96px;
  width: 330px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: 180ms ease;
  z-index: 10;
}

.search-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-panel input {
  width: 100%;
  height: 48px;
  padding: 0 18px;
  border: 1px solid #dadada;
  border-radius: 999px;
  outline: none;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
  font-size: 15px;
}

.search-panel input:focus {
  border-color: #111;
}



/* Progressive blur treatment for every blog post holder.
   The blur and hover tint sit below .post-content, so card text stays sharp. */
.blog-post-holder {
  isolation: isolate;
  will-change: transform;
}

.blog-post-holder .progressive-blur {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms ease;
}

.blog-post-holder .progressive-blur-layer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  -webkit-backdrop-filter: blur(var(--blur-radius));
  backdrop-filter: blur(var(--blur-radius));
  -webkit-mask-image: var(--blur-mask);
  mask-image: var(--blur-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.blog-post-holder::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 36%, rgba(0, 0, 0, 0.58) 100%);
  opacity: 1;
  transition: opacity 260ms ease;
}

.blog-post-holder.packing::after,
.blog-post-holder.japan::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.18) 58%, rgba(255, 255, 255, 0) 100%);
}

.blog-post-holder:hover .progressive-blur,
.blog-post-holder:focus-visible .progressive-blur {
  opacity: 1;
}

.blog-post-holder:hover::after,
.blog-post-holder:focus-visible::after {
  opacity: 1;
}

.blog-post-holder:hover {
  transform: translateY(-4px) scale(1.01);
}

/* This content is generated by script.js only when the blur is active.
   It mirrors the baked-in card labels/titles and remains above every blur layer. */
.post-content {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  pointer-events: none;
  opacity: 1;
  transition: opacity 220ms ease;
}


.post-topline {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.post-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.25px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.post-arrow {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #000;
  font-size: 31px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -3px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.post-content--image {
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 21px 21px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.36);
}

.post-image-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 92%;
}

.post-date-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.25px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.post-title {
  display: block;
  font-weight: 800;
  letter-spacing: -1.1px;
  line-height: 1.08;
}

.post-content--image .post-title {
  max-width: 410px;
  color: #fff;
  font-size: 24px;
}

.post-content--text {
  flex-direction: column;
  justify-content: space-between;
  color: #070707;
  text-shadow: none;
}

.post-content--text .post-text-main,
.post-content--text .post-text-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.post-chip--plain {
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 11px;
  letter-spacing: 0;
}

.post-chip--plain::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: currentColor;
}

.post-content--text .post-title {
  color: #070707;
  font-size: 24px;
  max-width: 240px;
  margin-top: 20px;
}

.post-divider {
  display: block;
  width: 214px;
  height: 1px;
  margin-bottom: 14px;
  background: rgba(0, 0, 0, 0.19);
}

.post-meta {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #080808;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.35px;
}

.japan .post-content--text {
  padding: 35px 34px 22px;
}

.japan .post-arrow {
  position: absolute;
  top: 16px;
  right: 17px;
}

.florence .post-content--image {
  padding: 17px 19px 17px;
}

.florence .post-chip {
  min-height: 31px;
  padding: 0 16px;
  font-size: 11px;
}

.florence .post-arrow,
.thailand .post-arrow,
.cappadocia .post-arrow {
  width: 43px;
  height: 43px;
  font-size: 29px;
}

.florence .post-title,
.thailand .post-title,
.cappadocia .post-title {
  font-size: 23px;
}

.banff .post-content--image {
  padding: 20px 20px 23px;
}

.banff .post-title {
  max-width: 340px;
}

.thailand .post-content--image,
.cappadocia .post-content--image {
  padding: 18px 20px 20px;
}

.packing .post-content--text {
  padding: 40px 31px 40px;
}

.packing .post-content--text .post-title {
  max-width: 230px;
  margin-top: 20px;
  font-size: 23px;
}

.packing .post-divider {
  width: 225px;
}

.packing .post-arrow {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 45px;
  height: 45px;
}

.cappadocia .post-title {
  max-width: 330px;
}


.text-card::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.2) 62%, rgba(255, 255, 255, 0) 100%);
}

.marrakech .post-content--text,
.roadtrip .post-content--text {
  padding: 35px 34px 22px;
}

.marrakech .post-arrow,
.roadtrip .post-arrow {
  position: absolute;
  top: 16px;
  right: 17px;
}

.marrakech .post-content--text .post-title,
.roadtrip .post-content--text .post-title {
  max-width: 240px;
}

.hero-section .post-title {
  letter-spacing: -1.15px;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .blog-post-holder .progressive-blur {
    display: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  body {
    padding: 14px;
  }

  .page-frame {
    width: 100%;
    min-height: auto;
    padding: 24px;
    border-radius: 22px;
  }

  .site-header,
  .intro-row {
    gap: 28px;
  }

  .header-actions {
    gap: 28px;
  }

  .main-nav {
    gap: 26px;
  }

  .top-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .archive-panel + .archive-panel {
    padding-left: 0;
  }

  .page-frame.page-2 .archive-track {
    transform: translateX(-100%);
  }

  .middle-stack {
    grid-template-columns: 1fr;
  }

  .post-card,
  .large-card {
    aspect-ratio: 16 / 9;
    background-size: cover;
  }
}

@media (max-width: 720px) {
  .site-header,
  .intro-row {
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    padding-top: 8px;
  }

  .main-nav {
    font-size: 17px;
    gap: 18px;
  }

  .logo {
    font-size: 35px;
  }

  .search-panel {
    top: 135px;
    left: 24px;
    right: 24px;
    width: auto;
  }

  .pager {
    gap: 14px;
  }
}

/* Page-stage transition layer: archive cards slide away while the detail article enters from the right. */
.view-stage {
  position: relative;
}

.archive-view {
  transition: transform 640ms cubic-bezier(0.23, 0.86, 0.39, 0.96), opacity 420ms ease;
  will-change: transform, opacity;
}

.archive-view.is-hidden {
  display: none;
}

.detail-view[hidden] {
  display: none;
}

.detail-view {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 12;
  opacity: 0;
  transform: translateX(105%);
  pointer-events: none;
  transition: transform 680ms cubic-bezier(0.23, 0.86, 0.39, 0.96), opacity 440ms ease;
  will-change: transform, opacity;
}

.page-frame.detail-open .archive-view {
  opacity: 0;
  transform: translateX(-9%) scale(0.985);
  pointer-events: none;
}

.page-frame.detail-open .detail-view {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.detail-view.is-settled {
  position: relative;
}

/* Make card hover/scale room visible above the top edge of every grid. */
.archive-slider,
.archive-panel,
.post-layout,
.top-grid,
.bottom-grid,
.middle-stack {
  overflow: visible;
}

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

/* Logo: faint fade-in to original black on page load. */
.logo span {
  opacity: 0;
  color: rgba(5, 5, 5, 0.22);
  filter: blur(2px);
  animation: logoInkIn 920ms cubic-bezier(0.23, 0.86, 0.39, 0.96) forwards;
}

.logo span:nth-child(2) {
  animation-delay: 90ms;
}

@keyframes logoInkIn {
  0% {
    opacity: 0;
    color: rgba(5, 5, 5, 0.14);
    filter: blur(3px);
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    color: #050505;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* Smooth silk-style post icons. */
.post-arrow.silk-icon {
  position: relative;
  overflow: hidden;
  font-size: 0;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.82) 36%, rgba(255, 255, 255, 0.68) 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -10px 22px rgba(0, 0, 0, 0.05),
    0 10px 28px rgba(0, 0, 0, 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.post-arrow.silk-icon::before {
  content: "";
  position: absolute;
  inset: 4px 6px auto 6px;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.post-arrow.silk-icon svg {
  position: relative;
  z-index: 1;
  width: 23px;
  height: 23px;
  stroke: #050505;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transform: translate(1px, -1px);
  transition: transform 220ms ease;
}

.blog-post-holder:hover .post-arrow.silk-icon svg,
.blog-post-holder:focus-visible .post-arrow.silk-icon svg {
  transform: translate(3px, -3px);
}

.blog-post-holder:hover {
  transform: translateY(-5px) scale(1.012);
}

/* Detail article view styled to match the provided post-page direction. */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 40px;
  color: #090909;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.25px;
}

.back-link span:first-child {
  font-size: 18px;
  line-height: 1;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
  padding-bottom: 38px;
}

.article-main {
  min-width: 0;
}

.article-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffe5ec;
  color: #101010;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.35px;
}

.article-chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f43f6c;
}

.article-main h1 {
  max-width: 760px;
  margin: 30px 0 14px;
  font-size: clamp(42px, 4.8vw, 62px);
  line-height: 0.98;
  letter-spacing: -3.4px;
  font-weight: 900;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 24px;
  color: #656565;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.2px;
}

.article-hero {
  margin: 0 0 22px;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: #f5f5f5;
}

.article-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 690 / 450;
  object-fit: cover;
}

.article-copy section {
  padding: 0 0 22px;
  margin: 0 0 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.article-copy section:last-child {
  border-bottom: 0;
}

.article-copy h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -1px;
  font-weight: 850;
}

.article-copy p {
  max-width: 660px;
  margin: 0 0 10px;
  color: #080808;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.25px;
}

.article-side {
  display: grid;
  gap: 18px;
}

.facts-card {
  padding: 36px 22px 18px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.92), rgba(255, 229, 236, 0.72) 48%, rgba(255, 239, 242, 0.82) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.facts-card h2 {
  margin: 0 0 22px;
  font-size: 22px;
  letter-spacing: -0.8px;
  line-height: 1;
}

.fact-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 84px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.fact-row:last-child {
  border-bottom: 0;
}

.fact-row p {
  margin: 0;
  color: #060606;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: -0.25px;
}

.fact-row strong {
  font-weight: 500;
}

.fact-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #ff315f;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.86), rgba(255, 197, 209, 0.72) 42%, rgba(255, 210, 220, 0.56) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -10px 20px rgba(244, 63, 108, 0.08),
    0 8px 20px rgba(244, 63, 108, 0.08);
}

.fact-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-photo {
  display: block;
  width: 100%;
  aspect-ratio: 330 / 340;
  object-fit: cover;
  border-radius: 10px;
  background: #f2f2f2;
}

/* Geometric silk transition inspired by the shared motion example, converted to plain CSS/JS. */
.silk-transition {
  position: absolute;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background:
    linear-gradient(135deg, rgba(3, 3, 3, 0.96), rgba(3, 3, 3, 0.90)),
    radial-gradient(circle at 25% 20%, rgba(99, 102, 241, 0.16), transparent 35%),
    radial-gradient(circle at 80% 75%, rgba(244, 63, 94, 0.14), transparent 35%);
}

.page-frame.silk-active .silk-transition {
  visibility: visible;
  animation: silkVeil 1.05s cubic-bezier(0.23, 0.86, 0.39, 0.96) both;
}

.silk-shape {
  position: absolute;
  display: block;
  height: var(--shape-h, 100px);
  width: var(--shape-w, 420px);
  border-radius: 999px;
  transform: rotate(var(--shape-r, 0deg)) translateY(-150px);
  opacity: 0;
  background: linear-gradient(90deg, var(--shape-c, rgba(255, 255, 255, 0.12)), transparent 72%);
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.silk-shape::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.20), transparent 70%);
}

.page-frame.silk-active .silk-shape {
  animation: elegantShapeIn 1.05s cubic-bezier(0.23, 0.86, 0.39, 0.96) both, silkFloat 8s ease-in-out infinite;
}

.silk-shape-one {
  --shape-w: 600px;
  --shape-h: 140px;
  --shape-r: 12deg;
  --shape-c: rgba(99, 102, 241, 0.16);
  left: -12%;
  top: 16%;
  animation-delay: 40ms, 1s !important;
}

.silk-shape-two {
  --shape-w: 500px;
  --shape-h: 120px;
  --shape-r: -15deg;
  --shape-c: rgba(244, 63, 94, 0.16);
  right: -5%;
  top: 70%;
  animation-delay: 120ms, 1s !important;
}

.silk-shape-three {
  --shape-w: 300px;
  --shape-h: 80px;
  --shape-r: -8deg;
  --shape-c: rgba(139, 92, 246, 0.16);
  left: 10%;
  bottom: 8%;
  animation-delay: 90ms, 1s !important;
}

.silk-shape-four {
  --shape-w: 220px;
  --shape-h: 62px;
  --shape-r: 20deg;
  --shape-c: rgba(245, 158, 11, 0.14);
  right: 16%;
  top: 12%;
  animation-delay: 160ms, 1s !important;
}

.silk-shape-five {
  --shape-w: 160px;
  --shape-h: 44px;
  --shape-r: -25deg;
  --shape-c: rgba(6, 182, 212, 0.14);
  left: 24%;
  top: 8%;
  animation-delay: 210ms, 1s !important;
}

@keyframes silkVeil {
  0% {
    opacity: 0;
    transform: translateX(18%);
  }
  26% {
    opacity: 1;
    transform: translateX(0);
  }
  72% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-10%);
  }
}

@keyframes elegantShapeIn {
  0% {
    opacity: 0;
    transform: rotate(calc(var(--shape-r) - 15deg)) translateY(-150px);
  }
  42% {
    opacity: 1;
    transform: rotate(var(--shape-r)) translateY(0);
  }
  100% {
    opacity: 0.8;
    transform: rotate(var(--shape-r)) translateY(0);
  }
}

@keyframes silkFloat {
  0%, 100% {
    margin-top: 0;
  }
  50% {
    margin-top: 15px;
  }
}

@media (max-width: 1100px) {
  .article-shell {
    grid-template-columns: 1fr;
  }

  .article-side {
    grid-template-columns: 1fr 1fr;
  }

  .facts-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .article-main h1 {
    font-size: 40px;
    letter-spacing: -2px;
  }

  .article-side {
    grid-template-columns: 1fr;
  }

  .back-link {
    margin-top: 20px;
  }
}

/* Updated header: social icons, inline search and contact button only. */
.header-actions--clean {
  gap: 14px;
  padding-top: 25px;
  align-items: center;
}

.social-nav {
  display: flex;
  align-items: center;
  gap: 9px;
}

.social-link {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #050505;
  background: rgba(245, 245, 245, 0.88);
  border: 1px solid rgba(5, 5, 5, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 8px 22px rgba(0, 0, 0, 0.055);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 12px 28px rgba(0, 0, 0, 0.09);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.header-search {
  width: 205px;
  height: 43px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(5, 5, 5, 0.12);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.055);
}

.header-search svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: #050505;
  opacity: 0.68;
}

.header-search input {
  min-width: 0;
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #050505;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.header-search input::placeholder {
  color: rgba(5, 5, 5, 0.45);
}

.contact-btn {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border-radius: 999px;
  background: #050505;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.25px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-btn:hover,
.contact-btn:focus-visible {
  transform: translateY(-1px);
  background: #161616;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

/* Keep scaled hover cards visible vertically, while hiding the next/previous page horizontally. */
.archive-slider {
  overflow: hidden;
  padding: 14px 10px 24px;
  margin: -14px -10px -24px;
}

.archive-track {
  gap: 18px;
}

.archive-panel {
  flex: 0 0 100%;
  min-width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow: visible;
}

.page-frame.page-2 .archive-track {
  transform: translateX(calc(-100% - 18px));
}

.top-grid,
.bottom-grid,
.middle-stack,
.post-layout {
  overflow: visible;
}

/* Lighter, straight transition veil: no dark flash and no end drift. */
.silk-transition {
  background:
    radial-gradient(circle at 22% 18%, rgba(99, 102, 241, 0.105), transparent 38%),
    radial-gradient(circle at 78% 76%, rgba(244, 63, 94, 0.115), transparent 36%),
    radial-gradient(circle at 50% 45%, rgba(255, 221, 235, 0.42), transparent 42%),
    linear-gradient(135deg, #ffffff 0%, #fff8fb 50%, #f8fbff 100%);
}

.silk-shape {
  border-color: rgba(5, 5, 5, 0.07);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.silk-shape-one {
  --shape-c: rgba(99, 102, 241, 0.12);
}

.silk-shape-two {
  --shape-c: rgba(244, 63, 94, 0.12);
}

.silk-shape-three {
  --shape-c: rgba(139, 92, 246, 0.10);
}

.silk-shape-four {
  --shape-c: rgba(245, 158, 11, 0.105);
}

.silk-shape-five {
  --shape-c: rgba(6, 182, 212, 0.10);
}

@keyframes silkVeil {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  22% {
    opacity: 1;
    transform: translateX(0);
  }
  74% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(0);
  }
}

.page-frame.detail-open .archive-view {
  opacity: 0;
  transform: translateX(0) scale(0.992);
  pointer-events: none;
}

@media (max-width: 1100px) {
  .header-actions--clean {
    gap: 10px;
  }

  .header-search {
    width: 170px;
  }
}

@media (max-width: 760px) {
  .header-actions--clean {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-top: 22px;
  }

  .header-search {
    width: min(100%, 320px);
  }
}


/* Smooth card-to-article transition update.
   The previous full-page silk wipe is replaced with a clean white image morph. */
.detail-view {
  transform: translateY(18px) scale(0.988);
  opacity: 0;
  transition:
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 420ms ease;
}

.page-frame.measure-detail .detail-view {
  opacity: 0;
  transform: none;
  pointer-events: none;
}

.page-frame.detail-open .archive-view {
  opacity: 0;
  transform: translateY(-8px) scale(0.988);
  pointer-events: none;
}

.page-frame.detail-open .detail-view {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.page-frame.is-card-morphing {
  cursor: wait;
}

.card-morph {
  position: absolute;
  display: block;
  z-index: 80;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.18);
  transform-origin: center;
  will-change: left, top, width, height, opacity, border-radius, transform, filter;
}

.card-morph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.0), rgba(255,255,255,0.18));
  pointer-events: none;
}

.soft-page-fade {
  position: absolute;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.88);
  opacity: 0;
}

.page-frame.is-card-morphing .soft-page-fade {
  animation: softFadePass 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes softFadePass {
  0% { opacity: 0; }
  35% { opacity: 0.82; }
  100% { opacity: 0; }
}

/* Show only the active archive page, so no neighbouring hero/cards bleed into view. */
.archive-panel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.archive-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Search starts as a single icon and expands into a full bar on hover/focus. */
.header-search {
  width: 43px;
  min-width: 43px;
  padding: 0;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  cursor: text;
  transition:
    width 420ms cubic-bezier(0.22, 1, 0.36, 1),
    padding 420ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.header-search:hover,
.header-search:focus-within {
  width: 220px;
  padding: 0 14px;
  justify-content: flex-start;
  gap: 8px;
  background: #fff;
  border-color: rgba(5, 5, 5, 0.16);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.09);
}

.header-search svg {
  opacity: 0.9;
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}

.header-search:hover svg,
.header-search:focus-within svg {
  transform: scale(0.92);
  opacity: 0.68;
}

.header-search input {
  width: 0;
  flex: 0 0 auto;
  opacity: 0;
  pointer-events: none;
  transition:
    width 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 240ms ease 80ms;
}

.header-search:hover input,
.header-search:focus-within input {
  width: 150px;
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 760px) {
  .header-search,
  .header-search:hover,
  .header-search:focus-within {
    width: min(100%, 320px);
    padding: 0 14px;
    gap: 8px;
  }

  .header-search input,
  .header-search:hover input,
  .header-search:focus-within input {
    width: 100%;
    opacity: 1;
    pointer-events: auto;
  }
}

/* Final refinement: smoother instant hover blur and smoother archive page switching. */
.blog-post-holder {
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Use a pre-rendered background clone instead of heavy live backdrop-filter layers.
   This makes the hover blur feel immediate and avoids the stutter from backdrop-filter. */
.blog-post-holder::before {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: inherit;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(11px) saturate(1.05);
  opacity: 0;
  transform: scale(1.035) translateZ(0);
  will-change: opacity, transform;
  transition:
    opacity 115ms linear,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.96) 42%, rgba(0, 0, 0, 0.0) 78%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.96) 42%, rgba(0, 0, 0, 0.0) 78%);
}

.blog-post-holder[data-blur-direction="right"]::before {
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.92) 44%, rgba(0, 0, 0, 0.0) 78%);
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.92) 44%, rgba(0, 0, 0, 0.0) 78%);
}

.blog-post-holder:hover::before,
.blog-post-holder:focus-visible::before {
  opacity: 1;
  transform: scale(1.045) translateZ(0);
}

/* Keep the original layered blur markup available, but do not render it on hover.
   The visual result is the same soft progressive edge, with much smoother performance. */
.blog-post-holder .progressive-blur {
  display: none;
}

.blog-post-holder::after {
  transition: opacity 115ms linear;
}

.blog-post-holder:hover,
.blog-post-holder:focus-visible {
  transform: translateY(-4px) scale(1.01) translateZ(0);
}

.post-content,
.post-arrow,
.post-chip,
.post-date-pill,
.post-title {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* The current and incoming/outgoing archive panels stay mounted during the slide.
   This removes the hard pop when changing between groups of blog holders. */
.archive-track {
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.archive-panel {
  transition:
    opacity 360ms ease,
    visibility 0s linear 360ms;
}

.archive-panel.is-active,
.archive-panel.is-transitioning {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 360ms ease,
    visibility 0s linear 0s;
}

.archive-panel.is-transitioning {
  pointer-events: none;
}

.page-frame.page-changing .archive-panel.is-active,
.page-frame.page-changing .archive-panel.is-transitioning {
  opacity: 1;
  visibility: visible;
}

.page-frame.page-changing .post-card {
  will-change: transform, opacity;
}

.page-frame.page-changing .archive-panel.is-active .post-card {
  animation: archiveCardSettle 640ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes archiveCardSettle {
  0% {
    opacity: 0.92;
    transform: translateY(8px) scale(0.992);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* CMS-ready dynamic cards */
.cms-empty {
  min-height: 575px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: var(--radius-card);
  background: #fafafa;
}

.cms-empty h2 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -1px;
}

.cms-empty p {
  margin: 0;
  color: var(--muted);
}

.archive-track {
  transform: translateX(0);
}

/* Inline Sanity image URLs override the original local placeholder classes. */
.post-card[style*="background-image"] {
  background-position: center;
  background-size: cover;
}

/* CMS controls: dynamic filters and extended sort options */
.archive-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 720px;
}

.filter-box {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.filter-select {
  height: 44px;
  min-width: 145px;
  padding: 0 38px 0 17px;
  border: 1px solid #d7d7d7;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.25px;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #111 50%), linear-gradient(135deg, #111 50%, transparent 50%);
  background-position: calc(100% - 19px) 19px, calc(100% - 13px) 19px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.filter-select:hover,
.filter-select:focus {
  border-color: rgba(5, 5, 5, 0.28);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.archive-controls .sort-menu {
  width: 188px;
}

.archive-controls .sort-btn {
  min-width: 158px;
}

.search-results-panel {
  min-height: 640px;
}

.search-results-hero {
  min-height: 640px;
  padding: 34px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 215, 226, 0.72), transparent 34%),
    radial-gradient(circle at 8% 85%, rgba(228, 238, 255, 0.9), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #fff8fb 45%, #f8fbff 100%);
  border: 1px solid rgba(0, 0, 0, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 24px 70px rgba(0, 0, 0, 0.055);
}

.search-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 31px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 226, 234, 0.9);
  color: #111;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.25px;
}

.search-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff466d;
}

.search-results-hero h2 {
  max-width: 760px;
  margin: 22px 0 9px;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -3.5px;
  font-weight: 900;
}

.search-results-hero > p {
  max-width: 610px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.25px;
}

.search-results-list {
  display: grid;
  gap: 14px;
  max-height: 430px;
  overflow-y: auto;
  padding-right: 8px;
  scroll-behavior: smooth;
}

.search-results-list::-webkit-scrollbar {
  width: 9px;
}

.search-results-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.045);
  border-radius: 999px;
}

.search-results-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 13px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.065);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.052);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease, background 220ms ease;
}

.search-result-card:hover,
.search-result-card:focus-visible {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.09);
  outline: none;
}

.search-result-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.search-result-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.search-result-meta {
  color: #777;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.search-result-copy strong {
  color: #050505;
  font-size: 23px;
  line-height: 1.06;
  letter-spacing: -1px;
  font-weight: 900;
}

.search-result-copy span:last-child {
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.18px;
}

.search-result-copy mark {
  padding: 0 2px;
  border-radius: 4px;
  background: #ffe2eb;
  color: inherit;
}

.cms-empty--search {
  min-height: 220px;
  background: rgba(255, 255, 255, 0.62);
}

@media (max-width: 920px) {
  .intro-row {
    gap: 18px;
  }

  .archive-controls {
    justify-content: flex-start;
  }

  .search-result-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .archive-controls,
  .filter-select,
  .archive-controls .sort-btn {
    width: 100%;
  }

  .search-results-hero {
    padding: 24px 18px;
  }

  .search-result-card {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   Beyond Beswick editorial palette update
   Inspired by the BlogSpot-style references: charcoal outer
   canvas, warm paper panel, black/white controls, soft pastels.
   Additions are kept as overrides so the existing HTML/JS works.
   ========================================================== */

:root {
  --page-w: 1440px;
  --ink: #090909;
  --muted: #686868;
  --soft: #f3eee5;
  --line: rgba(9, 9, 9, 0.11);

  --page-bg: #171717;
  --panel-bg: #fbfaf7;
  --panel-bg-soft: #fffdf9;
  --card-cream: #f3eee5;
  --card-pink: #f7c5d3;
  --card-mint: #bfd8d5;
  --card-sand: #d8c7aa;
  --card-ice: #edf3f0;

  --radius-page: 34px;
  --radius-card: 28px;
  --shadow-page: 0 34px 95px rgba(0, 0, 0, 0.30);
  --shadow-card: 0 20px 55px rgba(0, 0, 0, 0.13);
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  background:
    radial-gradient(circle at 15% 0%, rgba(247, 197, 211, 0.055), transparent 32%),
    radial-gradient(circle at 82% 14%, rgba(191, 216, 213, 0.055), transparent 30%),
    var(--page-bg);
  padding: clamp(20px, 4vw, 64px) 0;
}

.page-frame {
  width: min(var(--page-w), calc(100vw - 92px));
  background: var(--panel-bg);
  border-radius: var(--radius-page);
  padding: clamp(30px, 3.2vw, 48px);
  box-shadow: var(--shadow-page);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header {
  min-height: 118px;
  align-items: flex-start;
}

.logo {
  letter-spacing: -0.082em;
  color: var(--ink);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.045);
}

.logo span {
  color: var(--ink);
}

.header-actions--clean {
  gap: 12px;
  padding-top: 14px;
}

.social-link,
.header-search,
.contact-btn,
.sort-btn,
.filter-select,
.pager-btn {
  -webkit-tap-highlight-color: transparent;
}

.social-link {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(9, 9, 9, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 28px rgba(0, 0, 0, 0.055);
}

.social-link:hover,
.social-link:focus-visible {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 16px 36px rgba(0, 0, 0, 0.11);
}

.header-search {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.header-search svg {
  fill: #ffffff;
  opacity: 1;
}

.header-search:hover,
.header-search:focus-within {
  background: #ffffff;
  color: var(--ink);
  border-color: rgba(9, 9, 9, 0.16);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.105);
}

.header-search:hover svg,
.header-search:focus-within svg {
  fill: var(--ink);
  opacity: 0.72;
}

.header-search input {
  color: var(--ink);
}

.header-search input::placeholder {
  color: rgba(9, 9, 9, 0.45);
}

.contact-btn {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(9, 9, 9, 0.82);
  box-shadow: none;
}

.contact-btn:hover,
.contact-btn:focus-visible {
  background: var(--ink);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.intro-row {
  align-items: flex-end;
  margin-top: 6px;
  margin-bottom: 34px;
}

.intro-row h1 {
  font-size: clamp(42px, 5.3vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.075em;
  font-weight: 900;
  color: var(--ink);
}

.intro-row p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
}

.archive-controls {
  gap: 12px;
}

.sort-btn,
.filter-select {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(9, 9, 9, 0.11);
  color: var(--ink);
  box-shadow: 0 9px 26px rgba(0, 0, 0, 0.04);
}

.sort-btn:hover,
.filter-select:hover,
.filter-select:focus {
  background: #ffffff;
  border-color: rgba(9, 9, 9, 0.22);
  box-shadow: 0 15px 36px rgba(0, 0, 0, 0.085);
}

.sort-menu {
  background: #ffffff;
  border-color: rgba(9, 9, 9, 0.08);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.16);
}

.sort-menu li:hover,
.sort-menu li[aria-selected="true"] {
  background: var(--card-cream);
}

.archive-slider {
  padding: 18px 12px 30px;
  margin: -18px -12px -30px;
}

.top-grid,
.bottom-grid,
.middle-stack {
  gap: 22px;
}

.bottom-grid {
  margin-top: 24px;
}

.post-card,
.blog-post-holder {
  border-radius: var(--radius-card);
  background-color: var(--card-cream);
  box-shadow: inset 0 0 0 1px rgba(9, 9, 9, 0.04);
  transition:
    transform 360ms var(--ease-premium),
    box-shadow 360ms var(--ease-premium),
    filter 360ms var(--ease-premium);
}

.post-card:hover,
.blog-post-holder:hover,
.blog-post-holder:focus-visible {
  transform: translateY(-7px) scale(1.012) translateZ(0);
  box-shadow:
    inset 0 0 0 1px rgba(9, 9, 9, 0.045),
    var(--shadow-card);
}

.blog-post-holder::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.62) 100%);
}

.blog-post-holder::before {
  filter: blur(12px) saturate(1.08) contrast(1.03);
  transition:
    opacity 105ms linear,
    transform 420ms var(--ease-premium);
}

.text-card,
.japan,
.packing,
.marrakech,
.roadtrip {
  background-color: var(--card-pink);
}

.packing {
  background-color: var(--card-cream);
}

.post-chip,
.post-date-pill,
.post-arrow.silk-icon {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
}

.post-chip {
  font-size: 11px;
  letter-spacing: -0.02em;
}

.post-date-pill {
  color: #ffffff;
  background: rgba(9, 9, 9, 0.20);
  border-color: rgba(255, 255, 255, 0.70);
}

.post-content--image .post-title {
  font-weight: 900;
  letter-spacing: -0.055em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
}

.post-content--text .post-title {
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.post-chip--plain::before {
  background: currentColor;
}

.post-meta {
  color: var(--ink);
}

.pager {
  margin-top: 34px;
}

.pager-btn {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(9, 9, 9, 0.07);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.055);
}

.pager-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.10);
}

.dot {
  background: rgba(9, 9, 9, 0.15);
}

.dot.active {
  background: var(--ink);
}

.search-results-hero {
  border-radius: 30px;
  background:
    radial-gradient(circle at 86% 9%, rgba(247, 197, 211, 0.68), transparent 31%),
    radial-gradient(circle at 7% 88%, rgba(191, 216, 213, 0.78), transparent 31%),
    linear-gradient(135deg, #fffdf9 0%, #fbfaf7 44%, #f3eee5 100%);
  border-color: rgba(9, 9, 9, 0.055);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 24px 70px rgba(0, 0, 0, 0.075);
}

.search-kicker,
.article-chip {
  background: rgba(247, 197, 211, 0.74);
  color: var(--ink);
}

.search-kicker::before,
.article-chip-dot {
  background: #f43f6c;
}

.search-results-hero h2 {
  color: var(--ink);
  letter-spacing: -0.075em;
}

.search-result-card {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(9, 9, 9, 0.065);
  box-shadow: 0 13px 34px rgba(0, 0, 0, 0.055);
}

.search-result-card:hover,
.search-result-card:focus-visible {
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.11);
}

.search-result-thumb {
  border-radius: 18px;
}

.search-result-copy strong {
  color: var(--ink);
  letter-spacing: -0.055em;
}

.search-result-copy mark {
  background: rgba(247, 197, 211, 0.65);
}

.cms-empty {
  background: rgba(255, 255, 255, 0.46);
  border-color: rgba(9, 9, 9, 0.14);
}

.back-link {
  color: var(--ink);
}

.article-shell {
  gap: 42px;
}

.article-main h1 {
  color: var(--ink);
  letter-spacing: -0.075em;
}

.article-meta {
  color: var(--muted);
}

.article-hero {
  border-radius: 28px;
  background: var(--card-cream);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.075);
}

.article-copy section {
  border-bottom-color: rgba(9, 9, 9, 0.11);
}

.article-copy h2 {
  color: var(--ink);
  letter-spacing: -0.055em;
}

.article-copy p {
  color: #202020;
}

.facts-card {
  border-radius: 28px;
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, 0.86), transparent 30%),
    linear-gradient(135deg, rgba(247, 197, 211, 0.58), rgba(243, 238, 229, 0.92));
  border: 1px solid rgba(9, 9, 9, 0.055);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.80),
    0 20px 50px rgba(0, 0, 0, 0.055);
}

.fact-row {
  border-bottom-color: rgba(9, 9, 9, 0.105);
}

.fact-icon {
  color: #f43f6c;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.92), rgba(247, 197, 211, 0.80) 42%, rgba(247, 197, 211, 0.50) 100%);
}

.side-photo {
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.07);
}

.soft-page-fade {
  background: rgba(251, 250, 247, 0.90);
}

.card-morph {
  border-radius: var(--radius-card);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.20);
}

.silk-transition {
  background:
    radial-gradient(circle at 18% 20%, rgba(247, 197, 211, 0.52), transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(191, 216, 213, 0.42), transparent 35%),
    linear-gradient(135deg, #fbfaf7 0%, #fffdf9 50%, #f3eee5 100%);
}

.silk-shape {
  border-color: rgba(9, 9, 9, 0.07);
}

@media (max-width: 1100px) {
  .page-frame {
    width: min(100%, calc(100vw - 28px));
    padding: 26px;
    border-radius: 28px;
  }

  .intro-row h1 {
    font-size: clamp(36px, 8vw, 64px);
  }
}

@media (max-width: 760px) {
  body {
    padding: 12px 0;
  }

  .page-frame {
    width: calc(100vw - 22px);
    padding: 22px;
    border-radius: 24px;
  }

  .site-header {
    min-height: auto;
  }

  .intro-row {
    align-items: flex-start;
  }

  .intro-row h1 {
    font-size: clamp(40px, 14vw, 58px);
  }

  .header-actions--clean {
    gap: 10px;
  }
}
