/*
Theme Name: The Wrist Guide
Theme URI: https://thewristguide.com
Description: Dark luxury watch magazine theme
Version: 1.0
Author: The Wrist Guide
License: GPL v2 or later
Tags: dark, luxury, magazine, watches
*/

/* =============================================
   FONTS & RESET
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

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

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
    --bg: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --bg-overlay: rgba(10,10,10,0.85);
    --text: #e8e6e3;
    --text-muted: #9a9590;
    --text-faint: #5a5550;
    --white: #ffffff;
    --gold: #c9a96e;
    --gold-light: #d4b87d;
    --gold-dark: #a88a55;
    --border: #1e1e1e;
    --border-gold: rgba(201,169,110,0.25);
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', -apple-system, sans-serif;
    --max-content: 720px;
    --max-site: 1200px;
    --radius: 4px;
    --transition: 0.2s ease;
}

/* =============================================
   BASE
   ============================================= */
html {
    font-size: 17px;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--gold-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    color: var(--white);
    line-height: 1.25;
    font-weight: 600;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 2rem 0 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin: 1.5rem 0 0.75rem; }
h4 { font-size: 1.15rem; margin: 1.25rem 0 0.5rem; }

p { margin-bottom: 1.25rem; }

blockquote {
    border-left: 3px solid var(--gold);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-family: var(--serif);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-muted);
    background: var(--bg-card);
}

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

li { margin-bottom: 0.4rem; }

strong { color: var(--white); font-weight: 600; }

/* =============================================
   LAYOUT
   ============================================= */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: var(--max-site);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.content-wrap {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

main { flex: 1; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background var(--transition), backdrop-filter var(--transition), border-bottom var(--transition);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    max-width: var(--max-site);
    margin: 0 auto;
}

.site-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.logo-main {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
    line-height: 1;
}

.logo-sub {
    font-family: var(--sans);
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 2px;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav li { margin: 0; }

.main-nav a {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--gold);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 3rem 1.5rem 2rem;
    margin-top: 4rem;
}

.footer-inner {
    max-width: var(--max-site);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: start;
}

.footer-brand .logo-main {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-desc {
    font-size: 0.8rem;
    color: var(--text-faint);
    max-width: 300px;
    line-height: 1.5;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.footer-nav a:hover { color: var(--gold); }

.footer-bottom {
    max-width: var(--max-site);
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-faint);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* =============================================
   HERO — HOMEPAGE
   ============================================= */
.home-hero {
    position: relative;
    height: 85vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    margin-top: 0;
}

.home-hero .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.5) 50%, rgba(10,10,10,0.2) 100%);
}

.home-hero .hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2rem;
    max-width: var(--max-site);
    margin: 0 auto;
}

.home-hero .hero-category {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold-dark);
    padding: 4px 10px;
    margin-bottom: 1rem;
}

.home-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    max-width: 700px;
    margin-bottom: 1rem;
}

.home-hero .hero-excerpt {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 1.5rem;
}

.btn-primary {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    background: var(--gold);
    color: var(--bg);
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background var(--transition);
}

.btn-primary:hover {
    background: var(--gold-light);
    color: var(--bg);
}

/* =============================================
   ARTICLE GRID
   ============================================= */
.section-title {
    font-family: var(--serif);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-gold);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition);
    text-decoration: none;
    display: block;
}

.article-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-2px);
    color: var(--text);
}

.article-card .card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: var(--border);
}

.card-body {
    padding: 1.25rem;
}

.card-category {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 0.5rem;
}

.card-title {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.card-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    font-size: 0.72rem;
    color: var(--text-faint);
}

.card-meta .dot { opacity: 0.4; }

/* =============================================
   NEWSLETTER
   ============================================= */
.newsletter-section {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    padding: 3rem 2rem;
    margin: 3rem 0;
    border-radius: var(--radius);
    text-align: center;
}

.newsletter-section h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.newsletter-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    max-width: 420px;
    margin: 0 auto;
    gap: 0.5rem;
}

.newsletter-form input[type="email"] {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border-gold);
    color: var(--text);
    padding: 0.65rem 1rem;
    font-family: var(--sans);
    font-size: 0.875rem;
    border-radius: var(--radius);
    outline: none;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--gold);
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--text-faint);
}

/* =============================================
   SINGLE POST HERO
   ============================================= */
.post-hero {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    position: relative;
    overflow: hidden;
}

.post-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,0) 60%);
}

/* Post header below hero */
.post-header {
    max-width: var(--max-content);
    margin: -3rem auto 0;
    position: relative;
    z-index: 1;
    padding: 0 1.5rem;
}

.post-header .post-category {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold-dark);
    padding: 3px 9px;
    margin-bottom: 0.75rem;
}

.post-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.post-header .post-excerpt {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--text-faint);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.post-meta .author {
    color: var(--text-muted);
    font-weight: 500;
}

/* =============================================
   TABLE OF CONTENTS
   ============================================= */
.toc {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

.toc-title {
    font-family: var(--serif);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}

.toc li {
    counter-increment: toc-counter;
    margin-bottom: 0;
}

.toc li a {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.4rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    transition: color var(--transition);
}

.toc li:last-child a { border-bottom: none; }

.toc li a::before {
    content: counter(toc-counter, decimal-leading-zero);
    font-family: var(--sans);
    font-size: 0.7rem;
    color: var(--gold);
    font-weight: 600;
    flex-shrink: 0;
}

.toc li a:hover { color: var(--white); }

/* =============================================
   SPECS TABLE
   ============================================= */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.specs-table caption {
    font-family: var(--serif);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
    text-align: left;
    caption-side: top;
    padding-bottom: 0.5rem;
}

.specs-table thead tr {
    background: var(--gold);
}

.specs-table thead th {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bg);
    padding: 0.75rem 1rem;
    text-align: left;
}

.specs-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.specs-table tbody tr:last-child { border-bottom: none; }

.specs-table tbody tr:hover { background: var(--bg-card-hover); }

.specs-table td {
    padding: 0.75rem 1rem;
    background: var(--bg-card);
}

.specs-table td:first-child {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    width: 40%;
}

.specs-table td:last-child {
    color: var(--white);
}

/* =============================================
   WATCH GALLERY
   ============================================= */
.watch-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin: 2rem 0;
}

.watch-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: border-color var(--transition), transform var(--transition);
    cursor: zoom-in;
}

.watch-gallery img:hover {
    border-color: var(--border-gold);
    transform: scale(1.01);
}

.watch-gallery.two-col { grid-template-columns: 1fr 1fr; }
.watch-gallery.three-col { grid-template-columns: 1fr 1fr 1fr; }

/* =============================================
   AFFILIATE / WHERE TO BUY BOX
   ============================================= */
.affiliate-box {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2.5rem 0;
}

.affiliate-box-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.affiliate-box-header h3 {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0;
}

.affiliate-box-header .watch-name {
    font-family: var(--serif);
    font-size: 1rem;
    color: var(--white);
    margin: 0;
    line-height: 1.2;
}

.affiliate-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.affiliate-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: border-color var(--transition), background var(--transition);
}

.affiliate-link:hover {
    border-color: var(--gold);
    background: rgba(201,169,110,0.05);
}

.affiliate-link .retailer {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text);
}

.affiliate-link .price {
    font-family: var(--serif);
    font-size: 1rem;
    color: var(--gold);
    font-weight: 600;
}

.affiliate-link .arrow {
    font-size: 0.8rem;
    color: var(--text-faint);
    margin-left: 1rem;
    transition: color var(--transition);
}

.affiliate-link:hover .arrow { color: var(--gold); }

.affiliate-disclaimer {
    font-size: 0.72rem;
    color: var(--text-faint);
    margin-top: 1rem;
    font-style: italic;
}

/* =============================================
   RELATED ARTICLES
   ============================================= */
.related-articles {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.related-articles .section-title {
    text-align: left;
    font-size: 0.65rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* =============================================
   AUTHOR BOX
   ============================================= */
.author-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 2.5rem 0;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border-gold);
}

.author-info .author-name {
    font-family: var(--serif);
    font-size: 1rem;
    color: var(--white);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.author-info .author-role {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 0.5rem;
}

.author-info .author-bio {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* =============================================
   ARCHIVE PAGE
   ============================================= */
.archive-header {
    padding: 6rem 1.5rem 2rem;
    max-width: var(--max-site);
    margin: 0 auto;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}

.archive-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 0.5rem;
}

.archive-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition);
    border-radius: var(--radius);
}

.pagination .current,
.pagination a:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201,169,110,0.08);
}

/* =============================================
   STATIC PAGES
   ============================================= */
.page-hero {
    padding: 8rem 1.5rem 3rem;
    max-width: var(--max-content);
    margin: 0 auto;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.page-hero h1 {
    margin-bottom: 0.5rem;
}

.page-content {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* =============================================
   UTILITIES
   ============================================= */
.post-content {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 2.5rem 1.5rem 1rem;
}

.post-content h2 {
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.post-content figure {
    margin: 2rem 0;
}

.post-content figure img {
    width: 100%;
    border-radius: var(--radius);
}

.post-content figcaption {
    font-size: 0.78rem;
    color: var(--text-faint);
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

.reading-time {
    font-size: 0.72rem;
    color: var(--text-faint);
}

.tag-pill {
    display: inline-block;
    font-size: 0.7rem;
    padding: 3px 9px;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-faint);
    margin: 2px;
    text-decoration: none;
    transition: all var(--transition);
}

.tag-pill:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Category featured rows on homepage */
.cat-section {
    margin: 3rem 0;
}

.cat-section .cat-more {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    text-decoration: none;
    float: right;
    margin-top: -2.5rem;
    transition: color var(--transition);
}

.cat-section .cat-more:hover { color: var(--gold); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-nav ul { justify-content: flex-start; }
}

@media (max-width: 640px) {
    .articles-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .watch-gallery { grid-template-columns: 1fr 1fr; }
    .watch-gallery.two-col { grid-template-columns: 1fr; }

    .home-hero { height: 75vh; }

    .main-nav ul { display: none; }
    .main-nav.open ul {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background: var(--bg);
        z-index: 999;
        align-items: center;
        justify-content: center;
        gap: 2rem;
    }
    .main-nav.open ul a {
        font-size: 1.25rem;
        color: var(--text);
    }
    .nav-toggle { display: block; }

    .newsletter-form {
        flex-direction: column;
    }

    .author-box { flex-direction: column; }

    .post-meta { flex-wrap: wrap; gap: 0.5rem; }
}

/* =============================================
   WP ADMIN BAR OFFSET
   ============================================= */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
}
