/* ============================================================
   Daniella Ley Suazo — Portfolio
   Design system: warm editorial. Cream paper, ink, terracotta + sage.
   Fraunces (display serif) + Work Sans (body) + Caveat (handwritten accent)
   ============================================================ */

:root {
  --paper: #F5F0E7;
  --paper-deep: #EBE2D0;
  --paper-card: #FBF8F2;
  --ink: #2B2620;
  --ink-soft: #6E6656;
  --ink-faint: #9A927E;
  --terracotta: #B15E3B;
  --terracotta-deep: #96492A;
  --sage: #5F6B47;
  --sage-deep: #4B5538;
  --line: #DCD1B8;
  --line-soft: #E7DFCC;
  --shadow: 0 1px 2px rgba(43,38,32,0.04);

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --script: "Caveat", cursive;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
}

@media (prefers-color-scheme: dark) {
  :root { color-scheme: light; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 480;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1.1em; }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* subtle paper grain, used sparingly on hero/dark sections */
.grain { position: relative; }
.grain::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.02 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Eyebrow / small caps label (matches her deck: "PORTFOLIO · NATURE JOURNAL") ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow .dot { color: var(--line); margin: 0 0.5em; }

/* ---------- Script accent ---------- */
.script {
  font-family: var(--script);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,240,231,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.wordmark {
  font-family: var(--script);
  font-size: 27px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--terracotta); }
nav.primary { display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); }
nav.primary a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
nav.primary a:hover, nav.primary a[aria-current="page"] { color: var(--terracotta-deep); border-color: var(--terracotta); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  nav.primary { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 999px;
    background: none; cursor: pointer;
  }
  .site-header.open nav.primary {
    display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line-soft);
    padding: 18px var(--pad) 26px;
  }
}

/* ============ Buttons / links ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 14.5px;
  letter-spacing: 0.03em;
  text-decoration: none; color: var(--paper);
  background: var(--ink);
  padding: 13px 24px;
  border-radius: 3px;
  border: 1px solid var(--ink);
  transition: background .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--terracotta-deep); border-color: var(--terracotta-deep); }
.btn.outline {
  background: transparent; color: var(--ink); border-color: var(--ink);
}
.btn.outline:hover { background: var(--ink); color: var(--paper); }
.link-arrow {
  text-decoration: none; font-weight: 600; color: var(--terracotta-deep);
  border-bottom: 1px solid var(--terracotta);
  padding-bottom: 2px; font-size: 15px;
}
.link-arrow:hover { color: var(--terracotta); }

/* ============ Hero ============ */
.hero {
  padding: clamp(56px, 10vw, 108px) 0 clamp(48px, 8vw, 88px);
  border-bottom: 1px solid var(--line-soft);
}
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  max-width: 15ch;
}
.hero .lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-top: 20px;
}
.hero .cta-row { margin-top: 34px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }

/* ============ Sections ============ */
section { padding: clamp(56px, 9vw, 96px) 0; }
section.alt { background: var(--paper-deep); }
.section-head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head .eyebrow { margin-bottom: 14px; }

hr.hair { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ============ Work index (home + /work/) ============ */
.work-index { border-top: 1px solid var(--line); }
.work-row {
  display: grid;
  grid-template-columns: 60px 1fr 0.85fr 300px;
  gap: 28px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  position: relative;
}
.work-row .num { font-family: var(--serif); color: var(--ink-faint); font-size: 15px; }
.work-row .title { font-family: var(--script); font-size: clamp(28px, 3.6vw, 40px); }
.work-row .meta { color: var(--ink-soft); font-size: 15px; }
.work-row .meta .tags { display: block; margin-top: 4px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); }
/* The cluster: a few real photos overlapped and tilted, with a shadow so
   they sit on the page instead of reading as a flat pasted-in rectangle.
   The source images vary a lot in aspect ratio (some portrait, some wide),
   which is exactly why a single shared frame looked wrong. */
.work-row .thumb {
  width: 100%; aspect-ratio: 3 / 2;
  background: transparent; overflow: visible;
}
.work-row .stack { position: relative; display: block; width: 100%; height: 100%; }
.work-row .stack img {
  position: absolute; display: block;
  object-fit: cover; border-radius: 2px;
  background: var(--paper-card);
  box-shadow: 0 6px 18px rgba(43,38,32,0.16), 0 1px 3px rgba(43,38,32,0.10);
}
.work-row .stack img.s3 { width: 46%; height: 68%; left: 0;   top: 18%; transform: rotate(-6deg); }
.work-row .stack img.s2 { width: 46%; height: 68%; left: 26%; top: 6%;  transform: rotate(3deg); }
.work-row .stack img.s1 { width: 50%; height: 74%; left: 50%; top: 16%; transform: rotate(-2deg); }

/* Two-image projects get a wider pair rather than a gap where s3 would be. */
.work-row .stack.st2 img.s2 { width: 52%; height: 72%; left: 4%;  top: 12%; transform: rotate(-5deg); }
.work-row .stack.st2 img.s1 { width: 54%; height: 76%; left: 42%; top: 14%; transform: rotate(3deg); }

.work-row:hover .title { color: var(--terracotta-deep); }
@media (max-width: 900px) {
  .work-row { grid-template-columns: 60px 1fr 240px; gap: 20px; }
  .work-row .meta { grid-column: 2; }
}
@media (max-width: 700px) {
  .work-row { grid-template-columns: 44px 1fr; gap: 6px 18px; padding: 22px 0; }
  .work-row .meta { grid-column: 2; }
  .work-row .thumb { grid-column: 2; margin-top: 12px; }
}

/* ============ Grid ============ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); }
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

figure { margin: 0; }
figcaption { font-size: 13.5px; color: var(--ink-faint); margin-top: 10px; }
.img-frame { border-radius: 2px; overflow: hidden; background: var(--paper-card); }
.gallery-img { aspect-ratio: 4 / 3; }
.gallery-img img { width: 100%; height: 100%; object-fit: cover; }

/* ============ Case study header ============ */
.case-hero { padding-bottom: 0; }
.case-hero h1 { font-family: var(--script); font-size: clamp(46px, 8vw, 84px); font-weight: 600; }
.case-mood-row { display: flex; gap: 10px; margin: 18px 0 0; flex-wrap: wrap; }
.case-mood-row span {
  font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 13px;
}
.case-role-list { list-style: none; margin: 26px 0 0; padding: 0; font-size: 14.5px; color: var(--ink-soft); }
.case-role-list li { padding: 7px 0; border-top: 1px solid var(--line-soft); }
.case-role-list li:first-child { border-top: none; }

.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--line); border: 1px solid var(--line); }
.before-after figure { background: var(--paper-card); padding: 4px; }
.before-after .label { text-align: center; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); padding: 10px 0 4px; }
@media (max-width: 620px) { .before-after { grid-template-columns: 1fr; } }

.case-nav { display: flex; justify-content: space-between; padding: 28px 0; border-top: 1px solid var(--line); font-size: 14px; }
.case-nav a { text-decoration: none; color: var(--ink-soft); }
.case-nav a:hover { color: var(--terracotta-deep); }

/* ============ Process flow ============ */
.process-flow {
  display: flex; flex-wrap: wrap; gap: 10px 4px; align-items: center;
  font-size: 13px;
}
.process-flow span:not(.arrow) {
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px;
  background: var(--paper-card);
}
.process-flow .arrow { color: var(--ink-faint); padding: 0 2px; }

/* ============ Pull quote ============ */
.pull {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.4;
  max-width: 26ch;
  color: var(--ink);
}
.pull .mark { color: var(--terracotta); }

/* ============ FAQ ============ */
.faq-item { border-top: 1px solid var(--line); padding: 22px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  font-family: var(--serif); font-size: clamp(18px, 2.2vw, 22px);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { font-family: var(--sans); font-size: 22px; color: var(--terracotta); flex-shrink: 0; transition: transform .2s; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .a { margin-top: 14px; color: var(--ink-soft); max-width: 62ch; }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--paper-card); border: 1px solid var(--line);
  border-radius: 3px; padding: clamp(24px, 3vw, 34px);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 15.5px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px;
  padding: 12px 14px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--terracotta); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--ink-faint); margin-top: 14px; }
.form-status { margin-top: 14px; font-size: 14.5px; }
.form-status.ok { color: var(--sage-deep); }
.form-status.err { color: var(--terracotta-deep); }

.contact-direct a { display: block; text-decoration: none; margin-bottom: 10px; }
.contact-direct .k { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 3px; }
.contact-direct .v { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.contact-direct .v:hover { color: var(--terracotta-deep); }

/* ============ Footer ============ */
footer.site-footer { border-top: 1px solid var(--line); padding: 44px 0 34px; }
footer.site-footer .row {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: 13.5px; color: var(--ink-soft);
}
footer.site-footer a { text-decoration: none; }
footer.site-footer .credit a { color: var(--ink-soft); border-bottom: 1px solid var(--line); }
footer.site-footer .credit a:hover { color: var(--terracotta-deep); border-color: var(--terracotta); }
footer .flinks { display: flex; gap: 18px; }
footer .flinks a:hover { color: var(--terracotta-deep); }

/* ============ WhatsApp floating button ============ */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--sage-deep); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(43,38,32,0.28);
  text-decoration: none;
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.06); background: var(--sage); }
.wa-float svg { width: 26px; height: 26px; }

/* ============ Misc ============ */
.small-print { font-size: 13px; color: var(--ink-faint); }
.center { text-align: center; }
.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; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }
