/* ============================================
   KIARA PIPINO — PORTFOLIO SITE
   Design tokens
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Dark stage palette */
  --ink: #F2EDE4;          /* now used as primary light text on dark bg */
  --ink-soft: #D8D2C6;     /* secondary body text */
  --parchment: #13110F;    /* main background — near-black */
  --parchment-dim: #1E1B18; /* lifted surface for alternating sections */
  --surface: #1E1B18;
  --surface-2: #262220;
  --clay: #CC323E;         /* spotlight accent — crimson (brightened) */
  --clay-soft: #9E2A36;    /* deep ember — secondary accent / hover (brightened) */
  --line: rgba(242, 237, 228, 0.14);
  --white: #FFFFFF;
  --on-clay: #F2EDE4;      /* text color when sitting on the crimson accent */

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1180px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Image placeholder ---------- */
.img-placeholder {
  position: relative;
  background: linear-gradient(135deg, #2A2622 0%, #1C1916 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(242, 237, 228, 0.4);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}
.img-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(242,237,228,0.05) 0, rgba(242,237,228,0.05) 2px, transparent 2px, transparent 14px);
}
.img-placeholder span {
  position: relative;
  z-index: 1;
  padding: 0 1rem;
  max-width: 80%;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(19, 17, 15, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1.5rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.2rem);
}

.main-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--clay);
  transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a.active { color: var(--clay); }

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

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    height: calc(100vh - 72px);
    bottom: auto;
    background-color: #13110F;
    z-index: 99;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2rem var(--gutter);
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.1rem; }
  .nav-toggle { display: block; }
}

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: var(--ink);
  color: var(--parchment);
}

.btn-clay {
  border-color: var(--clay);
  color: var(--clay);
}

.btn-clay:hover {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--on-clay);
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--clay);
}

/* ---------- Section heading ---------- */
.section-head {
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  margin: 0.5rem 0 0;
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  margin-top: 6rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.footer-meta {
  font-size: 0.8rem;
  color: rgba(242,237,228,0.55);
}

.social-links {
  display: flex;
  gap: 1.1rem;
}

.social-links a {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.social-links a:hover {
  border-color: var(--clay);
  color: var(--clay);
}

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 0.4rem 0 0;
  color: var(--ink);
  font-weight: 600;
}

.page-hero p.lede {
  max-width: 640px;
  margin-top: 1.1rem;
  font-size: 1.05rem;
  color: rgba(242,237,228,0.75);
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}
