/*
Theme Name: Emma Eisenmann Portfolio
Theme URI: https://www.instagram.com/chronic_costumes/
Author: Emma Eisenmann
Author URI: https://www.instagram.com/chronic_costumes/
Description: An elegant, editorial portfolio theme for costume artisans and designers. Add your work from the dashboard as "Projects" with featured images, and edit your bio, skills, and contact details under Appearance &rarr; Customize.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: emma-portfolio
*/

:root {
  --forest:   #33483d;
  --forest-2: #2a3b32;
  --sage:     #6f8a78;
  --sage-soft:#a9bcae;
  --cream:    #f4f0e7;
  --cream-2:  #ece5d6;
  --cream-3:  #e4dccb;
  --ink:      #232b25;
  --terra:    #bd6c4e;
  --terra-soft:#d6997f;
  --line:     #d8cfbd;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, .display {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.01em;
}

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

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

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px;
  overflow: hidden;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forest);
  color: var(--cream);
  padding: 10px 18px;
  z-index: 100000;
}
.skip-link:focus { left: 12px; top: 12px; }

.eyebrow {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--terra);
}

/* ---------- NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 240, 231, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s ease, background .4s ease;
}
.site-header.scrolled { border-color: var(--line); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: 1180px;
  margin: 0 auto;
}
.nav .logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--forest);
}
.nav .logo span { color: var(--terra); }
.nav ul { display: flex; gap: 38px; list-style: none; }
.nav ul a {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
  position: relative;
  padding-bottom: 3px;
}
.nav ul a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--terra);
  transition: width .35s ease;
}
.nav ul a:hover::after { width: 100%; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 120px 0 110px;
  text-align: center;
}
.hero .deco-line {
  width: 1px;
  height: 70px;
  background: var(--line);
  margin: 0 auto 34px;
}
.hero h1 {
  font-size: clamp(3.4rem, 11vw, 8.5rem);
  color: var(--forest);
  font-weight: 500;
}
.hero h1 .em { font-style: italic; color: var(--terra); font-weight: 400; }
.hero .tagline {
  margin-top: 22px;
  font-size: 0.82rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--sage);
}
.hero .blurb {
  max-width: 540px;
  margin: 34px auto 0;
  font-size: 1.05rem;
  color: var(--ink);
  opacity: 0.85;
}
.scroll-cue {
  margin-top: 56px;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage);
  display: inline-block;
  animation: float 2.6s ease-in-out infinite;
}
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(7px);} }

/* ---------- SECTIONS ---------- */
.section { padding: 96px 0; }
.section-head { margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--forest);
  margin-top: 10px;
}
.section-head h2 .em { font-style: italic; color: var(--terra); font-weight: 400; }

/* ---------- ABOUT ---------- */
#about { background: var(--cream-2); }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(42,59,50,0.5);
}
.about-text p { margin-bottom: 20px; font-size: 1.06rem; }
.about-text p:last-child { margin-bottom: 0; }
.about-text .lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  line-height: 1.4;
  font-weight: 500;
  color: var(--forest);
  margin-bottom: 28px;
}

/* ---------- WORK ---------- */
.featured { display: flex; flex-direction: column; gap: 110px; }
.project-lg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.project-lg:nth-child(even) .project-img { order: 2; }
.project-meta .num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--terra);
}
.project-meta h3 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  color: var(--forest);
  margin: 6px 0 4px;
}
.project-meta .company {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
}
.project-meta .role {
  display: inline-block;
  margin: 18px 0 16px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
  border: 1px solid var(--terra-soft);
  border-radius: 40px;
  padding: 5px 16px;
}
.project-meta .desc { font-size: 1.04rem; opacity: 0.88; }
.project-meta .desc p { margin-bottom: 12px; }
.project-meta .year {
  margin-top: 18px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--sage);
}
.award {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 400;
}

/* ---------- PHOTO SLOT ---------- */
.photo {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: repeating-linear-gradient(45deg, var(--cream-3) 0 14px, var(--cream-2) 14px 28px);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.project-img .photo { aspect-ratio: 4 / 5; box-shadow: 0 28px 55px -30px rgba(42,59,50,0.55); }
.photo img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.photo .ph-label {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--sage);
}
.photo .ph-label svg { width: 34px; height: 34px; margin-bottom: 14px; opacity: 0.7; }
.photo .ph-label .ph-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--forest);
  margin-bottom: 8px;
}
.photo .ph-label small {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--sage);
}

/* ---------- WORK GRID ---------- */
.grid-head { margin: 110px 0 48px; text-align: center; }
.grid-head h3 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--forest);
}
.grid-head h3 .em { font-style: italic; color: var(--terra); font-weight: 400; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.card .photo { aspect-ratio: 3 / 4; }
.card:hover .photo img { transform: scale(1.05); }
.card-info { padding: 18px 2px 0; }
.card-info h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--forest);
  line-height: 1.15;
}
.card-info .award-tag { font-size: 0.7rem; color: var(--terra); letter-spacing: 0.1em; }
.card-info .company {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 4px;
}
.card-info .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.card-info .role { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terra); }
.card-info .year { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--sage); }

.empty-note {
  text-align: center;
  padding: 50px 24px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  color: var(--sage);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
}

/* ---------- SKILLS ---------- */
#skills { background: var(--forest); color: var(--cream); }
#skills .eyebrow { color: var(--terra-soft); }
#skills .section-head h2 { color: var(--cream); }
#skills .section-head h2 .em { color: var(--terra-soft); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.skill-col h4 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--terra-soft);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(169,188,174,0.3);
}
.skill-col ul { list-style: none; }
.skill-col li {
  padding: 9px 0;
  font-size: 0.98rem;
  color: var(--sage-soft);
  border-bottom: 1px solid rgba(169,188,174,0.12);
}
.skill-col li:last-child { border-bottom: 0; }

/* ---------- CONTACT ---------- */
#contact { text-align: center; padding: 120px 0 96px; }
#contact h2 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  color: var(--forest);
}
#contact h2 .em { font-style: italic; color: var(--terra); font-weight: 400; }
#contact .blurb { max-width: 520px; margin: 22px auto 40px; font-size: 1.08rem; opacity: 0.85; }
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.contact-links a {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 13px 26px;
  transition: all .35s ease;
}
.contact-links a:hover {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
  transform: translateY(-2px);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  text-align: center;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
}

/* generic content (single posts / pages) */
.entry { max-width: 760px; margin: 0 auto; }
.entry h1.entry-title { font-size: clamp(2.2rem,5vw,3.4rem); color: var(--forest); margin-bottom: 24px; }
.entry p { margin-bottom: 18px; font-size: 1.06rem; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

.hero h1, .hero .tagline, .hero .blurb, .hero .scroll-cue, .hero .deco-line { opacity: 0; animation: rise 1s cubic-bezier(.2,.7,.2,1) forwards; }
.hero .deco-line { animation-delay: .05s; }
.hero h1 { animation-delay: .15s; }
.hero .tagline { animation-delay: .4s; }
.hero .blurb { animation-delay: .55s; }
.hero .scroll-cue { animation-delay: .7s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px);} to { opacity: 1; transform: none;} }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 880px) {
  .nav ul { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .portrait { max-width: 420px; margin: 0 auto; width: 100%; }
  .project-lg { grid-template-columns: 1fr; gap: 30px; }
  .project-lg:nth-child(even) .project-img { order: 0; }
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .skills-grid { grid-template-columns: 1fr; gap: 36px; }
  .featured { gap: 80px; }
}
@media (max-width: 540px) {
  .wrap { padding: 0 22px; }
  .nav { padding: 16px 22px; }
  .work-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
}
