/*
Theme Name: HistoTravel Child
Theme URI: https://histotravel.com/
Description: Editorial heritage-travel child theme for HistoTravel. Requires Blocksy Free.
Author: HistoTravel Editorial
Template: blocksy
Version: 1.0.0
Text Domain: histotravel-child
License: GNU General Public License v2 or later
*/

:root {
  --ht-ink: #242424;
  --ht-charcoal: #545454;
  --ht-stone: #77736d;
  --ht-border: #dedbd5;
  --ht-paper: #f7f5f1;
  --ht-paper-2: #efede8;
  --ht-white: #ffffff;
  --ht-accent: #6f5743;
  --ht-accent-dark: #4e3a2c;
  --ht-accent-soft: #d8c9b9;
  --ht-link: #574131;
  --ht-shadow: 0 16px 44px rgba(25, 25, 25, .08);
  --ht-radius: 2px;
  --ht-max: 1240px;
  --ht-reading: 760px;
}

html { scroll-behavior: smooth; }
body { background: var(--ht-paper); color: var(--ht-ink); }
a { color: var(--ht-link); text-decoration-thickness: .08em; text-underline-offset: .15em; }
a:hover { color: var(--ht-accent-dark); }

/* Blocksy shell */
#header [data-row] { border-bottom: 1px solid var(--ht-border); }
#header .site-logo-container img { max-height: 54px; width: auto; }
#header .menu > li > a { letter-spacing: .045em; text-transform: uppercase; font-size: .78rem; font-weight: 650; }
#footer { background: var(--ht-ink); color: rgba(255,255,255,.78); }
#footer a { color: #fff; }

.ht-container { width: min(calc(100% - 40px), var(--ht-max)); margin-inline: auto; }
.ht-section { padding: 82px 0; }
.ht-section--tight { padding: 58px 0; }
.ht-section--alt { background: var(--ht-paper-2); }
.ht-section--dark { background: var(--ht-ink); color: #fff; }
.ht-section__head { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:30px; }
.ht-kicker { margin:0 0 10px; color:var(--ht-accent); font-size:.74rem; font-weight:750; letter-spacing:.14em; text-transform:uppercase; }
.ht-title { margin:0; font-family: Georgia, 'Times New Roman', serif; font-size:clamp(2rem,4vw,4.25rem); line-height:1.03; font-weight:500; letter-spacing:-.025em; }
.ht-section-title { margin:0; font-family: Georgia, 'Times New Roman', serif; font-size:clamp(1.8rem,3vw,3rem); line-height:1.08; font-weight:500; }
.ht-deck { color:var(--ht-stone); font-size:1.06rem; max-width:62ch; line-height:1.75; }
.ht-section--dark .ht-deck, .ht-section--dark .ht-meta { color:rgba(255,255,255,.68); }
.ht-more { white-space:nowrap; font-size:.82rem; letter-spacing:.08em; text-transform:uppercase; font-weight:700; }

/* Hero */
.ht-hero { position:relative; min-height:650px; display:grid; align-items:end; background:#1f1f1f; overflow:hidden; }
.ht-hero__media { position:absolute; inset:0; }
.ht-hero__media img { width:100%; height:100%; object-fit:cover; }
.ht-hero__shade { position:absolute; inset:0; background:linear-gradient(180deg, rgba(15,15,15,.08) 10%, rgba(15,15,15,.78) 92%); }
.ht-hero__content { position:relative; z-index:2; color:white; padding:72px 0; max-width:880px; }
.ht-hero .ht-kicker { color:#e5d7c8; }
.ht-hero__title { margin:0 0 20px; font-family:Georgia,'Times New Roman',serif; font-size:clamp(2.6rem,6vw,5.5rem); line-height:.98; font-weight:500; letter-spacing:-.03em; }
.ht-hero__excerpt { max-width:65ch; font-size:1.08rem; line-height:1.75; color:rgba(255,255,255,.86); }
.ht-hero__identity { display:flex; gap:22px; align-items:center; margin-bottom:28px; }
.ht-hero__identity img { width:min(260px,45vw); filter:brightness(0) invert(1); opacity:.94; }
.ht-hero__tagline { padding-left:20px; border-left:1px solid rgba(255,255,255,.42); font-size:.85rem; letter-spacing:.08em; text-transform:uppercase; color:rgba(255,255,255,.78); }

/* Cards */
.ht-grid { display:grid; gap:26px; }
.ht-grid--3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.ht-grid--2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.ht-card { background:transparent; }
.ht-card__image { display:block; overflow:hidden; background:#ddd8d0; aspect-ratio:4/3; margin-bottom:17px; }
.ht-card__image img { width:100%; height:100%; object-fit:cover; transition:transform .45s ease; }
.ht-card:hover .ht-card__image img { transform:scale(1.025); }
.ht-card__category { display:inline-block; margin-bottom:9px; color:var(--ht-accent); font-size:.7rem; letter-spacing:.12em; text-transform:uppercase; font-weight:750; }
.ht-card__title { margin:0 0 10px; font-family:Georgia,'Times New Roman',serif; font-size:1.55rem; line-height:1.17; font-weight:500; }
.ht-card__title a { color:var(--ht-ink); text-decoration:none; }
.ht-card__excerpt { color:var(--ht-stone); line-height:1.65; font-size:.95rem; }
.ht-meta { color:var(--ht-stone); font-size:.78rem; letter-spacing:.035em; }

/* Cagar Budaya - reference feel */
.ht-reference { display:grid; grid-template-columns:1.15fr .85fr; gap:42px; align-items:start; }
.ht-reference__lead .ht-card__image { aspect-ratio:16/11; }
.ht-reference__list { border-top:1px solid var(--ht-border); }
.ht-reference-item { display:grid; grid-template-columns:95px 1fr; gap:18px; padding:20px 0; border-bottom:1px solid var(--ht-border); }
.ht-reference-item img { width:95px; height:76px; object-fit:cover; }
.ht-reference-item h3 { margin:0 0 7px; font-family:Georgia,'Times New Roman',serif; font-weight:500; font-size:1.15rem; line-height:1.2; }

/* Kota Tua */
.ht-photo-band { display:grid; grid-template-columns:1.4fr .8fr; gap:20px; }
.ht-photo-band .ht-card:first-child .ht-card__image { aspect-ratio:16/10; }
.ht-photo-band .ht-card:last-child .ht-card__image { aspect-ratio:4/5; }

/* Museum */
.ht-list { border-top:1px solid var(--ht-border); }
.ht-list-item { display:grid; grid-template-columns:140px 1fr auto; gap:24px; align-items:center; padding:24px 0; border-bottom:1px solid var(--ht-border); }
.ht-list-item img { width:140px; height:94px; object-fit:cover; }
.ht-list-item h3 { margin:0 0 7px; font-family:Georgia,'Times New Roman',serif; font-size:1.38rem; font-weight:500; }

/* Architecture */
.ht-wide-feature { display:grid; grid-template-columns:1.5fr .8fr; min-height:420px; background:var(--ht-ink); color:white; }
.ht-wide-feature__media img { width:100%; height:100%; object-fit:cover; }
.ht-wide-feature__copy { padding:50px; align-self:center; }
.ht-wide-feature__copy h3 { margin:0 0 18px; font-family:Georgia,'Times New Roman',serif; font-size:clamp(2rem,3.2vw,3.5rem); font-weight:500; line-height:1.04; }
.ht-wide-feature__copy a { color:white; text-decoration:none; }

/* Sejarah Destinasi */
.ht-story { position:relative; padding-left:84px; max-width:980px; }
.ht-story::before { content:'“'; position:absolute; left:0; top:-20px; font-family:Georgia,serif; font-size:7rem; color:var(--ht-accent-soft); line-height:1; }
.ht-story h3 { font-family:Georgia,'Times New Roman',serif; font-size:clamp(2.2rem,4vw,4rem); line-height:1.08; font-weight:500; margin:0 0 20px; }

/* About + prefooter */
.ht-about { display:grid; grid-template-columns:.7fr 1.3fr; gap:50px; align-items:start; }
.ht-about__logo { max-width:300px; width:100%; opacity:.85; }
.ht-about__copy { font-size:1.08rem; line-height:1.8; }
.ht-button { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:0 20px; border:1px solid var(--ht-ink); color:var(--ht-ink); text-decoration:none; font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; font-weight:750; transition:.2s ease; }
.ht-button:hover { background:var(--ht-ink); color:white; }
.ht-prefooter { background:#1c1c1c; color:rgba(255,255,255,.78); border-top:1px solid rgba(255,255,255,.12); padding:36px 0; }
.ht-prefooter__inner { display:flex; justify-content:space-between; gap:30px; align-items:center; }
.ht-prefooter p { margin:0; max-width:760px; line-height:1.7; }
.ht-prefooter nav { display:flex; flex-wrap:wrap; gap:14px 20px; }
.ht-prefooter a { color:white; font-size:.82rem; }

/* Single */
.single-post .site-main, .single-post #main { background:var(--ht-paper); }
.ht-single { width:min(calc(100% - 40px), var(--ht-max)); margin:0 auto; padding:54px 0 90px; }
.ht-single__hero { max-width:1100px; margin:0 auto 46px; }
.ht-single__category { margin-bottom:12px; }
.ht-single__title { max-width:980px; font-family:Georgia,'Times New Roman',serif; font-size:clamp(2.7rem,5.5vw,5.2rem); line-height:1.02; font-weight:500; margin:0 0 18px; letter-spacing:-.025em; }
.ht-single__meta { color:var(--ht-stone); font-size:.84rem; margin-bottom:28px; }
.ht-single__featured { margin:36px 0 0; }
.ht-single__featured img { width:100%; max-height:700px; object-fit:cover; }
.ht-single__layout { display:grid; grid-template-columns:minmax(0,var(--ht-reading)) 260px; gap:70px; justify-content:center; align-items:start; }
.ht-single__content { font-size:1.075rem; line-height:1.86; }
.ht-single__content > * { max-width:100%; }
.ht-single__content h2, .ht-single__content h3 { font-family:Georgia,'Times New Roman',serif; font-weight:500; line-height:1.18; margin-top:2.2em; }
.ht-single__content blockquote { margin:2em 0; padding:8px 0 8px 28px; border-left:3px solid var(--ht-accent); font-family:Georgia,serif; font-size:1.35rem; color:var(--ht-charcoal); }
.ht-single__content .wp-block-image img { width:100%; }
.ht-side-note { position:sticky; top:120px; border-top:2px solid var(--ht-ink); padding-top:18px; font-size:.87rem; color:var(--ht-stone); line-height:1.65; }
.ht-side-note strong { display:block; color:var(--ht-ink); text-transform:uppercase; letter-spacing:.09em; font-size:.72rem; margin-bottom:10px; }
.ht-references { margin-top:46px; padding-top:28px; border-top:1px solid var(--ht-border); }
.ht-related { margin-top:72px; }

/* Core pages */
.page:not(.home) .entry-content { max-width:820px; margin-inline:auto; }
.page:not(.home) .entry-content h2, .page:not(.home) .entry-content h3 { font-family:Georgia,'Times New Roman',serif; font-weight:500; }
.page:not(.home) .entry-header .entry-title { font-family:Georgia,'Times New Roman',serif; font-weight:500; }

/* Category/archive */
.ht-archive { width:min(calc(100% - 40px), var(--ht-max)); margin:0 auto; padding:68px 0 92px; }
.ht-archive__header { max-width:820px; margin-bottom:48px; border-bottom:1px solid var(--ht-border); padding-bottom:34px; }
.ht-archive__description { color:var(--ht-stone); line-height:1.75; font-size:1.03rem; }
.ht-pagination { margin-top:50px; }
.ht-pagination .nav-links { display:flex; flex-wrap:wrap; gap:8px; }
.ht-pagination .page-numbers { min-width:40px; min-height:40px; display:grid; place-items:center; border:1px solid var(--ht-border); text-decoration:none; }
.ht-pagination .current, .ht-pagination a:hover { background:var(--ht-ink); color:#fff; border-color:var(--ht-ink); }

@media (max-width: 980px) {
  .ht-section { padding:64px 0; }
  .ht-grid--3 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ht-reference, .ht-photo-band, .ht-wide-feature, .ht-about { grid-template-columns:1fr; }
  .ht-wide-feature__media { min-height:380px; }
  .ht-single__layout { grid-template-columns:1fr; gap:38px; }
  .ht-side-note { position:static; max-width:var(--ht-reading); border-top:1px solid var(--ht-border); }
  .ht-prefooter__inner { align-items:flex-start; flex-direction:column; }
}

@media (max-width: 700px) {
  .ht-container, .ht-single, .ht-archive { width:min(calc(100% - 28px), var(--ht-max)); }
  .ht-hero { min-height:600px; }
  .ht-hero__content { padding:46px 0; }
  .ht-hero__identity { align-items:flex-start; flex-direction:column; gap:14px; }
  .ht-hero__tagline { border-left:0; border-top:1px solid rgba(255,255,255,.38); padding:13px 0 0; }
  .ht-section__head { align-items:flex-start; flex-direction:column; }
  .ht-grid--3, .ht-grid--2 { grid-template-columns:1fr; }
  .ht-reference-item { grid-template-columns:80px 1fr; }
  .ht-reference-item img { width:80px; height:66px; }
  .ht-list-item { grid-template-columns:88px 1fr; gap:14px; }
  .ht-list-item img { width:88px; height:72px; }
  .ht-list-item .ht-more { grid-column:2; }
  .ht-wide-feature__copy { padding:30px; }
  .ht-story { padding-left:0; padding-top:50px; }
  .ht-story::before { left:0; top:-8px; font-size:5rem; }
  .ht-card__title { font-size:1.4rem; }
  .ht-single { padding-top:36px; }
  .ht-single__title { font-size:clamp(2.35rem,11vw,3.5rem); }
}
