/*
Theme Name: Portfolio Creative 3
Theme URI: https://yourwebsite.com
Author: Your Name
Description: A warm, minimal graphic design portfolio. Clean and calm.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: portfolio-creative
*/

/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --bg:       #D9E4D7;
  --bg-2:     #BECFBB;
  --white:    #FFFFFF;
  /*--white:    #FDFAF5;*/
  --ink:      #2C2416;
  --muted:    #8C8074;
  --border:   #DDD8CE;
  --accent:   #8B6F47;


  --f-head: 'Anton', system-ui, sans-serif;
  --f-body: 'Anton', system-ui, sans-serif;


  --mw:   1100px;
  --gap:  clamp(1.5rem, 5vw, 3rem);
}

/* ── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY ──────────────────────────────────────── */
h1 {
  font-family: var(--f-head);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.01em;
}
h2 {
  font-family: var(--f-head);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
}
h3 {
  font-family: var(--f-head);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.3;
}
h4 { font-size: .95rem; font-weight: 700; letter-spacing: .04em; }
p { max-width: 60ch; }

.overline {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── LAYOUT ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--mw);
  margin-inline: auto;
  padding-inline: var(--gap);
}
.section {padding-block: clamp(2rem, 5vw, 4rem);}

/* ── HEADER ──────────────────────────────────────────── */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.2rem;
  gap: 1.5rem;
}
.site-logo {
  font-family: var(--f-head);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.01em;
}
.site-logo:hover { color: var(--accent); }

.primary-nav { display: flex; list-style: none; gap: .25rem; }
.primary-nav a {
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .4rem .8rem;
  transition: color .2s;
}
.primary-nav a:hover,
.primary-nav .current-menu-item a { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: .25rem;
}

/* ── HERO ────────────────────────────────────────────── */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  /*padding-block: clamp(4rem, 10vw, 8rem);*/
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
@media (max-width: 720px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.hero-overline { margin-bottom: 1.2rem; }
.hero h1 { margin-bottom: 1.4rem; }
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-body {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 38ch;
  margin-bottom: 2rem;
}

/* Hero photo */
.hero-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-2);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
}

/* ── CTA LINK ────────────────────────────────────────── */
.link-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: .15rem;
  transition: color .2s, border-color .2s;
}
.link-cta::after { content: '\2192'; font-size: 1rem; letter-spacing: 0; }
.link-cta:hover { color: var(--accent); border-color: var(--accent); }

/* ── DIVIDER ─────────────────────────────────────────── */
.divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin-block: 1.5rem;
}

/* ── PORTFOLIO SECTION ───────────────────────────────── */
.portfolio-section { background: var(--bg); }

.section-header {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-header .overline { margin-bottom: .75rem; display: block; }

/* Simple 2-column grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 600px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* Card */
.portfolio-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(44,36,22,.1);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000; /* optional letterbox effect */
}

/*
.card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
*/

.portfolio-card:hover .card-image img { transform: scale(1.04); }

.card-cat {
  position: absolute;
  top: .85rem;
  left: .85rem;
  font-size: .65rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(44,36,22,.55);
  padding: .2rem .6rem;
  border-radius: 2px;
}

.card-body {
  padding: 1.4rem 1.5rem 1.6rem;
}
.card-meta {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .4rem;
}
.card-title {
  font-family: var(--f-head);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: .6rem;
}
.card-excerpt {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: none;
}

/* ── ABOUT SECTION ───────────────────────────────────── */
.about-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}
@media (max-width: 720px) {
  .about-inner { grid-template-columns: 1fr; }
}

.about-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-2);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
}

.about-text .overline { margin-bottom: .75rem; display: block; }
.about-text h2 { margin-bottom: 1.2rem; }
.about-text p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 2rem;
}
.skill {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted);
}

/* ── CONTACT SECTION ─────────────────────────────────── */
.contact-section {
  background: var(--bg-2);
  text-align: center;
}
.contact-section .overline { margin-bottom: .75rem; display: block; }
.contact-section h2 { margin-bottom: 1rem; }
.contact-section p {
  color: var(--muted);
  font-size: 1rem;
  margin-inline: auto;
  margin-bottom: 2rem;
  max-width: 40ch;
}
.contact-email {
  font-family: var(--f-head);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--accent);
  display: block;
  margin-bottom: 2rem;
  transition: opacity .2s;
}
.contact-email:hover { opacity: .7; }

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-block: 1.75rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--f-head);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
}
.footer-social { display: flex; gap: .5rem; list-style: none; }
.footer-social a {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .8rem;
  transition: border-color .2s, color .2s;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-copy {
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .05em;
}

/* ── PORTFOLIO PAGE ──────────────────────────────────── */
.project-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(3rem, 8vw, 6rem);
}
.project-hero .overline { margin-bottom: .75rem; display: block; }
.project-hero h1 { margin-bottom: 1.5rem; }

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.meta-item .ml {
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: .2rem;
}
.meta-item .mv {
  font-size: .95rem;
  color: var(--ink);
}

.project-main-image {
  margin-block: clamp(2.5rem, 5vw, 4rem);
}
.project-main-image img {
  width: 100%;
  max-height: 68vh;
  object-fit: cover;
  border-radius: 4px;
}

.project-description {
  max-width: 640px;
  margin-inline: auto;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.project-description .overline { margin-bottom: .75rem; display: block; }
.project-description h2 { margin-bottom: 1.25rem; }
.project-description p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1rem;
  max-width: none;
}

.gallery-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.gallery-section .section-header { margin-bottom: clamp(2rem, 4vw, 3rem); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
}
.gallery-item {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(44,36,22,.09);
}
.gallery-item-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-2);
}
.gallery-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover .gallery-item-img img { transform: scale(1.04); }
.gallery-caption {
  padding: 1rem 1.15rem 1.25rem;
  border-top: 1px solid var(--border);
}
.gallery-caption h4 {
  font-family: var(--f-head);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: .3rem;
}
.gallery-caption p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: none;
}

.project-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.project-nav-item {
  padding: 2rem var(--gap);
  display: flex;
  flex-direction: column;
  gap: .35rem;
  border-right: 1px solid var(--border);
  transition: background .2s;
}
.project-nav-item:last-child { border-right: none; }
.project-nav-item:hover { background: var(--bg); }
.project-nav-item.next { text-align: right; }
.nav-dir {
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-title {
  font-family: var(--f-head);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 400;
  color: var(--ink);
  transition: color .2s;
}
.project-nav-item:hover .nav-title { color: var(--accent); }

/* ── MISC ────────────────────────────────────────────── */
.customizer-notice {
  background: var(--accent);
  color: #fff;
  padding: .5rem 1.5rem;
  font-size: .75rem;
  letter-spacing: .08em;
  text-align: center;
  display: none;
}
.customize-preview .customizer-notice { display: block; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  border: 1px dashed var(--border);
  border-radius: 4px;
}
.empty-state h3 { font-family: var(--f-head); font-weight: 400; margin-bottom: .5rem; }
.empty-state p { color: var(--muted); font-size: .9rem; margin-inline: auto; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.revealed { opacity: 1; transform: none; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 580px) {
  .primary-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: .75rem var(--gap);
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: .65rem 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .site-header { position: relative; }
  .project-nav { grid-template-columns: 1fr; }
  .project-nav-item { border-right: none; border-bottom: 1px solid var(--border); }
  .project-nav-item.next { text-align: left; }
}

/* ── Image Light Box ──────────────────────────────────────── */

/* Lightbox container */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox.active {
  display: flex;
}

/* Image */
.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}


