/*
Theme Name: Vipdoor
Theme URI: https://vipdoor.org/
Author: Vipdoor
Description: Classic theme for Vipdoor — an independent editorial publication about architectural entryways, foyers, and doorways.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vipdoor
Tags: custom-menu, featured-images, full-width-template, blog
*/

/* ------------------------------------------------------------------
   Vipdoor — ivory / ink / wine / copper · Libre Bodoni + Nunito Sans
   Class prefix: vd-
------------------------------------------------------------------- */

:root {
  --vd-ivory: #F4EEE4;
  --vd-ivory-deep: #E8DFD2;
  --vd-paper: #FAF7F1;
  --vd-ink: #1C1410;
  --vd-ink-soft: #3A2E26;
  --vd-wine: #5C1F33;
  --vd-wine-deep: #3F1523;
  --vd-copper: #A66B4E;
  --vd-copper-soft: #C4896A;
  --vd-line: rgba(28, 20, 16, 0.14);
  --vd-max: 1120px;
  --vd-prose: 42rem;
  --vd-serif: "Libre Bodoni", "Palatino Linotype", Palatino, serif;
  --vd-sans: "Nunito Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.vd-body {
  margin: 0;
  background: var(--vd-ivory);
  color: var(--vd-ink);
  font-family: var(--vd-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--vd-wine); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--vd-wine-deep); }
h1, h2, h3, h4 {
  font-family: var(--vd-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--vd-ink);
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

.vd-screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.vd-wrap {
  width: min(100% - 2.5rem, var(--vd-max));
  margin-inline: auto;
}

.vd-prose {
  width: min(100% - 2.5rem, var(--vd-prose));
  margin-inline: auto;
}

/* ---------- Header: centered wordmark above copper rule ---------- */
.vd-site-header {
  background: var(--vd-paper);
  padding: 1.75rem 0 0;
  border-bottom: 0;
}

.vd-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.vd-brand:hover { color: inherit; text-decoration: none; }

.vd-brand-mark {
  width: 2rem;
  height: 2.35rem;
  display: block;
}

.vd-wordmark {
  font-family: var(--vd-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--vd-ink);
  line-height: 1;
  margin: 0;
}

.vd-header-rule {
  display: block;
  width: min(100% - 2.5rem, 14rem);
  height: 1px;
  margin: 1rem auto 0;
  background: var(--vd-copper);
  border: 0;
}

.vd-nav {
  display: flex;
  justify-content: center;
  gap: 0.15rem 1.6rem;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 1rem 1.25rem 1.35rem;
}

.vd-nav a {
  font-family: var(--vd-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--vd-ink-soft);
}

.vd-nav a:hover,
.vd-nav .current-menu-item > a,
.vd-nav .current_page_item > a {
  color: var(--vd-wine);
}

.vd-nav .vd-hide-blog { display: none !important; }

/* ---------- Buttons ---------- */
.vd-btn {
  display: inline-block;
  font-family: var(--vd-sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--vd-ink);
  background: var(--vd-ink);
  color: var(--vd-ivory);
  padding: 0.7rem 1.25rem;
  cursor: pointer;
  border-radius: 0;
}

.vd-btn:hover { background: var(--vd-wine); border-color: var(--vd-wine); color: var(--vd-ivory); text-decoration: none; }

.vd-btn-ghost {
  background: transparent;
  color: var(--vd-ink);
}

.vd-btn-ghost:hover { background: var(--vd-wine); color: var(--vd-ivory); border-color: var(--vd-wine); }

.vd-btn-wine {
  background: var(--vd-wine);
  border-color: var(--vd-wine);
  color: var(--vd-ivory);
}

.vd-btn:disabled,
.vd-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- Hero: headline first, photo below, caption plate ---------- */
.vd-hero {
  padding: 3.25rem 0 0;
}

.vd-hero-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vd-copper);
  margin: 0 0 1rem;
  text-align: center;
}

.vd-hero-title {
  font-size: clamp(2.1rem, 5vw, 3.55rem);
  font-weight: 600;
  text-align: center;
  max-width: 18ch;
  margin: 0 auto 1.25rem;
  line-height: 1.12;
}

.vd-hero-lede {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2.25rem;
  color: var(--vd-ink-soft);
  font-size: 1.08rem;
}

.vd-hero-figure {
  position: relative;
  margin: 0;
}

.vd-hero-figure img {
  width: 100%;
  max-height: 34rem;
  object-fit: cover;
}

.vd-hero-caption {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 0;
  transform: translateY(45%);
  background: var(--vd-paper);
  border: 1px solid var(--vd-line);
  border-top: 3px solid var(--vd-wine);
  padding: 1rem 1.25rem;
  max-width: 28rem;
  margin-inline: auto;
  box-shadow: 0 10px 30px rgba(28,20,16,0.08);
}

.vd-hero-caption strong {
  display: block;
  font-family: var(--vd-serif);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.vd-hero-caption span {
  font-size: 0.92rem;
  color: var(--vd-ink-soft);
}

.vd-hero-spacer { height: 4.5rem; }

/* ---------- Vertical timeline ---------- */
.vd-timeline {
  padding: 4rem 0 2rem;
}

.vd-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vd-copper);
  margin: 0 0 0.5rem;
  text-align: center;
}

.vd-section-title {
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 auto 2.5rem;
  max-width: 22ch;
}

.vd-timeline-track {
  position: relative;
  max-width: 40rem;
  margin: 0 auto;
  padding-left: 2rem;
}

.vd-timeline-track::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--vd-copper), var(--vd-wine));
}

.vd-tl-item {
  position: relative;
  padding: 0 0 2.1rem 0.5rem;
}

.vd-tl-item:last-child { padding-bottom: 0; }

.vd-tl-item::before {
  content: "";
  position: absolute;
  left: -1.72rem;
  top: 0.45rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--vd-ivory);
  border: 2px solid var(--vd-wine);
}

.vd-tl-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.vd-tl-item p {
  color: var(--vd-ink-soft);
  margin: 0;
  font-size: 0.98rem;
}

/* ---------- Pull quote ---------- */
.vd-pull {
  margin: 3.5rem 0;
  padding: 2.75rem 1.5rem;
  background: var(--vd-wine);
  color: var(--vd-ivory);
  text-align: center;
}

.vd-pull blockquote {
  margin: 0 auto;
  max-width: 34rem;
  font-family: var(--vd-serif);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  line-height: 1.35;
  font-weight: 500;
}

.vd-pull cite {
  display: block;
  margin-top: 1.1rem;
  font-family: var(--vd-sans);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vd-copper-soft);
}

/* ---------- Unequal two-up ---------- */
.vd-pair {
  padding: 1rem 0 3rem;
}

.vd-pair-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 760px) {
  .vd-pair-grid { grid-template-columns: 1fr; }
}

.vd-pair-card {
  position: relative;
  overflow: hidden;
  background: var(--vd-ink);
}

.vd-pair-card img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
  opacity: 0.92;
}

.vd-pair-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(transparent, rgba(28,20,16,0.78));
  color: var(--vd-ivory);
  font-size: 0.95rem;
}

.vd-pair-card figcaption strong {
  display: block;
  font-family: var(--vd-serif);
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

/* ---------- Practical notes ---------- */
.vd-notes {
  padding: 2rem 0 3.5rem;
}

.vd-notes-panel {
  background: var(--vd-paper);
  border: 1px solid var(--vd-line);
  border-left: 4px solid var(--vd-copper);
  padding: 2rem 1.75rem;
}

.vd-notes-panel h2 {
  font-size: 1.55rem;
  margin-bottom: 0.85rem;
}

.vd-notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.vd-notes-list li {
  padding-left: 1.35rem;
  position: relative;
  color: var(--vd-ink-soft);
}

.vd-notes-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--vd-wine);
}

.vd-notes-list strong {
  color: var(--vd-ink);
  font-weight: 700;
}

/* ---------- Closing colophon card ---------- */
.vd-close-card {
  margin: 0 0 4rem;
  padding: 2.5rem 1.75rem;
  background: var(--vd-ink);
  color: var(--vd-ivory);
  text-align: center;
}

.vd-close-card h2 {
  color: var(--vd-ivory);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.75rem;
}

.vd-close-card p {
  max-width: 34rem;
  margin: 0 auto 1.5rem;
  color: rgba(244,238,228,0.86);
}

.vd-close-card .vd-btn {
  background: var(--vd-copper);
  border-color: var(--vd-copper);
  color: var(--vd-ink);
}

.vd-close-card .vd-btn:hover {
  background: var(--vd-ivory);
  border-color: var(--vd-ivory);
}

/* ---------- Content pages ---------- */
.vd-page-hero {
  padding: 2.75rem 0 1.5rem;
  border-bottom: 1px solid var(--vd-line);
  margin-bottom: 2rem;
}

.vd-page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0;
  text-align: center;
}

.vd-content {
  padding-bottom: 3.5rem;
}

.vd-content .vd-prose > *:first-child { margin-top: 0; }

.vd-content h2 {
  font-size: 1.45rem;
  margin-top: 2rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--vd-line);
}

.vd-content h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}

/* ---------- Blog list (text-only rows) ---------- */
.vd-blog-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.vd-blog-row {
  border-bottom: 1px solid var(--vd-line);
  padding: 1.15rem 0;
}

.vd-blog-row a {
  font-family: var(--vd-serif);
  font-size: 1.28rem;
  color: var(--vd-ink);
  text-decoration: none;
}

.vd-blog-row a:hover { color: var(--vd-wine); }

.vd-blog-excerpt {
  margin: 0.35rem 0 0;
  color: var(--vd-ink-soft);
  font-size: 0.95rem;
}

.vd-pagination {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0 3rem;
}

.vd-pagination a,
.vd-pagination span {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--vd-ink-soft);
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--vd-line);
}

.vd-pagination .current {
  background: var(--vd-wine);
  border-color: var(--vd-wine);
  color: var(--vd-ivory);
}

/* ---------- Single post ---------- */
.vd-single-title {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  text-align: center;
  margin: 0 0 1.5rem;
}

.vd-single-body {
  padding-bottom: 3rem;
}

.vd-single-body .vd-prose img {
  margin: 1.25rem auto;
}

/* ---------- 404 ---------- */
.vd-404 {
  text-align: center;
  padding: 4rem 1rem 5rem;
}

.vd-404 h1 { font-size: 2.4rem; }

/* ---------- Contact form ---------- */
.vdcf {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--vd-paper);
  border: 1px solid var(--vd-line);
}

.vdcf-banner {
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  border-left: 3px solid var(--vd-copper);
  background: var(--vd-ivory-deep);
}

.vdcf-banner.is-ok { border-left-color: #2f6b3a; }
.vdcf-banner.is-err { border-left-color: var(--vd-wine); }

.vdcf-field { margin: 0 0 1rem; }
.vdcf-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.vdcf-field input,
.vdcf-field textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--vd-line);
  background: #fff;
  color: var(--vd-ink);
  border-radius: 0;
}

.vdcf-field input:focus,
.vdcf-field textarea:focus {
  outline: 2px solid var(--vd-copper);
  outline-offset: 1px;
}

.vdcf-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.vdcf-captcha {
  border: 1px solid var(--vd-line);
  padding: 1rem;
  margin: 1.25rem 0;
}

.vdcf-captcha legend {
  font-family: var(--vd-serif);
  font-size: 1.05rem;
  padding: 0 0.35rem;
}

.vdcf-hint {
  font-size: 0.92rem;
  color: var(--vd-ink-soft);
  margin: 0 0 0.85rem;
}

.vdcf-captcha-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.vdcf-captcha-img {
  background: #EDE4D8;
  min-width: 12rem;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border: 1px solid var(--vd-line);
}

.vdcf-captcha-placeholder {
  font-size: 0.85rem;
  color: var(--vd-ink-soft);
}

.vdcf-verify-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.vdcf-status { font-size: 0.9rem; }
.vdcf-status.is-ok { color: #2f6b3a; }
.vdcf-status.is-err { color: var(--vd-wine); }

.vdcf-actions { margin: 1.25rem 0 0; }

.vdcf-noscript {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--vd-ivory-deep);
}

.req { color: var(--vd-wine); }

/* ---------- Footer: light paper, colophon sentence ---------- */
.vd-site-footer {
  background: var(--vd-paper);
  border-top: 1px solid var(--vd-line);
  padding: 3rem 0 2.25rem;
  margin-top: 1rem;
}

.vd-footer-wordmark {
  font-family: var(--vd-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  text-align: center;
  margin: 0 0 1.25rem;
  color: var(--vd-ink);
}

.vd-colophon {
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  text-align: center;
  color: var(--vd-ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

.vd-colophon a {
  color: var(--vd-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--vd-copper);
}

.vd-colophon a:hover {
  color: var(--vd-wine);
  border-bottom-color: var(--vd-wine);
}

.vd-copyright {
  text-align: center;
  font-size: 0.85rem;
  color: var(--vd-ink-soft);
  margin: 0;
}

.vd-main { min-height: 50vh; }

/* ---------- Filmstrip (not an article card grid) ---------- */
.vd-film { padding: 0 0 2.5rem; }
.vd-film-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
@media (max-width: 700px) {
  .vd-film-row { grid-template-columns: 1fr; }
}
.vd-film-shot { margin: 0; background: var(--vd-ink); }
.vd-film-shot img {
  width: 100%;
  height: 11rem;
  object-fit: cover;
}
.vd-film-shot figcaption {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--vd-ivory);
  padding: 0.55rem 0.75rem 0.7rem;
  background: var(--vd-ink);
}

.vd-pair-grid-flip { grid-template-columns: 1fr 1.35fr; }
@media (max-width: 760px) {
  .vd-pair-grid-flip { grid-template-columns: 1fr; }
}
.vd-pair-alt { padding-top: 0; }
