/* Suavecito Recordings — standalone site
   Layout is drawn on a 1185-unit-wide canvas (same as the original design)
   and scales with the window. Below 720px it switches to a stacked phone layout. */

@font-face { font-family: "Typewriter"; src: url("/fonts/typewriter.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Body"; src: url("/fonts/body.woff") format("woff"); font-display: swap; }

:root {
  --bg: #14130e;
  --cream: #d6cdbc;
  --text: #b5ac9c;
  --muted: #9c8b78;
  --faint: #8a847d;
  --nav-h: 56px;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0; padding-top: var(--nav-h);
  background: var(--bg); color: var(--text);
  font-family: "Body", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, video, iframe { display: block; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50;
  background: var(--bg);
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 14px;
}
.topbar nav { display: flex; gap: clamp(10px, 1.9vw, 23px); }
.topbar a {
  font-family: "Typewriter", "Courier New", monospace;
  font-size: clamp(15px, 1.75vw, 21px);
  color: #fff; opacity: .68; text-decoration: none; white-space: nowrap;
  transition: opacity .2s;
}
.topbar a:hover, .topbar a[aria-current="page"] { opacity: 1; }

/* ---------- design canvas ---------- */
.band { position: relative; overflow: hidden; background-color: var(--bg); background-size: cover; background-position: center; }
.sec { position: relative; max-width: 1600px; margin: 0 auto; container-type: inline-size; }
.canvas { position: relative; width: 100%; height: calc(var(--sh) * 100cqw / 1185); }

.el {
  position: absolute;
  left: calc(var(--x) * 100cqw / 1185);
  top: calc(var(--y) * 100cqw / 1185);
  width: calc(var(--w) * 100cqw / 1185);
  height: calc(var(--h) * 100cqw / 1185);
  transform: rotate(calc(var(--r, 0) * 1deg));
  font-size: calc(var(--fs, 26) * 100cqw / 1185);
  line-height: calc(var(--lh, 36) * 100cqw / 1185);
}
.el > img, .el > video, .el > iframe, .el > a > img { width: 100%; height: 100%; object-fit: cover; border: 0; }
.el p { margin: 0; }

.h1 { font-family: "Typewriter", "Courier New", monospace; color: var(--cream); opacity: .9; --fs: 41.6; --lh: 49.4; --r: -1; white-space: nowrap; }
.body { color: var(--text); --fs: 22.5; --lh: 31.2; }
.tw { font-family: "Typewriter", "Courier New", monospace; }
.cream { color: var(--cream); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.plain { text-decoration: none; }
.plain:hover { text-decoration: underline; }
.cat-link { font-family: "Typewriter", "Courier New", monospace; color: var(--cream); --fs: 17.3; --lh: 24.2; text-decoration: underline; text-underline-offset: .15em; }
.photo img { box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.icon svg { width: 100%; height: 100%; fill: var(--cream); }
.icon a { display: block; width: 100%; height: 100%; }
.icon a:hover svg { fill: #fff; }

/* ---------- phones ---------- */
@media (max-width: 720px) {
  :root { --nav-h: 48px; }
  .topbar { justify-content: center; padding: 0 8px; }
  .topbar nav { gap: 10px; overflow-x: auto; }
  .topbar a { font-size: 14px; }
  .canvas { height: auto; padding: 28px 22px 40px; display: flex; flex-direction: column; gap: 22px; }
  .el { position: static; width: auto; height: auto; transform: none; font-size: 18px; line-height: 1.45; }
  .el.h1 { font-size: 30px; line-height: 1.2; transform: rotate(-1deg); margin-top: 10px; }
  .el.logo { width: 170px; height: 66px; margin-left: -12px; }
  .el.body { font-size: 18px; }
  .el.small { font-size: 13px; line-height: 1.5; }
  .el.cat-link { font-size: 15px; margin-top: -10px; }
  .el.hide-m { display: none; }
  .el.big-m { font-size: 34px; line-height: 1.2; }
  .el.quote { font-size: 26px; }
  .el.quote-big { font-size: 38px; transform: rotate(4deg); margin: -8px 0 6px; }
  .el.media img, .el.media video { height: auto; }
  .el.cover { width: 100%; max-width: 420px; aspect-ratio: 1; }
  .el.cover img { height: 100%; }
  .el.video { width: 100%; }
  .el.video video { height: auto; max-height: 80vh; }
  .el.ig { width: 100%; max-width: 360px; height: 420px; margin: 0 auto; }
  .el.banner { width: 100%; aspect-ratio: 867.5 / 162.7; }
  .el.banner img { height: 100%; }
  .el.icon { display: none; }
  .icons-m { display: flex !important; gap: 18px; }
  .icons-m svg { width: 30px; height: 30px; fill: var(--cream); }
  .gallery .canvas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .gallery .el { aspect-ratio: 4 / 3; }
  .gallery .el.tall { aspect-ratio: 3 / 4; }
  .gallery .el img { height: 100%; }
  .home-hero .canvas { padding: 60px 0; }
  .home-hero .el { width: 100%; overflow: hidden; }
  .home-hero .el img { transform: scale(1.9); margin: 18vh 0; }
  .spacer-m { display: none; }
}
.icons-m { display: none; }
