/*
Theme Name: The Malaysian Traveller Editorial
Theme URI: https://themalaysiantraveller.com/
Description: Editorial travel child theme for The Malaysian Traveller, built on Kadence.
Author: Sedunia Travel
Template: kadence
Version: 1.0.0
Text Domain: tmt-editorial
*/

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --tmt-ink: #141a18;
  --tmt-soft-ink: #27332f;
  --tmt-muted: #6e746e;
  --tmt-line: #ded7c9;
  --tmt-paper: #f5efe2;
  --tmt-shell: #fffaf0;
  --tmt-cream: #fbf4e7;
  --tmt-forest: #12382f;
  --tmt-forest-2: #0c2a24;
  --tmt-sea: #0f6670;
  --tmt-clay: #a65338;
  --tmt-gold: #b88a3d;
  --tmt-gold-soft: #e5cf9d;
  --tmt-shadow: 0 22px 80px rgba(20, 26, 24, 0.12);
  --tmt-serif: "Cormorant Garamond", Georgia, serif;
  --tmt-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html body,
body,
#wrapper,
#inner-wrap {
  color: var(--tmt-ink);
  background:
    linear-gradient(180deg, rgba(245, 239, 226, 0.7), rgba(255, 250, 240, 0.98) 24rem),
    var(--tmt-shell) !important;
  font-family: var(--tmt-sans) !important;
  font-size: 17px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.site,
.site-main,
.content-bg,
.content-style-unboxed .site {
  background: transparent;
}

p,
li,
input,
textarea,
button,
select,
.entry-summary,
.entry-content,
.entry-meta,
.main-navigation a,
.header-navigation a {
  font-family: var(--tmt-sans) !important;
}

a {
  color: var(--tmt-sea);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--tmt-clay);
}

.tmt-link-card,
.tmt-link-card:hover {
  color: inherit;
  text-decoration: none;
}

.site-header,
#masthead {
  background: rgba(255, 250, 240, 0.92);
  border-bottom: 1px solid rgba(222, 215, 201, 0.78);
  box-shadow: 0 10px 35px rgba(20, 26, 24, 0.05);
  backdrop-filter: blur(16px);
}

.site-title,
.site-title a,
.site-branding a.brand,
.site-branding .site-title {
  font-family: var(--tmt-serif);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 700;
  color: var(--tmt-forest-2);
}

.main-navigation a,
.header-navigation a {
  color: var(--tmt-soft-ink);
  font-family: var(--tmt-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.page .entry-hero,
.page .entry-header {
  display: none;
}

.home .content-area,
.home .site-container,
.home .content-container,
.home .content-wrap,
.home .entry,
.home .entry-content-wrap,
.home .entry-content {
  max-width: none !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.home .entry,
.home .entry-content-wrap {
  background: transparent !important;
  box-shadow: none !important;
}

.entry-content {
  font-size: clamp(1.04rem, 1.2vw, 1.14rem);
  line-height: 1.78;
  color: var(--tmt-soft-ink);
}

.entry-content p {
  margin-bottom: 1.25em;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-title,
.page-title,
.archive-title {
  color: var(--tmt-ink);
  font-family: var(--tmt-serif);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: 0;
}

.entry-content h2 {
  margin-top: 2.45em;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
}

.entry-content h3 {
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.entry-hero-container-inner,
.entry-header {
  background: transparent;
}

.single .entry-hero,
.archive .entry-hero,
.blog .entry-hero {
  background:
    linear-gradient(135deg, rgba(18, 56, 47, 0.96), rgba(15, 102, 112, 0.82)),
    var(--tmt-forest);
  color: #fff;
  border-bottom: 1px solid rgba(229, 207, 157, 0.36);
}

.single .entry-title,
.archive .page-title,
.blog .page-title {
  max-width: 980px;
  margin-inline: auto;
  color: #fff;
  font-size: clamp(3rem, 7vw, 6rem);
}

.single .entry-meta,
.archive-description,
.entry-meta {
  color: rgba(20, 26, 24, 0.58);
  font-family: var(--tmt-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.single .entry-hero .entry-meta {
  color: rgba(255, 250, 240, 0.72);
}

.tmt-hero {
  position: relative;
  height: calc(100svh - 92px);
  min-height: 620px;
  max-height: 900px;
  display: grid;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 80% 12%, rgba(229, 207, 157, 0.22), transparent 32rem),
    linear-gradient(180deg, rgba(12, 42, 36, 0.08), rgba(12, 42, 36, 0.86)),
    url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=2200&q=80") center/cover no-repeat;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0 !important;
  padding: clamp(3rem, 6vh, 5rem) max(6vw, 1.5rem);
  isolation: isolate;
  overflow: hidden;
}

.tmt-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 11rem;
  background: linear-gradient(180deg, transparent, var(--tmt-shell));
  z-index: -1;
}

.tmt-hero__inner {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

.tmt-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--tmt-gold);
  margin: 0 0 0.9rem;
}

.tmt-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--tmt-serif);
  font-size: clamp(3.5rem, 7vw, 7.2rem);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
  text-wrap: balance;
}

.tmt-hero p {
  max-width: 720px;
  margin: 1.45rem 0 0;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.65;
  color: rgba(255, 250, 240, 0.9);
}

.tmt-band {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(4.5rem, 8vw, 7.2rem) max(6vw, 1.5rem);
}

.tmt-band--paper {
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.68), rgba(245, 239, 226, 0.98)),
    var(--tmt-paper);
}

.tmt-band__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.tmt-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.4rem;
}

.tmt-section-head h2 {
  max-width: 760px;
  margin: 0;
  font-family: var(--tmt-serif);
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.98;
  text-wrap: balance;
}

.tmt-section-head p {
  max-width: 360px;
  margin: 0;
  color: var(--tmt-muted);
}

.tmt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.65rem);
}

.tmt-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tmt-card {
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid rgba(222, 215, 201, 0.78);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tmt-card:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 138, 61, 0.45);
  box-shadow: var(--tmt-shadow);
}

.tmt-link-card {
  display: block;
  cursor: pointer;
}

.tmt-link-card:focus-visible {
  outline: 3px solid rgba(184, 138, 61, 0.75);
  outline-offset: 4px;
}

.tmt-card__media {
  aspect-ratio: 5 / 4;
  background: var(--tmt-forest);
  overflow: hidden;
}

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

.tmt-card__body {
  padding: 1.35rem;
}

.tmt-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--tmt-serif);
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.05;
}

.tmt-card p {
  margin: 0;
  color: var(--tmt-muted);
  font-size: 0.96rem;
}

.tmt-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.4rem, 7vw, 6rem);
  align-items: center;
}

.tmt-feature img {
  width: 100%;
  aspect-ratio: 4 / 3.35;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--tmt-shadow);
}

.tmt-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0;
  margin: 1.6rem 0 0;
  list-style: none;
}

.tmt-pill-list li {
  border: 1px solid var(--tmt-line);
  border-radius: 999px;
  padding: 0.5rem 0.82rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tmt-muted);
  background: rgba(255, 253, 248, 0.8);
}

.tmt-cta {
  background:
    radial-gradient(circle at 100% 0, rgba(229, 207, 157, 0.24), transparent 26rem),
    linear-gradient(135deg, var(--tmt-forest), var(--tmt-forest-2));
  color: #fff;
  border-radius: 4px;
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: var(--tmt-shadow);
}

.tmt-cta h2,
.tmt-cta p {
  color: #fff;
}

.tmt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.15rem;
  border-radius: 3px;
  background: var(--tmt-gold);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.tmt-button:hover {
  background: var(--tmt-clay);
  color: #fff;
}

.blog .content-area,
.archive .content-area,
.single .content-area {
  max-width: 1180px;
}

.blog .content-wrap,
.archive .content-wrap {
  padding-top: clamp(2rem, 5vw, 4rem);
}

.blog .entry,
.archive .entry {
  position: relative;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(222, 215, 201, 0.82);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(20, 26, 24, 0.07);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.blog .entry:focus-visible,
.archive .entry:focus-visible {
  outline: 3px solid rgba(184, 138, 61, 0.75);
  outline-offset: 4px;
}

.blog .entry:hover,
.archive .entry:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 138, 61, 0.45);
  box-shadow: var(--tmt-shadow);
}

.blog .entry-title,
.archive .entry-title {
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 0.98;
}

.blog .entry-title a,
.archive .entry-title a {
  color: var(--tmt-ink);
  text-decoration: none;
}

.blog .entry-title a:hover,
.archive .entry-title a:hover {
  color: var(--tmt-sea);
}

.post-thumbnail img,
.wp-post-image {
  filter: saturate(0.94) contrast(1.02);
}

.single .entry-content {
  max-width: 760px;
  margin-inline: auto;
}

.single .post-thumbnail {
  max-width: 1040px;
  margin: 2.2rem auto 3rem;
}

.single .post-thumbnail img {
  width: 100%;
  border-radius: 4px;
  box-shadow: var(--tmt-shadow);
}

.single .entry-content > p:first-of-type {
  font-size: clamp(1.18rem, 2vw, 1.38rem);
  line-height: 1.75;
  color: var(--tmt-ink);
}

.image-credit,
.entry-content .image-credit {
  color: var(--tmt-muted);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.tmt-story-card__meta {
  margin: 0 0 0.6rem !important;
  color: var(--tmt-gold) !important;
  font-size: 0.75rem !important;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wp-block-separator {
  border-color: var(--tmt-line);
  margin: 2.5rem auto;
}

.site-footer,
#colophon {
  background: var(--tmt-forest-2);
  color: rgba(255, 250, 240, 0.82);
  border-top: 1px solid rgba(229, 207, 157, 0.24);
}

.tmt-magazine,
.tmt-single {
  background:
    linear-gradient(180deg, rgba(245, 239, 226, 0.9), rgba(255, 250, 240, 1) 26rem),
    var(--tmt-shell);
}

.tmt-magazine-hero {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(5rem, 9vw, 9rem) max(6vw, 1.5rem) clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(circle at 92% 6%, rgba(229, 207, 157, 0.18), transparent 28rem),
    linear-gradient(135deg, var(--tmt-forest-2), var(--tmt-forest));
  color: #fff;
  border-bottom: 1px solid rgba(229, 207, 157, 0.34);
}

.tmt-magazine-hero--compact {
  padding-top: clamp(4rem, 7vw, 7rem);
  padding-bottom: clamp(3rem, 5vw, 5rem);
}

.tmt-magazine-hero__inner {
  max-width: 1140px;
  margin: 0 auto;
}

.tmt-magazine-hero h1 {
  max-width: 980px;
  margin: 0;
  color: #fff;
  font-family: var(--tmt-serif);
  font-size: clamp(3.6rem, 8vw, 8rem);
  line-height: 0.9;
  text-wrap: balance;
}

.tmt-magazine-hero p:not(.tmt-kicker) {
  max-width: 680px;
  margin: 1.25rem 0 0;
  color: rgba(255, 250, 240, 0.84);
  font-size: clamp(1.03rem, 1.5vw, 1.24rem);
  line-height: 1.7;
}

.tmt-magazine-band {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.8rem) max(1.25rem, 3vw);
}

.tmt-magazine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.2vw, 2rem);
}

.tmt-featured-story {
  grid-column: 1 / -1;
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid rgba(222, 215, 201, 0.9);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--tmt-shadow);
}

.tmt-featured-story__link {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  min-height: 520px;
  color: inherit;
  text-decoration: none;
}

.tmt-featured-story__media,
.tmt-mag-card__media {
  background: var(--tmt-forest);
  overflow: hidden;
}

.tmt-featured-story__media img,
.tmt-mag-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.03);
  transition: transform 600ms ease, filter 600ms ease;
}

.tmt-featured-story__content {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: clamp(2rem, 4.5vw, 4.5rem);
}

.tmt-featured-story h2,
.tmt-mag-card h2 {
  margin: 0;
  color: var(--tmt-ink);
  font-family: var(--tmt-serif);
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: balance;
}

.tmt-featured-story h2 {
  font-size: clamp(3rem, 5.8vw, 6rem);
  line-height: 0.92;
}

.tmt-featured-story p:not(.tmt-story-card__meta),
.tmt-mag-card p:not(.tmt-story-card__meta) {
  color: var(--tmt-muted);
  line-height: 1.72;
}

.tmt-featured-story p:not(.tmt-story-card__meta) {
  margin: 1.2rem 0 0;
  font-size: 1.05rem;
}

.tmt-mag-card {
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(222, 215, 201, 0.88);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(20, 26, 24, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tmt-mag-card:hover,
.tmt-featured-story:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 138, 61, 0.52);
  box-shadow: 0 26px 86px rgba(20, 26, 24, 0.15);
}

.tmt-featured-story:hover img,
.tmt-mag-card:hover img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.05);
}

.tmt-mag-card__link {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.tmt-mag-card__media {
  aspect-ratio: 4 / 3;
}

.tmt-mag-card__body {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 2vw, 1.75rem);
}

.tmt-mag-card h2 {
  font-size: clamp(1.75rem, 2.45vw, 2.55rem);
  line-height: 0.98;
}

.tmt-mag-card p:not(.tmt-story-card__meta) {
  margin: 0.9rem 0 0;
  font-size: 0.96rem;
}

.tmt-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.2rem;
  color: var(--tmt-gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tmt-read-more::after {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: currentColor;
}

.tmt-pagination {
  margin-top: 3rem;
}

.tmt-pagination ul {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  padding: 0;
  list-style: none;
}

.tmt-pagination a,
.tmt-pagination span {
  display: inline-flex;
  min-width: 2.4rem;
  min-height: 2.4rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tmt-line);
  border-radius: 3px;
  color: var(--tmt-soft-ink);
  text-decoration: none;
}

.tmt-pagination .current {
  background: var(--tmt-forest);
  color: #fff;
}

.tmt-single-hero {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(4rem, 8vw, 8rem) max(6vw, 1.5rem) clamp(3rem, 5vw, 5rem);
  background:
    radial-gradient(circle at 88% 10%, rgba(229, 207, 157, 0.2), transparent 30rem),
    linear-gradient(135deg, var(--tmt-forest-2), var(--tmt-forest));
  color: #fff;
}

.tmt-single-hero__inner {
  max-width: 1080px;
  margin: 0 auto;
}

.tmt-single-hero h1 {
  max-width: 1040px;
  margin: 0;
  color: #fff;
  font-family: var(--tmt-serif);
  font-size: clamp(3.2rem, 7vw, 7.4rem);
  line-height: 0.92;
  text-wrap: balance;
}

.tmt-single-deck {
  max-width: 740px;
  margin: 1.35rem 0 0;
  color: rgba(255, 250, 240, 0.84);
  font-size: clamp(1.06rem, 1.7vw, 1.3rem);
  line-height: 1.7;
}

.tmt-single-image {
  max-width: 1180px;
  margin: clamp(2rem, 4vw, 3.5rem) auto;
  padding: 0 max(1.25rem, 3vw);
}

.tmt-single-image img {
  width: 100%;
  display: block;
  max-height: 720px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--tmt-shadow);
}

.tmt-single-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 max(1.25rem, 3vw) clamp(3rem, 7vw, 6rem);
  color: var(--tmt-soft-ink);
  font-size: clamp(1.06rem, 1.25vw, 1.16rem);
  line-height: 1.82;
}

.tmt-single-body p {
  margin-bottom: 1.25em;
}

.tmt-single-body > p:first-of-type {
  color: var(--tmt-ink);
  font-size: clamp(1.18rem, 1.8vw, 1.38rem);
  line-height: 1.75;
}

.tmt-single-body h2,
.tmt-single-body h3 {
  margin: 2.3em 0 0.7em;
  color: var(--tmt-ink);
  font-family: var(--tmt-serif);
  line-height: 1;
  text-wrap: balance;
}

.tmt-single-body h2 {
  font-size: clamp(2.25rem, 4vw, 3.8rem);
}

.tmt-single-body h3 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.tmt-related {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) max(1.25rem, 3vw);
  border-top: 1px solid var(--tmt-line);
}

.tmt-empty-state {
  grid-column: 1 / -1;
  padding: 4rem;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid var(--tmt-line);
  text-align: center;
}

@media (max-width: 900px) {
  .tmt-grid,
  .tmt-grid--four,
  .tmt-feature {
    grid-template-columns: 1fr;
  }

  .tmt-section-head {
    display: block;
  }

  .single .entry-title,
  .archive .page-title,
  .blog .page-title {
    font-size: clamp(2.8rem, 12vw, 4.6rem);
  }

  .tmt-magazine-grid,
  .tmt-featured-story__link {
    grid-template-columns: 1fr;
  }

  .tmt-featured-story__link {
    min-height: 0;
  }

  .tmt-featured-story__media {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 600px) {
  .tmt-hero {
    height: calc(100vh - 81px);
    min-height: 0;
    max-height: none;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .tmt-hero h1 {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .entry-content {
    font-size: 17px;
  }

  .tmt-card__body {
    padding: 1.1rem;
  }

  .tmt-magazine-hero h1,
  .tmt-single-hero h1 {
    font-size: clamp(3rem, 13vw, 4.6rem);
  }

  .tmt-featured-story h2 {
    font-size: clamp(2.65rem, 12vw, 4.2rem);
  }

  .tmt-magazine-band {
    padding-inline: 1rem;
  }
}
