/*
Theme Name: LifestyleBucket
Theme URI: https://lifestylebucket.com
Author: Rey Belen
Description: Minimalist editorial lifestyle theme
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: lifestylebucket
*/

/* =====================
   RESET
===================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }


/* =====================
   DESIGN TOKENS
   Source: Lifestyle Editorial.html
===================== */
:root {
    /* Colors — warm neutral oklch system */
    --bg:               #fbfaf6;   /* oklch(0.985 0.005 80) */
    --bg-soft:          #f4f2ed;   /* oklch(0.965 0.005 80) */
    --bg-reverse:       #2b2723;   /* oklch(0.22 0.008 60)  */
    --bg-reverse-soft:  #ece9e2;   /* oklch(0.94 0.005 80)  */

    --ink:              #2b2521;   /* oklch(0.22 0.01 60)   */
    --ink-soft:         #5a534b;   /* oklch(0.42 0.01 60)   */
    --ink-mute:         #8d847a;   /* oklch(0.62 0.01 60)   */
    --ink-faint:        #c9c2b8;   /* oklch(0.82 0.005 60)  */
    --ink-reverse:      #ebe8e1;   /* oklch(0.94 0.003 80)  */

    --rule:             #dcd6cc;   /* oklch(0.9 0.005 60)   */
    --accent:           #b35a3d;   /* oklch(0.55 0.14 30)   */

    /* Typography */
    --serif: "Newsreader", Georgia, "Times New Roman", serif;
    --mono:  "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

    /* Layout */
    --container:      1200px;
    --home-container: 960px;
    --reading:        800px;
    --gutter:         32px;

    /* Spacing scale — 8-point, never deviate */
    --s-1:  8px;
    --s-2:  16px;
    --s-3:  24px;
    --s-4:  32px;
    --s-5:  48px;
    --s-6:  64px;
    --s-7:  96px;
    --s-8:  128px;
}


/* =====================
   BASE
===================== */
html {
    font-size: 18px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--serif);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    font-feature-settings: "ss01", "kern";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

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


/* =====================
   LAYOUT — CONTAINER
===================== */
.container {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* Homepage — tighter editorial container */
.is-home .container {
    max-width: var(--home-container);
}

/* Reading column — wider, tighter gutter on small screens */
.content-container,
.reading {
    max-width: var(--reading);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

@media (max-width: 600px) {
    .container,
    .content-container,
    .reading {
        padding-left: 16px;
        padding-right: 16px;
    }
}


/* =====================
   TYPOGRAPHY — HEADINGS
   All headings: Newsreader, weight 400, no bold
===================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    text-wrap: balance;
}

h1 {
    font-size: clamp(36px, 5.4vw, 64px);
    line-height: 1.06;
    letter-spacing: -0.02em;
    margin: 0 0 var(--s-4);
}

h2 {
    font-size: 30px;
    font-weight: 500;
    line-height: 1.22;
    letter-spacing: -0.01em;
    margin: var(--s-6) 0 var(--s-3);
}

h3 {
    font-size: 22px;
    font-weight: 500;
    font-style: italic;
    line-height: 1.3;
    margin: var(--s-5) 0 var(--s-2);
}

h4 {
    font-size: 19px;
    font-weight: 500;
    line-height: 1.35;
    margin: var(--s-4) 0 var(--s-2);
}

h5, h6 {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 880px) {
    h1 { font-size: clamp(28px, 7vw, 48px); }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
}


/* =====================
   TYPOGRAPHY — BODY
===================== */
p {
    font-size: 19px;
    line-height: 1.72;
    margin: 0 0 var(--s-4);
    color: var(--ink);
    text-wrap: pretty;
}

@media (max-width: 880px) {
    p { font-size: 17px; line-height: 1.6; }
}


/* =====================
   TYPOGRAPHY — LISTS
===================== */
ul, ol {
    padding-left: var(--s-4);
    margin-bottom: var(--s-4);
}

li {
    font-size: 19px;
    line-height: 1.72;
    margin-bottom: var(--s-1);
}


/* =====================
   TYPOGRAPHY — MISC
===================== */
strong { font-weight: 600; }
em     { font-style: italic; }

small { font-size: 14px; color: var(--ink-mute); }


/* =====================
   LINKS
===================== */
a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* Inline article links */
.article__body a {
    border-bottom: 1px solid var(--ink-faint);
    transition: border-color .2s, color .2s;
}
.article__body a:hover {
    color: var(--accent);
    border-color: var(--accent);
    text-decoration: none;
}


/* =====================
   META / KICKER — mono label pattern
===================== */
.meta,
.post-meta,
.kicker,
.category-tag,
.label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-3);
    margin-bottom: var(--s-4);
}

.post-meta a { color: var(--ink-soft); }
.post-meta a:hover { color: var(--ink); text-decoration: none; }

.sep {
    color: var(--ink-faint);
    font-family: var(--mono);
}

.category-tag {
    color: var(--accent);
    letter-spacing: 0.18em;
    font-size: 10px;
}
.category-tag:hover {
    text-decoration: none;
    opacity: 0.75;
}

/* Deck / subtitle */
.post-subtitle,
.entry-subtitle,
.article__deck {
    font-family: var(--serif);
    font-style: italic;
    font-size: 22px;
    line-height: 1.5;
    color: var(--ink-soft);
    margin: 0 0 var(--s-5);
    max-width: 38ch;
    text-wrap: pretty;
}


/* =====================
   HEADER
===================== */
.site-header {
    padding: var(--s-3) 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
}

/* 3-column grid: nav-left | logo-center | social-right */
.site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--s-4);
}

/* CENTER: logo */
.site-logo {
    grid-column: 2;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.site-logo .custom-logo-link { display: block; }
.site-logo .custom-logo {
    height: 120px;
    width: auto;
    display: block;
    mix-blend-mode: multiply;
}

/* Logo — text fallback */
.site-logo a {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 500;
    font-style: italic;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
    display: block;
}
.site-logo a:hover { text-decoration: none; opacity: 0.8; }

/* LEFT: nav links */
.site-nav { display: none; }
@media (min-width: 880px) {
    .site-nav {
        display: flex;
        grid-column: 1;
        justify-content: flex-start;
    }
    .menu-toggle { display: none; }
}

.site-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2) var(--s-4);
    justify-content: flex-start;
}
.site-nav__list a {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    transition: color .2s;
}
.site-nav__list a:hover { color: var(--ink); text-decoration: none; }

/* RIGHT: social icons */
.site-social {
    display: none;
    grid-column: 3;
    justify-content: flex-end;
    align-items: center;
    gap: var(--s-3);
}
@media (min-width: 880px) {
    .site-social { display: flex; }
}
.site-social__link {
    display: flex;
    align-items: center;
    color: var(--ink-mute);
    transition: color .2s;
    text-decoration: none;
}
.site-social__link:hover {
    color: var(--ink);
    text-decoration: none;
}
.site-social__link svg { display: block; }

/* Mobile hamburger — visible only on small screens */
.menu-toggle {
    display: flex;
    align-items: center;
    grid-column: 3;
    justify-self: end;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--s-1);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
@media (min-width: 880px) {
    .menu-toggle { display: none; }
}


/* =====================
   FOOTER
===================== */
.site-footer {
    border-top: 1px solid var(--rule);
    padding: var(--s-5) 0 var(--s-6);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
    background: var(--bg);
}

.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); text-decoration: none; }

.footer-copy {
    text-align: center;
    font-size: 11px;
    color: var(--ink-mute);
    font-family: var(--mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0;
}


/* =====================
   POST LIST (INDEX / ARCHIVE)
===================== */
.post-list {
    display: grid;
    gap: var(--s-7);
    padding: var(--s-7) 0;
}

.post-item {
    border-bottom: 1px solid var(--rule);
    padding-bottom: var(--s-7);
}
.post-item:last-child { border-bottom: none; }

.post-thumbnail {
    margin-bottom: var(--s-3);
    overflow: hidden;
}
.post-thumbnail img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.post-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 28px;
    line-height: 1.18;
    letter-spacing: -0.01em;
    margin: 0 0 var(--s-2);
    text-wrap: balance;
}
.post-title a { color: var(--ink); }
.post-title a:hover { text-decoration: none; opacity: 0.75; }

.post-excerpt {
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink-soft);
    margin-top: var(--s-2);
}
.post-excerpt p {
    font-size: inherit;
    color: inherit;
    margin-bottom: 0;
    line-height: inherit;
}


/* =====================
   PAGINATION
===================== */
.pagination {
    padding: var(--s-5) 0 var(--s-7);
    text-align: center;
}
.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--s-1);
    flex-wrap: wrap;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 var(--s-1);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--ink-mute);
    border: 1px solid var(--rule);
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
    text-decoration: none;
}


/* =====================
   BLOCKQUOTE
===================== */
blockquote {
    border-left: 3px solid #8d847a;
    padding: var(--s-2) var(--s-3);
    margin: var(--s-5) 0;
    background: #ece9e2;
    border-radius: 2px;
}
blockquote p {
    font-family: var(--serif);
    font-size: 24px;
    font-style: italic;
    line-height: 1.45;
    color: var(--ink);
    margin-bottom: var(--s-1);
}
blockquote cite {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    font-style: normal;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-top: var(--s-1);
}


/* =====================
   PRO TIP
===================== */
.pro-tip {
    margin: var(--s-5) 0;
    padding: var(--s-3) 0 var(--s-3) var(--s-4);
    border-left: 2px solid var(--ink-faint);
}
.pro-tip::before {
    content: "Note";
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 6px;
}
.pro-tip p {
    font-size: 17px;
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.6;
}


/* =====================
   HR
===================== */
hr {
    border: none;
    border-top: 1px solid var(--rule);
    margin: var(--s-6) 0;
}


/* =====================
   CODE
===================== */
code {
    font-family: var(--mono);
    font-size: 0.85em;
    background: var(--bg-soft);
    padding: 2px 6px;
    border-radius: 2px;
    color: var(--ink);
}
pre {
    font-family: var(--mono);
    font-size: 14px;
    background: var(--bg-soft);
    padding: var(--s-3);
    border-radius: 2px;
    overflow-x: auto;
    margin: var(--s-5) 0;
    line-height: 1.6;
}
pre code { background: transparent; padding: 0; }


/* =====================
   UTILITIES
===================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.text-center { text-align: center; }
