/* ============================================================================
   CAVALO MANCO — the studio home
   The desk, seen from above, with each app lying on it in its own material:
   Listinhas is a torn receipt, Pontinhos is a leaf of squared paper. The page
   itself stays quiet (cream type on graphite) so the apps carry the colour.
   Loaded only on "/" — the shared system lives in application.css.
   ========================================================================== */

.studio {
  width: min(1080px, 100% - 2.5rem);
  margin-inline: auto;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 3vw, 1.7rem) 0 clamp(1.6rem, 4vw, 2.6rem);
  color: #f0e6cf;
}

/* ---- header --------------------------------------------------------------- */
.studio-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.studio-top .brand { font-size: 1.5rem; }
.studio-top .brand-by { color: #9c8f75; }

.studio-nav { display: flex; align-items: center; gap: 1.2rem; }
.studio-nav a, .studio-nav-btn {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em;
  color: #cdbf9c; text-decoration: none;
  background: none; border: none; padding: .3rem 0; cursor: pointer;
}
.studio-nav a:hover, .studio-nav-btn:hover { color: #f4ead2; }
.studio-nav form { margin: 0; }

/* ---- hero ----------------------------------------------------------------- */
/* headline and blurb share a line on a wide screen, so the apps themselves
   stay above the fold — they are what this page is for */
.studio-hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: .6rem 3rem;
  align-items: end;
  padding: clamp(1.8rem, 6vw, 3.4rem) 0 clamp(1.4rem, 4vw, 2.4rem);
}
.studio-hero .kicker { grid-column: 1 / -1; display: block; margin-bottom: .6rem; }
.studio-hero h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  color: #fbeecb;
}
.studio-hero h1 em { font-style: italic; color: #c9b78f; }
.studio-lede {
  margin: 0 0 .5rem;
  max-width: 42ch;
  color: #bcae91;
  font-size: clamp(1rem, 2.2vw, 1.08rem);
  line-height: 1.65;
}

/* ---- the shelf: one object per app ---------------------------------------- */
.shelf {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-content: start;
}

.app {
  display: grid;
  grid-template-rows: auto auto;
  gap: 1.4rem;
  padding: clamp(1.3rem, 3vw, 2rem) clamp(1.2rem, 3vw, 1.8rem) clamp(1.4rem, 3vw, 1.8rem);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, .022);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.app:hover { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.app:focus-visible { outline: 2px solid var(--stamp); outline-offset: 3px; }

/* the object sits on the desk at a slight angle, and straightens when you reach
   for it — the one bit of motion on the page */
/* both objects get the same stage, so the two cards' copy starts on the same
   line even though a receipt is tall and a note leaf is squat */
.app-thing { display: flex; justify-content: center; align-items: center; min-height: 12.5rem; }
@media (min-width: 801px) { .app-thing { height: 18rem; } }
.app-thing > * { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.app--listinhas .app-thing > * { transform: rotate(-2.4deg); }
.app--pontinhos .app-thing > * { transform: rotate(1.9deg); }
.app:hover .app-thing > * { transform: rotate(0) translateY(-4px); }

.app-tag {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .24em;
  text-transform: uppercase; color: #9c8f75;
}
.app-name {
  margin: .35rem 0 .5rem;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 900;
  color: #fbeecb;
}
.app--listinhas .app-name-accent { color: var(--brand); }
.app--pontinhos .app-name-accent { color: var(--pt-blue-lite); }
.app-say p { margin: 0 0 1rem; color: #b6a98d; font-size: .98rem; line-height: 1.6; max-width: 38ch; }
.app-go {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
  color: #e0d0ab;
}
.app-go em { font-style: normal; transition: transform .2s ease; }
.app:hover .app-go em { transform: translateX(4px); }
.app--listinhas:hover .app-go { color: var(--stamp); }
.app--pontinhos:hover .app-go { color: var(--pt-blue-lite); }

/* ---- object 1: a torn receipt (Listinhas) --------------------------------- */
.mini-receipt {
  width: 15rem;
  padding: 1.5rem 1.15rem;
  font-size: .82rem;
  box-shadow: var(--lift);
}
.mini-stamp {
  text-align: center;
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--stamp);
}
.mini-receipt .tearline { margin: .8rem 0; }
.mini-line { display: flex; align-items: baseline; gap: .4rem; padding: .22rem 0; color: var(--ink); }
.mini-line i { flex: 1; border-bottom: 1px dotted var(--rule); }
.mini-line .mono { font-size: .72rem; color: var(--ink-soft); }
.mini-line.is-done { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--olive); }
.mini-total {
  display: flex; justify-content: space-between;
  font-size: .72rem; color: var(--ink-soft);
}

/* ---- object 2: a leaf of squared paper (Pontinhos) ------------------------ */
.mini-sheet {
  width: 16.5rem;
  padding: 1rem 1rem 1.4rem;
  border-radius: 2px;
  color: var(--pt-ink);
  background-color: var(--pt-sheet);
  background-image:
    linear-gradient(var(--pt-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--pt-grid) 1px, transparent 1px);
  background-size: 22px 22px;
  box-shadow: var(--lift);
}
.mini-sheet-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: .5rem;
  font-family: var(--font-hand); font-size: 1.1rem;
  padding-bottom: .5rem;
  border-bottom: 1.5px solid rgba(35, 44, 55, .25);
}
.mini-goal {
  font-family: var(--font-mono); font-size: .56rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--pt-ink-soft);
}
.mini-cols { display: grid; grid-template-columns: 1fr 1fr; }
.mini-col { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .8rem .5rem 0; }
.mini-col--b { border-left: 1.5px solid rgba(35, 44, 55, .25); }
.mini-team { font-family: var(--font-hand); font-size: 1.05rem; color: var(--pt-ink); }
.mini-num {
  font-family: "Big Shoulders Display", var(--font-mono), sans-serif;
  font-weight: 700; font-size: 2.1rem; line-height: .9;
  font-variant-numeric: tabular-nums;
}
.mini-col .mini-num { color: var(--pen-grafite); }
.mini-col--b .mini-num { color: var(--pen-vermelha); }
.mini-risks { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; margin-top: .25rem; }
.mini-risks .risco { width: 24px; height: 24px; stroke-width: 3; }

/* ---- footer --------------------------------------------------------------- */
.studio-foot {
  display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; justify-content: space-between;
  margin-top: clamp(2.4rem, 6vw, 4rem);
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em;
  color: #8e8268;
}

@media (max-width: 800px) {
  .studio-hero { grid-template-columns: 1fr; gap: 1rem; }
  .studio-hero h1 { max-width: 20ch; }
  .shelf { grid-template-columns: 1fr; }
  .app { grid-template-columns: auto 1fr; grid-template-rows: none; gap: 1.1rem; align-items: center; }
  .app-thing { min-height: 0; }
  .mini-receipt, .mini-sheet { width: 9.5rem; padding: 1rem .8rem; font-size: .72rem; }
  .mini-sheet { background-size: 16px 16px; }
  .mini-num { font-size: 1.5rem; }
  .mini-risks .risco { width: 17px; height: 17px; }
  .mini-sheet-head, .mini-team { font-size: .92rem; }
  .mini-goal { display: none; }
  .app-say p { font-size: .9rem; }
}

@media (max-width: 460px) {
  .studio-hero { padding-top: 2rem; }
  .app { grid-template-columns: 1fr; }
  .app-thing { justify-content: flex-start; }
  .mini-receipt, .mini-sheet { width: 12rem; }
}
