/* ============================================================
   Emma Bates Art v2 — Base Styles
   ============================================================ */

/* ------------------------------------------------------------
   Design Tokens
   ------------------------------------------------------------ */
:root {
    --bg:           #faf8f5;
    --surface:      #ffffff;
    --accent:       #c9a9a6;
    --accent-dark:  #b5918e;
    --text:         #2d2b29;
    --muted:        #9a9590;
    --border:       #e8e2dc;
    --sage:         #a8bba8;

    --font:         'DM Sans', sans-serif;
    --radius:       4px;
    --radius-lg:    10px;
    --ease:         0.2s ease;

    --header-h:     80px;
    --container:    1200px;
}

/* ------------------------------------------------------------
   Reset
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.page-content {
    padding-top: var(--header-h);
    min-height: calc(100vh - var(--header-h));
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Logo */
.site-logo {
    flex-shrink: 0;
    text-decoration: none;
}

.site-logo img {
    height: 52px;
    width: auto;
}

/* Desktop nav */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-list a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text);
    transition: color var(--ease);
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Header actions (icons) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-action {
    background: none;
    border: none;
    padding: 0;
    color: var(--text);
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    transition: color var(--ease);
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-action:hover { color: var(--accent); }

/* Cart badge */
.cart-icon__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    padding: 0 3px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 24px;
    height: 24px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text);
    transition: transform var(--ease), opacity var(--ease);
    content: '';
}

.hamburger::before { transform: translateY(-6px); }
.hamburger::after  { transform: translateY(4px); }

/* Open state */
.mobile-menu-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.mobile-menu-toggle[aria-expanded="true"] .hamburger::before { transform: translateY(0) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] .hamburger::after  { transform: translateY(-1.5px) rotate(-45deg); }

/* Mobile nav panel */
.mobile-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 0 20px;
}

.mobile-nav.is-open { display: block; }

.mobile-nav-list {
    display: flex;
    flex-direction: column;
}

.mobile-nav-list a {
    display: block;
    padding: 12px 24px;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: color var(--ease);
}

.mobile-nav-list a:hover { color: var(--accent); }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    text-align: center;
}

.footer-copy {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}

.footer-copy a {
    color: var(--muted);
    text-decoration: none;
    transition: color var(--ease);
}

.footer-copy a:hover { color: var(--accent); }

.footer-credit {
    font-size: 11px;
    color: var(--border);
}

.footer-credit a {
    color: var(--muted);
    text-decoration: none;
}

/* ------------------------------------------------------------
   Gallery — Home Page
   ------------------------------------------------------------ */
.gallery-page {
    padding-top: 0;
}

.gallery-masonry {
    columns: 3;
    column-gap: 16px;
    padding: 16px;
    max-width: 1920px;
    margin: 0 auto;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 16px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity var(--ease);
}

.gallery-item img:hover { opacity: 0.92; }

/* ------------------------------------------------------------
   Bio Page
   ------------------------------------------------------------ */
.bio-page {
    padding: 64px 0;
}

.bio-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.bio-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

.bio-text {
    font-size: 15px;
    line-height: 1.85;
    color: var(--muted);
}

.bio-text p { margin-bottom: 1.2em; }
.bio-text p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------
   News Room
   ------------------------------------------------------------ */
.newsroom-page {
    padding: 56px 0;
}

.newsroom-title {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* News card */
.news-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--ease), transform var(--ease);
}

.news-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.07);
    transform: translateY(-2px);
}

.news-card__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card__image img { transform: scale(1.04); }

.news-card__body {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-card__title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
}

.news-card__excerpt {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    flex: 1;
}

.news-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 16px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.news-card__date {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.news-card__read-more {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    transition: color var(--ease);
}

.news-card__read-more:hover { color: var(--accent-dark); }

.no-posts {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    padding: 48px 0;
}

/* ------------------------------------------------------------
   News Single
   ------------------------------------------------------------ */
.news-single-page {
    padding: 56px 0;
}

.news-article {
    max-width: 760px;
    margin: 0 auto;
}

.news-article__header {
    margin-bottom: 28px;
}

.news-article__header h1 {
    font-size: 26px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: 0.02em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.news-article__subheading {
    font-size: 15px;
    color: var(--muted);
}

.news-article__image {
    margin-bottom: 32px;
}

.news-article__image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

.news-article__body {
    font-size: 15px;
    line-height: 1.85;
    color: var(--muted);
}

.news-article__body p  { margin-bottom: 1.4em; }
.news-article__body h2 { font-size: 20px; font-weight: 400; color: var(--text); margin: 1.6em 0 0.6em; }
.news-article__body h3 { font-size: 16px; font-weight: 500; color: var(--text); margin: 1.4em 0 0.5em; }
.news-article__body a  { color: var(--accent); }
.news-article__body img { border-radius: var(--radius); margin: 1.4em 0; }

.news-article__footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* ------------------------------------------------------------
   Generic page / site-main
   ------------------------------------------------------------ */
.site-main {
    padding: 56px 0;
}

.entry-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--muted);
}

.entry-content p  { margin-bottom: 1.2em; }
.entry-content h2 { font-size: 20px; font-weight: 400; color: var(--text); margin: 1.4em 0 0.6em; }
.entry-content a  { color: var(--accent); }

/* ------------------------------------------------------------
   404
   ------------------------------------------------------------ */
.error-page {
    text-align: center;
    padding: 80px 0;
}

.error-code {
    font-size: 100px;
    font-weight: 200;
    color: var(--border);
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 16px;
}

.error-message {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 32px;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--ease);
}

.btn:hover { background: var(--accent-dark); color: #fff; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 900px) {
    .main-nav { display: none; }
    .mobile-menu-toggle { display: flex; }

    .gallery-masonry { columns: 2; }
    .bio-inner { grid-template-columns: 1fr; gap: 32px; }
    .news-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 600px) {
    :root { --header-h: 64px; }
    .gallery-masonry { columns: 1; }
    .news-grid { grid-template-columns: 1fr; }
    .news-article__header h1 { font-size: 22px; }
    .container { padding: 0 16px; }
}
