@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Manrope:wght@500;600;700;800&display=swap');

/* =========================================================
   Marcela Campos — portfolio
   Direction: technical drawing / product datasheet.
   Grounded in an Industrial Design background and a body of
   work that is mostly interfaces bolted to physical objects.
   ========================================================= */

:root {
  --paper:      #F4F5F2;
  --paper-deep: #E9EBE5;
  --ink:        #15181B;
  --graphite:   #5C636B;
  --rule:       #D3D6CE;
  --blueprint:  #1B4D8F;

  --display: "Manrope", Arial, sans-serif;
  --prose:   "Inter", Arial, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --measure: 34rem;
  --wide: 78rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--prose);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-synthesis: none;
}

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

a { color: var(--blueprint); text-underline-offset: .18em; }

:focus-visible {
  outline: 2px solid var(--blueprint);
  outline-offset: 3px;
}

.shell { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.column { max-width: var(--measure); }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; z-index: 99;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- dimension rule: the signature device ----------
   A hairline with end ticks, the way a measurement is called
   out on a drawing. Used only to open a section.            */

.dim {
  position: relative;
  height: 1px;
  background: var(--rule);
  margin: 0;
  border: 0;
}
.dim::before, .dim::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 1px;
  height: 9px;
  background: var(--graphite);
}
.dim::before { left: 0; }
.dim::after  { right: 0; }

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}
.masthead__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--display);
  font-variation-settings: "wdth" 112;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--ink);
}
.wordmark span {
  font-family: var(--mono);
  font-weight: 400;
  font-size: .7rem;
  color: var(--graphite);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-left: .6rem;
}
.masthead__nav {
  display: flex;
  gap: 1.6rem;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .04em;
}
.masthead__nav a {
  color: var(--graphite);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.masthead__nav a:hover,
.masthead__nav a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--ink);
}

/* ---------- hero ---------- */

.hero { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 5vw, 4rem); }

.eyebrow {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--graphite);
  margin: 0 0 1.4rem;
}

.hero__title {
  font-family: var(--display);
  font-variation-settings: "wdth" 108;
  font-weight: 600;
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -.022em;
  margin: 0 0 1.6rem;
  max-width: 20ch;
  text-wrap: balance;
}
.hero__lede {
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 46ch;
  margin: 0 0 2.2rem;
}
.hero__meta {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--graphite);
  line-height: 1.9;
  margin: 2rem 0 0;
}

/* ---------- section framing ---------- */

.band { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band--tint { background: var(--paper-deep); }

.band__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .9rem;
}
.band__title {
  font-family: var(--display);
  font-variation-settings: "wdth" 105;
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  letter-spacing: -.012em;
  margin: 0;
}
.band__note {
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .05em;
  color: var(--graphite);
  margin: 0;
  max-width: 40ch;
}
.band__body { margin-top: 2.6rem; }

/* ---------- project cards ---------- */

.projects { display: grid; gap: 2.5rem; }
.projects--trio {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem;
}

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--rule);
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--ink); transform: translateY(-2px); }

.card__frame {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--rule);
}
.card__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card__frame img { transform: scale(1.03); }

.card__body { padding: 1.3rem 1.4rem 1.6rem; }
.card__kicker {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--graphite);
  margin: 0 0 .55rem;
}
.card__name {
  font-family: var(--display);
  font-variation-settings: "wdth" 106;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -.01em;
  margin: 0 0 .5rem;
}
.card__line {
  font-size: .97rem;
  line-height: 1.5;
  color: var(--graphite);
  margin: 0;
}

/* feature card — the one piece of professional work */
.card--feature { display: grid; grid-template-columns: 1fr; }
@media (min-width: 52rem) {
  .card--feature { grid-template-columns: 1.25fr 1fr; }
  .card--feature .card__frame { aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--rule); }
  .card--feature .card__body { padding: 2.4rem 2.4rem 2.6rem; align-self: center; }
  .card--feature .card__name { font-size: 2rem; }
}

/* ---------- datasheet spec block ---------- */

.spec {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  margin: 2.5rem 0 3rem;
}
.spec__row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--rule);
}
.spec__row:last-child { border-bottom: 0; }
.spec__key {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--graphite);
  padding-top: .22rem;
}
.spec__val { font-size: 1rem; line-height: 1.55; margin: 0; }
@media (max-width: 34rem) {
  .spec__row { grid-template-columns: 1fr; gap: .2rem; }
}

/* ---------- case study prose ---------- */

.study { padding-bottom: 5rem; }

.study__hero {
  border: 1px solid var(--rule);
  margin-bottom: 3rem;
  background: var(--paper-deep);
}

.prose { max-width: none; }
.prose p,
.prose h2,
.prose h3,
.prose h4,
.prose ul,
.prose blockquote { max-width: var(--measure); }

.prose h2 {
  font-family: var(--display);
  font-variation-settings: "wdth" 105;
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -.015em;
  line-height: 1.15;
  margin: 3.6rem 0 1.1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--ink);
}
.prose h3 {
  font-family: var(--display);
  font-variation-settings: "wdth" 104;
  font-weight: 600;
  font-size: 1.16rem;
  letter-spacing: -.005em;
  margin: 2.4rem 0 .7rem;
}
.prose h4 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: .76rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--graphite);
  margin: 2rem 0 .6rem;
}
.prose p { margin: 0 0 1.15rem; }
.prose ul { margin: 0 0 1.4rem; padding-left: 0; list-style: none; }
.prose li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .55rem;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 0; top: .72em;
  width: .7rem; height: 1px;
  background: var(--blueprint);
}
.prose blockquote {
  margin: 2rem 0;
  padding-left: 1.4rem;
  border-left: 2px solid var(--blueprint);
  font-size: 1.15rem;
  line-height: 1.5;
}

/* figures break the measure — drawings want room */
.figure {
  margin: 2.6rem 0;
  max-width: none;
  width: 100%;
}
.figure img { border: 1px solid var(--rule); background: var(--paper-deep); width: 100%; }
.figure.pattern-divider { background: transparent; border: 0; box-shadow: none; }
.figure.pattern-divider img { border: 0; background: transparent; box-shadow: none; }
.case-page main { font-family: "Inter", Arial, sans-serif; font-size: 1rem; line-height: 1.7; }
.case-page main h1, .case-page main h2, .case-page main h3 { color: #2f5a5f; font-family: var(--display); font-weight: 700; letter-spacing: -.05em; line-height: 1.02; }
.case-page .backlink { display: none; }
.case-page .study > .hero { padding-block: clamp(1.25rem, 2.5vw, 2.5rem) 1.5rem !important; }
.figure figcaption {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--graphite);
  margin-top: .6rem;
  line-height: 1.5;
}
@media (min-width: 60rem) {
  .figure--wide { width: min(100%, 62rem); }
}

/* ---------- about ---------- */

.about__grid { display: grid; gap: 3rem; }
@media (min-width: 54rem) {
  .about__grid { grid-template-columns: 1fr 18rem; gap: 4rem; align-items: start; }
}
.about__aside {
  font-family: var(--mono);
  font-size: .8rem;
  line-height: 1.8;
  color: var(--graphite);
  border-top: 1px solid var(--ink);
  padding-top: 1rem;
}
.about__aside dt {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .7rem;
  margin-top: 1.1rem;
}
.about__aside dd { margin: 0; color: var(--ink); }

.pull {
  font-family: var(--display);
  font-variation-settings: "wdth" 104;
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.22;
  letter-spacing: -.015em;
  margin: 0 0 2.4rem;
  max-width: 18ch;
}

/* ---------- contact ---------- */

.contact__lines {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  border-top: 1px solid var(--ink);
}
.contact__lines li { border-bottom: 1px solid var(--rule); }
.contact__lines a {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--ink);
  transition: padding-left .2s ease;
}
.contact__lines a:hover { padding-left: .5rem; }
.contact__lines .label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--graphite);
  padding-top: .2rem;
}
.contact__lines .value {
  font-family: var(--display);
  font-variation-settings: "wdth" 104;
  font-weight: 500;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  word-break: break-word;
}
@media (max-width: 34rem) {
  .contact__lines a { grid-template-columns: 1fr; gap: .1rem; }
}

/* ---------- study navigation ---------- */

.backlink {
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .06em;
  color: var(--graphite);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 2rem;
}
.backlink:hover { color: var(--ink); }

.nextup {
  border-top: 1px solid var(--ink);
  margin-top: 4rem;
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: .8rem;
}
.nextup a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.nextup a:hover { border-color: var(--ink); }

/* ---------- footer ---------- */

.colophon {
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  padding-block: 2.2rem 3rem;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--graphite);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.colophon a { color: var(--graphite); }
.colophon a:hover { color: var(--ink); }
