/*
Theme Name: The Roving Duo
Theme URI: https://therovingduo.com
Author: The Roving Duo
Author URI: https://therovingduo.com
Description: A minimal, clean travel blog theme for The Roving Duo — featuring photo galleries, video embeds, and travel journals.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: roving-duo
Tags: travel, blog, photography, minimal, clean
*/

/* ── VARIABLES ── */
:root {
  --white: #ffffff;
  --off: #f9f8f6;
  --light: #f0ede8;
  --border: #e5e0d8;
  --muted: #9a9289;
  --body: #3a3530;
  --ink: #1c1a17;
  --accent: #8b7355;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 6vw;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--ink);
  text-decoration: none;
}
.main-nav { display: flex; gap: 2.5rem; align-items: center; }
.main-nav ul { display: flex; gap: 2.5rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.main-nav li { margin: 0; padding: 0; }
.main-nav a {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  transition: color .2s;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav .current-menu-item a { color: var(--ink); }
.header-social { display: flex; gap: .5rem; }
.header-social a {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  color: var(--muted);
  transition: color .2s;
}
.header-social a:hover { color: var(--ink); }
.header-social svg { width: 15px; height: 15px; fill: currentColor; }

/* ── HERO ── */
.site-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 88vh;
}
.hero-left {
  padding: 10vh 6vw 8vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--off);
  border-right: 1px solid var(--border);
}
.hero-eyebrow {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  font-weight: 400;
}
.hero-left h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 2rem;
  letter-spacing: -.01em;
}
.hero-left h1 em { font-style: italic; }
.hero-desc {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.8;
  max-width: 380px;
  margin-bottom: 3rem;
}
.hero-cta { display: flex; gap: 1.5rem; align-items: center; }
.hero-right { position: relative; overflow: hidden; }
.hero-right img { width: 100%; height: 100%; object-fit: cover; transition: transform 12s ease; }
.hero-right:hover img { transform: scale(1.04); }
.hero-caption {
  position: absolute;
  bottom: 2rem; right: 2rem;
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

/* ── BUTTONS ── */
.btn-fill {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  padding: .75rem 1.6rem;
  font-weight: 400;
  transition: background .2s;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  display: inline-block;
}
.btn-fill:hover { background: var(--accent); color: var(--white); }
.btn-text {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
  display: inline-block;
}
.btn-text:hover { color: var(--accent); border-color: var(--accent); }

/* ── SECTION COMMON ── */
.section-wrap { padding: 5rem 6vw; }
.section-wrap.bg-off { background: var(--off); }
.section-wrap.bg-ink { background: var(--ink); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}
.section-label {
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: .4rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.15;
}
.bg-ink .section-title { color: var(--white); }
.bg-ink .section-label { color: var(--accent); }
.section-link {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color .2s;
  flex-shrink: 0;
}
.section-link:hover { color: var(--ink); }

/* ── FEATURED POST ── */
.featured-grid {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 4rem;
  align-items: center;
}
.feat-img-wrap { overflow: hidden; aspect-ratio: 4/3; }
.feat-img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.feat-img-wrap:hover .feat-img { transform: scale(1.04); }
.post-tag {
  display: inline-block;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  padding: .28rem .7rem;
  font-weight: 400;
  margin-bottom: 1rem;
}
.feat-meta { display: flex; gap: 1.2rem; margin-bottom: .8rem; }
.feat-meta span { font-size: .72rem; color: var(--muted); }
.feat-meta .sep::before { content: '/'; margin-right: 1.2rem; }
.feat-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1rem;
}
.feat-text p { color: var(--muted); line-height: 1.85; font-size: .88rem; margin-bottom: 2rem; }

/* ── POST GRID ── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2.5rem;
}
.post-card { cursor: pointer; }
.post-img-wrap { overflow: hidden; aspect-ratio: 3/2; margin-bottom: 1.2rem; }
.post-img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .post-img { transform: scale(1.05); }
.post-cat {
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: .5rem;
}
.post-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: .5rem;
}
.post-card p { font-size: .82rem; color: var(--muted); line-height: 1.75; }
.post-date { font-size: .68rem; color: var(--muted); margin-top: .8rem; }

/* ── GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  grid-template-rows: 220px 220px;
  gap: 6px;
}
.gitem { overflow: hidden; cursor: pointer; }
.gitem:first-child { grid-column: span 2; grid-row: span 2; }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gitem:hover img { transform: scale(1.06); }

/* ── VIDEOS ── */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
}
.video-card { position: relative; aspect-ratio: 16/9; overflow: hidden; cursor: pointer; }
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.video-card:hover img { transform: scale(1.05); }
.video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,26,23,.6) 0%, transparent 50%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.2rem;
}
.play-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 44px; height: 44px;
  border: 1.5px solid rgba(255,255,255,.7);
  border-radius: 50%; display: grid; place-items: center;
  transition: border-color .2s, background .2s;
}
.video-card:hover .play-icon { border-color: #fff; background: rgba(255,255,255,.1); }
.play-icon::after {
  content: '';
  border-style: solid;
  border-width: 6px 0 6px 12px;
  border-color: transparent transparent transparent rgba(255,255,255,.9);
  margin-left: 2px;
}
.video-meta-label { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.video-title { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; color: #fff; font-weight: 300; margin-top: .2rem; }

/* ── JOURNAL ── */
.journal-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.journal-item:first-child { border-top: 1px solid var(--border); }
.j-date { font-size: .7rem; color: var(--muted); line-height: 1.6; padding-top: .2rem; }
.j-body h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 400; color: var(--ink); margin-bottom: .6rem; }
.j-body p { font-size: .88rem; color: var(--muted); line-height: 1.85; max-width: 600px; }
.j-body .btn-text { margin-top: 1.2rem; font-size: .65rem; }

/* ── SINGLE POST ── */
.post-hero { width: 100%; aspect-ratio: 16/6; overflow: hidden; }
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.post-content-wrap { max-width: 720px; margin: 4rem auto; padding: 0 2rem; }
.post-content-wrap .post-tag { margin-bottom: 1rem; }
.post-content-wrap h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.post-content-wrap .post-meta-bar {
  display: flex; gap: 1.5rem; padding-bottom: 2rem;
  border-bottom: 1px solid var(--border); margin-bottom: 2.5rem;
}
.post-content-wrap .post-meta-bar span { font-size: .75rem; color: var(--muted); }
.entry-content p { font-size: .95rem; line-height: 1.9; color: var(--body); margin-bottom: 1.5rem; }
.entry-content h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; margin: 2.5rem 0 1rem; }
.entry-content h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; margin: 2rem 0 .8rem; }
.entry-content img { width: 100%; margin: 2rem 0; }
.entry-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink);
  background: var(--off);
}

/* ── SUBSCRIBE ── */
.subscribe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.subscribe-grid .section-title { color: var(--white); }
.subscribe-grid > div > p { color: rgba(255,255,255,.4); font-size: .88rem; line-height: 1.8; margin-top: .8rem; }
.sub-form { display: flex; flex-direction: column; gap: .75rem; }
.sub-form input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.2);
  padding: .9rem 0;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: .9rem; font-weight: 300;
  outline: none; width: 100%;
  transition: border-color .2s;
}
.sub-form input::placeholder { color: rgba(255,255,255,.3); }
.sub-form input:focus { border-bottom-color: rgba(255,255,255,.55); }
.sub-note { font-size: .65rem; color: rgba(255,255,255,.22); }
.btn-light { background: var(--white); color: var(--ink); align-self: flex-start; margin-top: .5rem; }
.btn-light:hover { background: var(--light); color: var(--ink); }

/* ── FOOTER ── */
.site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 2rem 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer .site-logo { color: rgba(255,255,255,.4); font-size: 1.1rem; }
.site-footer p { font-size: .72rem; color: rgba(255,255,255,.22); }
.footer-social { display: flex; gap: 1.5rem; }
.footer-social a {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.3); transition: color .2s;
  display: flex; align-items: center; gap: .4rem;
}
.footer-social a:hover { color: rgba(255,255,255,.65); }
.footer-social svg { width: 13px; height: 13px; fill: currentColor; }

/* ── WORDPRESS ALIGNMENT ── */
.alignwide { margin-left: -6vw; margin-right: -6vw; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.wp-block-image img { border-radius: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .site-hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { height: 55vw; }
  .featured-grid { grid-template-columns: 1fr; gap: 2rem; }
  .posts-grid, .videos-grid { grid-template-columns: 1fr 1fr; }
  .subscribe-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .main-nav { display: none; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); grid-template-rows: auto; }
  .gitem:first-child { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 600px) {
  .posts-grid, .videos-grid { grid-template-columns: 1fr; }
  .journal-item { grid-template-columns: 1fr; gap: .5rem; }
  .hero-left { padding: 6vh 6vw 6vh; }
}
