/*
Theme Name: Treveon Roseberry
Theme URI: https://treveonroseberry.com
Author: Treveon Roseberry
Author URI: https://treveonroseberry.com
Description: Personal brand theme for Treveon Roseberry — Mobile Strategist, Marketer, Brand Cartographer. Built with Anton + Outfit typography, warm paper tones, and full one-page layout.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: treveon-roseberry
Tags: one-page, portfolio, personal, responsive, custom-logo
*/































/* ─────────────────────────────────────────
   TOKENS
───────────────────────────────────────── */
:root {
  --ink:       #1a1714;
  --ink-soft:  #4a4540;
  --ink-faint: #9a9490;
  --paper:     #f8f4ef;
  --paper-2:   #f0ebe4;
  --gold:      #b8955a;
  --gold-pale: #d4b07a;
  --rule:      #e2dbd2;

  --f-serif: 'Anton', 'Arial Narrow', sans-serif;
  --f-sans:  'Outfit', sans-serif;
  --f-mono:  'DM Mono', monospace;

  --nav-h: 68px;
  --col: 680px;        /* text column */
  --wide: 1080px;      /* wide column */
  --pad: clamp(1.5rem, 5vw, 4rem);
}

/* ─────────────────────────────────────────
   RESET
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex; align-items: center;
  transition: background .4s, border-color .4s;
  /* solid by default — hero overrides this */
  background: rgba(248,244,239,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
/* on the homepage, start transparent over the hero photo */
.home .nav {
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(248,244,239,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--wide);
  width: 100%; margin: 0 auto;
  padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none;
}
.nav-logo-svg {
  height: 28px;
  width: auto;
  color: var(--ink);
  transition: color .3s, opacity .2s;
}
.nav-logo:hover .nav-logo-svg { opacity: .7; }
/* on homepage hero, logo starts white */
.home .nav:not(.solid) .nav-logo-svg {
  color: var(--ink);
}
.nav.solid .nav-logo-svg {
  color: var(--ink);
}
.footer-brand {
  display: flex; align-items: center; gap: 1rem;
}
.footer-logo-svg {
  height: 24px; width: auto;
  color: rgba(245,241,234,.3);
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
/* on homepage hero, links start light */
.home .nav:not(.solid) .nav-links a { color: var(--ink-soft); }
.home .nav:not(.solid) .nav-links a:hover { color: var(--ink); }
.nav.solid .nav-links a { color: var(--ink-faint); }
.nav.solid .nav-links a:hover { color: var(--ink); }

/* hamburger */
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: all .3s; }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: var(--nav-h) var(--pad) 6vh;
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

/* image placeholder zone — replace src when images arrive */
.hero-img-zone {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--paper);
}
.hero-img-zone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* anchor right so portrait stays visible, text area on left stays clear */
  object-position: right center;
  transition: opacity .8s ease;
}
/* No heavy gradient needed — paper bg on left is already light */
.hero-img-zone::after {
  content: '';
  position: absolute; inset: 0;
  /* Only subtle vignette at very bottom for text */
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 65%,
    rgba(248,244,239,.7) 85%,
    var(--paper) 100%
  );
}
.hero-img-zone::before { display: none; }

.hero-body {
  position: relative; z-index: 1;
  max-width: var(--wide);
  width: 100%; margin: 0 auto;
}

.hero-label {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1.4rem;
  opacity: 0; transform: translateY(12px);
  animation: up .5s ease .1s forwards;
}

.hero-name {
  font-family: var(--f-serif);
  font-size: clamp(5rem, 13vw, 13rem);
  font-weight: 400;
  line-height: .85;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 2rem;
  opacity: 0; transform: translateY(18px);
  animation: up .7s ease .25s forwards;
}
.hero-name em {
  font-style: normal;
  color: var(--gold);
  display: block;
}

.hero-line {
  display: flex; align-items: flex-start;
  gap: 3rem;
  opacity: 0; transform: translateY(12px);
  animation: up .6s ease .5s forwards;
}
.hero-rule {
  flex-shrink: 0;
  width: 1px; height: 60px;
  background: var(--gold-pale);
  margin-top: .35rem;
  opacity: .7;
}
.hero-tagline {
  font-family: var(--f-sans);
  font-size: clamp(.9rem, 1.5vw, 1.1rem);
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 480px;
  line-height: 1.7;
}

.hero-scroll {
  position: absolute; bottom: 2.5rem; right: var(--pad);
  writing-mode: vertical-rl;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex; align-items: center; gap: 10px;
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
}
.hero-scroll::before {
  content: '';
  display: block; width: 1px; height: 36px;
  background: var(--gold);
  opacity: .6;
}

/* ─────────────────────────────────────────
   SECTION SHARED
───────────────────────────────────────── */
.section {
  padding: clamp(4rem, 10vw, 9rem) var(--pad);
}
.section-inner {
  max-width: var(--wide);
  margin: 0 auto;
}
hr.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.section-kicker {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: block;
}

/* ─────────────────────────────────────────
   ABOUT
───────────────────────────────────────── */
.about { background: var(--paper); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
}

.about-heading {
  font-family: var(--f-serif);
  font-size: clamp(2.8rem, 4.5vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 0;
}
.about-heading em { font-style: normal; color: var(--gold); }

/* image slot in about */
.about-img {
  margin-top: 2.5rem;
  aspect-ratio: 4/5;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  overflow: hidden;
  position: relative;
}
.about-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.about-text {
  display: flex;
  flex-direction: column;
}
.about-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
}
.about-img-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: .5rem;
}
.about-img-placeholder span {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.about-text p {
  font-size: clamp(.95rem, 1.4vw, 1.05rem);
  color: var(--ink-soft);
  line-height: 1.9;
  margin-bottom: 1.4rem;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text p strong {
  font-weight: 500;
  color: var(--ink);
}

/* ─────────────────────────────────────────
   WORK / SERVICES  (vertical list)
───────────────────────────────────────── */
.work { background: var(--paper-2); }

.work-heading {
  font-family: var(--f-serif);
  font-size: clamp(2.8rem, 4.5vw, 5rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: clamp(3rem, 6vw, 5rem);
  max-width: 520px;
  line-height: 1.0;
}
.work-heading em { font-style: normal; color: var(--gold); }

.work-list { list-style: none; }
.work-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 2.5rem;
  align-items: start;
  padding: 2.2rem 0;
  border-top: 1px solid var(--rule);
  cursor: default;
  transition: background .2s;
}
.work-item:last-child { border-bottom: 1px solid var(--rule); }
.work-item:hover .work-item-title { color: var(--gold); }

.work-num {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  padding-top: .25rem;
}
.work-item-body {}
.work-item-title {
  font-family: var(--f-serif);
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: .5rem;
  transition: color .25s;
  line-height: 1.1;
}
.work-item-desc {
  font-size: .9rem;
  color: var(--ink-faint);
  max-width: 500px;
  line-height: 1.8;
}
.work-arrow {
  font-size: 1.2rem;
  color: var(--rule);
  padding-top: .15rem;
  transition: color .25s, transform .3s;
}
.work-item:hover .work-arrow { color: var(--gold); transform: translateX(4px); }

/* ─────────────────────────────────────────
   IMAGE BREAK  (full-width photo strip)
───────────────────────────────────────── */
.img-break {
  /* Portrait image (2:3) — show full figure, don't crop */
  background: var(--paper-2);
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-height: 90vh;
}
.img-break img {
  width: auto;
  height: 90vh;
  max-width: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
}
.img-break-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: .5rem;
  background: repeating-linear-gradient(
    -45deg,
    var(--paper-2) 0px,
    var(--paper-2) 1px,
    transparent 1px,
    transparent 32px
  );
}
.img-break-placeholder span {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ─────────────────────────────────────────
   WRITING / BLOG
───────────────────────────────────────── */
.writing { background: var(--paper); }

.writing-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  flex-wrap: wrap; gap: 1rem;
}
.writing-heading {
  font-family: var(--f-serif);
  font-size: clamp(2.8rem, 4.5vw, 5rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.0;
}
.writing-heading em { font-style: normal; color: var(--gold); }
.all-posts {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.all-posts:hover { color: var(--gold-pale); border-color: var(--gold-pale); }

.post-list { list-style: none; }
.post-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: baseline;
  padding: 1.6rem 0;
  border-top: 1px solid var(--rule);
}
.post-item:last-child { border-bottom: 1px solid var(--rule); }
.post-link {
  display: flex; flex-direction: column; gap: .3rem;
  text-decoration: none;
}
.post-title-text {
  font-family: var(--f-serif);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  transition: color .2s;
}
.post-link:hover .post-title-text { color: var(--gold); }
.post-cat-tag {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}
.post-date-text {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  white-space: nowrap;
}

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
.contact { background: var(--ink); }
.contact .section-kicker { color: var(--gold); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
}

.contact-heading {
  font-family: var(--f-serif);
  font-size: clamp(2.8rem, 4.5vw, 5rem);
  font-weight: 800;
  color: var(--paper);
  line-height: 1.0;
  margin-bottom: 1.5rem;
}
.contact-heading em { font-style: normal; color: var(--gold); }

.contact-sub {
  font-size: .95rem;
  color: var(--ink-faint);
  line-height: 1.85;
  max-width: 380px;
}

.form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--paper);
  padding: .85rem 1rem;
  font-family: var(--f-sans);
  font-size: .9rem;
  font-weight: 300;
  border-radius: 0;
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--ink-faint); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-submit {
  align-self: flex-start;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: .9rem 2rem;
  border: none; cursor: pointer;
  font-weight: 400;
  transition: background .2s, transform .3s cubic-bezier(.34,1.56,.64,1);
  margin-top: .4rem;
}
.form-submit:hover { background: var(--gold-pale); transform: translateY(-2px); }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 2rem var(--pad);
}
.footer-inner {
  max-width: var(--wide); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,.25);
}
.footer-nav { display: flex; gap: 2rem; }
.footer-nav a {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--gold); }

/* ─────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────── */
@keyframes up        { to { opacity:1; transform:translateY(0); } }
@keyframes menuIn    { from { opacity:0; } to { opacity:1; } }
@keyframes menuItemIn { to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { to { opacity:1; } }

.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.show { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
/* ── TABLET ── */
@media (max-width: 860px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-img { aspect-ratio: 3/2; max-height: 340px; }
  .work-item { grid-template-columns: 2rem 1fr; gap: 1.5rem; }
  .work-arrow { display: none; }
  .hero-line { gap: 1.5rem; }
  .writing-head { flex-direction: column; align-items: flex-start; }
  .blog-grid { grid-template-columns: 1fr; }
  /* services page */
  .service-detail-item { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-detail-title { position: static; font-size: clamp(1.8rem, 3vw, 2.4rem); }
  /* contact grid */
  .contact-grid { gap: 3rem; }
}

/* ── MOBILE ── */
@media (max-width: 640px) {
  :root { --nav-h: 60px; --pad: 1.25rem; }

  /* Nav */
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  /* full-screen takeover overlay */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(248,244,239,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    gap: 0;
    z-index: 200;
    padding: 2rem;
    animation: menuIn .35s cubic-bezier(.16,1,.3,1) forwards;
  }
  .nav-links.open li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(26,23,20,.08);
    opacity: 0;
    transform: translateY(16px);
    animation: menuItemIn .4s cubic-bezier(.16,1,.3,1) forwards;
  }
  .nav-links.open li:first-child { border-top: 1px solid rgba(26,23,20,.08); }
  .nav-links.open li:nth-child(1) { animation-delay: .08s; }
  .nav-links.open li:nth-child(2) { animation-delay: .14s; }
  .nav-links.open li:nth-child(3) { animation-delay: .20s; }
  .nav-links.open li:nth-child(4) { animation-delay: .26s; }
  .nav-links.open a {
    display: block;
    padding: 1.4rem 0;
    font-family: var(--f-serif);
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
    transition: color .2s;
  }
  .nav-links.open a:hover { color: var(--gold); }

  /* X close button — appears inside the overlay */
  .nav-close {
    display: none;
    position: fixed;
    top: 1.2rem; right: 1.2rem;
    z-index: 201;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    cursor: pointer;
    background: none; border: none;
  }
  .nav-close svg { width: 20px; height: 20px; stroke: rgba(245,241,234,.7); stroke-width: 1.5; }
  .nav-close.visible { display: flex; }
  .nav-close:hover svg { stroke: var(--gold); }

  .hero { min-height: 100svh; padding-bottom: 8vh; }
  .hero-body { padding: 0; }
  .hero-img-zone img { object-position: center top; }
  .hero-name { font-size: clamp(3.8rem, 16vw, 6rem); margin-bottom: 1.2rem; }
  /* On mobile: zoom into the right side (figure) since canvas is wide */
  .hero-img-zone img { object-position: 85% top; }
  .hero-label { font-size: 0.6rem; letter-spacing: .18em; margin-bottom: 1rem; }
  .hero-line { flex-direction: column; gap: .8rem; }
  .hero-rule { width: 32px; height: 1px; margin-top: 0; }
  .hero-tagline { font-size: .9rem; }
  .hero-scroll { display: none; }

  /* Sections */
  .section { padding: 4rem var(--pad); }
  .section-kicker { margin-bottom: .8rem; }

  /* About */
  .about-grid { gap: 2.5rem; }
  .about-heading { font-size: clamp(2.2rem, 10vw, 3rem); }
  .about-img { aspect-ratio: 4/5; max-height: 420px; margin-top: 1.5rem; }
  .about-text p { font-size: .95rem; }

  /* Work list */
  .work-heading { font-size: clamp(2.2rem, 10vw, 3rem); margin-bottom: 2rem; }
  .work-item { padding: 1.5rem 0; gap: 1rem; }
  .work-item-title { font-size: clamp(1.3rem, 5vw, 1.6rem); }
  .work-item-desc { font-size: .85rem; }

  /* Image break — respect portrait ratio */
  .img-break { max-height: 75vh; }
  .img-break img { height: 75vh; }

  /* Writing */
  .writing-heading { font-size: clamp(2.2rem, 10vw, 3rem); }
  .post-title-text { font-size: 1.1rem; }
  .post-item { grid-template-columns: 1fr; gap: .4rem; }
  .post-date-text { display: none; }
  .all-posts { font-size: .6rem; }

  /* Contact */
  .contact-heading { font-size: clamp(2.2rem, 10vw, 3rem); }
  .contact-sub { font-size: .9rem; }
  .form-group input,
  .form-group textarea { font-size: 16px; /* prevent iOS zoom */ }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-nav { gap: 1.5rem; }
  .footer-brand { flex-direction: row; }

  /* Blog grid */
  .blog-grid { grid-template-columns: 1fr; gap: 1rem; }
  .blog-card, .post-card { padding: 1.5rem; }
  .post-initial { font-size: 3.5rem; }

  /* Post item list */
  .post-item { padding: 1.2rem 0; }
}

/* ── SMALL MOBILE ── */
@media (max-width: 380px) {
  .hero-name { font-size: clamp(3rem, 18vw, 4.5rem); }
  .about-heading,
  .work-heading,
  .writing-heading,
  .contact-heading { font-size: 2rem; }
}


